Yansen 2 лет назад
Родитель
Сommit
1cfb50c7f2

+ 1
- 1
src/main/java/com/yunzhi/inte/controller/StoreController.java Просмотреть файл

@@ -79,7 +79,7 @@ public class StoreController extends BaseController {
79 79
                                @ApiParam("分类ID") @RequestParam(value ="typeId", required = false) String typeId,
80 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 84
         ExcelUtils.flush(response, Store.class, result, "库存列表");
85 85
 

+ 2
- 2
src/main/java/com/yunzhi/inte/mapper/StoreMapper.java Просмотреть файл

@@ -16,7 +16,7 @@ import java.util.List;
16 16
 @Mapper
17 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 Просмотреть файл

@@ -14,5 +14,5 @@ public interface StoreService extends IBaseService<Store> {
14 14
 
15 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 Просмотреть файл

@@ -29,13 +29,13 @@ public class StoreServiceImpl extends BaseServiceImpl<StoreMapper, Store> implem
29 29
     }
30 30
 
31 31
     @Override
32
-    public List<Store> getListBy(String name, String typeId) {
32
+    public List<Store> getListBy(String name, String typeId, Integer isDish) {
33 33
         if (StringUtils.isEmpty(name)) {
34 34
             name = null;
35 35
         } else {
36 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 Просмотреть файл

@@ -7,7 +7,7 @@ server:
7 7
 spring:
8 8
   datasource:
9 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 11
     username:
12 12
     password:
13 13
   application: