浏览代码

退款异常

Yangzw 9 月之前
父节点
当前提交
dabc81f8e1

+ 1 - 1
feifan-module-distri/feifan-module-distri-biz/src/main/java/cn/newfeifan/mall/module/distri/service/integral/IntegralServiceImpl.java

@@ -140,7 +140,7 @@ public class IntegralServiceImpl implements IntegralService {
 
     @Override
     public void updateIntegralFreezeHighQuota(Long generateUserId, Long userId, CaclEnum caclEnum, Long totalFreezeHighQuota, Long tradeOrderId, String orderNum) {
-        IntegralDO integralDO = integralMapper.selectById(userId);
+        IntegralDO integralDO = integralMapper.selectOne(IntegralDO::getUserId,userId);
         integralDO.setFreezeHighQuota(integralDO.getFreezeHighQuota() - totalFreezeHighQuota);
         integralMapper.updateById(integralDO);