gaodd %!s(int64=4) %!d(string=hai) anos
pai
achega
a7ce5260e2

+ 1 - 1
src/main/java/com/unissoft/equipmentStroe/controller/EquipmentStroeController.java

@@ -29,7 +29,7 @@ public class EquipmentStroeController {
29 29
 
30 30
     @ApiOperation(value = "分页条件查询",
31 31
             notes = "提交参数:{\"pageIndex\":1,\"pageSize\":10,\"," +
32
-                    "\"condition\":\"{'table_name':'grain_condition_record'," +
32
+                    "\"condition\":\"{'table_name':'equipment_stroe'," +
33 33
                     "'field_name':'check_list'\"}")
34 34
     @PostMapping("/authority/getPage")
35 35
     public ResultView getPage(@RequestBody PageParam pageParam) {

+ 4 - 0
src/main/java/com/unissoft/equipmentStroe/service/impl/EquipmentStroeServiceImpl.java

@@ -40,6 +40,7 @@ public class EquipmentStroeServiceImpl extends ServiceImpl<EquipmentStroeMapper,
40 40
             String equipmentNameCode = object.optString("equipment_name_code").trim();
41 41
             String standardsType = object.optString("standards_type").trim();
42 42
             String arrivalTime = object.optString("arrival_time").trim();
43
+            String state = object.optString("state").trim();
43 44
             if (!StringUtils.isEmpty(depotId)) {
44 45
                 ew.eq("depot_id", depotId);
45 46
             }
@@ -55,6 +56,9 @@ public class EquipmentStroeServiceImpl extends ServiceImpl<EquipmentStroeMapper,
55 56
             if (!StringUtils.isEmpty(standardsType)) {
56 57
                 ew.eq("standards_type", standardsType);
57 58
             }
59
+            if (!StringUtils.isEmpty(state)) {
60
+                ew.eq("state", state);
61
+            }
58 62
         }
59 63
         ew.orderByDesc("arrival_time");
60 64
         Page page = new Page();