推送箱变qms修改字段
This commit is contained in:
parent
4def8af5ec
commit
bbfe66edb6
|
|
@ -200,7 +200,6 @@ public class QCRptDataPushtoQmsAction implements ICommonAction {
|
||||||
private String getCghthVal(ArriveHeaderVO hvo, ArriveItemVO[] bvo) throws BusinessException {
|
private String getCghthVal(ArriveHeaderVO hvo, ArriveItemVO[] bvo) throws BusinessException {
|
||||||
String cghth = "";
|
String cghth = "";
|
||||||
String pkPupsndoc = hvo.getPk_pupsndoc();
|
String pkPupsndoc = hvo.getPk_pupsndoc();
|
||||||
// ╡Ия╞╡и╧╨т╠цШЁф
|
|
||||||
String name = "";
|
String name = "";
|
||||||
if (pkPupsndoc != null && !pkPupsndoc.isEmpty() && !"~".equals(pkPupsndoc)) {
|
if (pkPupsndoc != null && !pkPupsndoc.isEmpty() && !"~".equals(pkPupsndoc)) {
|
||||||
name = MyHelper.getStrValByCondition(PsndocVO.getDefaultTableName(), PsndocVO.NAME,
|
name = MyHelper.getStrValByCondition(PsndocVO.getDefaultTableName(), PsndocVO.NAME,
|
||||||
|
|
@ -208,11 +207,19 @@ public class QCRptDataPushtoQmsAction implements ICommonAction {
|
||||||
}
|
}
|
||||||
if (bvo != null && bvo.length > 0) {
|
if (bvo != null && bvo.length > 0) {
|
||||||
StringBuilder cghthBuilder = new StringBuilder();
|
StringBuilder cghthBuilder = new StringBuilder();
|
||||||
|
// 添加Set用于去重
|
||||||
|
Set<String> processedCodes = new HashSet<>();
|
||||||
for (int i = 0; i < bvo.length; i++) {
|
for (int i = 0; i < bvo.length; i++) {
|
||||||
String vsourcecode = bvo[i].getVsourcecode();
|
String vsourcecode = bvo[i].getVsourcecode();
|
||||||
if (vsourcecode == null || vsourcecode.isEmpty() || "~".equals(vsourcecode)) {
|
if (vsourcecode == null || vsourcecode.isEmpty() || "~".equals(vsourcecode)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
// 检查是否已处理过,避免重复
|
||||||
|
if (processedCodes.contains(vsourcecode)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
processedCodes.add(vsourcecode);
|
||||||
|
|
||||||
if (i > 0) {
|
if (i > 0) {
|
||||||
cghthBuilder.append(",");
|
cghthBuilder.append(",");
|
||||||
}
|
}
|
||||||
|
|
@ -227,6 +234,7 @@ public class QCRptDataPushtoQmsAction implements ICommonAction {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ÍÆËÍͬ²½Êý¾Ý
|
* ÍÆËÍͬ²½Êý¾Ý
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue