|
|
@ -24,6 +24,11 @@
|
|
|
|
where item_no = #{itemNo}
|
|
|
|
where item_no = #{itemNo}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectItemByCaseNo" parameterType="String" resultMap="ItemResult">
|
|
|
|
|
|
|
|
<include refid="selectItemVo"/>
|
|
|
|
|
|
|
|
where case_no = #{caseno}
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectItemList" parameterType="Item" resultMap="ItemResult">
|
|
|
|
<select id="selectItemList" parameterType="Item" resultMap="ItemResult">
|
|
|
|
<include refid="selectItemVo"/>
|
|
|
|
<include refid="selectItemVo"/>
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
@ -41,7 +46,7 @@
|
|
|
|
<if test="brand != null and brand != '' ">brand, </if>
|
|
|
|
<if test="brand != null and brand != '' ">brand, </if>
|
|
|
|
<if test="number != null and number != ''">number,</if>
|
|
|
|
<if test="number != null and number != ''">number,</if>
|
|
|
|
<if test="price != null and price != ''">price,</if>
|
|
|
|
<if test="price != null and price != ''">price,</if>
|
|
|
|
<if test="source != null and source != ''">source,</if>
|
|
|
|
<if test="source != null and source != ''">source</if>
|
|
|
|
)values(
|
|
|
|
)values(
|
|
|
|
<if test="caseNo != null and caseNo != ''">#{caseNo}, </if>
|
|
|
|
<if test="caseNo != null and caseNo != ''">#{caseNo}, </if>
|
|
|
|
<if test="itemNo != null and itemNo != ''">#{itemNo}, </if>
|
|
|
|
<if test="itemNo != null and itemNo != ''">#{itemNo}, </if>
|
|
|
@ -49,7 +54,7 @@
|
|
|
|
<if test="brand != null and brand != ''">#{brand}, </if>
|
|
|
|
<if test="brand != null and brand != ''">#{brand}, </if>
|
|
|
|
<if test="number != null and number != ''">#{number},</if>
|
|
|
|
<if test="number != null and number != ''">#{number},</if>
|
|
|
|
<if test="price != null and price != ''">#{price},</if>
|
|
|
|
<if test="price != null and price != ''">#{price},</if>
|
|
|
|
<if test="source != null and source != ''">#{source},</if>
|
|
|
|
<if test="source != null and source != ''">#{source}</if>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
@ -60,7 +65,7 @@
|
|
|
|
<if test="brand != null and brand != ''">brand = #{brand}, </if>
|
|
|
|
<if test="brand != null and brand != ''">brand = #{brand}, </if>
|
|
|
|
<if test="number != null">number = #{number}, </if>
|
|
|
|
<if test="number != null">number = #{number}, </if>
|
|
|
|
<if test="price != null and price != ''">price = #{price}, </if>
|
|
|
|
<if test="price != null and price != ''">price = #{price}, </if>
|
|
|
|
<if test="source != null and source != ''">source = #{source},</if>
|
|
|
|
<if test="source != null and source != ''">source = #{source}</if>
|
|
|
|
</set>
|
|
|
|
</set>
|
|
|
|
where item_no = #{itemNo}
|
|
|
|
where item_no = #{itemNo}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|