From 0d1080affa1ceb46c236b41227677c40e23a93d7 Mon Sep 17 00:00:00 2001 From: yangzhe123 <2824096059@qq.com> Date: Mon, 8 Dec 2025 14:11:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E6=AA=80=E6=A0=91=E5=B2=97?= =?UTF-8?q?=E9=A2=84=E8=AD=A6=E8=A7=84=E5=88=99=E9=85=8D=E7=BD=AE=E5=AE=9A?= =?UTF-8?q?=E6=97=B6=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../project/hsz/model/RiceSupportBalance.java | 12 +++++++++--- .../hsz/service/OsmoticWarnRuleService.java | 17 ++++++++++------- .../hsz/service/RiceSupportBalanceService.java | 9 +++++---- 3 files changed, 24 insertions(+), 14 deletions(-) diff --git a/src/main/java/com/gunshi/project/hsz/model/RiceSupportBalance.java b/src/main/java/com/gunshi/project/hsz/model/RiceSupportBalance.java index ef9ff9a..626b848 100644 --- a/src/main/java/com/gunshi/project/hsz/model/RiceSupportBalance.java +++ b/src/main/java/com/gunshi/project/hsz/model/RiceSupportBalance.java @@ -58,7 +58,7 @@ public class RiceSupportBalance implements Serializable { * 状态:0-计算中,1-已完成 */ @TableField(value = "status") - @Schema(description = "状态:0-计算中,1-已完成") + @Schema(description = "状态:0-计算中,1-已完成 2-计算失败") private Integer status; /** @@ -71,9 +71,9 @@ public class RiceSupportBalance implements Serializable { /** * 总计划供水量(万m³) */ - @TableField(value = "total_support") + @TableField(value = "total_plan") @Schema(description = "总计划供水量(万m³)") - private BigDecimal totalSupport; + private BigDecimal totalPlan; /** * 制定时间 @@ -104,7 +104,13 @@ public class RiceSupportBalance implements Serializable { @Schema(description = "来水预测主键") private Long icWaterId; + @TableField(value = "fail_reason") + @Schema(description = "计算失败原因") + private String failReason; + @TableField(exist = false) private List details; + + } \ No newline at end of file diff --git a/src/main/java/com/gunshi/project/hsz/service/OsmoticWarnRuleService.java b/src/main/java/com/gunshi/project/hsz/service/OsmoticWarnRuleService.java index ec29916..c87b0cf 100644 --- a/src/main/java/com/gunshi/project/hsz/service/OsmoticWarnRuleService.java +++ b/src/main/java/com/gunshi/project/hsz/service/OsmoticWarnRuleService.java @@ -9,9 +9,12 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.gunshi.project.hsz.common.model.JcskGnssR; import com.gunshi.project.hsz.common.model.JcskSlR; import com.gunshi.project.hsz.common.model.JcskSyR; +import com.gunshi.project.hsz.common.util.LocalDateTimeConverter; import com.gunshi.project.hsz.entity.so.WarnRulePageSo; import com.gunshi.project.hsz.mapper.OsmoticWarnRuleMapper; -import com.gunshi.project.hsz.model.*; +import com.gunshi.project.hsz.model.OsmoticWarnR; +import com.gunshi.project.hsz.model.OsmoticWarnRule; +import com.gunshi.project.hsz.service.OsmoticWarnRService; import com.gunshi.project.hsz.util.DateTransforUtil; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; @@ -103,7 +106,7 @@ public class OsmoticWarnRuleService extends ServiceImpl riceSupportBalancePage = this.baseMapper.selectPage(page.getPageSo().toPage(), queryWrapper); for (RiceSupportBalance record : riceSupportBalancePage.getRecords()) { List details = riceSupportBalanceDetailService.selectByRCId(record.getId());