feat:离职自动转账
This commit is contained in:
1 parent
c3c41253d7
commit
80e859781b
22 files changed
+303
-11
No files matched your search
+22
-2
@@ -73,7 +73,8 @@
|
||||
and a.create_time between #{dto.createTimeList[0]} and #{dto.createTimeList[1]}
|
||||
</if>
|
||||
<if test="dto.walletTransactionTimeList != null and dto.walletTransactionTimeList.length == 2">
|
||||
and a.wallet_transaction_time between #{dto.walletTransactionTimeList[0]} and #{dto.walletTransactionTimeList[1]}
|
||||
and a.wallet_transaction_time between #{dto.walletTransactionTimeList[0]} and
|
||||
#{dto.walletTransactionTimeList[1]}
|
||||
</if>
|
||||
<if test="dto.processTimeList != null and dto.processTimeList.length == 2">
|
||||
and a.create_time between #{dto.processTimeList[0]} and #{dto.processTimeList[1]}
|
||||
@@ -97,7 +98,7 @@
|
||||
</sql>
|
||||
|
||||
<select id="scopePageJoin" resultType="com.bsd.pjcloud.admin.api.vo.SysUserTransactionVo">
|
||||
<include refid="selectJoin" />
|
||||
<include refid="selectJoin"/>
|
||||
<where>
|
||||
<include refid="whereA"/>
|
||||
</where>
|
||||
@@ -108,4 +109,23 @@
|
||||
<include refid="selectJoin"/>
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="lastTransationList" resultType="com.bsd.pjcloud.admin.api.entity.SysUserTransactionEntity">
|
||||
SELECT *
|
||||
FROM sys_user_transaction AS t1
|
||||
WHERE t1.del_flag = '0'
|
||||
AND t1.wallet_transaction_time is null
|
||||
AND t1.is_wallet_transaction = '1'
|
||||
AND t1.process_status = '2'
|
||||
and t1.id = (SELECT t2.id
|
||||
FROM sys_user_transaction AS t2
|
||||
WHERE t2.del_flag = '0'
|
||||
AND t2.user_id = t1.user_id
|
||||
AND t2.is_wallet_transaction = '1'
|
||||
AND t2.process_status = '2'
|
||||
AND t2.wallet_transaction_time is null
|
||||
ORDER BY t2.create_time DESC
|
||||
LIMIT 1)
|
||||
and DATE_FORMAT(t1.create_time, '%Y-%m-%d') <= #{dateStr}
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in new issue
Block a user