修复收银机充值异常缺陷

This commit is contained in:
谭凯凯 2024-10-29 14:24:55 +08:00 committed by Tankaikai
parent 7765758c9b
commit 4f2e4e7f2e
1 changed files with 1 additions and 2 deletions

View File

@ -717,7 +717,7 @@ public class MemberService {
JSONObject baObj = new JSONObject();
baObj.put("userId", shopUser.getUserId());
baObj.put("shopId", shopInfo.getId());
baObj.put("amount", ObjectUtil.isNull(fl) ? amount : amount.add(fl.get()));
baObj.put("amount", ObjectUtil.isNull(fl.get()) ? amount : amount.add(fl.get()));
baObj.put("balance", shopUser.getAmount());
baObj.put("type", "充值");
baObj.put("time", flow.get().getCreateTime());
@ -852,5 +852,4 @@ public class MemberService {
}
}