|
|
@@ -53,15 +53,16 @@ public class IntelligentBatchDetectionController {
|
|
53
|
53
|
@ApiImplicitParam(name = "pageSize", defaultValue = "10", value = "每页条数", paramType = "query"),
|
|
54
|
54
|
@ApiImplicitParam(name = "tName", value = "机构id", paramType = "query"),
|
|
55
|
55
|
@ApiImplicitParam(name = "tState", value = "是否开启", paramType = "query"),
|
|
|
56
|
+ @ApiImplicitParam(name = "orgId", value = "库id", paramType = "query"),
|
|
56
|
57
|
@ApiImplicitParam(name = "tCategory", value = "检测类型", paramType = "query")
|
|
57
|
58
|
})
|
|
58
|
|
- public ResponseEntity<PageInfo<TTimingTask>> getList(Integer pageNum, Integer pageSize, String tName, String tState, String tCategory) {
|
|
|
59
|
+ public ResponseEntity<PageInfo<TTimingTask>> getList(Integer pageNum, Integer pageSize, String tName, String tState, String tCategory,String orgId) {
|
|
59
|
60
|
List<TTimingTask> list = null;
|
|
60
|
61
|
try {
|
|
61
|
62
|
if (null != pageNum && null != pageSize) {
|
|
62
|
63
|
PageHelper.startPage(pageNum, pageSize);
|
|
63
|
64
|
}
|
|
64
|
|
- list = tTimingTaskService.getList(tName,tState,tCategory);
|
|
|
65
|
+ list = tTimingTaskService.getList(tName,tState,tCategory,orgId);
|
|
65
|
66
|
} catch (Exception e) {
|
|
66
|
67
|
e.printStackTrace();
|
|
67
|
68
|
return ResponseEntity.failed(e.getMessage());
|
|
|
@@ -134,15 +135,16 @@ public class IntelligentBatchDetectionController {
|
|
134
|
135
|
@ApiImplicitParam(name = "vcfcode", value = "仓房code", paramType = "query"),
|
|
135
|
136
|
@ApiImplicitParam(name = "time", value = "更新时间", paramType = "query"),
|
|
136
|
137
|
@ApiImplicitParam(name = "tid", value = "检测id", paramType = "query"),
|
|
|
138
|
+ @ApiImplicitParam(name = "orgId", value = "库id", paramType = "query"),
|
|
137
|
139
|
@ApiImplicitParam(name = "type", value = "所属类型", paramType = "query")
|
|
138
|
140
|
})
|
|
139
|
|
- public ResponseEntity<PageInfo<TTimingTaskHistory>> getDetectionHistory(Integer pageNum, Integer pageSize, String vcfcode, String time, String tid,String type) {
|
|
|
141
|
+ public ResponseEntity<PageInfo<TTimingTaskHistory>> getDetectionHistory(Integer pageNum, Integer pageSize, String vcfcode, String time, String tid,String type,String orgId) {
|
|
140
|
142
|
List<TTimingTaskHistory> list = null;
|
|
141
|
143
|
try {
|
|
142
|
144
|
if (null != pageNum && null != pageSize) {
|
|
143
|
145
|
PageHelper.startPage(pageNum, pageSize);
|
|
144
|
146
|
}
|
|
145
|
|
- list = tTimingTaskService.getDetectionHistory(vcfcode,time,tid,type);
|
|
|
147
|
+ list = tTimingTaskService.getDetectionHistory(vcfcode,time,tid,type,orgId);
|
|
146
|
148
|
} catch (Exception e) {
|
|
147
|
149
|
e.printStackTrace();
|
|
148
|
150
|
return ResponseEntity.failed(e.getMessage());
|