|
|
@ -58,7 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="stockManagerPhone != null">stock_manager_phone,</if> |
|
|
|
<if test="stockMemo != null">stockmemo,</if> |
|
|
|
<if test="defaltItemclass != null">defalt_itemclass,</if> |
|
|
|
first_add_time, |
|
|
|
<if test="firstAddTime != null">first_add_time,</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<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="stockMemo != null">#{stockMemo},</if> |
|
|
|
<if test="defaltItemclass != null">#{defaltItemclass},</if> |
|
|
|
now(), |
|
|
|
<if test="firstAddTime != null">#{firstAddTime},</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
|
|
|
@ -76,13 +76,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
update stock_info |
|
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
|
<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="stockManager != null">stockmanager = #{stockmanager},</if> |
|
|
|
<if test="stockManager != null">stockmanager = #{stockManager},</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> |
|
|
|
update_info_time = CONCAT_WS(',',NOW(),update_info_time), |
|
|
|
<if test="updateInfoTime != null">update_info_time = #{updateInfoTime},</if> |
|
|
|
</trim> |
|
|
|
where stock_id = #{stockId} |
|
|
|
</update> |
|
|
@ -98,4 +98,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
</foreach> |
|
|
|
</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> |