Commit b7d41ea9 by YG8429

人工审核退款退累计权益金修改,小程序查询权益金列表排序

parent 4c3a8ab3
...@@ -498,11 +498,11 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme ...@@ -498,11 +498,11 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
if (ObjectUtil.isNotEmpty(equityFundLog)){ if (ObjectUtil.isNotEmpty(equityFundLog)){
ConsumerWallet aConsumerWallet = consumerWalletService.getOne(new LambdaQueryWrapper<ConsumerWallet>() ConsumerWallet aConsumerWallet = consumerWalletService.getOne(new LambdaQueryWrapper<ConsumerWallet>()
.eq(ConsumerWallet::getConsumerId,sharingActivities.getUid())); .eq(ConsumerWallet::getConsumerId,sharingActivities.getUid()));
equityFundLog.setEquityFund(equityFundLog.getEquityFund().negate());
equityFundLogService.insertEquityFundLog(equityFundLog);
aConsumerWallet.setEquityFund(aConsumerWallet.getEquityFund().subtract(equityFundLog.getEquityFund())); aConsumerWallet.setEquityFund(aConsumerWallet.getEquityFund().subtract(equityFundLog.getEquityFund()));
aConsumerWallet.setAccumulateEquityFund(aConsumerWallet.getAccumulateEquityFund().subtract(equityFundLog.getEquityFund())); aConsumerWallet.setAccumulateEquityFund(aConsumerWallet.getAccumulateEquityFund().subtract(equityFundLog.getEquityFund()));
consumerWalletService.updateConsumerWallet(aConsumerWallet); consumerWalletService.updateConsumerWallet(aConsumerWallet);
equityFundLog.setEquityFund(equityFundLog.getEquityFund().negate());
equityFundLogService.insertEquityFundLog(equityFundLog);
} }
} }
} }
......
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
<if test="avatar != null and avatar != ''"> and avatar = #{avatar}</if> <if test="avatar != null and avatar != ''"> and avatar = #{avatar}</if>
<if test="newAvatar != null and newAvatar != ''"> and new_avatar = #{newAvatar}</if> <if test="newAvatar != null and newAvatar != ''"> and new_avatar = #{newAvatar}</if>
</where> </where>
order by createTime desc
</select> </select>
<select id="selectEquityFundLogById" parameterType="Long" resultMap="EquityFundLogResult"> <select id="selectEquityFundLogById" parameterType="Long" resultMap="EquityFundLogResult">
......
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
<if test="phone != null and phone != ''"> and phone = #{phone}</if> <if test="phone != null and phone != ''"> and phone = #{phone}</if>
<if test="newPhone != null and newPhone != ''"> and new_phone = #{newPhone}</if> <if test="newPhone != null and newPhone != ''"> and new_phone = #{newPhone}</if>
</where> </where>
order by createTime desc
</select> </select>
<select id="selectSharingActivitiesById" parameterType="Long" resultMap="SharingActivitiesResult"> <select id="selectSharingActivitiesById" parameterType="Long" resultMap="SharingActivitiesResult">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment