|
|
|
@ -10,12 +10,23 @@ |
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|
|
|
<result column="problem_content" jdbcType="VARCHAR" property="problemContent" /> |
|
|
|
<result column="problem_picture" jdbcType="VARCHAR" property="problemPicture" /> |
|
|
|
<result column="shop_id" jdbcType="VARCHAR" property="shopId" /> |
|
|
|
<result column="shop_name" jdbcType="VARCHAR" property="shopName" /> |
|
|
|
<result column="user_id" jdbcType="VARCHAR" property="userId" /> |
|
|
|
<result column="user_name" jdbcType="VARCHAR" property="userName" /> |
|
|
|
<result column="contact_phone" jdbcType="VARCHAR" property="contactPhone" /> |
|
|
|
<result column="feedback_type" jdbcType="VARCHAR" property="feedbackType" /> |
|
|
|
<result column="region_id" jdbcType="VARCHAR" property="regionId" /> |
|
|
|
<result column="region_name" jdbcType="VARCHAR" property="regionName" /> |
|
|
|
<result column="status" jdbcType="INTEGER" property="status" /> |
|
|
|
<result column="handle_opinion" jdbcType="VARCHAR" property="handleOpinion" /> |
|
|
|
<result column="handle_user_id" jdbcType="VARCHAR" property="handleUserId" /> |
|
|
|
<result column="handle_user_name" jdbcType="VARCHAR" property="handleUserName" /> |
|
|
|
<result column="handle_time" jdbcType="TIMESTAMP" property="handleTime" /> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, create_by, create_time, del_flag, update_by, update_time, problem_content, problem_picture,shop_id,shop_name |
|
|
|
id, create_by, create_time, del_flag, update_by, update_time, problem_content, problem_picture, user_id, |
|
|
|
user_name, contact_phone, feedback_type, region_id, region_name, status, handle_opinion, handle_user_id, |
|
|
|
handle_user_name, handle_time |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> |
|
|
|
@ -32,10 +43,16 @@ |
|
|
|
|
|
|
|
<insert id="insert" parameterType="cc.hiver.mall.problemfeedback.entity.ProblemFeedback"> |
|
|
|
insert into t_problem_feedback |
|
|
|
(id, create_by, create_time, del_flag, update_by, update_time,problem_content, problem_picture,shop_id,shop_name) |
|
|
|
(id, create_by, create_time, del_flag, update_by, update_time, problem_content, problem_picture, user_id, |
|
|
|
user_name, contact_phone, feedback_type, region_id, region_name, status, handle_opinion, handle_user_id, |
|
|
|
handle_user_name, handle_time) |
|
|
|
values (#{id,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |
|
|
|
#{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, |
|
|
|
#{problemContent,jdbcType=VARCHAR},#{problemPicture,jdbcType=VARCHAR},#{shopId,jdbcType=VARCHAR},#{shopName,jdbcType=VARCHAR}) |
|
|
|
#{problemContent,jdbcType=VARCHAR}, #{problemPicture,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, |
|
|
|
#{userName,jdbcType=VARCHAR}, #{contactPhone,jdbcType=VARCHAR}, #{feedbackType,jdbcType=VARCHAR}, |
|
|
|
#{regionId,jdbcType=VARCHAR}, #{regionName,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, |
|
|
|
#{handleOpinion,jdbcType=VARCHAR}, #{handleUserId,jdbcType=VARCHAR}, #{handleUserName,jdbcType=VARCHAR}, |
|
|
|
#{handleTime,jdbcType=TIMESTAMP}) |
|
|
|
</insert> |
|
|
|
|
|
|
|
<update id="updateByExampleSelective" parameterType="map"> |
|
|
|
@ -65,11 +82,38 @@ |
|
|
|
<if test="record.problemPicture != null"> |
|
|
|
problem_picture = #{record.problemPicture,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.shopId != null"> |
|
|
|
shop_id = #{record.shopId,jdbcType=VARCHAR}, |
|
|
|
<if test="record.userId != null"> |
|
|
|
user_id = #{record.userId,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.shopName != null"> |
|
|
|
shop_name = #{record.shopName,jdbcType=VARCHAR}, |
|
|
|
<if test="record.userName != null"> |
|
|
|
user_name = #{record.userName,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.contactPhone != null"> |
|
|
|
contact_phone = #{record.contactPhone,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.feedbackType != null"> |
|
|
|
feedback_type = #{record.feedbackType,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.regionId != null"> |
|
|
|
region_id = #{record.regionId,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.regionName != null"> |
|
|
|
region_name = #{record.regionName,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.status != null"> |
|
|
|
status = #{record.status,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="record.handleOpinion != null"> |
|
|
|
handle_opinion = #{record.handleOpinion,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.handleUserId != null"> |
|
|
|
handle_user_id = #{record.handleUserId,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.handleUserName != null"> |
|
|
|
handle_user_name = #{record.handleUserName,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.handleTime != null"> |
|
|
|
handle_time = #{record.handleTime,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
</update> |
|
|
|
@ -84,8 +128,17 @@ |
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|
|
|
problem_content = #{record.problemContent,jdbcType=VARCHAR}, |
|
|
|
problem_picture = #{record.problemPicture,jdbcType=VARCHAR}, |
|
|
|
shop_id = #{record.shopId,jdbcType=VARCHAR}, |
|
|
|
shop_name = #{record.shopName,jdbcType=VARCHAR} |
|
|
|
user_id = #{record.userId,jdbcType=VARCHAR}, |
|
|
|
user_name = #{record.userName,jdbcType=VARCHAR}, |
|
|
|
contact_phone = #{record.contactPhone,jdbcType=VARCHAR}, |
|
|
|
feedback_type = #{record.feedbackType,jdbcType=VARCHAR}, |
|
|
|
region_id = #{record.regionId,jdbcType=VARCHAR}, |
|
|
|
region_name = #{record.regionName,jdbcType=VARCHAR}, |
|
|
|
status = #{record.status,jdbcType=INTEGER}, |
|
|
|
handle_opinion = #{record.handleOpinion,jdbcType=VARCHAR}, |
|
|
|
handle_user_id = #{record.handleUserId,jdbcType=VARCHAR}, |
|
|
|
handle_user_name = #{record.handleUserName,jdbcType=VARCHAR}, |
|
|
|
handle_time = #{record.handleTime,jdbcType=TIMESTAMP} |
|
|
|
</update> |
|
|
|
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="cc.hiver.mall.problemfeedback.entity.ProblemFeedback"> |
|
|
|
@ -112,11 +165,38 @@ |
|
|
|
<if test="problemPicture != null"> |
|
|
|
problem_picture = #{problemPicture,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="shopId != null"> |
|
|
|
shop_id = #{shopId,jdbcType=VARCHAR}, |
|
|
|
<if test="userId != null"> |
|
|
|
user_id = #{userId,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="userName != null"> |
|
|
|
user_name = #{userName,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="contactPhone != null"> |
|
|
|
contact_phone = #{contactPhone,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="shopName != null"> |
|
|
|
shop_name = #{shopName,jdbcType=VARCHAR}, |
|
|
|
<if test="feedbackType != null"> |
|
|
|
feedback_type = #{feedbackType,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="regionId != null"> |
|
|
|
region_id = #{regionId,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="regionName != null"> |
|
|
|
region_name = #{regionName,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="status != null"> |
|
|
|
status = #{status,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="handleOpinion != null"> |
|
|
|
handle_opinion = #{handleOpinion,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="handleUserId != null"> |
|
|
|
handle_user_id = #{handleUserId,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="handleUserName != null"> |
|
|
|
handle_user_name = #{handleUserName,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="handleTime != null"> |
|
|
|
handle_time = #{handleTime,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
|
@ -131,23 +211,48 @@ |
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|
|
|
problem_content = #{problemContent,jdbcType=VARCHAR}, |
|
|
|
problem_picture = #{problemPicture,jdbcType=VARCHAR}, |
|
|
|
shop_id = #{shopId,jdbcType=VARCHAR}, |
|
|
|
shop_name = #{shopName,jdbcType=VARCHAR} |
|
|
|
user_id = #{userId,jdbcType=VARCHAR}, |
|
|
|
user_name = #{userName,jdbcType=VARCHAR}, |
|
|
|
contact_phone = #{contactPhone,jdbcType=VARCHAR}, |
|
|
|
feedback_type = #{feedbackType,jdbcType=VARCHAR}, |
|
|
|
region_id = #{regionId,jdbcType=VARCHAR}, |
|
|
|
region_name = #{regionName,jdbcType=VARCHAR}, |
|
|
|
status = #{status,jdbcType=INTEGER}, |
|
|
|
handle_opinion = #{handleOpinion,jdbcType=VARCHAR}, |
|
|
|
handle_user_id = #{handleUserId,jdbcType=VARCHAR}, |
|
|
|
handle_user_name = #{handleUserName,jdbcType=VARCHAR}, |
|
|
|
handle_time = #{handleTime,jdbcType=TIMESTAMP} |
|
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
|
</update> |
|
|
|
|
|
|
|
<!--管理商品分页列表--> |
|
|
|
<select id="getProblemFeedbackList" resultType="cc.hiver.mall.problemfeedback.vo.ProblemFeedbackPageVo"> |
|
|
|
select |
|
|
|
t.id, t.create_by,t.create_time,t.del_flag,t.problem_content, t.problem_picture, t.shop_id, t.shop_name |
|
|
|
t.id, t.create_by, t.create_time, t.del_flag, t.problem_content, t.problem_picture, t.user_id, |
|
|
|
t.user_name, t.contact_phone, t.feedback_type, t.region_id, t.region_name, t.status, t.handle_opinion, |
|
|
|
t.handle_user_id, t.handle_user_name, t.handle_time |
|
|
|
from t_problem_feedback t |
|
|
|
<where> |
|
|
|
AND ifnull(t.del_flag, 0) = 0 |
|
|
|
<!--反馈内容--> |
|
|
|
<if test='queryParams.problemContent!=null and queryParams.problemContent.trim() neq ""'> |
|
|
|
AND t.problem_content like concat('%',#{queryParams.problemContent},'%') |
|
|
|
</if> |
|
|
|
<if test='queryParams.userId!=null and queryParams.userId.trim() neq ""'> |
|
|
|
AND t.user_id = #{queryParams.userId} |
|
|
|
</if> |
|
|
|
<if test='queryParams.regionId!=null and queryParams.regionId.trim() neq ""'> |
|
|
|
AND t.region_id = #{queryParams.regionId} |
|
|
|
</if> |
|
|
|
<if test='queryParams.status!=null'> |
|
|
|
AND t.status = #{queryParams.status} |
|
|
|
</if> |
|
|
|
<if test='queryParams.feedbackType!=null and queryParams.feedbackType.trim() neq ""'> |
|
|
|
AND t.feedback_type = #{queryParams.feedbackType} |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
ORDER BY |
|
|
|
t.create_time desc |
|
|
|
CASE WHEN t.status = 0 THEN 0 ELSE 1 END ASC, |
|
|
|
t.create_time DESC |
|
|
|
</select> |
|
|
|
</mapper> |