|
@@ -14,6 +14,8 @@ import com.persagy.fm.department.service.IDepartmentService;
|
|
import com.persagy.fm.department.utils.DepDataUtil;
|
|
import com.persagy.fm.department.utils.DepDataUtil;
|
|
import com.persagy.fm.depproject.service.IDepProjectService;
|
|
import com.persagy.fm.depproject.service.IDepProjectService;
|
|
import com.persagy.fm.saas.project.model.vo.ProjectTreeItemVO;
|
|
import com.persagy.fm.saas.project.model.vo.ProjectTreeItemVO;
|
|
|
|
+import com.persagy.fm.translate.model.Trans;
|
|
|
|
+import com.persagy.fm.translate.model.TransType;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@@ -68,6 +70,7 @@ public class DepartmentController {
|
|
// type = TransType.SERVICE, result = "name", batch = true,
|
|
// type = TransType.SERVICE, result = "name", batch = true,
|
|
// condition = "id", parameter = "projectIds", target = "projectsShowName")
|
|
// condition = "id", parameter = "projectIds", target = "projectsShowName")
|
|
// })
|
|
// })
|
|
|
|
+ @Trans(type = TransType.SERVICE, batch = true, source = "personNameTranslator", parameter = "managers", target = "managerShowName")
|
|
public CommonResult<ResponseDepartmentItemVO> queryDepartmentDetail(
|
|
public CommonResult<ResponseDepartmentItemVO> queryDepartmentDetail(
|
|
@Valid @RequestBody QueryDepartmentDetailDTO queryDepartmentDetailDTO) {
|
|
@Valid @RequestBody QueryDepartmentDetailDTO queryDepartmentDetailDTO) {
|
|
Department department = departmentService.queryDepartmentDetail(queryDepartmentDetailDTO.getId());
|
|
Department department = departmentService.queryDepartmentDetail(queryDepartmentDetailDTO.getId());
|