框架创建BUG修改

pull/12/head
李冬阳 1 year ago
parent ca895bb822
commit 6fb38b4d73

@ -533,12 +533,12 @@ public class KjController {
useLines.add(cLine); useLines.add(cLine);
createId(cLine, bomLineTreeNodeSOA, builder, ccomponentitemtype, findMap, useLines, 0); createId(cLine, bomLineTreeNodeSOA, builder, ccomponentitemtype, findMap, useLines, 0);
}else { }else {
TCComponentItem find = ccomponentitemtype.findItems(replaceAll)[0]; TCComponentItem[] finds = ccomponentitemtype.findItems(replaceAll);
if(find != null) { if(finds != null && finds.length > 0) {
builder.append("当前ID已经存在:").append(replaceAll).append("\n"); builder.append("当前ID已经存在:").append(replaceAll).append("\n");
findMap.put(item_id, find); findMap.put(item_id, finds[0]);
useLines.add(cLine); useLines.add(cLine);
oldkjIdMap.put(cRev, find); oldkjIdMap.put(cRev, finds[0]);
createId(cLine, bomLineTreeNodeSOA, builder, ccomponentitemtype, findMap, useLines, 0); createId(cLine, bomLineTreeNodeSOA, builder, ccomponentitemtype, findMap, useLines, 0);
}else { }else {
kjIdMap.put(cRev, replaceAll); kjIdMap.put(cRev, replaceAll);

Loading…
Cancel
Save