|
|
@@ -79,6 +79,8 @@ public class GrainConditionRecordServiceImpl extends ServiceImpl<GrainConditionR
|
|
79
|
79
|
String checkPerson = object.optString("check_person").trim();
|
|
80
|
80
|
String startTime = object.optString("check_start_time").trim();
|
|
81
|
81
|
String endTime = object.optString("check_end_time").trim();
|
|
|
82
|
+ String houseId = object.optString("house_id").trim();
|
|
|
83
|
+ String depotId = object.optString("depot_id").trim();
|
|
82
|
84
|
if (!StringUtils.isEmpty(checkPerson)) {
|
|
83
|
85
|
ew.eq("check_person", checkPerson);
|
|
84
|
86
|
}
|
|
|
@@ -88,6 +90,12 @@ public class GrainConditionRecordServiceImpl extends ServiceImpl<GrainConditionR
|
|
88
|
90
|
if (!StringUtils.isEmpty(endTime)) {
|
|
89
|
91
|
ew.le("check_time", endTime);
|
|
90
|
92
|
}
|
|
|
93
|
+ if (!StringUtils.isEmpty(houseId)) {
|
|
|
94
|
+ ew.eq("house_id", houseId);
|
|
|
95
|
+ }
|
|
|
96
|
+ if (!StringUtils.isEmpty(depotId)) {
|
|
|
97
|
+ ew.eq("depot_id", depotId);
|
|
|
98
|
+ }
|
|
91
|
99
|
|
|
92
|
100
|
}
|
|
93
|
101
|
ew.orderByDesc("check_time");
|
|
|
@@ -195,7 +203,14 @@ public class GrainConditionRecordServiceImpl extends ServiceImpl<GrainConditionR
|
|
195
|
203
|
@Override
|
|
196
|
204
|
public List<GrainConditionRecord> getByRoleTime(PageParam pageParam) {
|
|
197
|
205
|
|
|
198
|
|
- List<GrainConditionRecord> list = grainConditionRecordMapper.getByCheckPersonAndCheckTime();
|
|
|
206
|
+ String houseId = null;
|
|
|
207
|
+ String depotId = null;
|
|
|
208
|
+ if (!StringUtils.isEmpty(pageParam.getCondition())) {
|
|
|
209
|
+ JSONObject object = new JSONObject(pageParam.getCondition());
|
|
|
210
|
+ houseId = object.optString("house_id").trim();
|
|
|
211
|
+ depotId = object.optString("depot_id").trim();
|
|
|
212
|
+ }
|
|
|
213
|
+ List<GrainConditionRecord> list = grainConditionRecordMapper.getByCheckPersonAndCheckTime(houseId,depotId);
|
|
199
|
214
|
for (GrainConditionRecord conditionRecord : list) {
|
|
200
|
215
|
String checkDescribe = conditionRecord.getCheckDescribe();
|
|
201
|
216
|
if(org.apache.commons.lang.StringUtils.isNotBlank(checkDescribe)){
|