流程生产订单审批后推送高压MES-代码优化
This commit is contained in:
		
							parent
							
								
									de221a16b8
								
							
						
					
					
						commit
						3498e4491c
					
				|  | @ -77,9 +77,6 @@ public class AfterSoSyncRuleGyMes implements IRule<SaleOrderVO> { | |||
|             // ºÏͬ±àºÅ | ||||
|             String vdef6 = hvo.getVdef6(); | ||||
|             String contractNum = getDefCode("zdy-001", vdef6); | ||||
|             if (contractNum.isEmpty()) { | ||||
|                 contractNum = "11"; | ||||
|             } | ||||
|             for (SaleOrderBVO item : itemVOS) { | ||||
|                 Object projectName = hybo.findColValue(ProjectHeadVO.getDefaultTableName(), ProjectHeadVO.PROJECT_NAME, ProjectHeadVO.PK_PROJECT + " = '" + item.getCprojectid() + "' "); | ||||
|                 String wlsql = " select code,name,graphid from bd_material where dr = 0 and pk_material = '" + item.getCmaterialvid() + "' "; | ||||
|  | @ -137,7 +134,7 @@ public class AfterSoSyncRuleGyMes implements IRule<SaleOrderVO> { | |||
| 
 | ||||
|         if (!"200".equals(resultObj.getString("code"))) { | ||||
|             logger.error("gyMes-SaleOrder-error,result[" + resultObj.toJSONString() + "]"); | ||||
|             throw new BusinessException("gyMes-SaleOrder-error:" + resultObj.getString("message")); | ||||
|             throw new BusinessException("销售订单推送高压MES错误:" + resultObj.getString("msg")); | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue