Explorar o código

新增规格查询接口(使用类型全部)

cxd hai 6 meses
pai
achega
38fb4e1512

+ 15 - 0
gqy-admin/src/main/java/com/gqy/web/controller/document/DcSpecController.java

@@ -11,6 +11,7 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.*;
 
+import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 
@@ -64,6 +65,20 @@ public class DcSpecController  extends BaseController {
     }
 
 
+    /**
+     * 查询产品规格为全部
+     * @return
+     */
+    @GetMapping(value = "/getDcSpecList")
+    public List<Map<String, Object>> getDcSpecList(){
+        Map maps = new HashMap();
+        maps.put("ps_category","全部");
+        List<Map<String, Object>> list =  iDcSpecService.selectDcPsParamAndSpec(maps);
+        return list;
+    }
+
+
+
 
 
 }

+ 4 - 2
创建表语句.txt

@@ -369,5 +369,7 @@ CREATE TABLE `dc_ps_param` (
 
 
 
-ALTER TABLE dc_ps_param CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
-ALTER TABLE dc_spec CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
+
+
+
+