|
|
@@ -44,8 +44,10 @@ public class AccidentNoticeService { |
|
|
|
*/ |
|
|
|
public JsonResult notice() { |
|
|
|
//当前登录用户 |
|
|
|
String tenantId = CurrentUserUtil.getTenantId(); |
|
|
|
String userId = CurrentUserUtil.getUserId(); |
|
|
|
// String tenantId = CurrentUserUtil.getTenantId(); |
|
|
|
// String userId = CurrentUserUtil.getUserId(); |
|
|
|
String userId = "e1df76387f28b93a523c97a3e0cf27f9"; |
|
|
|
String tenantId = "0"; |
|
|
|
if(StringUtils.isEmpty(userId)){ |
|
|
|
throw new ServiceException("当前用户id为空"); |
|
|
|
} |
|
|
@@ -83,7 +85,11 @@ public class AccidentNoticeService { |
|
|
|
} |
|
|
|
List<String> accidentIdList = oldList.stream().map(o -> o.getId()).collect(Collectors.toList()); |
|
|
|
newList = accidentMapper.selectList(Wrappers.<Accident>lambdaQuery() |
|
|
|
.notIn(Accident::getId, accidentIdList)); |
|
|
|
.notIn(Accident::getId, accidentIdList) |
|
|
|
.eq(Accident::getTenantId, tenantId) |
|
|
|
.eq(Accident::getStatus, AccidentStatusEnum.UNTREATED.getCode()) |
|
|
|
.eq(Accident::getFlag, FlagEnum.INSPECTION_ACCIDENT.getCode()) |
|
|
|
.eq(Accident::getMark, MarkEnum.VALID.getCode())); |
|
|
|
|
|
|
|
//对应list集合排序 |
|
|
|
newList = newList.stream().sorted(Comparator.comparing(Accident::getCreateTime)).collect(Collectors.toList()); |