From 2116b5b5802c0de0f126f85cf2ac56a732639e82 Mon Sep 17 00:00:00 2001 From: xin <1099200748@qq.com> Date: Wed, 02 Jul 2025 16:39:16 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' into xin --- oying-system/src/main/resources/mapper/rider/RiderWithdrawalRecordMapper.xml | 72 ++++++++++++++++++++++++++++++++++++ 1 files changed, 72 insertions(+), 0 deletions(-) diff --git a/oying-system/src/main/resources/mapper/rider/RiderWithdrawalRecordMapper.xml b/oying-system/src/main/resources/mapper/rider/RiderWithdrawalRecordMapper.xml new file mode 100644 index 0000000..c23a732 --- /dev/null +++ b/oying-system/src/main/resources/mapper/rider/RiderWithdrawalRecordMapper.xml @@ -0,0 +1,72 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > +<mapper namespace="com.oying.modules.rider.mapper.RiderWithdrawalRecordMapper"> + <resultMap id="BaseResultMap" type="com.oying.modules.rider.domain.RiderWithdrawalRecord"> + <id column="record_id" property="recordId"/> + <result column="rider_id" property="riderId"/> + <result column="rider_name" property="riderName"/> + <result column="rider_phone" property="riderPhone"/> + <result column="amount" property="amount"/> + <result column="withdrawal_amount" property="withdrawalAmount"/> + <result column="now_amount" property="nowAmount"/> + <result column="fee" property="fee"/> + <result column="actual_amount" property="actualAmount"/> + <result column="status" property="status"/> + <result column="bank_account" property="bankAccount"/> + <result column="bank_name" property="bankName"/> + <result column="apply_time" property="applyTime"/> + <result column="process_time" property="processTime"/> + <result column="operator" property="operator"/> + <result column="remark" property="remark"/> + <result column="create_by" property="createBy"/> + <result column="create_time" property="createTime"/> + <result column="update_by" property="updateBy"/> + <result column="update_time" property="updateTime"/> + </resultMap> + + <sql id="Base_Column_List"> + record_id, rider_id, rider_name, rider_phone, amount, withdrawal_amount, now_amount, fee, actual_amount, status, bank_account, bank_name, apply_time, process_time, operator, remark, create_by, create_time, update_by, update_time + </sql> + + <select id="findAll" resultMap="BaseResultMap"> + select + <include refid="Base_Column_List"/> + from qs_rider_withdrawal_record + <where> + <if test="criteria.riderId != null"> + and rider_id = #{criteria.riderId} + </if> + <if test="criteria.riderName != null"> + and rider_name = #{criteria.riderName} + </if> + <if test="criteria.riderPhone != null"> + and rider_phone = #{criteria.riderPhone} + </if> + <if test="criteria.status != null"> + and status = #{criteria.status} + </if> + <if test="criteria.bankAccount != null"> + and bank_account = #{criteria.bankAccount} + </if> + <if test="criteria.bankName != null"> + and bank_name like concat('%',#{criteria.bankName},'%') + </if> + <if test="criteria.operator != null"> + and operator = #{criteria.operator} + </if> + <if test="criteria.remark != null"> + and remark like concat('%',#{criteria.remark},'%') + </if> + <if test="criteria.applyTime != null and criteria.applyTime.size() > 0"> + AND apply_time BETWEEN #{criteria.applyTime[0]} AND #{criteria.applyTime[1]} + </if> + <if test="criteria.processTime != null and criteria.processTime.size() > 0"> + AND process_time BETWEEN #{criteria.processTime[0]} AND #{criteria.processTime[1]} + </if> + <if test="criteria.createTime != null and criteria.createTime.size() > 0"> + AND create_time BETWEEN #{criteria.createTime[0]} AND #{criteria.createTime[1]} + </if> + </where> + order by record_id desc + </select> +</mapper> \ No newline at end of file -- Gitblit v1.9.3