fix(qc):启源-质检报告-cghth-值拼接中增加采购员名称
This commit is contained in:
		
							parent
							
								
									08659ccb92
								
							
						
					
					
						commit
						017bc22632
					
				|  | @ -73,9 +73,8 @@ public class SyncQcQmsRule implements IRule<ReportVO> { | |||
|                 ArriveVO[] arriveVOS = billquery.query(firstIds.toArray(new String[0])); | ||||
|                 buildSyncData(arriveVOS); | ||||
|             } | ||||
|             // 组织数据 | ||||
|             // buildSyncData(reportVOS); | ||||
|         } catch (Exception e) { | ||||
|             logger.error("SyncQcQmsRule-exp:" + e.getMessage(), e); | ||||
|             ExceptionUtils.wrappException(e); | ||||
|         } | ||||
|     } | ||||
|  | @ -108,7 +107,7 @@ public class SyncQcQmsRule implements IRule<ReportVO> { | |||
|                     UserVO.CUSERID + " = '" + hvo.getBillmaker() + "'"); | ||||
|             JSONObject singleObj = new JSONObject(); | ||||
|             // 꽃뭔북谿뵀 | ||||
|             String cghth = getCghthVal(bvo); | ||||
|             String cghth = getCghthVal(hvo, bvo); | ||||
|             // 폘都箇쇱데寮깊 | ||||
|             long cts = System.currentTimeMillis(); | ||||
|             singleObj.put("batchid", cts); | ||||
|  | @ -150,8 +149,15 @@ public class SyncQcQmsRule implements IRule<ReportVO> { | |||
|         } | ||||
|     } | ||||
| 
 | ||||
|     private String getCghthVal(ArriveItemVO[] bvo) { | ||||
|     private String getCghthVal(ArriveHeaderVO hvo, ArriveItemVO[] bvo) throws BusinessException { | ||||
|         String cghth = ""; | ||||
|         String pkPupsndoc = hvo.getPk_pupsndoc(); | ||||
|         // ²éѯ²É¹ºÔ±Ãû³Æ | ||||
|         String name = ""; | ||||
|         if (pkPupsndoc != null && !pkPupsndoc.isEmpty() && !"~".equals(pkPupsndoc)) { | ||||
|             name = MyHelper.getStrValByCondition(PsndocVO.getDefaultTableName(), PsndocVO.NAME, | ||||
|                     PsndocVO.PK_PSNDOC + "'" + pkPupsndoc + "'"); | ||||
|         } | ||||
|         if (bvo != null && bvo.length > 0) { | ||||
|             StringBuilder cghthBuilder = new StringBuilder(); | ||||
|             for (int i = 0; i < bvo.length; i++) { | ||||
|  | @ -163,7 +169,9 @@ public class SyncQcQmsRule implements IRule<ReportVO> { | |||
|                     cghthBuilder.append(","); | ||||
|                 } | ||||
|                 cghthBuilder.append(vsourcecode); | ||||
|                 // 查询采购员名称 | ||||
|                 if (!name.isEmpty()) { | ||||
|                     cghthBuilder.append(name); | ||||
|                 } | ||||
|             } | ||||
|             cghth = cghthBuilder.toString(); | ||||
|         } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue