|
|
@@ -70,6 +70,7 @@ public class SysGeographyPositionServiceImpl extends ServiceImpl<SysGeographyPos
|
|
|
for (SysGeographyPositionInfoVo sysGeographyPositionInfoVo : sysGeographyPositionList) {
|
|
|
SysUser sysUser = sysUserService.getById(sysGeographyPositionInfoVo.getId());
|
|
|
if (sysUser == null) continue;
|
|
|
+ sysGeographyPositionInfoVo.setLeaderName(sysUser.getLeaderName());
|
|
|
SysDept sysDept = sysDeptMapper.selectOne(new LambdaQueryWrapper<SysDept>()
|
|
|
.eq(SysDept::getId, sysUser.getDeptId()).eq(SysDept::getDelFlag, 0));
|
|
|
if (sysDept == null) continue;
|
|
|
@@ -273,8 +274,11 @@ public class SysGeographyPositionServiceImpl extends ServiceImpl<SysGeographyPos
|
|
|
appGeographyHistoryInfoVo.setList(geographyPosition);
|
|
|
|
|
|
List<SysGeographyPositionRecord> sysGeographyPositionRecords =sysGeographyPositionRecordMapper.getGeographyPositionRecord(startTime,source);
|
|
|
+ extracted(sysGeographyPositionRecords);
|
|
|
System.out.println("********************" + sysGeographyPositionRecords.size());
|
|
|
appGeographyHistoryInfoVo.setPositionRecordList(sysGeographyPositionRecords);
|
|
|
+
|
|
|
+
|
|
|
}else {
|
|
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
startTime = startTime + " 00:00:01";
|
|
|
@@ -301,19 +305,7 @@ public class SysGeographyPositionServiceImpl extends ServiceImpl<SysGeographyPos
|
|
|
appGeographyHistoryInfoVo.setList(geographyPosition);
|
|
|
|
|
|
List<SysGeographyPositionRecord> sysGeographyPositionRecords =sysGeographyPositionRecordMapper.getGeographyPositionHistory(startTime,endTime,source);
|
|
|
- for (SysGeographyPositionRecord sysGeographyPositionRecord : sysGeographyPositionRecords) {
|
|
|
-
|
|
|
- SysUser sysUser = sysUserService.getById(sysGeographyPositionRecord.getUserId());
|
|
|
- if (sysUser == null) continue;
|
|
|
- SysDept sysDept = sysDeptMapper.selectOne(new LambdaQueryWrapper<SysDept>()
|
|
|
- .eq(SysDept::getId, sysUser.getDeptId()).eq(SysDept::getDelFlag, 0));
|
|
|
- if (sysDept == null) continue;
|
|
|
- sysGeographyPositionRecord.setDeptName(sysDept.getName());
|
|
|
-
|
|
|
- SysGeographyPosition sysGeographyPosition = sysGeographyPositionMapper.selectOne(new LambdaQueryWrapper<SysGeographyPosition>()
|
|
|
- .eq(SysGeographyPosition::getId,sysGeographyPositionRecord.getUserId()));
|
|
|
- sysGeographyPositionRecord.setLeaderName(sysGeographyPosition.getLeaderName());
|
|
|
- }
|
|
|
+ extracted(sysGeographyPositionRecords);
|
|
|
System.out.println("********************" + sysGeographyPositionRecords.size());
|
|
|
appGeographyHistoryInfoVo.setPositionRecordList(sysGeographyPositionRecords);
|
|
|
|
|
|
@@ -322,6 +314,20 @@ public class SysGeographyPositionServiceImpl extends ServiceImpl<SysGeographyPos
|
|
|
return appGeographyHistoryInfoVo;
|
|
|
}
|
|
|
|
|
|
+ private void extracted(List<SysGeographyPositionRecord> sysGeographyPositionRecords) {
|
|
|
+ for (SysGeographyPositionRecord sysGeographyPositionRecord : sysGeographyPositionRecords) {
|
|
|
+
|
|
|
+ SysUser sysUser = sysUserService.getById(sysGeographyPositionRecord.getUserId());
|
|
|
+ if (sysUser == null) continue;
|
|
|
+ sysGeographyPositionRecord.setLeaderName(sysUser.getLeaderName());
|
|
|
+ SysDept sysDept = sysDeptMapper.selectById(sysUser.getDeptId());
|
|
|
+ if (sysDept == null) continue;
|
|
|
+ sysGeographyPositionRecord.setDeptName(sysDept.getName());
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public List<SysGeographyPosition> getOnlinePeople() {
|
|
|
|