| | |
| | | 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("工序-分页查询") |