瀏覽代碼

代码提交

cxd 4 月之前
父節點
當前提交
8e1fd88785

+ 20 - 1
gqy-admin/src/main/java/com/gqy/web/controller/document/DesigerController.java

@@ -2,6 +2,8 @@ package com.gqy.web.controller.document;
 
 
 import com.gqy.common.core.controller.BaseController;
 import com.gqy.common.core.controller.BaseController;
 import com.gqy.common.core.domain.AjaxResultCQY;
 import com.gqy.common.core.domain.AjaxResultCQY;
+import com.gqy.document.service.IDcDesigerService;
+import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 import org.springframework.web.bind.annotation.RestController;
@@ -13,8 +15,25 @@ import java.util.Map;
 @RequestMapping("/desiger")
 @RequestMapping("/desiger")
 public class DesigerController extends BaseController {
 public class DesigerController extends BaseController {
 
 
+    @Autowired
+    IDcDesigerService iDcDesigerService;
+
+    /**
+     * 添加设计人员
+     * @param map
+     * @return
+     */
     @RequestMapping("/add")
     @RequestMapping("/add")
     public AjaxResultCQY add(@RequestBody Map map){
     public AjaxResultCQY add(@RequestBody Map map){
-        return  AjaxResultCQY.success();
+        try{
+            iDcDesigerService.add(map);
+            return  AjaxResultCQY.success();
+        }catch (Exception e){
+            return AjaxResultCQY.error("添加失败");
+        }
     }
     }
+
+
+
+
 }
 }

+ 16 - 0
gqy-admin/src/main/java/com/gqy/web/controller/document/ExportController.java

@@ -0,0 +1,16 @@
+package com.gqy.web.controller.document;
+
+import com.gqy.common.core.domain.AjaxResult;
+import com.gqy.common.core.domain.AjaxResultCQY;
+import com.gqy.document.service.IExportService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+@RestController
+@RequestMapping("/export")
+public class ExportController {
+
+}