| | |
| | | import org.jeecg.modules.dnc.ucenter.Department; |
| | | import org.jeecg.modules.dnc.ucenter.UserDepartExt; |
| | | import org.jeecg.modules.dnc.utils.ValidateUtil; |
| | | import org.jeecg.modules.system.entity.MdcProduction; |
| | | import org.jeecg.modules.system.entity.SysUser; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | @AutoLog(value = "产品表-获取已分配的部门") |
| | | @ApiOperation(value = "产品表-获取已分配的部门", notes = "产品表-获取已分配的部门") |
| | | @GetMapping("/get/perm/depart/{nodeType}/{paramId}") |
| | | public QueryListResponseResult<Department> getDepartPermsList(@PathVariable("nodeType") Integer nodeType, @PathVariable("paramId") String paramId) { |
| | | List<Department> list = productInfoService.getDepartPermsList(nodeType, paramId); |
| | | public QueryListResponseResult<MdcProduction> getDepartPermsList(@PathVariable("nodeType") Integer nodeType, @PathVariable("paramId") String paramId) { |
| | | List<MdcProduction> list = productInfoService.getDepartPermsList(nodeType, paramId); |
| | | if(list == null) |
| | | list = Collections.emptyList(); |
| | | return new QueryListResponseResult(CommonCode.SUCCESS, list); |
| | |
| | | @AutoLog(value = "产品表-获取未分配的部门") |
| | | @ApiOperation(value = "产品表-获取未分配的部门", notes = "产品表-获取未分配的部门") |
| | | @GetMapping("/get/non/perm/depart/{nodeType}/{paramId}") |
| | | public QueryListResponseResult<Department> getDepartNonPermsList(@PathVariable("nodeType") Integer nodeType, @PathVariable("paramId") String paramId) { |
| | | List<Department> list = productInfoService.getDepartNonPermsList(nodeType, paramId); |
| | | public QueryListResponseResult<MdcProduction> getDepartNonPermsList(@PathVariable("nodeType") Integer nodeType, @PathVariable("paramId") String paramId) { |
| | | List<MdcProduction> list = productInfoService.getDepartNonPermsList(nodeType, paramId); |
| | | if(list == null) |
| | | list = Collections.emptyList(); |
| | | return new QueryListResponseResult(CommonCode.SUCCESS, list); |