|
@@ -3,24 +3,24 @@
|
|
|
<mapper namespace="com.kxs.product.biz.mapper.KxsGdReportMapper">
|
|
<mapper namespace="com.kxs.product.biz.mapper.KxsGdReportMapper">
|
|
|
|
|
|
|
|
<resultMap type="com.kxs.product.api.model.KxsGdReport" id="KxsGdReportMap">
|
|
<resultMap type="com.kxs.product.api.model.KxsGdReport" id="KxsGdReportMap">
|
|
|
- <result column="id" property="id" />
|
|
|
|
|
- <result column="create_time" property="createTime" />
|
|
|
|
|
- <result column="update_time" property="updateTime" />
|
|
|
|
|
- <result column="del_flag" property="delFlag" />
|
|
|
|
|
- <result column="version" property="version" />
|
|
|
|
|
- <result column="user_id" property="userId" />
|
|
|
|
|
- <result column="username" property="username" />
|
|
|
|
|
- <result column="user_code" property="userCode" />
|
|
|
|
|
- <result column="province" property="province" />
|
|
|
|
|
- <result column="city" property="city" />
|
|
|
|
|
- <result column="put_name" property="putName" />
|
|
|
|
|
- <result column="put_mobile" property="putMobile" />
|
|
|
|
|
- <result column="remark" property="remark" />
|
|
|
|
|
- <result column="status" property="status" />
|
|
|
|
|
- <result column="gd_sn" property="gdSn" />
|
|
|
|
|
- <result column="gd_mobile" property="gdMobile" />
|
|
|
|
|
- <result column="is_check" property="isCheck" />
|
|
|
|
|
- <result column="put_type" property="putType" />
|
|
|
|
|
|
|
+ <result column="id" property="id"/>
|
|
|
|
|
+ <result column="create_time" property="createTime"/>
|
|
|
|
|
+ <result column="update_time" property="updateTime"/>
|
|
|
|
|
+ <result column="del_flag" property="delFlag"/>
|
|
|
|
|
+ <result column="version" property="version"/>
|
|
|
|
|
+ <result column="user_id" property="userId"/>
|
|
|
|
|
+ <result column="username" property="username"/>
|
|
|
|
|
+ <result column="user_code" property="userCode"/>
|
|
|
|
|
+ <result column="province" property="province"/>
|
|
|
|
|
+ <result column="city" property="city"/>
|
|
|
|
|
+ <result column="put_name" property="putName"/>
|
|
|
|
|
+ <result column="put_mobile" property="putMobile"/>
|
|
|
|
|
+ <result column="remark" property="remark"/>
|
|
|
|
|
+ <result column="status" property="status"/>
|
|
|
|
|
+ <result column="gd_sn" property="gdSn"/>
|
|
|
|
|
+ <result column="gd_mobile" property="gdMobile"/>
|
|
|
|
|
+ <result column="is_check" property="isCheck"/>
|
|
|
|
|
+ <result column="put_type" property="putType"/>
|
|
|
|
|
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<select id="getByPage" resultType="com.kxs.product.api.vo.kxsapp.gd.GdReportListVO">
|
|
<select id="getByPage" resultType="com.kxs.product.api.vo.kxsapp.gd.GdReportListVO">
|
|
@@ -47,9 +47,14 @@
|
|
|
and a.brand_id = 14
|
|
and a.brand_id = 14
|
|
|
and a.user_id = #{userId}
|
|
and a.user_id = #{userId}
|
|
|
and b.gd_sn is null
|
|
and b.gd_sn is null
|
|
|
- <if test="posSn != null and posSn != ''">
|
|
|
|
|
- and a.pos_sn like concat('%', #{posSn}, '%')
|
|
|
|
|
- </if>
|
|
|
|
|
|
|
+ <choose>
|
|
|
|
|
+ <when test="posSn != null and posSn != ''">
|
|
|
|
|
+ and a.pos_sn like concat('CS', '%', #{posSn})
|
|
|
|
|
+ </when>
|
|
|
|
|
+ <otherwise>
|
|
|
|
|
+ and a.pos_sn like concat('CS', '%')
|
|
|
|
|
+ </otherwise>
|
|
|
|
|
+ </choose>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
|
<select id="getDqByPage" resultType="com.kxs.product.api.vo.kxsapp.gd.GdReportListVO">
|
|
<select id="getDqByPage" resultType="com.kxs.product.api.vo.kxsapp.gd.GdReportListVO">
|