parent
839a7fe3a6
commit
2b71560995
|
|
@ -117,7 +117,7 @@ public class ConsMsgConsumer {
|
||||||
}
|
}
|
||||||
|
|
||||||
log.info("conwarning:{},stockNumber:{}",tbConsInfo.getConWarning(),tbConsInfo.getStockNumber().subtract(tbConsInfo.getStockConsume()).abs());
|
log.info("conwarning:{},stockNumber:{}",tbConsInfo.getConWarning(),tbConsInfo.getStockNumber().subtract(tbConsInfo.getStockConsume()).abs());
|
||||||
if (N.gt(tbConsInfo.getConWarning(), tbConsInfo.getStockNumber().subtract(tbConsInfo.getStockConsume()).abs())) {
|
if (N.egt(tbConsInfo.getConWarning(), tbConsInfo.getStockNumber().subtract(tbConsInfo.getStockConsume()).abs())) {
|
||||||
|
|
||||||
|
|
||||||
List<TbUserShopMsg> tbUserShopMsgs = tbUserShopMsgMapper.selectAllByShopId(tbConsInfo.getShopId());
|
List<TbUserShopMsg> tbUserShopMsgs = tbUserShopMsgMapper.selectAllByShopId(tbConsInfo.getShopId());
|
||||||
|
|
|
||||||
|
|
@ -410,13 +410,6 @@ public class OrderService {
|
||||||
}
|
}
|
||||||
for (TbCashierCart cashierCart : list) {
|
for (TbCashierCart cashierCart : list) {
|
||||||
|
|
||||||
|
|
||||||
JSONObject objectMsg=new JSONObject();
|
|
||||||
objectMsg.put("skuId",Integer.valueOf(cashierCart.getSkuId()));
|
|
||||||
objectMsg.put("shopId",Integer.valueOf(cashierCart.getShopId()));
|
|
||||||
producer.con_msg(objectMsg.toString());
|
|
||||||
|
|
||||||
|
|
||||||
TbProductSkuWithBLOBs tbProduct = tbProductSkuMapper.selectByPrimaryKey(Integer.valueOf(cashierCart.getSkuId()));
|
TbProductSkuWithBLOBs tbProduct = tbProductSkuMapper.selectByPrimaryKey(Integer.valueOf(cashierCart.getSkuId()));
|
||||||
totalAmount = totalAmount.add(cashierCart.getTotalAmount());
|
totalAmount = totalAmount.add(cashierCart.getTotalAmount());
|
||||||
packAMount = packAMount.add(cashierCart.getPackFee());
|
packAMount = packAMount.add(cashierCart.getPackFee());
|
||||||
|
|
@ -576,6 +569,12 @@ public class OrderService {
|
||||||
jsonObject.put("type","create");
|
jsonObject.put("type","create");
|
||||||
producer.cons(jsonObject.toString());
|
producer.cons(jsonObject.toString());
|
||||||
|
|
||||||
|
for (TbCashierCart cashierCart : list) {
|
||||||
|
JSONObject objectMsg = new JSONObject();
|
||||||
|
objectMsg.put("skuId", Integer.valueOf(cashierCart.getSkuId()));
|
||||||
|
objectMsg.put("shopId", Integer.valueOf(cashierCart.getShopId()));
|
||||||
|
producer.con_msg(objectMsg.toString());
|
||||||
|
}
|
||||||
return Result.success(CodeEnum.SUCCESS, orderInfo);
|
return Result.success(CodeEnum.SUCCESS, orderInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue