|
@@ -13,9 +13,6 @@ import com.persagy.fm.department.service.IDepartmentService;
|
|
|
import com.persagy.fm.department.utils.DepDataUtil;
|
|
|
import com.persagy.fm.depproject.service.IDepProjectService;
|
|
|
import com.persagy.fm.saas.project.model.vo.ProjectTreeItemVO;
|
|
|
-import com.persagy.fm.translate.model.Trans;
|
|
|
-import com.persagy.fm.translate.model.TransType;
|
|
|
-import com.persagy.fm.translate.model.Transes;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@@ -62,14 +59,14 @@ public class DepartmentController {
|
|
|
@ApiOperation(value = "部门详情")
|
|
|
@PostMapping("/get")
|
|
|
// TODO: 2021/3/24 使用翻译器
|
|
|
- @Transes({
|
|
|
- @Trans(source = "com.persagy.fm.person.service.IPersonTransBatchHandler",
|
|
|
- type = TransType.SERVICE, result = "name", batch = true,
|
|
|
- condition = "id", parameter = "managers", target = "managersShowName"),
|
|
|
- @Trans(source = "com.persagy.fm.person.service.IPersonTransBatchHandler",
|
|
|
- type = TransType.SERVICE, result = "name", batch = true,
|
|
|
- condition = "id", parameter = "projectIds", target = "projectsShowName")
|
|
|
- })
|
|
|
+// @Transes({
|
|
|
+// @Trans(source = "com.persagy.fm.person.service.IPersonTransBatchHandler",
|
|
|
+// type = TransType.SERVICE, result = "name", batch = true,
|
|
|
+// condition = "id", parameter = "managers", target = "managersShowName"),
|
|
|
+// @Trans(source = "com.persagy.fm.person.service.IPersonTransBatchHandler",
|
|
|
+// type = TransType.SERVICE, result = "name", batch = true,
|
|
|
+// condition = "id", parameter = "projectIds", target = "projectsShowName")
|
|
|
+// })
|
|
|
public FmResponseItem<ResponseDepartmentItemVO> queryDepartmentDetail(
|
|
|
@Valid @RequestBody QueryDepartmentDetailDTO queryDepartmentDetailDTO) {
|
|
|
Department department = departmentService.queryDepartmentDetail(queryDepartmentDetailDTO.getId());
|