|
@@ -74,7 +74,7 @@ public class PatrolInspectionAttendanceServiceImpl extends AbstractCrudService<P
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
map.put("id", attendance.getId());
|
|
|
Long deptId = attendance.getDeptId();
|
|
|
- String deptName = deptId != null ? getDeptName(deptId) : "";
|
|
|
+ String deptName = deptId != null ? getDeptName(Math.toIntExact(deptId)) : "";
|
|
|
map.put("deptName", deptName);
|
|
|
map.put("tenantId", attendance.getTenantId());
|
|
|
map.put("operator", attendance.getOperator());
|
|
@@ -123,7 +123,7 @@ public class PatrolInspectionAttendanceServiceImpl extends AbstractCrudService<P
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
- public String getDeptName(Long id) {
|
|
|
+ public String getDeptName(Integer id) {
|
|
|
String name = "";
|
|
|
List<Map<String, Object>> deptList = remoteDeptService.getDeptList(SecurityUtils.getTenantId());
|
|
|
for (int i = 0; i < deptList.size(); i++) {
|