| | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.bean.BeanUtils; |
| | | import com.ruoyi.system.dto.DeptDTO; |
| | | import com.ruoyi.system.dto.ProjectDeptDTO; |
| | | import com.ruoyi.system.model.TDept; |
| | | import com.ruoyi.system.model.TProjectDept; |
| | | import com.ruoyi.system.query.DeptListQuery; |
| | | import com.ruoyi.system.query.ProjectDeptListQuery; |
| | | import com.ruoyi.system.service.TDeptService; |
| | | import com.ruoyi.system.service.TProjectDeptService; |
| | | import com.ruoyi.system.vo.system.DeptListVO; |
| | | import com.ruoyi.system.vo.system.ProjectDeptListNoLimitVO; |
| | | import com.ruoyi.system.vo.system.ProjectDeptListVO; |
| | | import io.swagger.annotations.Api; |
| | |
| | | |
| | | @ApiOperation(value = "项目部分页列表") |
| | | @PostMapping(value = "/pageList") |
| | | public R<PageInfo<ProjectDeptListVO>> pageList(@RequestBody ProjectDeptListQuery query) { |
| | | public R<PageInfo<ProjectDeptListVO>> pageList(@RequestBody DeptListQuery query) { |
| | | return R.ok(deptService.pageList(query)); |
| | | } |
| | | @ApiOperation(value = "选择项目部/片区不分页列表") |
| | |
| | | } |
| | | @Log(title = "启用/禁用项目部", businessType = BusinessType.OTHER) |
| | | @ApiOperation(value = "启用/禁用项目部") |
| | | @DeleteMapping(value = "/editStatus") |
| | | @GetMapping(value = "/editStatus") |
| | | public R<Boolean> editStatus(@RequestParam String id) { |
| | | TProjectDept byId = deptService.getById(id); |
| | | if (byId.getStatus()==1){ |
| | |
| | | deptService.updateById(byId); |
| | | return R.ok(); |
| | | } |
| | | @ApiOperation(value = "详情项目部") |
| | | @GetMapping(value = "/detail") |
| | | public R<TProjectDept> detail(@RequestParam String id) { |
| | | |
| | | return R.ok(deptService.getById(id)); |
| | | } |
| | | } |
| | | |