Commit 6744b05d by lijingjing

添加槽号过滤条件

parent c9ba93e8
...@@ -162,6 +162,15 @@ ...@@ -162,6 +162,15 @@
<if test="null!=vo.slotNo"> <if test="null!=vo.slotNo">
AND s.slot_no LIKE CONCAT('%',#{vo.slotNo},'%') AND s.slot_no LIKE CONCAT('%',#{vo.slotNo},'%')
</if> </if>
<if test="null != vo.slotNoS || null != vo.slotNoE">
AND s.slot_no is not null
</if>
<if test="null != vo.slotNoS">
AND to_number(s.slot_no,'99999') &gt;= #{vo.slotNoS}
</if>
<if test="null != vo.slotNoE">
AND to_number(s.slot_no,'99999') &lt;= #{vo.slotNoE}
</if>
ORDER BY e.code,s.code ORDER BY e.code,s.code
......
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