Commit 594a2397 authored by wujipeng's avatar wujipeng
Browse files

优化

parent 50babf4d
......@@ -13,18 +13,20 @@
rel_id
from
defect
where
rel_id
in
<foreach item="item" index="index" collection="relIds" open="(" separator="," close=")">
#{item}
</foreach>
<if test="defectType != null and defectType != ''">
and type = #{defectType}
</if>
<if test="lev != null and lev != ''">
and level = #{lev}
</if>
<where>
<if test="relIds != null and relIds.size() > 0">
rel_id in
<foreach item="item" index="index" collection="relIds" open="(" separator="," close=")">
#{item}
</foreach>
</if>
<if test="defectType != null and defectType != ''">
and type = #{defectType}
</if>
<if test="lev != null and lev != ''">
and level = #{lev}
</if>
</where>
</select>
<select id="queryByRoadName" resultType="com.example.pipelinenetwork.pojo.entity.DefectEntity">
select
......
......@@ -14,18 +14,20 @@
rel_id
from
repair
where
rel_id
in
<foreach item="item" index="index" collection="relIds" open="(" separator="," close=")">
#{item}
</foreach>
<if test="defectType != null and defectType != ''">
and type = #{defectType}
</if>
<if test="lev != null and lev != ''">
and level = #{lev}
</if>
<where>
<if test="relIds != null and relIds.size() > 0">
rel_id in
<foreach item="item" index="index" collection="relIds" open="(" separator="," close=")">
#{item}
</foreach>
</if>
<if test="defectType != null and defectType != ''">
and type = #{defectType}
</if>
<if test="lev != null and lev != ''">
and level = #{lev}
</if>
</where>
</select>
<select id="queryByRoadName" resultType="com.example.pipelinenetwork.pojo.entity.RepairEntity">
select
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment