fanxw hai 1 ano
pai
achega
7920293a8d

+ 4 - 3
src/main/java/com/chinaitop/depot/yjbj/controller/StorageTemperaturepointWarningController.java

@@ -38,15 +38,16 @@ public class StorageTemperaturepointWarningController {
38 38
 		@ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
39 39
         @ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
40 40
         @ApiImplicitParam(name = "cfbm", value = "仓房国标编码", paramType = "query"),
41
-        @ApiImplicitParam(name = "orgId", value = "库ID", required=true, paramType = "query")
41
+        @ApiImplicitParam(name = "orgId", value = "库ID", required=true, paramType = "query"),
42
+        @ApiImplicitParam(name = "alarmType", value = "预警类型 1-测温设备故障 2-测温数据上传故障", required=true, paramType = "query")
42 43
 	})
43
-	public ResponseEntity getCwdgzPageList(Integer pageNum, Integer pageSize, String cfbm, Integer orgId) {
44
+	public ResponseEntity getCwdgzPageList(Integer pageNum, Integer pageSize, String cfbm, Integer orgId, Integer alarmType) {
44 45
 		PageInfo<Sbyj> pageInfo = null;
45 46
 		try {
46 47
 			if (pageNum != null && pageSize != null) {
47 48
 	            PageHelper.startPage(pageNum, pageSize);
48 49
 	        }
49
-			List<Sbyj> list = storageTemperaturepointWarningService.findByConditions(cfbm, orgId);
50
+			List<Sbyj> list = storageTemperaturepointWarningService.findByConditions(cfbm, orgId, alarmType);
50 51
 			pageInfo = new PageInfo<>(list);
51 52
 			return ResponseEntity.ok(pageInfo);
52 53
 		} catch (Exception e) {

+ 2 - 1
src/main/java/com/chinaitop/depot/yjbj/service/SbyjService.java

@@ -10,10 +10,11 @@ public interface SbyjService {
10 10
 	 * 按条件查询集合数据
11 11
 	 * @param cfbm 仓房国标编码
12 12
 	 * @param orgId 库ID
13
+	 * @param alarmType 预警类型 1-测温设备故障 2-测温数据上传故障
13 14
 	 * @return
14 15
 	 * @throws Exception
15 16
 	 */
16
-	List<Sbyj> findByConditions(String cfbm, Integer orgId) throws Exception;
17
+	List<Sbyj> findByConditions(String cfbm, Integer orgId, Integer alarmType) throws Exception;
17 18
 
18 19
 	/**
19 20
 	 * 按主键ID查询一条数据

+ 2 - 2
src/main/java/com/chinaitop/depot/yjbj/service/impl/SbyjServiceImpl.java

@@ -18,11 +18,11 @@ public class SbyjServiceImpl implements SbyjService {
18 18
 	private SbyjMapper sbyjMapper;
19 19
 
20 20
 	@Override
21
-	public List<Sbyj> findByConditions(String cfbm, Integer orgId)
21
+	public List<Sbyj> findByConditions(String cfbm, Integer orgId, Integer alarmType)
22 22
 			throws Exception {
23 23
 		Sbyj obj = new Sbyj();
24 24
 		obj.setDataFlag("1");//数据类型:1-库区 0-市级
25
-		obj.setAlarmType(1);//预警类型 1-测温设备故障 2-测温数据上传故障
25
+		obj.setAlarmType(alarmType);//预警类型 1-测温设备故障 2-测温数据上传故障
26 26
 		obj.setOrgId(orgId);
27 27
 		if (StringUtils.isNotBlank(cfbm)) {
28 28
 			obj.setCfbm(cfbm);