zishan-an преди 11 месеца
родител
ревизия
95dbabadd6
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/main/java/com/kexun/controller/CooperatorController.java

+ 1 - 1
src/main/java/com/kexun/controller/CooperatorController.java

@@ -135,7 +135,7 @@ public class CooperatorController {
         String oldTemplateId = cooperatorInfo.getTemplateId();
         String oldCooperatorNum = cooperatorInfo.getCooperatorNum();
 
-        if(oldTemplateId!=req.getString("fieldTemplateId")) {
+        if(oldTemplateId!=req.getString("fieldTemplateId") && req.getString("fieldTemplateId")!="") {
             cooperatorInfo.setTemplateId(req.getString("fieldTemplateId"));
             List<CooperatorProduct> CooperatorProductList= CooperatorProductService.findCooperatorProductByNum(oldCooperatorNum);
             for (int i=0;i<CooperatorProductList.size();i++) {