|
@@ -107,6 +107,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="code" column="code"/>
|
|
|
<result property="standPrice" column="stand_price"/>
|
|
|
<result property="goodsStatus" column="goods_status"/>
|
|
|
+ <result property="validityStartTime" column="validity_start_time"/>
|
|
|
+ <result property="validityEndTime" column="validity_end_time"/>
|
|
|
+ <result property="goodsStatus" column="goods_status"/>
|
|
|
+ <result property="status" column="status"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="selectList" parameterType="com.zhongzheng.modules.goods.bo.GoodsQueryBo" resultMap="GoodsResultVo">
|
|
@@ -249,6 +253,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
SELECT
|
|
|
goods_id,
|
|
|
goods_name,
|
|
|
+ validity_start_time,
|
|
|
+ validity_end_time,
|
|
|
+ goods_status,
|
|
|
+ status,
|
|
|
CODE,
|
|
|
stand_price,
|
|
|
<if test="filtration != null and filtration == 1">
|
|
@@ -275,9 +283,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="goodsType != null and goodsType != ''">
|
|
|
and g.goods_type = #{goodsType}
|
|
|
</if>
|
|
|
- <if test="goodsStatus != null and goodsStatus != ''">
|
|
|
+ <if test="goodsStatus != null and goodsStatus != ''">
|
|
|
and g.goods_status = #{goodsStatus}
|
|
|
</if>
|
|
|
+ <if test="searchKey != null and searchKey != ''">
|
|
|
+ and (g.goods_name like concat('%', #{searchKey}, '%') or g.code like concat('%', #{searchKey}, '%'))
|
|
|
+ </if>
|
|
|
order by g.create_time desc
|
|
|
</select>
|
|
|
|