1.修改会员余额支付备注

This commit is contained in:
SongZhang 2024-08-29 13:45:26 +08:00
parent 4ea005d132
commit 0bdbd07555
3 changed files with 3 additions and 2 deletions

View File

@ -111,7 +111,7 @@ public class OrderController {
String userId = jsonObject.getString("accountId");
orderVo.setMerchantId(Integer.valueOf(userId));
orderVo.setUserId(jsonObject.getString("staffId"));
return orderService.createOrder(orderVo,clientType,token, null, true);
return orderService.createOrder(orderVo,clientType,token, null, orderVo.getType() != null && orderVo.getType().equals(0));
}
@PostMapping("/createBackOrder")
public Result createBackOrder(@RequestHeader("token") String token, @RequestHeader("loginName") String loginName,

View File

@ -14,4 +14,5 @@ public class OrderVo {
private Integer merchantId;
private String tableId;
private Integer vipUserId;
private Integer type;
}

View File

@ -808,7 +808,7 @@ public class PayService {
userFlow.setBalance(shopUser.getAmount());
userFlow.setShopUserId(shopUser.getId());
userFlow.setBizCode("vipCardCash");
userFlow.setBizName("代客下单会员余额支付");
userFlow.setBizName("余额支付");
userFlow.setCreateTime(DateUtil.date());
userFlow.setType("-");
mpShopUserFlowMapper.insert(userFlow);