| | |
| | | @ApiOperation(value = "新增", notes = "传入information") |
| | | public R save(@Valid @RequestBody Information information) { |
| | | Dept dept = new Dept(); |
| | | String departmentid = information.getDepartmentid(); |
| | | Long l = Long.parseLong(departmentid); |
| | | //String departmentid = information.getDepartmentid(); |
| | | //Long l = Long.parseLong(departmentid); |
| | | //自招保安公司 |
| | | if (information.getStats().equals("0")) { |
| | | Long i = 1420222768149966850L; |
| | |
| | | dept.setAncestors("0,1420222961377357825"); |
| | | dept.setDeptCategory(1); |
| | | } |
| | | dept.setId(l); |
| | | //dept.setId(l); |
| | | if (iDeptService.submit(dept)) { |
| | | CacheUtil.clear(SYS_CACHE); |
| | | // 返回懒加载树更新节点所需字段 |
| | |
| | | * 保安员统计 |
| | | */ |
| | | @PostMapping("/selectLi") |
| | | public R selectLi(String jurisdiction, String deptid) { |
| | | List<Map<Object, Object>> list = informationService.selectLi(jurisdiction, deptid); |
| | | public R selectLi(String jurisdiction, String deptid,Integer current,Integer size) { |
| | | List<Map<Object, Object>> list = informationService.selectLi(jurisdiction, deptid,current,size); |
| | | return R.data(list); |
| | | } |
| | | |
| | |
| | | * 业务统计情况 |
| | | */ |
| | | @PostMapping("/selectYw") |
| | | public R selectYw(String jurisdiction, String deptid) { |
| | | List<Map<Object, Object>> list = informationService.selectYw(jurisdiction, deptid); |
| | | public R selectYw(String jurisdiction, String deptid,Integer current,Integer size) { |
| | | List<Map<Object, Object>> list = informationService.selectYw(jurisdiction, deptid,current,size); |
| | | return R.data(list); |
| | | } |
| | | |