灌溉器历史数据和流量计历史数据的列表接口和导出接口添加时间筛选;添加灌溉控制器瞬时流量和累计流量的图表接口
This commit is contained in:
@ -19,6 +19,21 @@
|
||||
select id, in_flow, sum_flow, device_number, real_time, status, save_time, dept_id from ng_flow_device_data
|
||||
</sql>
|
||||
|
||||
<select id="selectNgFlowDeviceDataListByTime" parameterType="NgFlowDeviceDataDto" resultMap="NgFlowDeviceDataResult">
|
||||
<include refid="selectNgFlowDeviceDataVo"/>
|
||||
<where>
|
||||
<if test="startTime != null and endTime != null"> and real_time between #{startTime} and #{endTime}</if>
|
||||
<if test="inFlow != null "> and in_flow = #{inFlow}</if>
|
||||
<if test="sumFlow != null and sumFlow != ''"> and sum_flow = #{sumFlow}</if>
|
||||
<if test="deviceNumber != null and deviceNumber != ''"> and device_number = #{deviceNumber}</if>
|
||||
<if test="realTime != null "> and real_time = #{realTime}</if>
|
||||
<if test="status != null "> and status = #{status}</if>
|
||||
<if test="saveTime != null "> and save_time = #{saveTime}</if>
|
||||
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
||||
</where>
|
||||
order by real_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectNgFlowDeviceDataList" parameterType="NgFlowDeviceData" resultMap="NgFlowDeviceDataResult">
|
||||
<include refid="selectNgFlowDeviceDataVo"/>
|
||||
<where>
|
||||
|
Reference in New Issue
Block a user