下单数量

This commit is contained in:
2025-12-17 14:17:58 +08:00
parent ecd6412b24
commit ccb13f3653
2 changed files with 5 additions and 0 deletions

View File

@@ -65,6 +65,10 @@ public class GbOrderDetail implements Serializable {
* 支付单号
*/
private Long payOrderId;
/**
* 商品数量
*/
private Integer num;
/**
* 支付金额(单位:元)

View File

@@ -186,6 +186,7 @@ public class GbOrderServiceImpl extends ServiceImpl<GbOrderMapper, GbOrder> impl
record.setUserId(param.getUserId());
record.setWareId(param.getParamId());
record.setCreateTime(LocalDateTime.now());
record.setNum(param.getNumber());
record.setPayAmount(param.getPrice());
record.setStatus("待支付");
record.setOrderNo(CzgRandomUtils.randomNumber(OrderNoPrefixEnum.GBO, 12, false));