|  |  |  | @ -403,8 +403,7 @@ public class MesWorkOrderService implements IMesWorkOrderService { | 
		
	
		
			
				|  |  |  |  |         MesProductVersion mesProductVersion = mesProductVersionRDao.getByProperty(ddlPackBean); | 
		
	
		
			
				|  |  |  |  |         if (null == mesProductVersion) { | 
		
	
		
			
				|  |  |  |  |             LOGGER.info("物料{}生产版本信息不存在", mesWorkOrder.getPartNo()); | 
		
	
		
			
				|  |  |  |  |             return mesProductVersion; | 
		
	
		
			
				|  |  |  |  | //            MesPcnException.throwMesBusiException("物料【%s】生产版本信息不存在", mesWorkOrder.getPartNo());
 | 
		
	
		
			
				|  |  |  |  |             MesPcnException.throwMesBusiException("物料【%s】生产版本信息不存在", mesWorkOrder.getPartNo()); | 
		
	
		
			
				|  |  |  |  |         } | 
		
	
		
			
				|  |  |  |  |         return mesProductVersion; | 
		
	
		
			
				|  |  |  |  |     } | 
		
	
	
		
			
				
					|  |  |  | @ -415,7 +414,7 @@ public class MesWorkOrderService implements IMesWorkOrderService { | 
		
	
		
			
				|  |  |  |  |         DdlPreparedPack.getNumEqualPack(id, "id", ddlPackBean); | 
		
	
		
			
				|  |  |  |  | //        DdlPreparedPack.getStringEqualPack(sn, "custSn", ddlPackBean);
 | 
		
	
		
			
				|  |  |  |  |         productionRecordRao.updateByPropertiesNoSync(new String[]{"modifyUser", "modifyDatetime"}, | 
		
	
		
			
				|  |  |  |  |                 new Object[]{userName, TimeTool.getNowTime(true)}, ddlPackBean); | 
		
	
		
			
				|  |  |  |  |                 new Object[]{userName, DateUtil.format(new Date(), MesPcnExtConstWords.DATE_FORMAT_SSS)}, ddlPackBean); | 
		
	
		
			
				|  |  |  |  |     } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |     @Override | 
		
	
	
		
			
				
					|  |  |  | @ -432,7 +431,7 @@ public class MesWorkOrderService implements IMesWorkOrderService { | 
		
	
		
			
				|  |  |  |  |                     DdlPackBean ddlPackBean = DdlPackBean.getDdlPackBean(organizeCode); | 
		
	
		
			
				|  |  |  |  |                     DdlPreparedPack.getNumEqualPack(productionRecord.getId(), "id", ddlPackBean); | 
		
	
		
			
				|  |  |  |  |                     productionRecordRao.updateByProperties(new String[]{"modifyUser", "modifyDatetime", "reportStatus"}, | 
		
	
		
			
				|  |  |  |  |                             new Object[]{userName, TimeTool.getNowTime(true), productionRecord.getReportStatus()}, ddlPackBean); | 
		
	
		
			
				|  |  |  |  |                             new Object[]{userName, DateUtil.format(new Date(), MesPcnExtConstWords.DATE_FORMAT_SSS), productionRecord.getReportStatus()}, ddlPackBean); | 
		
	
		
			
				|  |  |  |  |                     return; | 
		
	
		
			
				|  |  |  |  |                 } | 
		
	
		
			
				|  |  |  |  |                 LOGGER.error("报工条码:{}找不到加工单", productionRecord.getProductSn()); | 
		
	
	
		
			
				
					|  |  |  | @ -577,7 +576,7 @@ public class MesWorkOrderService implements IMesWorkOrderService { | 
		
	
		
			
				|  |  |  |  |                 propertyMap.put(MesPcnExtConstWords.WORK_ORDER_STATUS, MesExtEnumUtil.ORDER_STATUS.COMPLETE.getValue()); | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |             } else { | 
		
	
		
			
				|  |  |  |  |                 propertyMap.put(MesPcnExtConstWords.WORK_ORDER_STATUS, oldMesWorkOrder.getWorkOrderStatus()); | 
		
	
		
			
				|  |  |  |  |                 propertyMap.put(MesPcnExtConstWords.WORK_ORDER_STATUS, MesExtEnumUtil.ORDER_STATUS.PROCESS.getValue()); | 
		
	
		
			
				|  |  |  |  |             } | 
		
	
		
			
				|  |  |  |  |         } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
	
		
			
				
					|  |  |  | @ -678,8 +677,11 @@ public class MesWorkOrderService implements IMesWorkOrderService { | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |         DdlPackBean packBean = DdlPackBean.getDdlPackBean(organizeCode); | 
		
	
		
			
				|  |  |  |  |         DdlPreparedPack.getNumEqualPack(productionRecord.getId(), "id", packBean); | 
		
	
		
			
				|  |  |  |  |         DdlPreparedPack.getStringEqualPack(productionRecord.getModifyDatetime(), "modifyDatetime", packBean); | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |         productionRecordRao.updateByProperties(new String[]{"modifyUser", "modifyDatetime", "workOrderNo", "reportStatus"}, | 
		
	
		
			
				|  |  |  |  |                 new Object[]{userName, TimeTool.getNowTime(true), oldMesWorkOrder.getWorkOrderNo(), MesExtEnumUtil.REPORT_STATUS.REPORT_STATUS_20.getValue()}, packBean); | 
		
	
		
			
				|  |  |  |  |                 new Object[]{userName, DateUtil.format(new Date(), MesPcnExtConstWords.DATE_FORMAT_SSS), oldMesWorkOrder.getWorkOrderNo(), MesExtEnumUtil.REPORT_STATUS.REPORT_STATUS_20.getValue()}, packBean); | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |         LOGGER.info("条码【{}】报工成功,报工工单【{}】", productionRecord.getProductSn(), oldMesWorkOrder.getWorkOrderNo()); | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
	
		
			
				
					|  |  |  | 
 |