| | |
| | | } |
| | | |
| | | /** |
| | | * 导办事物列表 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation("根据部门id获取导办事物列表") |
| | | @GetMapping("/department/getList") |
| | | @Authorization |
| | | public TableDataInfo<TransactionEvent> selectConfigList(@RequestParam(value = "DepartmentId",required = false) String DepartmentId, |
| | | @CurrentUser SysUser sysUser) |
| | | { |
| | | List<String> ids=iOrganizationChartService.getIds(sysUser.getDepartmentId()); |
| | | List<TransactionEvent> list = iTransactionEventService.selectConfigList(null,null,ids); |
| | | int num=iTransactionEventService.countNum(null,null,ids); |
| | | return getDataTable(list,num); |
| | | } |
| | | |
| | | /** |
| | | * 导办事物列表(不分页) |
| | | * @param |
| | | * @return |
| | |
| | | Assert.notNull(Id, "Id 不能为空"); |
| | | int i = iTransactionEventService.deleteConfigById(Id); |
| | | if (i>0) |
| | | return toAjax(iTransactionEventService.deleteConfigById(Id)); |
| | | return ResultData.success("删除成功"); |
| | | else |
| | | return ResultData.error("删除失败可能该工单有单据"); |
| | | } |
| | |
| | | { |
| | | boolean a = false; |
| | | String fileName = file.getOriginalFilename(); |
| | | return null; |
| | | |
| | | Integer b = iTransactionEventService.batchImport(fileName, file); |
| | | if (b == 3) {// |
| | | return ResultData.success("全部导入成功");//全部导入成功 |
| | | } else if (b == 2) { |
| | | return ResultData.success("部分导入成功");//部分导入成功 |
| | | } else if (b == 0) { |
| | | return ResultData.error("部分失败");//导入失败 |
| | | } |
| | | return ResultData.error("部分失败");//导入失败 |
| | | } |
| | | |
| | | |