|
|
|
|
@ -11,6 +11,7 @@ import com.biutag.supervision.constants.AppConstants;
|
|
|
|
|
import com.biutag.supervision.constants.enums.DeleteStatusEnum; |
|
|
|
|
import com.biutag.supervision.constants.enums.RoleCodeEnum; |
|
|
|
|
import com.biutag.supervision.pojo.Result; |
|
|
|
|
import com.biutag.supervision.pojo.entity.SupDepart; |
|
|
|
|
import com.biutag.supervision.pojo.entity.report.ReportFlow; |
|
|
|
|
import com.biutag.supervision.pojo.entity.report.ReportProject; |
|
|
|
|
import com.biutag.supervision.pojo.entity.warning.WarningContent; |
|
|
|
|
@ -34,7 +35,6 @@ import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
import java.time.LocalDateTime; |
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
import java.util.Comparator; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.function.Function; |
|
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
@ -107,10 +107,23 @@ public class WarningController {
|
|
|
|
|
.isNotNull(WarningContent::getRemark)); |
|
|
|
|
s.setWarningContent(counts); |
|
|
|
|
} |
|
|
|
|
SupDepart auditById = departService.getById(s.getAuditUnitId()); |
|
|
|
|
SupDepart projectById = departService.getById(s.getProjectUnitId()); |
|
|
|
|
if (3==(auditById.getLevel())){ |
|
|
|
|
SupDepart byPId = departService.getById(auditById.getPid()); |
|
|
|
|
s.setAuditUnitStr(byPId.getShortName() +"/" + auditById.getShortName()); |
|
|
|
|
}else { |
|
|
|
|
s.setAuditUnitStr(auditById.getShortName() +"/"); |
|
|
|
|
} |
|
|
|
|
if (3==projectById.getLevel()){ |
|
|
|
|
SupDepart byPId = departService.getById(projectById.getPid()); |
|
|
|
|
s.setProjectUnitStr(byPId.getShortName() +"/" + projectById.getShortName()); |
|
|
|
|
}else { |
|
|
|
|
s.setProjectUnitStr(projectById.getShortName() +"/"); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
page.setRecords(entryWindowVos); |
|
|
|
|
return Result.success(page); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* 获取最新的预警记录 |
|
|
|
|
|