Yansen 2 years ago
parent
commit
1cfb50c7f2

+ 1
- 1
src/main/java/com/yunzhi/inte/controller/StoreController.java View File

79
                                @ApiParam("分类ID") @RequestParam(value ="typeId", required = false) String typeId,
79
                                @ApiParam("分类ID") @RequestParam(value ="typeId", required = false) String typeId,
80
                                HttpServletResponse response) throws Exception {
80
                                HttpServletResponse response) throws Exception {
81
 
81
 
82
-        List<Store> result = storeService.getListBy(name, typeId);
82
+        List<Store> result = storeService.getListBy(name, typeId, null);
83
 
83
 
84
         ExcelUtils.flush(response, Store.class, result, "库存列表");
84
         ExcelUtils.flush(response, Store.class, result, "库存列表");
85
 
85
 

+ 2
- 2
src/main/java/com/yunzhi/inte/mapper/StoreMapper.java View File

16
 @Mapper
16
 @Mapper
17
 public interface StoreMapper  extends BaseMapper<Store>{
17
 public interface StoreMapper  extends BaseMapper<Store>{
18
 
18
 
19
-    IPage<Store> getPageBy(IPage<Store> pg, @Param("name") String name, @Param("typeId") String typeId, @Param("isDish")  Integer isDish);
19
+    IPage<Store> getPageBy(IPage<Store> pg, @Param("name") String name, @Param("typeId") String typeId, @Param("isDish") Integer isDish);
20
 
20
 
21
-    List<Store> getListBy(@Param("name") String name, @Param("typeId") String typeId);
21
+    List<Store> getListBy(@Param("name") String name, @Param("typeId") String typeId, @Param("isDish") Integer isDish);
22
 }
22
 }

+ 1
- 1
src/main/java/com/yunzhi/inte/service/StoreService.java View File

14
 
14
 
15
     IPage<Store> getPageBy(IPage<Store> pg, String name, String typeId, Integer isDish);
15
     IPage<Store> getPageBy(IPage<Store> pg, String name, String typeId, Integer isDish);
16
 
16
 
17
-    List<Store> getListBy(String name, String typeId);
17
+    List<Store> getListBy(String name, String typeId, Integer isDish);
18
 }
18
 }

+ 2
- 2
src/main/java/com/yunzhi/inte/service/impl/StoreServiceImpl.java View File

29
     }
29
     }
30
 
30
 
31
     @Override
31
     @Override
32
-    public List<Store> getListBy(String name, String typeId) {
32
+    public List<Store> getListBy(String name, String typeId, Integer isDish) {
33
         if (StringUtils.isEmpty(name)) {
33
         if (StringUtils.isEmpty(name)) {
34
             name = null;
34
             name = null;
35
         } else {
35
         } else {
36
             name = "%" + name + "%";
36
             name = "%" + name + "%";
37
         }
37
         }
38
 
38
 
39
-        return baseMapper.getListBy(name, typeId);
39
+        return baseMapper.getListBy(name, typeId, isDish);
40
     }
40
     }
41
 }
41
 }

+ 1
- 1
src/main/resources/application.yml View File

7
 spring:
7
 spring:
8
   datasource:
8
   datasource:
9
     driver-class-name: org.sqlite.JDBC
9
     driver-class-name: org.sqlite.JDBC
10
-    url: jdbc:sqlite:E:\work\jungongzhang\service\db\ybai.db
10
+    url: jdbc:sqlite:E:\work\jgz\service\db\ybai.db
11
     username:
11
     username:
12
     password:
12
     password:
13
   application:
13
   application: