feat:退换各自食堂明细
This commit is contained in:
1 parent
ab1397897f
commit
8b0df2572e
10 files changed
+139
-15
No files matched your search
+46
@@ -13,11 +13,57 @@
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectA">
|
||||
select a.id,
|
||||
a.wallet_id,
|
||||
a.user_id,
|
||||
a.dept_id,
|
||||
a.biz_type,
|
||||
a.biz_id,
|
||||
a.title,
|
||||
a.price,
|
||||
a.balance,
|
||||
a.create_by,
|
||||
a.create_time,
|
||||
a.update_by,
|
||||
a.update_time,
|
||||
a.del_flag,
|
||||
a.tenant_id,
|
||||
</sql>
|
||||
|
||||
<sql id="whereA">
|
||||
a.del_flag = '0'
|
||||
<if test="dto.walletId != null">
|
||||
and a.wallet_id = #{dto.walletId}
|
||||
</if>
|
||||
<if test="dto.userId != null">
|
||||
and a.user_id = #{dto.userId}
|
||||
</if>
|
||||
<if test="dto.bizId != null">
|
||||
and a.biz_id = #{dto.bizId}
|
||||
</if>
|
||||
<if test="dto.bizType != null">
|
||||
and a.biz_type = #{dto.bizType}
|
||||
</if>
|
||||
<if test="dto.type != null and dto.type == 1 ">
|
||||
and a.price > 0
|
||||
</if>
|
||||
<if test="dto.type != null and dto.type == 2 ">
|
||||
and a.price < 0
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<select id="scopeJzPageList" resultType="com.bsd.pjcloud.wallet.api.vo.transaction.WalletTransactionVo">
|
||||
<include refid="selectA"/>
|
||||
y.process_id as processId
|
||||
from wallet_transaction a
|
||||
inner join wallet_recharge_import i on i.id = a.biz_id and i.del_flag = '0'
|
||||
inner join wallet_recharge_apply y on y.id = i.apply_id and y.del_flag = '0'
|
||||
<where>
|
||||
<include refid="whereA"/>
|
||||
</where>
|
||||
order by a.create_time desc , a.id desc
|
||||
</select>
|
||||
|
||||
<select id="getTransactionPriceCount" resultType="java.lang.Integer">
|
||||
select sum(a.price)
|
||||
from wallet_transaction a
|
||||
|
||||
Reference in new issue
Block a user