搜索功能

master
chardon55 3 years ago
parent 0f50b532ba
commit 155dcb3f6b

@ -18,6 +18,10 @@
<label>库位名称:</label>
<input type="text" name="locationName"/>
</li>
<li>
<label>物料类别:</label>
<input type="text" name="materialType"/>
</li>
<li>
<label>所处排:</label>
<input type="text" name="locationRow"/>

@ -37,6 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<where>
<if test="locationCode != null and locationCode != ''"> and location_code like concat(concat('%', #{locationCode}), '%')</if>
<if test="locationName != null and locationName != ''"> and location_name like concat(concat('%', #{locationName}), '%')</if>
<if test="materialType != null and materialType != ''"> and material_type like concat(concat('%', #{materialType}), '%')</if>
<if test="locationRow != null and locationRow != ''"> and location_row = #{locationRow} </if>
<if test="locationLine != null and locationLine != ''"> and location_line = #{locationLine} </if>

Loading…
Cancel
Save