Authored by qinchao

增加状态检查

@@ -778,6 +778,10 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { @@ -778,6 +778,10 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService {
778 //qualityCheckMapper.insert(record); 778 //qualityCheckMapper.insert(record);
779 LOGGER.info("qualityCheckNotPass insert db success! orderCode={},record={}", orderCode,record); 779 LOGGER.info("qualityCheckNotPass insert db success! orderCode={},record={}", orderCode,record);
780 780
  781 + if( Constant.BUYER_ORDER_STATUS_PLATFORM_RECEIVE.getByteVal()!=buyerOrder.getStatus().byteValue()){
  782 + throw new ServiceException(400,"错误:订单状态变化,请重新刷新列表");
  783 + }
  784 +
781 //记录操作日志 785 //记录操作日志
782 int operateType =OperateTypeEnum.OPERATE_TYPE_QUALITY_NOT_PASS.getCode(); 786 int operateType =OperateTypeEnum.OPERATE_TYPE_QUALITY_NOT_PASS.getCode();
783 UserHelper userHelper = new UserHelper(); 787 UserHelper userHelper = new UserHelper();
@@ -818,6 +822,10 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { @@ -818,6 +822,10 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService {
818 //qualityCheckMapper.insert(record); 822 //qualityCheckMapper.insert(record);
819 LOGGER.info("miniFaultCreate insert db success! orderCode={}, record={}", orderCode,record); 823 LOGGER.info("miniFaultCreate insert db success! orderCode={}, record={}", orderCode,record);
820 824
  825 + if( Constant.BUYER_ORDER_STATUS_PLATFORM_RECEIVE.getByteVal()!=buyerOrder.getStatus().byteValue()){
  826 + throw new ServiceException(400,"错误:订单状态变化,请重新刷新列表");
  827 + }
  828 +
821 //记录操作日志 829 //记录操作日志
822 int operateType =OperateTypeEnum.OPERATE_TYPE_QUALITY_MINI_FAULT.getCode(); 830 int operateType =OperateTypeEnum.OPERATE_TYPE_QUALITY_MINI_FAULT.getCode();
823 UserHelper userHelper = new UserHelper(); 831 UserHelper userHelper = new UserHelper();
@@ -926,7 +934,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { @@ -926,7 +934,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService {
926 } 934 }
927 935
928 if( Constant.BUYER_ORDER_STATUS_PLATFORM_RECEIVE.getByteVal()!=buyerOrder.getStatus().byteValue()){ 936 if( Constant.BUYER_ORDER_STATUS_PLATFORM_RECEIVE.getByteVal()!=buyerOrder.getStatus().byteValue()){
929 - throw new ServiceException(400,"错误:订单状态变化,鉴定通过失败,请重新刷新列表"); 937 + throw new ServiceException(400,"错误:订单状态变化,鉴定通过失败,请重新刷新列表");
930 } 938 }
931 939
932 //记录操作日志 940 //记录操作日志