|
|
@@ -49,13 +49,15 @@ public class AerationTaskController {
|
|
49
|
49
|
@ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
|
|
50
|
50
|
@ApiImplicitParam(name = "state", value = "通风状态", paramType = "query")
|
|
51
|
51
|
})
|
|
52
|
|
- public ResponseEntity<PageInfo<TJobApplication>> getList(Integer pageNum, Integer pageSize, TJobApplication tJobApplication , Integer approvalState,Integer userId) {
|
|
|
52
|
+ public ResponseEntity<PageInfo<TJobApplication>> getList(Integer pageNum, Integer pageSize, TJobApplication tJobApplication , Integer approvalState,Integer userId,Integer orgId) {
|
|
53
|
53
|
List<TJobApplication> list = null;
|
|
54
|
54
|
try {
|
|
55
|
55
|
if (null != pageNum && null != pageSize) {
|
|
56
|
56
|
PageHelper.startPage(pageNum, pageSize);
|
|
57
|
57
|
}
|
|
58
|
|
- list = aerationTaskService.getList(tJobApplication,approvalState,userId);
|
|
|
58
|
+ if (orgId != null) {
|
|
|
59
|
+ list = aerationTaskService.getList(tJobApplication,approvalState,userId,orgId);
|
|
|
60
|
+ }
|
|
59
|
61
|
} catch (Exception e) {
|
|
60
|
62
|
e.printStackTrace();
|
|
61
|
63
|
ResponseEntity.failed(e.getMessage());
|