|
@@ -47,7 +47,7 @@
|
|
|
|
|
|
|
|
<select id="queryPage" resultType="com.jzg.commons.entity.vo.AmountAuditVo">
|
|
<select id="queryPage" resultType="com.jzg.commons.entity.vo.AmountAuditVo">
|
|
|
SELECT
|
|
SELECT
|
|
|
- saa.receive_user_name,
|
|
|
|
|
|
|
+ saa.receive_user_name,saa.auditing_user_id,saa.auditing_user_name ,
|
|
|
saa.id,suji.name as name, su.mobile as mobile,suji.type_attr as attrType,
|
|
saa.id,suji.name as name, su.mobile as mobile,suji.type_attr as attrType,
|
|
|
saa.manager_user_name as managerName,sum.mobile as managerMobile,saa.create_time as createTime,
|
|
saa.manager_user_name as managerName,sum.mobile as managerMobile,saa.create_time as createTime,
|
|
|
saa.amount, saa.balance_amount as balanceAmount,saa.account_name AS accountName,
|
|
saa.amount, saa.balance_amount as balanceAmount,saa.account_name AS accountName,
|
|
@@ -74,6 +74,9 @@
|
|
|
<if test="param.amount != null and param.amount != ''">
|
|
<if test="param.amount != null and param.amount != ''">
|
|
|
and saa.amount = #{param.amount}
|
|
and saa.amount = #{param.amount}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="param.auditingUser != null and param.auditingUser != ''">
|
|
|
|
|
+ and saa.auditing_user_name = #{param.auditingUser}
|
|
|
|
|
+ </if>
|
|
|
<if test="param.receiveUserName != null and param.receiveUserName !=''">
|
|
<if test="param.receiveUserName != null and param.receiveUserName !=''">
|
|
|
and saa.receive_user_name = #{param.receiveUserName}
|
|
and saa.receive_user_name = #{param.receiveUserName}
|
|
|
</if>
|
|
</if>
|
|
@@ -83,6 +86,9 @@
|
|
|
<if test="param.auditTimeStart != null and param.auditTimeEnd != null">
|
|
<if test="param.auditTimeStart != null and param.auditTimeEnd != null">
|
|
|
and DATE_FORMAT(saa.auditing_time, '%Y-%m-%d') between #{param.auditTimeStart} AND #{param.auditTimeEnd}
|
|
and DATE_FORMAT(saa.auditing_time, '%Y-%m-%d') between #{param.auditTimeStart} AND #{param.auditTimeEnd}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="param.accountId != null and param.accountId != ''">
|
|
|
|
|
+ and saa.account_id = #{param.accountId}
|
|
|
|
|
+ </if>
|
|
|
<if test="param.auditingUser != null and param.auditingUser != ''">
|
|
<if test="param.auditingUser != null and param.auditingUser != ''">
|
|
|
and (sua.username = #{param.auditingUser} or sua.mobile = #{param.auditingUser})
|
|
and (sua.username = #{param.auditingUser} or sua.mobile = #{param.auditingUser})
|
|
|
</if>
|
|
</if>
|
|
@@ -95,6 +101,12 @@
|
|
|
<if test="param.auditingStatus != null ">
|
|
<if test="param.auditingStatus != null ">
|
|
|
and saa.auditing_status = #{param.auditingStatus}
|
|
and saa.auditing_status = #{param.auditingStatus}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="param.paymentTimeBegin != null and param.paymentTimeEnd != null">
|
|
|
|
|
+ and saa.payment_time between #{param.paymentTimeBegin} and #{param.paymentTimeEnd}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="param.rejectTimeBegin != null and param.rejectTimeEnd != null">
|
|
|
|
|
+ and saa.reject_time between #{param.rejectTimeBegin} and #{param.rejectTimeEnd}
|
|
|
|
|
+ </if>
|
|
|
<choose>
|
|
<choose>
|
|
|
<when test="param.receiveUser != null and param.receiveUser != ''">
|
|
<when test="param.receiveUser != null and param.receiveUser != ''">
|
|
|
and saa.receive_user = #{param.receiveUser}
|
|
and saa.receive_user = #{param.receiveUser}
|