Authored by qinchao

增加状态检查

... ... @@ -778,6 +778,10 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService {
//qualityCheckMapper.insert(record);
LOGGER.info("qualityCheckNotPass insert db success! orderCode={},record={}", orderCode,record);
if( Constant.BUYER_ORDER_STATUS_PLATFORM_RECEIVE.getByteVal()!=buyerOrder.getStatus().byteValue()){
throw new ServiceException(400,"错误:订单状态变化,请重新刷新列表");
}
//记录操作日志
int operateType =OperateTypeEnum.OPERATE_TYPE_QUALITY_NOT_PASS.getCode();
UserHelper userHelper = new UserHelper();
... ... @@ -818,6 +822,10 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService {
//qualityCheckMapper.insert(record);
LOGGER.info("miniFaultCreate insert db success! orderCode={}, record={}", orderCode,record);
if( Constant.BUYER_ORDER_STATUS_PLATFORM_RECEIVE.getByteVal()!=buyerOrder.getStatus().byteValue()){
throw new ServiceException(400,"错误:订单状态变化,请重新刷新列表");
}
//记录操作日志
int operateType =OperateTypeEnum.OPERATE_TYPE_QUALITY_MINI_FAULT.getCode();
UserHelper userHelper = new UserHelper();
... ... @@ -926,7 +934,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService {
}
if( Constant.BUYER_ORDER_STATUS_PLATFORM_RECEIVE.getByteVal()!=buyerOrder.getStatus().byteValue()){
throw new ServiceException(400,"错误:订单状态变化,鉴定通过失败,请重新刷新列表");
throw new ServiceException(400,"错误:订单状态变化,鉴定通过失败,请重新刷新列表");
}
//记录操作日志
... ...