|
|
@@ -201,13 +201,15 @@ public class StorageWarterCheckController {
|
|
201
|
201
|
@ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
|
|
202
|
202
|
@ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
|
|
203
|
203
|
@ApiImplicitParam(name = "storehouse", value = "仓房", paramType = "query"),
|
|
204
|
|
- @ApiImplicitParam(name = "warehouse", value = "货位", paramType = "query")
|
|
|
204
|
+ @ApiImplicitParam(name = "warehouse", value = "货位", paramType = "query"),
|
|
|
205
|
+ @ApiImplicitParam(name = "orgId", value = "库ID", paramType = "query"),
|
|
|
206
|
+ @ApiImplicitParam(name = "dataStatus", value = "数据状态(0:保存,1:提交)", paramType = "query")
|
|
205
|
207
|
})
|
|
206
|
|
- public PageInfo<StorageWaterCheck> findWarterData(HttpServletRequest request, Integer pageNum, Integer pageSize, Integer storehouse, Integer warehouse) {
|
|
|
208
|
+ public PageInfo<StorageWaterCheck> findWarterData(HttpServletRequest request, Integer pageNum, Integer pageSize,
|
|
|
209
|
+ Integer storehouse, Integer warehouse, Integer orgId, String dataStatus) {
|
|
207
|
210
|
|
|
208
|
211
|
List<StorageWaterCheck> list = null;
|
|
209
|
212
|
PageInfo<StorageWaterCheck> pageInfo = null;
|
|
210
|
|
- Integer orgId = (Integer) request.getSession().getAttribute("orgId");
|
|
211
|
213
|
StorageWaterCheckExample example = new StorageWaterCheckExample();
|
|
212
|
214
|
StorageWaterCheckExample.Criteria criteria = example.createCriteria();
|
|
213
|
215
|
example.setOrderByClause(" hy_date desc");
|
|
|
@@ -225,14 +227,16 @@ public class StorageWarterCheckController {
|
|
225
|
227
|
if (null != warehouse){
|
|
226
|
228
|
criteria.andWareIdEqualTo(warehouse);
|
|
227
|
229
|
}
|
|
228
|
|
-
|
|
229
|
|
-
|
|
|
230
|
+ if (StringUtils.isNotBlank(dataStatus)){
|
|
|
231
|
+ criteria.andDataStatusEqualTo(dataStatus);
|
|
|
232
|
+ }
|
|
|
233
|
+
|
|
230
|
234
|
list = storageWaterCheckService.findWarterData(example);
|
|
231
|
235
|
|
|
232
|
236
|
pageInfo = new PageInfo<StorageWaterCheck>(list);
|
|
233
|
237
|
return pageInfo;
|
|
234
|
238
|
|
|
235
|
|
- }
|
|
|
239
|
+ }
|
|
236
|
240
|
|
|
237
|
241
|
@RequestMapping(value = "/selectWaterData",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
|
|
238
|
242
|
@ApiOperation(value="原粮粮情-水分检测-查询水分数据表")
|