|
@@ -18,6 +18,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="producedAddress" column="produced_address" />
|
|
|
<result property="warehouseAddress" column="warehouse_address" />
|
|
|
<result property="weight" column="weight" />
|
|
|
+ <result property="material" column="material" />
|
|
|
<result property="putawayFlag" column="putaway_flag" />
|
|
|
<result property="delFlag" column="del_flag" />
|
|
|
<result property="createTime" column="create_time" />
|
|
@@ -53,7 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<sql id="selectGoodsInfoVo">
|
|
|
select gi.id, gi.name, gi.company_id, gi.type_id, gi.price, gi.cover, gi.slideshow, gi.des, gi.delivery, gi.produced_time, gi.produced_address,
|
|
|
- gi.warehouse_address, gi.weight,gi.putaway_flag, gi.del_flag, gi.create_time, gi.create_by, gi.update_time, gi.update_by, gi.remark,
|
|
|
+ gi.warehouse_address, gi.weight,gi.material,gi.putaway_flag, gi.del_flag, gi.create_time, gi.create_by, gi.update_time, gi.update_by, gi.remark,
|
|
|
gt.name typeName,sc.company_name companyName,
|
|
|
ga.attribute_id,ga.value,gs.size,gc.color,
|
|
|
gta.attribute_name attributeName,gta.sort
|
|
@@ -68,7 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectGoodsInfoList" parameterType="GoodsInfo" resultMap="GoodsInfoResult">
|
|
|
select gi.id, gi.name, gi.company_id, gi.type_id, gi.price, gi.cover, gi.slideshow, gi.create_time, gi.create_by, gi.update_time, gi.update_by, gi.remark,
|
|
|
- gi.putaway_flag,gi.weight,gi.produced_time,
|
|
|
+ gi.putaway_flag,gi.weight,gi.material,gi.produced_time,
|
|
|
gt.name typeName,sc.company_name companyName
|
|
|
from goods_info gi
|
|
|
left join goods_type gt on gt.id =gi.type_id
|
|
@@ -87,6 +88,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="producedAddress != null and producedAddress != ''"> and gi.produced_address = #{producedAddress}</if>
|
|
|
<if test="warehouseAddress != null and warehouseAddress != ''"> and gi.warehouse_address = #{warehouseAddress}</if>
|
|
|
<if test="weight != null and weight != ''"> and gi.weight = #{weight}</if>
|
|
|
+ <if test="material != null and material != ''"> and gi.material like concat('%', #{material}, '%')</if>
|
|
|
<if test="putawayFlag != null and putawayFlag != ''"> and gi.putaway_flag = #{putawayFlag}</if>
|
|
|
</where>
|
|
|
order by gi.putaway_flag ,gi.create_time
|
|
@@ -115,6 +117,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="producedAddress != null and producedAddress != ''">produced_address,</if>
|
|
|
<if test="warehouseAddress != null and warehouseAddress != ''">warehouse_address,</if>
|
|
|
<if test="weight != null and weight != ''">weight,</if>
|
|
|
+ <if test="material != null and material != ''">material,</if>
|
|
|
<if test="putawayFlag != null and putawayFlag != ''">putaway_flag,</if>
|
|
|
<if test="delFlag != null and delFlag != ''">del_flag,</if>
|
|
|
<if test="createTime != null ">create_time,</if>
|
|
@@ -136,6 +139,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="producedAddress != null and producedAddress != ''">#{producedAddress},</if>
|
|
|
<if test="warehouseAddress != null and warehouseAddress != ''">#{warehouseAddress},</if>
|
|
|
<if test="weight != null and weight != ''">#{weight},</if>
|
|
|
+ <if test="material != null and material != ''">#{material},</if>
|
|
|
<if test="putawayFlag != null and putawayFlag != ''">#{putawayFlag},</if>
|
|
|
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
|
|
|
<if test="createTime != null ">#{createTime},</if>
|
|
@@ -161,6 +165,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="producedAddress != null and producedAddress != ''">produced_address = #{producedAddress},</if>
|
|
|
<if test="warehouseAddress != null and warehouseAddress != ''">warehouse_address = #{warehouseAddress},</if>
|
|
|
<if test="weight != null and weight != ''">weight = #{weight},</if>
|
|
|
+ <if test="material != null and material != ''">material = #{material},</if>
|
|
|
<if test="putawayFlag != null and putawayFlag != ''">putaway_flag = #{putawayFlag},</if>
|
|
|
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
|
|
|
<if test="createTime != null ">create_time = #{createTime},</if>
|
|
@@ -185,7 +190,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectGoodsInfoHotList" parameterType="GoodsInfo" resultMap="GoodsInfoResult">
|
|
|
select gi.id, gi.name, gi.company_id, gi.type_id, gi.price, gi.cover, gi.slideshow, gi.create_time, gi.create_by, gi.update_time, gi.update_by, gi.remark,
|
|
|
- gi.putaway_flag,gi.weight,gi.produced_time,
|
|
|
+ gi.putaway_flag,gi.weight,gi.produced_time,gi.material,
|
|
|
gt.name typeName,sc.company_name companyName
|
|
|
from goods_info gi
|
|
|
left join goods_type gt on gt.id =gi.type_id
|