|
|
@@ -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();
|