|
|
@@ -17,6 +17,7 @@ import com.chinaitop.depot.yjbj.model.Jybgcqyj;
|
|
17
|
17
|
import com.chinaitop.depot.yjbj.model.StorageAlarmRecordWithBLOBs;
|
|
18
|
18
|
import com.chinaitop.depot.yjbj.model.Thprkyj;
|
|
19
|
19
|
import com.chinaitop.depot.yjbj.model.Zkycbj;
|
|
|
20
|
+import com.chinaitop.depot.yjbj.model.Zlbj;
|
|
20
|
21
|
import com.chinaitop.depot.yjbj.service.StorageAlarmRecordService;
|
|
21
|
22
|
import com.chinaitop.depot.yjbj.service.YjbjService;
|
|
22
|
23
|
import com.github.pagehelper.PageHelper;
|
|
|
@@ -177,6 +178,29 @@ public class YjbjController {
|
|
177
|
178
|
return ResponseEntity.failed("查询失败:" + e.getMessage());
|
|
178
|
179
|
}
|
|
179
|
180
|
}
|
|
|
181
|
+
|
|
|
182
|
+ @RequestMapping(value="/getZlbjPageList", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
|
|
|
183
|
+ @ApiOperation(value="查询质量报警列表", notes = "支持分页")
|
|
|
184
|
+ @ApiImplicitParams({
|
|
|
185
|
+ @ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
|
|
|
186
|
+ @ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
|
|
|
187
|
+ @ApiImplicitParam(name = "cfmc", value = "仓房或油罐名称", paramType = "query"),
|
|
|
188
|
+ @ApiImplicitParam(name = "orgId", value = "库ID", required=true, paramType = "query")
|
|
|
189
|
+ })
|
|
|
190
|
+ public ResponseEntity getZlbjPageList(Integer pageNum, Integer pageSize, String cfmc, Integer orgId) {
|
|
|
191
|
+ PageInfo<Zlbj> pageInfo = null;
|
|
|
192
|
+ try {
|
|
|
193
|
+ if (pageNum != null && pageSize != null) {
|
|
|
194
|
+ PageHelper.startPage(pageNum, pageSize);
|
|
|
195
|
+ }
|
|
|
196
|
+ List<Zlbj> list = yjbjService.selectZlbj(orgId, cfmc);
|
|
|
197
|
+ pageInfo = new PageInfo<>(list);
|
|
|
198
|
+ return ResponseEntity.ok(pageInfo);
|
|
|
199
|
+ } catch (Exception e) {
|
|
|
200
|
+ log.error(e.getMessage(), e);
|
|
|
201
|
+ return ResponseEntity.failed("查询失败:" + e.getMessage());
|
|
|
202
|
+ }
|
|
|
203
|
+ }
|
|
180
|
204
|
|
|
181
|
205
|
@RequestMapping(value="/getCljl", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
|
|
182
|
206
|
@ApiOperation(value="查询处理记录", notes = "")
|