获取/更新流量计地址/管道类型接口
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user