添加水电双计设备瞬时流量,实时流量数据同步
This commit is contained in:
@ -190,6 +190,15 @@ public class DeviceReportInfo extends BaseEntity
|
||||
@Excel(name = "水价单位元")
|
||||
@ApiModelProperty("水价单位元")
|
||||
private BigDecimal waterFree;
|
||||
/** 实时流量 */
|
||||
@Excel(name = "实时流量")
|
||||
@ApiModelProperty("实时流量")
|
||||
private String insFlow;
|
||||
|
||||
/** 累计流量 */
|
||||
@Excel(name = "累计流量")
|
||||
@ApiModelProperty("累计流量")
|
||||
private String sumFlow;
|
||||
//----------------------------------------------------------业务字段-----------------------------------------------------------
|
||||
/** 是否自动审核 */
|
||||
@TableField(exist = false)
|
||||
|
@ -39,10 +39,12 @@
|
||||
<result property="addr" column="addr" />
|
||||
<result property="flowModel" column="flow_model" />
|
||||
<result property="waterFree" column="water_free" />
|
||||
<result property="insFlow" column="ins_flow" />
|
||||
<result property="sumFlow" column="sum_flow" />
|
||||
</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, addr, flow_model,water_free 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,water_free, ins_flow, sum_flow from iot_device_report_info
|
||||
</sql>
|
||||
|
||||
<select id="selectDeviceReportInfoList" parameterType="DeviceReportInfo" resultMap="DeviceReportInfoResult">
|
||||
@ -81,6 +83,8 @@
|
||||
<if test="addr != null "> and addr = #{addr}</if>
|
||||
<if test="flowModel != null "> and flow_model = #{flowModel}</if>
|
||||
<if test="waterFree != null "> and water_free = #{waterFree}</if>
|
||||
<if test="insFlow != null and insFlow != ''"> and ins_flow = #{insFlow}</if>
|
||||
<if test="sumFlow != null and sumFlow != ''"> and sum_flow = #{sumFlow}</if>
|
||||
</where>
|
||||
<!-- 添加排序 -->
|
||||
order by powers_time desc
|
||||
|
Reference in New Issue
Block a user