Commit 976730ff authored by ZhangRunSong's avatar ZhangRunSong

物资查询

parent 3f76f4d5
......@@ -67,12 +67,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectPsaMaterialList" parameterType="PsaMaterial" resultMap="PsaMaterialResult">
<include refid="selectPsaMaterialVo"/>
<where>
<if test="itemCode != null and itemCode != ''"> and item_code = #{itemCode}</if>
<if test="itemId != null "> and item_id = #{itemId}</if>
<if test="typeId != null "> and type_id = #{typeId}</if>
<if test="stock != null "> and stock = #{stock}</if>
<if test="unit != null and unit != ''"> and unit = #{unit}</if>
<if test="draft != null and draft != ''"> and draft = #{draft}</if>
<if test="itemCode != null and itemCode != ''"> and pm.item_code = #{itemCode}</if>
<if test="itemId != null "> and pm.item_id = #{itemId}</if>
<if test="typeId != null "> and pm.type_id = #{typeId}</if>
<if test="stock != null "> and pm.stock = #{stock}</if>
<if test="unit != null and unit != ''"> and pm.unit = #{unit}</if>
<if test="draft != null and draft != ''"> and pm.draft = #{draft}</if>
</where>
</select>
......@@ -105,14 +105,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="itemCode != null and itemCode != ''"> and item_code like concat('%', #{itemCode}, '%')</if>
<if test="ids != null and ids.length > 0 ">
and item_id in
and pm.item_id in
<foreach item="id" collection="ids" open="(" separator="," close=")">
#{id}
</foreach>
</if>
<if test="typeId != null "> and type_id = #{typeId}</if>
<if test="draft != null and draft != ''"> and draft = #{draft}</if>
<if test="delFlag != null and delFlag != ''" > and del_flag = #{delFlag}</if>
<if test="typeId != null "> and pm.type_id = #{typeId}</if>
<if test="draft != null and draft != ''"> and pm.draft = #{draft}</if>
<if test="delFlag != null and delFlag != ''" > and pm.del_flag = #{delFlag}</if>
</where>
</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