bug修复

This commit is contained in:
guo 2024-01-30 13:43:26 +08:00
parent 7c5508901a
commit da3d1c154f
5 changed files with 25 additions and 13 deletions

View File

@ -6,9 +6,9 @@ import lombok.Data;
@Data @Data
public class CountHighFormworkMeasurePointVo { public class CountHighFormworkMeasurePointVo {
@ApiModelProperty(value = "总监测点位数") @ApiModelProperty(value = "总监测点位数")
private String totalPointNum; private Integer totalPointNum;
@ApiModelProperty(value = "报警点位数") @ApiModelProperty(value = "报警点位数")
private String alarmPointNum; private Integer alarmPointNum;
@ApiModelProperty(value = "监测中点位数") @ApiModelProperty(value = "监测中点位数")
private String monitoringPointNum; private Integer monitoringPointNum;
} }

View File

@ -15,12 +15,14 @@ public class DataPerHourForTheLastDayVo {
private String pressure; private String pressure;
@ApiModelProperty(value = "沉降mm") @ApiModelProperty(value = "沉降mm")
private String subside; private String subside;
@ApiModelProperty(value = "立杆轴力")
/* private java.lang.String poleAxialForce;
立杆轴力 @ApiModelProperty(value = "水平位移")
水平位移 private java.lang.String horizontalDisplacement;
模板沉降 @ApiModelProperty(value = "模板沉降")
立杆倾斜 private java.lang.String formworkSettlement;
地基沉降 @ApiModelProperty(value = "立杆倾斜")
*/ private java.lang.String poleTilt;
@ApiModelProperty(value = "地基沉降")
private java.lang.String foundationSettlement;
} }

View File

@ -59,7 +59,12 @@
avg(cd.angle_x_axis) as angle_x_axis, avg(cd.angle_x_axis) as angle_x_axis,
avg(cd.angle_y_axis) as angle_y_axis, avg(cd.angle_y_axis) as angle_y_axis,
avg(cd.pressure) as pressure, avg(cd.pressure) as pressure,
avg(cd.subside) as subside avg(cd.subside) as subside,
avg(cd.pole_axial_force) as pole_axial_force,
avg(cd.horizontal_displacement) as horizontal_displacement,
avg(cd.formwork_settlement) as formwork_settlement,
avg(cd.pole_tilt) as pole_tilt,
avg(cd.foundation_settlement) as foundation_settlement
from high_formwork_measure_current_data cd from high_formwork_measure_current_data cd
where cd.project_sn = #{projectSn} where cd.project_sn = #{projectSn}
and cd.measure_point_number = #{measurePointNumber} and cd.measure_point_number = #{measurePointNumber}

View File

@ -60,7 +60,7 @@
resultType="com.zhgd.xmgl.modules.highformwork.entity.vo.CountHighFormworkMeasurePointVo"> resultType="com.zhgd.xmgl.modules.highformwork.entity.vo.CountHighFormworkMeasurePointVo">
select count(distinct hfmp.id) totalPointNum, select count(distinct hfmp.id) totalPointNum,
count(distinct hfad.measure_point_id) alarmPointNum, count(distinct hfad.measure_point_id) alarmPointNum,
count(distinct hfmcd.measure_point_number) currentPointNum count(distinct hfmcd.measure_point_number) monitoringPointNum
from high_formwork_measure_point hfmp from high_formwork_measure_point hfmp
left join high_formwork_alarm_data hfad on hfmp.id = hfad.measure_point_id left join high_formwork_alarm_data hfad on hfmp.id = hfad.measure_point_id
left join high_formwork_measure_current_data hfmcd on hfmcd.measure_point_number = hfmp.measure_point_number left join high_formwork_measure_current_data hfmcd on hfmcd.measure_point_number = hfmp.measure_point_number

View File

@ -181,6 +181,11 @@ public class HighFormworkMeasureCurrentDataServiceImpl extends ServiceImpl<HighF
v.setAngleYAxis("0"); v.setAngleYAxis("0");
v.setPressure("0"); v.setPressure("0");
v.setSubside("0"); v.setSubside("0");
v.setPoleAxialForce("0");
v.setHorizontalDisplacement("0");
v.setFormworkSettlement("0");
v.setPoleTilt("0");
v.setFoundationSettlement("0");
list.add(v); list.add(v);
} }
} }