|
@ -58,7 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="stockManagerPhone != null">stock_manager_phone,</if> |
|
|
<if test="stockManagerPhone != null">stock_manager_phone,</if> |
|
|
<if test="stockMemo != null">stockmemo,</if> |
|
|
<if test="stockMemo != null">stockmemo,</if> |
|
|
<if test="defaltItemclass != null">defalt_itemclass,</if> |
|
|
<if test="defaltItemclass != null">defalt_itemclass,</if> |
|
|
first_add_time, |
|
|
<if test="firstAddTime != null">first_add_time,</if> |
|
|
</trim> |
|
|
</trim> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<if test="stockNO != null and stockNO != ''">#{stockNO},</if> |
|
|
<if test="stockNO != null and stockNO != ''">#{stockNO},</if> |
|
@ -68,7 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="stockManagerPhone != null">#{stockManagerPhone},</if> |
|
|
<if test="stockManagerPhone != null">#{stockManagerPhone},</if> |
|
|
<if test="stockMemo != null">#{stockMemo},</if> |
|
|
<if test="stockMemo != null">#{stockMemo},</if> |
|
|
<if test="defaltItemclass != null">#{defaltItemclass},</if> |
|
|
<if test="defaltItemclass != null">#{defaltItemclass},</if> |
|
|
now(), |
|
|
<if test="firstAddTime != null">#{firstAddTime},</if> |
|
|
</trim> |
|
|
</trim> |
|
|
</insert> |
|
|
</insert> |
|
|
|
|
|
|
|
@ -76,13 +76,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
update stock_info |
|
|
update stock_info |
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
<if test="stockNO != null and stockNO != ''">StockNO = #{stockNO},</if> |
|
|
<if test="stockNO != null and stockNO != ''">StockNO = #{stockNO},</if> |
|
|
<if test="stockName != null and stockName != ''">Stockname = #{stockname},</if> |
|
|
<if test="stockName != null and stockName != ''">Stockname = #{stockName},</if> |
|
|
<if test="stockAddr != null and stockAddr != ''">StockAddr = #{stockAddr},</if> |
|
|
<if test="stockAddr != null and stockAddr != ''">StockAddr = #{stockAddr},</if> |
|
|
<if test="stockManager != null">stockmanager = #{stockmanager},</if> |
|
|
<if test="stockManager != null">stockmanager = #{stockManager},</if> |
|
|
<if test="stockManagerPhone != null">stock_manager_phone = #{stockManagerPhone},</if> |
|
|
<if test="stockManagerPhone != null">stock_manager_phone = #{stockManagerPhone},</if> |
|
|
<if test="stockMemo != null">stockmemo = #{stockmemo},</if> |
|
|
<if test="stockMemo != null">stockmemo = #{stockMemo},</if> |
|
|
<if test="defaltItemclass != null">defalt_itemclass = #{defaltItemclass},</if> |
|
|
<if test="defaltItemclass != null">defalt_itemclass = #{defaltItemclass},</if> |
|
|
update_info_time = CONCAT_WS(',',NOW(),update_info_time), |
|
|
<if test="updateInfoTime != null">update_info_time = #{updateInfoTime},</if> |
|
|
</trim> |
|
|
</trim> |
|
|
where stock_id = #{stockId} |
|
|
where stock_id = #{stockId} |
|
|
</update> |
|
|
</update> |
|
@ -98,4 +98,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
</foreach> |
|
|
</foreach> |
|
|
</delete> |
|
|
</delete> |
|
|
|
|
|
|
|
|
|
|
|
<select id="selectStockInfoListByNos" parameterType="String" resultMap="StockInfoResult"> |
|
|
|
|
|
<include refid="selectStockInfoVo"/> |
|
|
|
|
|
where StockNO in |
|
|
|
|
|
<foreach item="stockNO" collection="array" open="(" separator="," close=")"> |
|
|
|
|
|
#{stockNO} |
|
|
|
|
|
</foreach> |
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
</mapper> |
|
|
</mapper> |