| | |
| | | <if test="params.isEnable != null "> |
| | | and t1.is_enable = #{params.isEnable} |
| | | </if> |
| | | <if test="params.collectQuality != null and params.collectQuality != ''"> |
| | | and t6.collect_quality = #{params.collectQuality} |
| | | </if> |
| | | </where> |
| | | order by t1.create_time desc, t1.point_no desc |
| | | </select> |
| | |
| | | t3.source_name, |
| | | t2.tag_no, |
| | | t2.dimension, |
| | | t2.value_type |
| | | t2.value_type, |
| | | t6.collect_value, |
| | | t6.collect_quality, |
| | | t6.collect_time |
| | | from t_da_point t1 |
| | | left join t_da_measure_point t2 on t2.point_id = t1.id |
| | | left join t_da_point_collect_status t6 on t6.point_no = t1.point_no |
| | | left join ( |
| | | select id source_id,server_name source_name |
| | | from t_channel_opcua_device |
| | |
| | | </if> |
| | | <if test="isEnable != null "> |
| | | and t1.is_enable = #{isEnable} |
| | | </if> |
| | | <if test="collectQuality != null and collectQuality != ''"> |
| | | and t6.collect_quality = #{collectQuality} |
| | | </if> |
| | | </where> |
| | | order by t1.create_time desc, t1.point_no desc |
| | |
| | | <if test="minfreqid != null and minfreqid != ''"> |
| | | AND t1.minfreqid = #{minfreqid} |
| | | </if> |
| | | <if test="pointNos != null"> |
| | | AND t1.point_no in |
| | | <foreach collection="pointNos" item="item" index="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="minfreqid != null and minfreqid != ''"> |
| | | AND t1.minfreqid = #{minfreqid} |
| | | </if> |
| | | <if test="pointNos != null"> |
| | | AND t1.point_no in |
| | | <foreach collection="pointNos" item="item" index="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |