获取/更新流量计地址/管道类型接口

This commit is contained in:
蒾酒
2025-01-01 01:21:58 +08:00
parent f3b9e04be9
commit e2bd886b57
3 changed files with 81 additions and 2 deletions

View File

@ -174,12 +174,24 @@ public class DeviceReportInfo extends BaseEntity
@Excel(name = "yun'xing")
@ApiModelProperty("yun'xing")
private Long runStatus;
/** 设备地址值 */
@Excel(name = "设备地址值")
@ApiModelProperty("设备地址值")
private Long addr;
/** 流量计型号1管段式2卡片式 */
@Excel(name = "流量计型号1管段式2卡片式")
@ApiModelProperty("流量计型号1管段式2卡片式")
private Integer flowModel;
//----------------------------------------------------------业务字段-----------------------------------------------------------
/** 是否自动审核 */
@TableField(exist = false)
private Boolean autoReview ;
/** 设备类型1.水电双计 2.流量计 */
@TableField(exist = false)
private String searchValue;
// @TableField(exist = false)

View File

@ -36,10 +36,12 @@
<result property="areaCode" column="area_code" />
<result property="deptId" column="dept_id" />
<result property="runStatus" column="run_status" />
<result property="addr" column="addr" />
<result property="flowModel" column="flow_model" />
</resultMap>
<sql id="selectDeviceReportInfoVo">
select id, imei, iccid, mcu_id, bsp_type, lte_type, mcu_type, mcu_fw, lte_fw, lcd_manufacturer, voice_manufacturer, fram_model, replace_manufacturer, test_record, batch_number, serial_number, qr_code, name, lcd_manufacturer_name, voice_manufacturer_name, replace_manufacturer_name, device_id, status, powers_time, type, longitude, latitude,on_line,area_code,dept_id,run_status from iot_device_report_info
select id, imei, iccid, mcu_id, bsp_type, lte_type, mcu_type, mcu_fw, lte_fw, lcd_manufacturer, voice_manufacturer, fram_model, replace_manufacturer, test_record, batch_number, serial_number, qr_code, name, lcd_manufacturer_name, voice_manufacturer_name, replace_manufacturer_name, device_id, status, powers_time, type, longitude, latitude,on_line,area_code,dept_id,run_status, addr, flow_model from iot_device_report_info
</sql>
<select id="selectDeviceReportInfoList" parameterType="DeviceReportInfo" resultMap="DeviceReportInfoResult">
@ -75,6 +77,8 @@
<if test="areaCode != null and areaCode != ''"> and area_code = #{areaCode}</if>
<if test="deptId != null "> and dept_id = #{deptId}</if>
<if test="runStatus != null "> and run_status = #{runStatus}</if>
<if test="addr != null "> and addr = #{addr}</if>
<if test="flowModel != null "> and flow_model = #{flowModel}</if>
</where>
<!-- 添加排序 -->
order by powers_time desc
@ -117,6 +121,8 @@
<if test="onLine != null">on_line,</if>
<if test="areaCode != null">area_code,</if>
<if test="deptId != null">dept_id,</if>
<if test="addr != null">addr,</if>
<if test="flowModel != null">flow_model,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="imei != null and imei != ''">#{imei},</if>
@ -148,6 +154,8 @@
<if test="onLine != null">#{onLine},</if>
<if test="areaCode != null">#{areaCode},</if>
<if test="deptId != null">#{deptId},</if>
<if test="addr != null">#{addr},</if>
<if test="flowModel != null">#{flowModel},</if>
</trim>
</insert>
@ -183,6 +191,8 @@
<if test="onLine != null">on_line = #{onLine},</if>
<if test="areaCode != null">area_code = #{areaCode},</if>
<if test="deptId != null">dept_id = #{deptId},</if>
<if test="addr != null">addr = #{addr},</if>
<if test="flowModel != null">flow_model = #{flowModel},</if>
</trim>
where id = #{id}
</update>