This commit is contained in:
		
							parent
							
								
									ed040e5c9f
								
							
						
					
					
						commit
						a2a6b053b0
					
				|  | @ -78,7 +78,8 @@ public class AfterSoSyncRuleGyMes implements IRule<SaleOrderVO> { | |||
|             String vdef6 = hvo.getVdef6(); | ||||
|             String contractNum = getDefCode("zdy-001", vdef6); | ||||
|             for (SaleOrderBVO item : itemVOS) { | ||||
|                 Object projectName = hybo.findColValue(ProjectHeadVO.getDefaultTableName(), ProjectHeadVO.PROJECT_NAME, ProjectHeadVO.PK_PROJECT + " = '" + item.getCprojectid() + "' "); | ||||
|                 Object projectName =getDefName("zdy-001", vdef6); | ||||
| //                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() + "' "; | ||||
|                 Map<String, Object> mrlMap = (Map<String, Object>) baseDAO.executeQuery(wlsql, new MapProcessor()); | ||||
| 
 | ||||
|  | @ -169,6 +170,23 @@ public class AfterSoSyncRuleGyMes implements IRule<SaleOrderVO> { | |||
|         return res; | ||||
| 
 | ||||
|     } | ||||
|     /** | ||||
|      * »ñÈ¡×Ô¶¨ÒåÏîÐÅÏ¢ | ||||
|      */ | ||||
|     private String getDefName(String code, String pk_defdoc) { | ||||
|         String res = ""; | ||||
|         String strWhere = " pk_defdoclist in (select pk_defdoclist from bd_defdoclist where code='" + code + "' and dr=0 )  and dr = 0 and pk_defdoc = '" + pk_defdoc + "'"; | ||||
|         try { | ||||
|             DefdocVO[] defdocVOs = (DefdocVO[]) new HYSuperDMO().queryByWhereClause(DefdocVO.class, strWhere); | ||||
|             if (defdocVOs != null && defdocVOs.length > 0) { | ||||
|                 res = defdocVOs[0].getName().trim(); | ||||
|             } | ||||
|         } catch (DAOException e) { | ||||
|             logger.error("gyMes-SaleOrder-error,getDefCode[" + e.getMessage() + "]"); | ||||
|         } | ||||
|         return res; | ||||
| 
 | ||||
|     } | ||||
| 
 | ||||
| 
 | ||||
| } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue