修改库存
This commit is contained in:
@@ -964,6 +964,11 @@ public class OrderService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if("refund".equals(orderInfo.getStatus())){
|
||||||
|
return Result.fail(CodeEnum.ORDERRETURN);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
TbShopInfo shopInfo= tbShopInfoMapper.selectByPrimaryKey(Integer.valueOf(orderInfo.getShopId()));
|
TbShopInfo shopInfo= tbShopInfoMapper.selectByPrimaryKey(Integer.valueOf(orderInfo.getShopId()));
|
||||||
|
|
||||||
if(ObjectUtil.isEmpty(shopInfo)){
|
if(ObjectUtil.isEmpty(shopInfo)){
|
||||||
|
|||||||
@@ -86,6 +86,8 @@ public enum CodeEnum {
|
|||||||
|
|
||||||
OUTNUMBERERROR("100032",false,"错误的取餐码","fail"),
|
OUTNUMBERERROR("100032",false,"错误的取餐码","fail"),
|
||||||
|
|
||||||
|
ORDERRETURN("100033",false,"订单已退款","fail"),
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user