Browse Source

添加查询的限制

master
rui_li 2 months ago
parent
commit
96917b2281
  1. 8
      src/main/resources/mapper/cdc/collectRecordMapper.xml

8
src/main/resources/mapper/cdc/collectRecordMapper.xml

@ -7,7 +7,7 @@
select id,device_no,collect_id,item_value,create_time,site,warn_flag from cdc_collect_record
</sql>
<sql id="CollectRecordVo">
select
select TOP 10000
cr.id,
cr.device_no,
di.device_desc,
@ -46,9 +46,6 @@
<select id="selectCollectRecordList" resultType="com.spring.modules.cdc.entity.CollectRecord">
<include refid="CollectRecordVo"/>
<where>
<if test="site != null and site != ''">
and cr.site = #{site}
</if>
<if test="deviceType != null and deviceType != ''">
and di.device_type = #{deviceType}
</if>
@ -70,9 +67,6 @@
<select id="selectCollectRecordListByItemNo" resultType="com.spring.modules.cdc.entity.CollectRecord">
<include refid="CollectCurrentValueVo"/>
<where>
<if test="site != null and site != ''">
and cr.site = #{site}
</if>
<if test="deviceType != null and deviceType != ''">
and di.device_type = #{deviceType}
</if>

Loading…
Cancel
Save