Browse Source

1、设置部门名称时判空

dongpo 7 months ago
parent
commit
5e6adc35d8

+ 0 - 1
yudao-module-customer/yudao-module-customer-biz/src/main/java/cn/iocoder/yudao/module/customer/service/businessopportunity/CustomerBusinessOpportunityServiceImpl.java

@@ -171,7 +171,6 @@ public class CustomerBusinessOpportunityServiceImpl implements CustomerBusinessO
         // 部门
         if (opportunityDO.getDeptId() != null) {
             DeptRespDTO dept = deptApi.getDept(opportunityDO.getDeptId());
-            respVO.setDeptName(dept.getName());
             if (dept != null && StringUtils.isNotBlank(dept.getName())) {
                 respVO.setDeptName(dept.getName());
             }

+ 0 - 1
yudao-module-customer/yudao-module-customer-biz/src/main/java/cn/iocoder/yudao/module/customer/service/info/CustomerInfoServiceImpl.java

@@ -168,7 +168,6 @@ public class CustomerInfoServiceImpl implements CustomerInfoService {
         // 部门
         if (infoDO.getDeptId() != null) {
             DeptRespDTO dept = deptApi.getDept(infoDO.getDeptId());
-            respVO.setDeptName(dept.getName());
             if (dept != null && StringUtils.isNotBlank(dept.getName())) {
                 respVO.setDeptName(dept.getName());
             }

+ 0 - 1
yudao-module-personnel/yudao-module-attendance-biz/src/main/java/cn/iocoder/yudao/module/attendance/controller/admin/business/AttendanceBusinessController.java

@@ -82,7 +82,6 @@ public class AttendanceBusinessController {
         // 部门
         if (respVO.getDeptId() != null) {
             DeptRespDTO dept = deptApi.getDept(respVO.getDeptId());
-            respVO.setDeptName(dept.getName());
             if (dept != null && StringUtils.isNotBlank(dept.getName())) {
                 respVO.setDeptName(dept.getName());
             }

+ 0 - 1
yudao-module-personnel/yudao-module-attendance-biz/src/main/java/cn/iocoder/yudao/module/attendance/controller/admin/leave/AttendanceLeaveController.java

@@ -90,7 +90,6 @@ public class AttendanceLeaveController {
         // 部门
         if (respVO.getDeptId() != null) {
             DeptRespDTO dept = deptApi.getDept(respVO.getDeptId());
-            respVO.setDeptName(dept.getName());
             if (dept != null && StringUtils.isNotBlank(dept.getName())) {
                 respVO.setDeptName(dept.getName());
             }

+ 0 - 1
yudao-module-personnel/yudao-module-attendance-biz/src/main/java/cn/iocoder/yudao/module/attendance/controller/admin/out/AttendanceOutController.java

@@ -82,7 +82,6 @@ public class AttendanceOutController {
         // 部门
         if (respVO.getDeptId() != null) {
             DeptRespDTO dept = deptApi.getDept(respVO.getDeptId());
-            respVO.setDeptName(dept.getName());
             if (dept != null && StringUtils.isNotBlank(dept.getName())) {
                 respVO.setDeptName(dept.getName());
             }

+ 0 - 1
yudao-module-personnel/yudao-module-relations-biz/src/main/java/cn/iocoder/yudao/module/relations/service/conversion/RelationsConversionServiceImpl.java

@@ -152,7 +152,6 @@ public class RelationsConversionServiceImpl implements RelationsConversionServic
         // 部门
         if (conversionDO.getDeptId() != null) {
             DeptRespDTO dept = deptApi.getDept(conversionDO.getDeptId());
-            respVO.setDeptName(dept.getName());
             if (dept != null && StringUtils.isNotBlank(dept.getName())) {
                 respVO.setDeptName(dept.getName());
             }

+ 0 - 1
yudao-module-personnel/yudao-module-relations-biz/src/main/java/cn/iocoder/yudao/module/relations/service/entry/RelationsEntryServiceImpl.java

@@ -160,7 +160,6 @@ public class RelationsEntryServiceImpl implements RelationsEntryService {
         // 部门
         if (entryDO.getDeptId() != null) {
             DeptRespDTO dept = deptApi.getDept(entryDO.getDeptId());
-            respVO.setDeptName(dept.getName());
             if (dept != null && StringUtils.isNotBlank(dept.getName())) {
                 respVO.setDeptName(dept.getName());
             }

+ 0 - 1
yudao-module-personnel/yudao-module-relations-biz/src/main/java/cn/iocoder/yudao/module/relations/service/renew/RelationsRenewServiceImpl.java

@@ -150,7 +150,6 @@ public class RelationsRenewServiceImpl implements RelationsRenewService {
         // 部门
         if (renewDO.getDeptId() != null) {
             DeptRespDTO dept = deptApi.getDept(renewDO.getDeptId());
-            respVO.setDeptName(dept.getName());
             if (dept != null && StringUtils.isNotBlank(dept.getName())) {
                 respVO.setDeptName(dept.getName());
             }

+ 0 - 1
yudao-module-personnel/yudao-module-relations-biz/src/main/java/cn/iocoder/yudao/module/relations/service/turnover/RelationsTurnoverServiceImpl.java

@@ -158,7 +158,6 @@ public class RelationsTurnoverServiceImpl implements RelationsTurnoverService {
         // 部门
         if (turnoverDO.getDeptId() != null) {
             DeptRespDTO dept = deptApi.getDept(turnoverDO.getDeptId());
-            respVO.setDeptName(dept.getName());
             if (dept != null && StringUtils.isNotBlank(dept.getName())) {
                 respVO.setDeptName(dept.getName());
             }