|  |  | @ -36,6 +36,7 @@ import com.glxp.api.util.Excel.ExcelHandler; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.util.Excel.Exception.RenException; |  |  |  | import com.glxp.api.util.Excel.Exception.RenException; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.util.IntUtil; |  |  |  | import com.glxp.api.util.IntUtil; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.util.udi.FilterUdiUtils; |  |  |  | import com.glxp.api.util.udi.FilterUdiUtils; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import lombok.extern.slf4j.Slf4j; | 
			
		
	
		
		
			
				
					
					|  |  |  | import org.springframework.beans.BeanUtils; |  |  |  | import org.springframework.beans.BeanUtils; | 
			
		
	
		
		
			
				
					
					|  |  |  | import org.springframework.transaction.annotation.Transactional; |  |  |  | import org.springframework.transaction.annotation.Transactional; | 
			
		
	
		
		
			
				
					
					|  |  |  | import org.springframework.web.bind.annotation.*; |  |  |  | import org.springframework.web.bind.annotation.*; | 
			
		
	
	
		
		
			
				
					|  |  | @ -46,6 +47,7 @@ import javax.servlet.http.HttpServletResponse; | 
			
		
	
		
		
			
				
					
					|  |  |  | import java.util.*; |  |  |  | import java.util.*; | 
			
		
	
		
		
			
				
					
					|  |  |  | import java.util.stream.Collectors; |  |  |  | import java.util.stream.Collectors; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | @Slf4j | 
			
		
	
		
		
			
				
					
					|  |  |  | @RestController |  |  |  | @RestController | 
			
		
	
		
		
			
				
					
					|  |  |  | public class IoCollectOrderController extends BaseController { |  |  |  | public class IoCollectOrderController extends BaseController { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -411,23 +413,22 @@ public class IoCollectOrderController extends BaseController { | 
			
		
	
		
		
			
				
					
					|  |  |  |             CollectOrderBizRequest collectOrderBizRequest = new CollectOrderBizRequest(); |  |  |  |             CollectOrderBizRequest collectOrderBizRequest = new CollectOrderBizRequest(); | 
			
		
	
		
		
			
				
					
					|  |  |  |             collectOrderBizRequest.setOrderIdFk(collectOrderRequest.getBillNo()); |  |  |  |             collectOrderBizRequest.setOrderIdFk(collectOrderRequest.getBillNo()); | 
			
		
	
		
		
			
				
					
					|  |  |  |             List<CollectOrderBizResponse> collectOrderBizResponses = collectOrderService.combieOrderDetail(collectOrderBizRequest); |  |  |  |             List<CollectOrderBizResponse> collectOrderBizResponses = collectOrderService.combieOrderDetail(collectOrderBizRequest); | 
			
		
	
		
		
			
				
					
					|  |  |  |             boolean isAllTag = true; |  |  |  |             StringBuilder msg = new StringBuilder(); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             String msg = ""; |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             if (CollUtil.isNotEmpty(collectOrderBizResponses)) { |  |  |  |             if (CollUtil.isNotEmpty(collectOrderBizResponses)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 for (int i = 0; i < collectOrderBizResponses.size(); i++) { |  |  |  |                 for (int i = 0; i < collectOrderBizResponses.size(); i++) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                     CollectOrderBizResponse collectOrderBizResponse = collectOrderBizResponses.get(i); |  |  |  |                     CollectOrderBizResponse collectOrderBizResponse = collectOrderBizResponses.get(i); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     if (!(StrUtil.isNotEmpty(collectOrderBizResponse.getFinishUdiCode()) || collectOrderBizResponse.getAutoTagStatus() == 2)) { |  |  |  |                     if (!(StrUtil.isNotEmpty(collectOrderBizResponse.getFinishUdiCode()) || collectOrderBizResponse.getAutoTagStatus() == 2)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                         isAllTag = false; |  |  |  |                         int count = IntUtil.value(collectOrderBizResponse.getShouldCount()) - IntUtil.value(collectOrderBizResponse.getScanCount()); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         if (count > 0) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                             String cpmctymc = collectOrderBizResponse.getCpmctymc(); |  |  |  |                             String cpmctymc = collectOrderBizResponse.getCpmctymc(); | 
			
		
	
		
		
			
				
					
					|  |  |  |                         Integer count = collectOrderBizResponse.getCount(); |  |  |  |                             msg.append(" ").append(cpmctymc).append(":未采集数量").append(count).append(";"); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                         Integer autoResCount = IntUtil.value(collectOrderBizResponse.getAutoResCount()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                         msg = msg +" "+ cpmctymc + ":未采集数量" + (count - autoResCount) + ";"; |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                         } |  |  |  |                         } | 
			
		
	
		
		
			
				
					
					|  |  |  |                     } |  |  |  |                     } | 
			
		
	
		
		
			
				
					
					|  |  |  |                 } |  |  |  |                 } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |             } | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             if (!isAllTag) { |  |  |  |             log.error("msg:{}", msg.toString()); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 return ResultVOUtils.error(502, "该业务单据未全部赋码【" +  msg.replaceAll(";$", "") + "】,是否强制完成单据?"); |  |  |  |             if (StrUtil.isNotEmpty(msg.toString())) { | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 return ResultVOUtils.error(502, "该业务单据未全部赋码【" + msg.toString().replaceAll(";$", "") + "】,是否强制完成单据?"); | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |         collectOrderService.finishOrder(collectOrderRequest, getUser(), false); |  |  |  |         collectOrderService.finishOrder(collectOrderRequest, getUser(), false); | 
			
		
	
	
		
		
			
				
					|  |  | 
 |