bug修复

This commit is contained in:
guo 2024-02-01 15:48:36 +08:00
parent fd8065f6fa
commit 44dab7005b
2 changed files with 5 additions and 0 deletions

View File

@ -117,6 +117,8 @@ public class ConcreteMonitorCurrentDataController {
@ApiOperation(value = "统计数据曲线趋势", notes = "统计数据曲线趋势", httpMethod = "POST") @ApiOperation(value = "统计数据曲线趋势", notes = "统计数据曲线趋势", httpMethod = "POST")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(name = "projectSn", value = "项目sn", paramType = "body", required = true, dataType = "String"), @ApiImplicitParam(name = "projectSn", value = "项目sn", paramType = "body", required = true, dataType = "String"),
@ApiImplicitParam(name = "devSn", value = "设备编号", paramType = "body", required = false, dataType = "String"),
@ApiImplicitParam(name = "pointNo", value = "监测点点位号", paramType = "body", required = false, dataType = "Integer"),
@ApiImplicitParam(name = "date", value = "日期", paramType = "body", required = false, dataType = "String"), @ApiImplicitParam(name = "date", value = "日期", paramType = "body", required = false, dataType = "String"),
}) })
@PostMapping(value = "/countTrend") @PostMapping(value = "/countTrend")

View File

@ -33,6 +33,9 @@
<if test="devSn != null and devSn != ''"> <if test="devSn != null and devSn != ''">
and dev_sn = #{devSn} and dev_sn = #{devSn}
</if> </if>
<if test="pointNo != null and pointNo != ''">
and point_no = #{pointNo}
</if>
<choose> <choose>
<when test="date != null and date != ''"> <when test="date != null and date != ''">
and receive_time >= date_format(#{date}, '%Y-%m-%d') and receive_time >= date_format(#{date}, '%Y-%m-%d')