From 197dd8160fb3c1270e2d11b14eabd8e55c35ef70 Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期二, 10 十月 2023 17:02:18 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/crm/manager/controller/CstmrController.java |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/zy/crm/manager/controller/CstmrController.java b/src/main/java/com/zy/crm/manager/controller/CstmrController.java
index 8694fa1..ca07e48 100644
--- a/src/main/java/com/zy/crm/manager/controller/CstmrController.java
+++ b/src/main/java/com/zy/crm/manager/controller/CstmrController.java
@@ -68,6 +68,17 @@
         return R.ok(cstmrService.selectById(String.valueOf(id)));
     }
 
+    @RequestMapping(value = "/cstmr/name/check/auth")
+    @ManagerAuth
+    public R getName(String name) {
+        Cstmr cstmr = cstmrService.selectByName(getHostId(), name);
+        if (Cools.isEmpty(cstmr) || cstmr==null){
+            return R.ok();
+        }else {
+            return R.error(name+"宸插瓨鍦�");
+        }
+    }
+
     @RequestMapping(value = "/cstmr/page/auth")
     @ManagerAuth
     public R page(@RequestParam(defaultValue = "1") Integer curr,
@@ -135,6 +146,7 @@
         cstmr.setCreateTime(new Date());
         cstmr.setUpdateBy(getUserId());
         cstmr.setUpdateTime(new Date());
+        cstmr.setDirector(getUserId());
         cstmr.setStatus(1);
         cstmrService.insert(cstmr);
         return R.ok();

--
Gitblit v1.9.1