|  |  | @ -39,6 +39,7 @@ import com.glxp.api.service.system.SystemParamConfigService; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.util.*; |  |  |  | import com.glxp.api.util.*; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.util.udi.UdiCalCountUtil; |  |  |  | import com.glxp.api.util.udi.UdiCalCountUtil; | 
			
		
	
		
		
			
				
					
					|  |  |  | import lombok.extern.slf4j.Slf4j; |  |  |  | import lombok.extern.slf4j.Slf4j; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import org.springframework.transaction.annotation.Transactional; | 
			
		
	
		
		
			
				
					
					|  |  |  | import org.springframework.validation.BindingResult; |  |  |  | import org.springframework.validation.BindingResult; | 
			
		
	
		
		
			
				
					
					|  |  |  | import org.springframework.web.bind.annotation.GetMapping; |  |  |  | import org.springframework.web.bind.annotation.GetMapping; | 
			
		
	
		
		
			
				
					
					|  |  |  | import org.springframework.web.bind.annotation.PostMapping; |  |  |  | import org.springframework.web.bind.annotation.PostMapping; | 
			
		
	
	
		
		
			
				
					|  |  | @ -112,7 +113,6 @@ public class IoOrderReviewController extends BaseController { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     //前端二次审核
 |  |  |  |     //前端二次审核
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     @AuthRuleAnnotation("") |  |  |  |     @AuthRuleAnnotation("") | 
			
		
	
		
		
			
				
					
					|  |  |  |     @PostMapping("/spms/inout/order/web/updateStatus") |  |  |  |     @PostMapping("/spms/inout/order/web/updateStatus") | 
			
		
	
	
		
		
			
				
					|  |  | @ -151,6 +151,7 @@ public class IoOrderReviewController extends BaseController { | 
			
		
	
		
		
			
				
					
					|  |  |  |     @AuthRuleAnnotation("") |  |  |  |     @AuthRuleAnnotation("") | 
			
		
	
		
		
			
				
					
					|  |  |  |     @PostMapping("/spms/inout/order/third/updateStatus") |  |  |  |     @PostMapping("/spms/inout/order/third/updateStatus") | 
			
		
	
		
		
			
				
					
					|  |  |  |     @Log(title = "单据管理", businessType = BusinessType.UPDATE) |  |  |  |     @Log(title = "单据管理", businessType = BusinessType.UPDATE) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     @Transactional(rollbackFor = Exception.class) | 
			
		
	
		
		
			
				
					
					|  |  |  |     public BaseResponse thirdUpdateStatus(@RequestBody ReviewFinishRequest updateExportStatusRequest, |  |  |  |     public BaseResponse thirdUpdateStatus(@RequestBody ReviewFinishRequest updateExportStatusRequest, | 
			
		
	
		
		
			
				
					
					|  |  |  |                                           BindingResult bindingResult) { |  |  |  |                                           BindingResult bindingResult) { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -158,6 +159,12 @@ public class IoOrderReviewController extends BaseController { | 
			
		
	
		
		
			
				
					
					|  |  |  |             return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage()); |  |  |  |             return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage()); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |         IoOrderEntity orderEntity = orderService.findByBillNo(updateExportStatusRequest.getOrderId()); |  |  |  |         IoOrderEntity orderEntity = orderService.findByBillNo(updateExportStatusRequest.getOrderId()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (updateExportStatusRequest.isEntrust()) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             EntrustReceEntity entrustReceEntity = entrustReceService.findByUnique(orderEntity.getAction(), getUserId()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             if (entrustReceEntity != null && StrUtil.isNotEmpty(entrustReceEntity.getEntrustAction())) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 transferOrder(orderEntity, entrustReceEntity); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (orderEntity == null) { |  |  |  |         if (orderEntity == null) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             return ResultVOUtils.error(500, "未找到该业务单据"); |  |  |  |             return ResultVOUtils.error(500, "未找到该业务单据"); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
	
		
		
			
				
					|  |  | @ -444,6 +451,8 @@ public class IoOrderReviewController extends BaseController { | 
			
		
	
		
		
			
				
					
					|  |  |  |         redisUtil.del(ConstantStatus.REDIS_BILLNO_CODES + orderEntity.getBillNo()); |  |  |  |         redisUtil.del(ConstantStatus.REDIS_BILLNO_CODES + orderEntity.getBillNo()); | 
			
		
	
		
		
			
				
					
					|  |  |  |         //验收完成->进入流程
 |  |  |  |         //验收完成->进入流程
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         ioCheckInoutService.checkThird(orderEntity); |  |  |  |         ioCheckInoutService.checkThird(orderEntity); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         return ResultVOUtils.success("更新成功"); |  |  |  |         return ResultVOUtils.success("更新成功"); | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -469,12 +478,12 @@ public class IoOrderReviewController extends BaseController { | 
			
		
	
		
		
			
				
					
					|  |  |  |         EntrustReceEntity entrustReceEntity; |  |  |  |         EntrustReceEntity entrustReceEntity; | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (StrUtil.isNotEmpty(errMsg)) { |  |  |  |         if (StrUtil.isNotEmpty(errMsg)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             if (errMsg.equals("委托验收")) { |  |  |  |             if (errMsg.equals("委托验收")) { | 
			
		
	
		
		
			
				
					
					|  |  |  | //                IoOrderEntity orderEntity = orderService.findByBillNo(billNo);
 |  |  |  |                 IoOrderEntity orderEntity = orderService.findByBillNo(billNo); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | //                entrustReceEntity = entrustReceService.findByUnique(orderEntity.getAction(), userId);
 |  |  |  |                 entrustReceEntity = entrustReceService.findByUnique(orderEntity.getAction(), userId); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | //                if (entrustReceEntity != null) {
 |  |  |  |                 if (entrustReceEntity != null) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | //                    acceptOrderEntity.setEntrust(true);
 |  |  |  |                     acceptOrderEntity.setEntrust(true); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | //                } else
 |  |  |  |                 } | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | //                    return ResultVOUtils.error(500, "无权限验收!");
 |  |  |  | //              else      return ResultVOUtils.error(500, "无权限验收!");
 | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             } else |  |  |  |             } else | 
			
		
	
		
		
			
				
					
					|  |  |  |                 return ResultVOUtils.error(500, errMsg); |  |  |  |                 return ResultVOUtils.error(500, errMsg); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
	
		
		
			
				
					|  |  | 
 |