LAPTOP-063L2NVL\dong 5 anos atrás
pai
commit
585250af35

+ 3 - 3
src/main/java/com/unissoft/grainManage/service/impl/GrainConditionRecordServiceImpl.java

@@ -212,9 +212,9 @@ public class GrainConditionRecordServiceImpl extends ServiceImpl<GrainConditionR
212
         Integer depotId = null;
212
         Integer depotId = null;
213
         if (!StringUtils.isEmpty(pageParam.getCondition())) {
213
         if (!StringUtils.isEmpty(pageParam.getCondition())) {
214
             JSONObject object = new JSONObject(pageParam.getCondition());
214
             JSONObject object = new JSONObject(pageParam.getCondition());
215
-             houseId = object.optInt("houseId");
216
-             depotId = object.optInt("depotId");
217
-            logger.info("houseId============"+houseId +"============depotId"+depotId);
215
+             houseId = object.getInt("houseId");
216
+             depotId = object.getInt("depotId");
217
+            logger.info("houseId"+houseId +"============depotId"+depotId);
218
         }
218
         }
219
         List<GrainConditionRecord> list = grainConditionRecordMapper.getByCheckPersonAndCheckTime(houseId,depotId);
219
         List<GrainConditionRecord> list = grainConditionRecordMapper.getByCheckPersonAndCheckTime(houseId,depotId);
220
         for (GrainConditionRecord conditionRecord : list) {
220
         for (GrainConditionRecord conditionRecord : list) {