WIN-2308041133\Administrator пре 2 дана
родитељ
комит
60ae2a6f05
1 измењених фајлова са 4 додато и 4 уклоњено
  1. 4 4
      app/system/controller/ContractTemplate.php

+ 4 - 4
app/system/controller/ContractTemplate.php

@@ -82,10 +82,10 @@ class ContractTemplate extends  BaseController{
         if($id>0){
             $codeWhere[]=["id","<>",$id];
         }
-        $count = (new ContractTemplateModel)->where($codeWhere)->where("id","<>",$id)->count();
-        if($count>0){
-            return app('json')->fail("当前code已存在");
-        }
+//        $count = (new ContractTemplateModel)->where($codeWhere)->where("id","<>",$id)->count();
+//        if($count>0){
+//            return app('json')->fail("当前code已存在");
+//        }
         $r=0;
         if(empty($id) || $id=="0"){
             $save["time"] = time();