|
@@ -73,7 +73,9 @@ public class PatrolInspectionAttendanceServiceImpl extends AbstractCrudService<P
|
|
|
for (PatrolInspectionAttendance attendance : attendancePage.getRecords()) {
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
map.put("id", attendance.getId());
|
|
|
- map.put("deptName", getDeptName(attendance.getDeptId()));
|
|
|
+ Long deptId = attendance.getDeptId();
|
|
|
+ String deptName = deptId != null ? getDeptName(deptId) : "";
|
|
|
+ map.put("deptName", deptName);
|
|
|
map.put("tenantId", attendance.getTenantId());
|
|
|
map.put("operator", attendance.getOperator());
|
|
|
map.put("operatorId", attendance.getOperatorId());
|