Merge remote-tracking branch 'origin/test' into test

This commit is contained in:
SongZhang 2024-08-29 16:09:11 +08:00
commit 8b56b21021
1 changed files with 11 additions and 0 deletions

View File

@ -804,6 +804,17 @@ public class MemberService {
flow.setRemark(remark);
tbShopUserFlowMapper.updateByPrimaryKey(flow);
JSONObject baObj=new JSONObject();
baObj.put("userId",user.getUserId());
baObj.put("shopId",user.getId());
baObj.put("amount",flow.getAmount());
baObj.put("balance",user.getAmount());
baObj.put("type","退款");
baObj.put("time",new Date());
producer.balance(baObj.toString());
return Result.success(CodeEnum.SUCCESS);
}