风险图比例-

This commit is contained in:
guoshengxiong 2024-05-13 20:59:12 +08:00
parent 97fe5104cc
commit 3eff952ad6
5 changed files with 5 additions and 5 deletions

View File

@ -667,7 +667,7 @@
<select id="riskChart" <select id="riskChart"
resultType="com.zhgd.xmgl.modules.xz.security.entity.vo.XzSecurityQualityInspectionRecordTotalVo"> resultType="com.zhgd.xmgl.modules.xz.security.entity.vo.XzSecurityQualityInspectionRecordTotalVo">
select select
ifnull(round((t2.dangerNum-t1.dangerNum)/t1.dangerNum*100,2),0) as monthlyBasis, ifnull(round((t2.dangerNum-t1.dangerNum)/t1.dangerNum*100,2),'-') as monthlyBasis,
t2.* t2.*
from ( from (
<include refid="selectTotal"> <include refid="selectTotal">

View File

@ -638,7 +638,7 @@ public class QualityInspectionRecordServiceImpl extends ServiceImpl<QualityInspe
vo.setGeneralRiskNum(0); vo.setGeneralRiskNum(0);
vo.setLargerRiskNum(0); vo.setLargerRiskNum(0);
vo.setWhichWeekOfMonth(0); vo.setWhichWeekOfMonth(0);
vo.setMonthlyBasis(0.0D); vo.setMonthlyBasis("0");
} }
vo.setLastMonth(DateUtil.month(DateUtil.parse(month, "yyyy-MM")) + ""); vo.setLastMonth(DateUtil.month(DateUtil.parse(month, "yyyy-MM")) + "");
rsList.add(vo); rsList.add(vo);

View File

@ -61,6 +61,6 @@ public class XzSecurityQualityInspectionRecordTotalVo {
@ApiModelProperty(value = "上个月名称") @ApiModelProperty(value = "上个月名称")
private String lastMonth; private String lastMonth;
@ApiModelProperty(value = "月环比") @ApiModelProperty(value = "月环比")
private Double monthlyBasis; private String monthlyBasis;
} }

View File

@ -672,7 +672,7 @@
<select id="riskChart" <select id="riskChart"
resultType="com.zhgd.xmgl.modules.xz.security.entity.vo.XzSecurityQualityInspectionRecordTotalVo"> resultType="com.zhgd.xmgl.modules.xz.security.entity.vo.XzSecurityQualityInspectionRecordTotalVo">
select select
ifnull(round((t2.dangerNum-t1.dangerNum)/t1.dangerNum*100,2),0) as monthlyBasis, ifnull(round((t2.dangerNum-t1.dangerNum)/t1.dangerNum*100,2),'-') as monthlyBasis,
t2.* t2.*
from ( from (
<include refid="selectTotal"> <include refid="selectTotal">

View File

@ -800,7 +800,7 @@ public class XzSecurityXzSecurityQualityInspectionRecordServiceImpl extends Serv
vo.setGeneralRiskNum(0); vo.setGeneralRiskNum(0);
vo.setLargerRiskNum(0); vo.setLargerRiskNum(0);
vo.setWhichWeekOfMonth(0); vo.setWhichWeekOfMonth(0);
vo.setMonthlyBasis(0.0D); vo.setMonthlyBasis("-");
} }
vo.setLastMonth(DateUtil.month(DateUtil.parse(month, "yyyy-MM")) + ""); vo.setLastMonth(DateUtil.month(DateUtil.parse(month, "yyyy-MM")) + "");
rsList.add(vo); rsList.add(vo);