zishan-an 11 місяців тому
батько
коміт
95dbabadd6

+ 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++) {