| | |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.oA.pojo.OaProject; |
| | | import com.ruoyi.production.dto.ProductProcessDto; |
| | | import com.ruoyi.production.dto.SysDeptAndUserDto; |
| | | import com.ruoyi.production.pojo.ProductProcess; |
| | | import com.ruoyi.production.service.impl.ProductProcessServiceImpl; |
| | | import io.swagger.annotations.Api; |
| | |
| | | @Autowired |
| | | private ProductProcessServiceImpl productProcessService; |
| | | |
| | | /** |
| | | * 获取部门用户树 |
| | | */ |
| | | @GetMapping("/listDeptUserTree") |
| | | @ApiOperation("获取部门用户树") |
| | | public AjaxResult listDeptUserTree() { |
| | | List<SysDeptAndUserDto> list = productProcessService.listDeptUserTree(); |
| | | if (CollectionUtils.isEmpty(list)) { |
| | | return AjaxResult.warn("暂无数据"); |
| | | } |
| | | return AjaxResult.success(list); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 分页查询工序 |
| | | * @param page |
| | | * @param productProcessDto |
| | | * @return |
| | | */ |
| | | @GetMapping("/listPage") |
| | | @Log(title = "工序-分页查询", businessType = BusinessType.OTHER) |
| | | @ApiOperation("工序-分页查询") |
| | |
| | | @DeleteMapping("/batchDelete") |
| | | @Log(title = "删除", businessType = BusinessType.DELETE) |
| | | public AjaxResult batchDelete(@RequestBody List<Integer> ids) { |
| | | if(CollectionUtils.isEmpty(ids)){ |
| | | return AjaxResult.error("请选择至少一条数据"); |
| | | } |
| | | return AjaxResult.success(productProcessService.removeBatchByIds(ids)); |
| | | return AjaxResult.success(productProcessService.batchDelete(ids)); |
| | | } |
| | | |
| | | @ApiOperation("查询所有工序") |