|
|
@@ -11,6 +11,7 @@
|
|
|
<result property="goodsType" column="goods_type" />
|
|
|
<result property="quantityStock" column="quantity_stock" />
|
|
|
<result property="goodsStatus" column="goods_status" />
|
|
|
+ <result property="wareHouse" column="ware_house" />
|
|
|
<result property="createBy" column="create_by" />
|
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
@@ -19,7 +20,7 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectGoodsVo">
|
|
|
- select id, goods_code, goods_name, goods_type, quantity_stock, goods_status, create_by, create_time, update_by, update_time, remark from goods
|
|
|
+ select id, goods_code, goods_name, goods_type, quantity_stock, goods_status, ware_house, create_by, create_time, update_by, update_time, remark from goods
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectGoodsList" parameterType="Goods" resultMap="GoodsResult">
|
|
|
@@ -28,6 +29,7 @@
|
|
|
<if test="goodsCode != null and goodsCode != ''"> and goods_code like concat('%', #{goodsCode}, '%')</if>
|
|
|
<if test="goodsName != null and goodsName != ''"> and goods_name like concat('%', #{goodsName}, '%')</if>
|
|
|
<if test="goodsType != null and goodsType != ''"> and goods_type = #{goodsType}</if>
|
|
|
+ <if test="wareHouse != null and wareHouse != ''"> and ware_house = #{wareHouse}</if>
|
|
|
<if test="quantityStock != null "> and quantity_stock = #{quantityStock}</if>
|
|
|
<if test="goodsStatus != null and goodsStatus != ''">
|
|
|
and goods_status in
|
|
|
@@ -53,6 +55,7 @@
|
|
|
<if test="goodsType != null">goods_type,</if>
|
|
|
<if test="quantityStock != null">quantity_stock,</if>
|
|
|
<if test="goodsStatus != null">goods_status,</if>
|
|
|
+ <if test="wareHouse != null">ware_house,</if>
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
@@ -66,6 +69,7 @@
|
|
|
<if test="goodsType != null">#{goodsType},</if>
|
|
|
<if test="quantityStock != null">#{quantityStock},</if>
|
|
|
<if test="goodsStatus != null">#{goodsStatus},</if>
|
|
|
+ <if test="wareHouse != null">#{wareHouse},</if>
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
@@ -82,6 +86,7 @@
|
|
|
<if test="goodsType != null">goods_type = #{goodsType},</if>
|
|
|
<if test="quantityStock != null">quantity_stock = #{quantityStock},</if>
|
|
|
<if test="goodsStatus != null">goods_status = #{goodsStatus},</if>
|
|
|
+ <if test="wareHouse != null">ware_house = #{wareHouse},</if>
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|