Sfoglia il codice sorgente

bug通用审批根据id获取详情查询部门名称

dongpo 1 anno fa
parent
commit
fad1aca029

+ 6 - 0
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/service/oa/universal/OaUniversalServiceImpl.java

@@ -397,6 +397,12 @@ public class OaUniversalServiceImpl implements OaUniversalService {
     public OaUniversalRespVO getOaUniversal(Long id) {
         OaUniversalDO oaUniversalDO = oaUniversalMapper.selectById(id);
         OaUniversalRespVO oaUniversalRespVO = BeanUtils.toBean(oaUniversalDO, OaUniversalRespVO.class);
+        if (oaUniversalDO.getDeptId() != null) {
+            DeptRespDTO dept = deptApi.getDept(oaUniversalDO.getDeptId());
+            if (dept != null) {
+                oaUniversalRespVO.setDeptName(dept.getName());
+            }
+        }
 
         // 附件列表
         List<FileDTO> fileList = fileApi.getFileDTOListByBiz(oaUniversalDO.getUniversalId());

+ 1 - 1
yudao-server/src/main/resources/application-local.yaml

@@ -173,7 +173,7 @@ logging:
     cn.iocoder.yudao.module.crm.dal.mysql: debug
     cn.iocoder.yudao.module.erp.dal.mysql: debug
     org.springframework.context.support.PostProcessorRegistrationDelegate: ERROR # TODO 芋艿:先禁用,Spring Boot 3.X 存在部分错误的 WARN 提示
-#    org.flowable: debug
+    org.flowable: debug
 
 debug: false