|
@@ -10,6 +10,9 @@
|
|
|
<result property="documentary" column="documentary" jdbcType="DECIMAL"/>
|
|
<result property="documentary" column="documentary" jdbcType="DECIMAL"/>
|
|
|
<result property="promotion" column="promotion" jdbcType="DECIMAL"/>
|
|
<result property="promotion" column="promotion" jdbcType="DECIMAL"/>
|
|
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
|
|
|
|
+ <result property="name" column="name" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result property="deptId" column="deptId" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result property="deptName" column="deptName" jdbcType="VARCHAR"/>
|
|
|
<result property="handlingAmountWithdrawal" column="handling_amount_withdrawal" jdbcType="DECIMAL"/>
|
|
<result property="handlingAmountWithdrawal" column="handling_amount_withdrawal" jdbcType="DECIMAL"/>
|
|
|
<result property="handlingAmountAccount" column="handling_amount_account" jdbcType="DECIMAL"/>
|
|
<result property="handlingAmountAccount" column="handling_amount_account" jdbcType="DECIMAL"/>
|
|
|
<result property="handlingAmountPayment" column="handling_amount_payment" jdbcType="DECIMAL"/>
|
|
<result property="handlingAmountPayment" column="handling_amount_payment" jdbcType="DECIMAL"/>
|
|
@@ -19,7 +22,14 @@
|
|
|
<result property="promotionAmountWithdrawal" column="promotion_amount_withdrawal" jdbcType="DECIMAL"/>
|
|
<result property="promotionAmountWithdrawal" column="promotion_amount_withdrawal" jdbcType="DECIMAL"/>
|
|
|
<result property="promotionAmountAccount" column="promotion_amount_account" jdbcType="DECIMAL"/>
|
|
<result property="promotionAmountAccount" column="promotion_amount_account" jdbcType="DECIMAL"/>
|
|
|
<result property="promotionAmountPayment" column="promotion_amount_payment" jdbcType="DECIMAL"/>
|
|
<result property="promotionAmountPayment" column="promotion_amount_payment" jdbcType="DECIMAL"/>
|
|
|
|
|
+ <collection property="sysUserAccountCardList" ofType="com.ydtech.modules.admin.model.po.SysUserBankCard"
|
|
|
|
|
+ resultMap="sysUserAccountCardList"/>
|
|
|
|
|
+ </resultMap>
|
|
|
|
|
|
|
|
|
|
+ <resultMap id="sysUserAccountCardList" type="com.ydtech.modules.admin.model.po.SysUserBankCard">
|
|
|
|
|
+ <result property="bankNumber" column="bank_number" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result property="bankAccount" column="bank_account" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result property="bankAddress" column="bank_address" jdbcType="VARCHAR"/>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
@@ -83,9 +93,44 @@
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
- <select id="selectPromotionBy" resultType="com.ydtech.modules.protocols.entity.po.InsFeeOrderNew">
|
|
|
|
|
- select
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <select id="queryPageOrder1" resultMap="BaseResultMap">
|
|
|
|
|
+ select
|
|
|
|
|
+ a.user_id,
|
|
|
|
|
+ a.handling_fee,
|
|
|
|
|
+ a.documentary,
|
|
|
|
|
+ a.promotion,
|
|
|
|
|
+ a.create_time,
|
|
|
|
|
+ a.handling_amount_withdrawal,
|
|
|
|
|
+ a.handling_amount_account,
|
|
|
|
|
+ a.handling_amount_payment,
|
|
|
|
|
+ a.documentary_amount_withdrawal,
|
|
|
|
|
+ a.documentary_amount_account,
|
|
|
|
|
+ a.documentary_amount_payment,
|
|
|
|
|
+ a.promotion_amount_withdrawal,
|
|
|
|
|
+ a.promotion_amount_account,
|
|
|
|
|
+ a.promotion_amount_payment,
|
|
|
|
|
+ b.dept_id as deptId,
|
|
|
|
|
+ b.name as name,
|
|
|
|
|
+ sd.name as deptName,
|
|
|
|
|
+ c.bank_number,
|
|
|
|
|
+ c.bank_account,
|
|
|
|
|
+ c.bank_address
|
|
|
|
|
+ from
|
|
|
|
|
+ sys_user_account a
|
|
|
|
|
+ left join sys_user b on a.user_id = b.id
|
|
|
|
|
+ left join sys_dept sd on sd.id =b.dept_id
|
|
|
|
|
+ left join sys_user_bank_card c on c.user_id = a.user_id and c.audit_status = '1'
|
|
|
|
|
+ <where>
|
|
|
|
|
+ <if test="sysUserAccountVo.userId != null and sysUserAccountVo.userId != ''">
|
|
|
|
|
+ and a.user_id = #{sysUserAccountVo.userId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="sysUserAccountVo.deptId != null and sysUserAccountVo.deptId != ''">
|
|
|
|
|
+ and b.dept_id like concat(#{sysUserAccountVo.deptId},'%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="sysUserAccountVo.deptId != null and sysUserAccountVo.deptId != ''">
|
|
|
|
|
+ and c.bank_number = #{sysUserAccountVo.bankNumber}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </where>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|