|
@@ -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("添加失败");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|