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());