|
|
@@ -179,6 +179,9 @@ public class OrderBillSheetServiceImpl extends ServiceImpl<OrderBillSheetMapper,
|
|
|
//生成订单
|
|
|
Collection<OrderBillGoods> coll = new HashSet<>();
|
|
|
for (OrderBillGoodsAddBo g : goodsList) {
|
|
|
+ if(Validator.isEmpty(g.getGoodsId())||Validator.isEmpty(g.getOrderSn())||Validator.isEmpty(g.getAmount())){
|
|
|
+ throw new CustomException("参数缺失");
|
|
|
+ }
|
|
|
//计费单商品
|
|
|
OrderBillGoods orderGoods = BeanUtil.toBean(g, OrderBillGoods.class);
|
|
|
orderGoods.setOrderSn(g.getOrderSn());
|
|
|
@@ -255,6 +258,9 @@ public class OrderBillSheetServiceImpl extends ServiceImpl<OrderBillSheetMapper,
|
|
|
//生成订单
|
|
|
Collection<OrderBillGoods> coll = new HashSet<>();
|
|
|
for (OrderBillGoodsAddBo g : goodsList) {
|
|
|
+ if(Validator.isEmpty(g.getGoodsId())||Validator.isEmpty(g.getOrderSn())||Validator.isEmpty(g.getAmount())){
|
|
|
+ throw new CustomException("参数缺失");
|
|
|
+ }
|
|
|
//计费单商品
|
|
|
OrderBillGoods orderGoods = BeanUtil.toBean(g, OrderBillGoods.class);
|
|
|
orderGoods.setOrderSn(g.getOrderSn());
|