first commit
This commit is contained in:
+156
@@ -0,0 +1,156 @@
|
||||
<?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.linke.finance.domain.withdrawApplication.repository.mapper.WithdrawApplicationMapper">
|
||||
|
||||
<resultMap type="com.linke.finance.domain.withdrawApplication.repository.po.WithdrawApplicationPO" id="WithdrawApplicationResult">
|
||||
<result property="withdrawApplicationId" column="withdraw_application_id" />
|
||||
<result property="serialNumber" column="serial_number" />
|
||||
<result property="applicantId" column="applicant_id" />
|
||||
<result property="applicantName" column="applicant_name" />
|
||||
<result property="applicantPhone" column="applicant_phone" />
|
||||
<result property="applicantLicenseNumber" column="applicant_license_number" />
|
||||
<result property="applyTime" column="apply_time" />
|
||||
<result property="applyAmount" column="apply_amount" />
|
||||
<result property="applicationStatus" column="application_status" />
|
||||
<result property="payBatchNumber" column="pay_batch_number" />
|
||||
<result property="bankCardId" column="bank_card_id" />
|
||||
<result property="bankName" column="bank_name" />
|
||||
<result property="accountOwnerName" column="account_owner_name" />
|
||||
<result property="bankCardNumber" column="bank_card_number" />
|
||||
<result property="bindingPhone" column="binding_phone" />
|
||||
<result property="transferTime" column="transfer_time" />
|
||||
<result property="transferById" column="transfer_by_id" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="arriveAccountTime" column="arrive_account_time" />
|
||||
<result property="transferType" column="transfer_type" />
|
||||
<result property="withdrawPeopleType" column="withdraw_people_type" />
|
||||
<result property="paymentMethod" column="payment_method" />
|
||||
<result property="isPush" column="is_push" />
|
||||
<result property="tmsTransportId" column="tms_transport_id" />
|
||||
<result property="cnsmrSeqNo" column="cnsmr_seq_no" />
|
||||
<result property="failureReason" column="failure_reason" />
|
||||
<result property="type" column="type" />
|
||||
<result property="withdrawApplicationType" column="withdraw_application_type" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectWithdrawApplicationPo">
|
||||
select withdraw_application_id, serial_number, applicant_id, applicant_name, applicant_phone, applicant_license_number, apply_time, apply_amount, application_status, pay_batch_number, bank_card_id, bank_name, account_owner_name, bank_card_number, binding_phone, transfer_time, transfer_by_id, remark, arrive_account_time, transfer_type, withdraw_people_type, payment_method, is_push, tms_transport_id, cnsmr_seq_no, failure_reason, type, withdraw_application_type, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag, top_organization_id, organization_id, organization_name from withdraw_application
|
||||
</sql>
|
||||
|
||||
<sql id="selectWithdrawApplicationPo1">
|
||||
<where>
|
||||
<if test="serialNumber != null and serialNumber != ''">
|
||||
and serial_number = #{serialNumber}
|
||||
</if>
|
||||
<if test="applicantId != null ">
|
||||
and applicant_id = #{applicantId}
|
||||
</if>
|
||||
<if test="applicantName != null and applicantName != ''">
|
||||
and applicant_name like concat('%', #{applicantName}, '%')
|
||||
</if>
|
||||
<if test="applicantPhone != null and applicantPhone != ''">
|
||||
and applicant_phone = #{applicantPhone}
|
||||
</if>
|
||||
<if test="applicantLicenseNumber != null and applicantLicenseNumber != ''">
|
||||
and applicant_license_number = #{applicantLicenseNumber}
|
||||
</if>
|
||||
<if test="applyTime != null ">
|
||||
and apply_time = #{applyTime}
|
||||
</if>
|
||||
<if test="applyAmount != null ">
|
||||
and apply_amount = #{applyAmount}
|
||||
</if>
|
||||
<if test="applicationStatus != null ">
|
||||
and application_status = #{applicationStatus}
|
||||
</if>
|
||||
<if test="payBatchNumber != null and payBatchNumber != ''">
|
||||
and pay_batch_number = #{payBatchNumber}
|
||||
</if>
|
||||
<if test="bankCardId != null ">
|
||||
and bank_card_id = #{bankCardId}
|
||||
</if>
|
||||
<if test="bankName != null and bankName != ''">
|
||||
and bank_name like concat('%', #{bankName}, '%')
|
||||
</if>
|
||||
<if test="accountOwnerName != null and accountOwnerName != ''">
|
||||
and account_owner_name like concat('%', #{accountOwnerName}, '%')
|
||||
</if>
|
||||
<if test="bankCardNumber != null and bankCardNumber != ''">
|
||||
and bank_card_number = #{bankCardNumber}
|
||||
</if>
|
||||
<if test="bindingPhone != null and bindingPhone != ''">
|
||||
and binding_phone = #{bindingPhone}
|
||||
</if>
|
||||
<if test="transferTime != null ">
|
||||
and transfer_time = #{transferTime}
|
||||
</if>
|
||||
<if test="transferById != null ">
|
||||
and transfer_by_id = #{transferById}
|
||||
</if>
|
||||
<if test="arriveAccountTime != null ">
|
||||
and arrive_account_time = #{arriveAccountTime}
|
||||
</if>
|
||||
<if test="transferType != null ">
|
||||
and transfer_type = #{transferType}
|
||||
</if>
|
||||
<if test="withdrawPeopleType != null ">
|
||||
and withdraw_people_type = #{withdrawPeopleType}
|
||||
</if>
|
||||
<if test="paymentMethod != null ">
|
||||
and payment_method = #{paymentMethod}
|
||||
</if>
|
||||
<if test="isPush != null ">
|
||||
and is_push = #{isPush}
|
||||
</if>
|
||||
<if test="tmsTransportId != null and tmsTransportId != ''">
|
||||
and tms_transport_id = #{tmsTransportId}
|
||||
</if>
|
||||
<if test="cnsmrSeqNo != null and cnsmrSeqNo != ''">
|
||||
and cnsmr_seq_no = #{cnsmrSeqNo}
|
||||
</if>
|
||||
<if test="failureReason != null and failureReason != ''">
|
||||
and failure_reason = #{failureReason}
|
||||
</if>
|
||||
<if test="type != null ">
|
||||
and type = #{type}
|
||||
</if>
|
||||
<if test="withdrawApplicationType != null ">
|
||||
and withdraw_application_type = #{withdrawApplicationType}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.linke.finance.domain.withdrawApplication.repository.todo.WithdrawApplicationDO" resultMap="WithdrawApplicationResult">
|
||||
<include refid="selectWithdrawApplicationPo"/>
|
||||
<include refid="selectWithdrawApplicationPo1"/>
|
||||
order by create_time desc
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user