浏览代码

应轮未轮条件查询

ZeroLiYi 2 月之前
父节点
当前提交
48fd878e56

+ 4 - 3
src/main/java/com/chinaitop/depot/warningAndAlarm/controller/YjBjController.java

@@ -67,15 +67,16 @@ public class YjBjController {
67 67
         @ApiImplicitParam(name = "orgId", value = "库ID", paramType = "query"),
68 68
         @ApiImplicitParam(name = "ch", value = "仓房ID", paramType = "query"),
69 69
         @ApiImplicitParam(name = "hwh", value = "货位ID", paramType = "query"),
70
-        @ApiImplicitParam(name = "lspz", value = "粮食品种ID", paramType = "query")
70
+        @ApiImplicitParam(name = "lspz", value = "粮食品种ID", paramType = "query"),
71
+        @ApiImplicitParam(name = "rksj", value = "入库时间", paramType = "query")
71 72
 	})
72
-	public ResponseEntity<PageInfo<StorageRotationWarning>> getYlwlPageInfoList(Integer pageNum, Integer pageSize, Integer orgId, Integer ch, Integer hwh, Integer lspz) {
73
+	public ResponseEntity<PageInfo<StorageRotationWarning>> getYlwlPageInfoList(Integer pageNum, Integer pageSize, Integer orgId, Integer ch, Integer hwh, Integer lspz,String rksj) {
73 74
 		PageInfo<StorageRotationWarning> pageInfo = null;
74 75
 		try {
75 76
 			if (pageNum != null && pageSize != null) {
76 77
 	            PageHelper.startPage(pageNum, pageSize);
77 78
 	        }
78
-			List<StorageRotationWarning> list = yjbjService.queryYlwlList(orgId, ch, hwh, lspz);
79
+			List<StorageRotationWarning> list = yjbjService.queryYlwlList(orgId, ch, hwh, lspz, rksj);
79 80
 			pageInfo = new PageInfo<>(list);
80 81
 		} catch (Exception e) {
81 82
 			log.error(e.getMessage(), e);

+ 1 - 1
src/main/java/com/chinaitop/depot/warningAndAlarm/service/YjbjService.java

@@ -28,7 +28,7 @@ public interface YjbjService {
28 28
 	 * @return
29 29
 	 * @throws Exception
30 30
 	 */
31
-	public List<StorageRotationWarning> queryYlwlList(Integer orgId, Integer ch, Integer hwh, Integer lspz) throws Exception;
31
+	public List<StorageRotationWarning> queryYlwlList(Integer orgId, Integer ch, Integer hwh, Integer lspz,String rksj) throws Exception;
32 32
 
33 33
 	/**
34 34
 	 * 更新轮换预警报警数据的处理结果信息

+ 4 - 1
src/main/java/com/chinaitop/depot/warningAndAlarm/service/impl/YjbjServiceImpl.java

@@ -57,7 +57,7 @@ public class YjbjServiceImpl implements YjbjService {
57 57
 	}
58 58
 
59 59
 	@Override
60
-	public List<StorageRotationWarning> queryYlwlList(Integer orgId, Integer ch, Integer hwh, Integer lspz)
60
+	public List<StorageRotationWarning> queryYlwlList(Integer orgId, Integer ch, Integer hwh, Integer lspz,String rksj)
61 61
 			throws Exception {
62 62
 
63 63
 		StorageRotationWarningExample example = new StorageRotationWarningExample();
@@ -75,6 +75,9 @@ public class YjbjServiceImpl implements YjbjService {
75 75
 		if (null != lspz) {
76 76
 			criteria.andLspzEqualTo(lspz);  //粮食品种ID
77 77
 		}
78
+		if (null != rksj) {
79
+			criteria.andZhycrqLike(rksj);
80
+		}
78 81
 
79 82
 		criteria.andBjlxEqualTo(StatusUtils.LHYJBJ_TYPE_1); //查询应轮未轮报警的数据
80 83