瀏覽代碼

DeBugDeBugDeBug

buzhanyi 2 年之前
父節點
當前提交
91f0ba89f2
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      purchase-system/src/main/java/com/ozs/plan/service/impl/PlanYearsServiceImpl.java

+ 3 - 3
purchase-system/src/main/java/com/ozs/plan/service/impl/PlanYearsServiceImpl.java

@@ -377,21 +377,21 @@ public class PlanYearsServiceImpl extends ServiceImpl<PlanYearsMapper, PlanYears
                     if (ofYear.getOrganDivision().contains(",")) {
                         String[] split = ofYear.getOrganDivision().split(",");
                         for (String s : split) {
-                            SysDept infoTow = deptMapper.checkDeptNameOnlyOne(ofYear.getOrganDivision());
+                            SysDept infoTow = deptMapper.checkDeptNameOnlyOne(s);
                             //不是最后一位就加‘,’,是就直接结尾
                             if (!ofYear.getOrganDivision().endsWith(s)) {
                                 if (!ObjectUtils.isEmpty(infoTow)) {
                                     zBuilder.append(infoTow.getDeptId() + ",");
                                 } else {
                                     ++failureNum;
-                                    failureMsg.append(failureNum + "、机关业务指导处(科)“" + ofYear.getOrganDivision() + "”不存在");
+                                    failureMsg.append(failureNum + "、机关业务指导处(科)“" + s + "”不存在");
                                 }
                             } else {
                                 if (!ObjectUtils.isEmpty(infoTow)) {
                                     zBuilder.append(infoTow.getDeptId());
                                 } else {
                                     ++failureNum;
-                                    failureMsg.append(failureNum + "、机关业务指导处(科)“" + ofYear.getOrganDivision() + "”不存在");
+                                    failureMsg.append(failureNum + "、机关业务指导处(科)“" + s + "”不存在");
                                 }
                             }
                         }