| | |
| | | Assert.notNull(pageSize, "pageSize 不能为空"); |
| | | Page<TransactionEvent> pageParam = new Page<>(pageNum,pageSize); |
| | | List<TransactionEvent> list; |
| | | if (departmentId!=null){ |
| | | int num; |
| | | if (departmentId!=null&&departmentId.length()>0){ |
| | | List<String> ids=iOrganizationChartService.getDepartmentId(departmentId); |
| | | list = iTransactionEventService.selectConfigList(pageParam,pageSize,keyword, |
| | | classifyGrade,ids); |
| | | num=iTransactionEventService.countNum(keyword,classifyGrade,ids); |
| | | |
| | | }else { |
| | | list = iTransactionEventService.selectConfigList(pageParam,pageSize,keyword, |
| | | classifyGrade,null); |
| | | num=iTransactionEventService.countNum(keyword,classifyGrade,null); |
| | | } |
| | | int num=iTransactionEventService.countNum(keyword,classifyGrade,null); |
| | | return getDataTable(list,num); |
| | | } |
| | | |
| | |
| | | public TableDataInfo<TransactionEvent> selectConfigList(@RequestBody List<String> DepartmentId, |
| | | @CurrentUser SysUser sysUser) |
| | | { |
| | | // List<String> ids=iOrganizationChartService.getIds(DepartmentId); |
| | | if(DepartmentId==null||DepartmentId.size()<1) |
| | | { |
| | | DepartmentId=null; |
| | | } |
| | | List<TransactionEvent> list = iTransactionEventService.selectConfigList(null,null,DepartmentId); |
| | | int num=iTransactionEventService.countNum(null,null,DepartmentId); |
| | | return getDataTable(list,num); |
| | |
| | | @GetMapping("/queryByClassifyIdConfigList") |
| | | public TableDataInfo queryByClassifyIdConfigList(@RequestParam(value = "pageNum",required = false) Integer pageNum, |
| | | @RequestParam(value = "pageSize",required = false) Integer pageSize, |
| | | @RequestParam("classifyId") String classifyId, |
| | | @RequestParam(value = "classifyId",required = false) String classifyId, |
| | | @RequestParam(required = false,name="departmentId") Integer departmentId){ |
| | | Assert.notNull(pageNum, "pageNum 不能为空"); |
| | | Assert.notNull(pageSize, "pageSize 不能为空"); |
| | |
| | | { |
| | | boolean a = false; |
| | | String fileName = file.getOriginalFilename(); |
| | | Integer b = iTransactionEventService.batchImport(fileName, file); |
| | | Integer b = iTransactionEventService.batchImport(fileName, file); |
| | | if (b == 3) {// |
| | | return ResultData.success("全部导入成功");//全部导入成功 |
| | | } else if (b == 2) { |