浏览代码

代码提交

cxd 7 月之前
父节点
当前提交
b02779313c

+ 9 - 4
gqy-admin/src/main/java/com/gqy/web/controller/document/ProductController.java

@@ -2,13 +2,11 @@ package com.gqy.web.controller.document;
 
 import com.gqy.common.core.domain.AjaxResult;
 import com.gqy.common.core.domain.AjaxResultCQY;
+import com.gqy.common.core.page.TableDataInfo;
 import com.gqy.document.domain.vo.PageResult;
 import com.gqy.document.service.IDcProductService;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 import javax.servlet.http.HttpServletRequest;
 import java.util.Map;
@@ -40,4 +38,11 @@ public class ProductController {
     public AjaxResultCQY add(@RequestBody Map maps) {
         return AjaxResultCQY.success(iDcProductService.add(maps));
     }
+
+    @GetMapping("/list")
+    public TableDataInfo list(@RequestParam Map<String, Object> maps) {
+
+        return null;
+    }
+
 }

+ 2 - 0
gqy-system/src/main/java/com/gqy/document/service/IDcProductService.java

@@ -13,4 +13,6 @@ public interface IDcProductService {
      * @return
      */
     public int add(Map<String, Object> params);
+
+
 }

+ 4 - 0
gqy-system/src/main/java/com/gqy/document/service/impl/DcProductServiceImpl.java

@@ -11,6 +11,7 @@ import com.gqy.document.mapper.DcSystemProductMapper;
 import com.gqy.document.mapper.DcWorkSystemMapper;
 import com.gqy.document.service.IDcProductService;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
 
 import java.util.List;
 import java.util.Map;
@@ -18,6 +19,7 @@ import java.util.Map;
 /**
  *  产品信息
  */
+@Service
 public class DcProductServiceImpl implements IDcProductService {
 
     @Autowired
@@ -37,6 +39,8 @@ public class DcProductServiceImpl implements IDcProductService {
     public int add(Map<String, Object> params) {
 
         try {
+            //Map<String, Object> content = params.get("content");
+
             DcProduct product = new DcProduct();
             // 拷贝参数
             BeanUtils.copyProperties(params, product);