Merge branch 'develop-business-css' of http://121.37.111.42:3000/ThbTech/JavaProjectRepo into develop-business-css

This commit is contained in:
limengnan 2026-01-15 17:27:30 +08:00
commit 10900e3e52
2 changed files with 7 additions and 6 deletions

View File

@ -53,10 +53,8 @@ public class CriticalData implements Serializable {
@TableField("keff_value") @TableField("keff_value")
private BigDecimal keffValue; private BigDecimal keffValue;
/** 属性状态 - JSON格式 */
@TableField("attr_state")
private String attrState;
/** 创建时间 */ /** 创建时间 */
@TableField("created_at") @TableField("created_at")
private LocalDateTime createdAt; private LocalDateTime createdAt;

View File

@ -1113,16 +1113,19 @@ public class ProjectServiceImpl
List<Project> projects = this.list(new QueryWrapper<Project>().eq("project_id", projectId)); List<Project> projects = this.list(new QueryWrapper<Project>().eq("project_id", projectId));
List<Device> devices = deviceService.list(new QueryWrapper<Device>().eq("project_id", projectId)); List<Device> devices = deviceService.list(new QueryWrapper<Device>().eq("project_id", projectId));
List<Material> materials = materialService.list(new QueryWrapper<Material>().eq("project_id", projectId)); List<Material> materials = materialService.list(new QueryWrapper<Material>().eq("project_id", projectId));
List<Scenario> scenarios = scenarioService.list(new QueryWrapper<Scenario>().eq("project_id", projectId)); List<Scenario> scenarios = scenarioService.list(new QueryWrapper<Scenario>().eq("project_id", projectId)
.orderByDesc("created_at"));
List<String> scenarioIds = scenarios.stream().map(Scenario::getScenarioId).toList(); List<String> scenarioIds = scenarios.stream().map(Scenario::getScenarioId).toList();
List<Event> events = scenarioIds.isEmpty() List<Event> events = scenarioIds.isEmpty()
? List.of() ? List.of()
: eventService.list(new QueryWrapper<Event>() : eventService.list(new QueryWrapper<Event>()
.select("event_id","scenario_id","device_id","material_id","attr_changes","trigger_time","created_at","modifier") .select("event_id","scenario_id","device_id","material_id","attr_changes","trigger_time","created_at","modifier")
.in("scenario_id", scenarioIds)); .in("scenario_id", scenarioIds)
.orderByDesc("created_at"));
List<ScenarioResult> results = scenarioIds.isEmpty() List<ScenarioResult> results = scenarioIds.isEmpty()
? List.of() ? List.of()
: scenarioResultService.list(new QueryWrapper<ScenarioResult>().in("scenario_id", scenarioIds)); : scenarioResultService.list(new QueryWrapper<ScenarioResult>().in("scenario_id", scenarioIds)
.orderByAsc("step"));
Sheet s1 = wb.createSheet("projects"); Sheet s1 = wb.createSheet("projects");
String[] h1 = {"project_id","code","name","description","created_at","updated_at","modifier"}; String[] h1 = {"project_id","code","name","description","created_at","updated_at","modifier"};