You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
153 lines
6.3 KiB
153 lines
6.3 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="cc.hiver.mall.problemfeedback.mapper.ProblemFeedbackMapper">
|
|
<resultMap id="BaseResultMap" type="cc.hiver.mall.problemfeedback.entity.ProblemFeedback">
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="del_flag" jdbcType="INTEGER" property="delFlag" />
|
|
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
|
|
<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" />
|
|
</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
|
|
</sql>
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
from t_problem_feedback
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
</select>
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
delete from t_problem_feedback
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
</delete>
|
|
|
|
<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)
|
|
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})
|
|
</insert>
|
|
|
|
<update id="updateByExampleSelective" parameterType="map">
|
|
update t_problem_feedback
|
|
<set>
|
|
<if test="record.id != null">
|
|
id = #{record.id,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.createBy != null">
|
|
create_by = #{record.createBy,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.createTime != null">
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="record.delFlag != null">
|
|
del_flag = #{record.delFlag,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="record.updateBy != null">
|
|
update_by = #{record.updateBy,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.updateTime != null">
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="record.problemContent != null">
|
|
problem_content = #{record.problemContent,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.problemPicture != null">
|
|
problem_picture = #{record.problemPicture,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.shopId != null">
|
|
shop_id = #{record.shopId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.shopName != null">
|
|
shop_name = #{record.shopName,jdbcType=VARCHAR},
|
|
</if>
|
|
</set>
|
|
</update>
|
|
|
|
<update id="updateByExample" parameterType="map">
|
|
update t_problem_feedback
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
create_by = #{record.createBy,jdbcType=VARCHAR},
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
del_flag = #{record.delFlag,jdbcType=INTEGER},
|
|
update_by = #{record.updateBy,jdbcType=VARCHAR},
|
|
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}
|
|
</update>
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="cc.hiver.mall.problemfeedback.entity.ProblemFeedback">
|
|
update t_problem_feedback
|
|
<set>
|
|
<if test="createBy != null">
|
|
create_by = #{createBy,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="createTime != null">
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="delFlag != null">
|
|
del_flag = #{delFlag,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="updateBy != null">
|
|
update_by = #{updateBy,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="updateTime != null">
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="problemContent != null">
|
|
problem_content = #{problemContent,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="problemPicture != null">
|
|
problem_picture = #{problemPicture,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="shopId != null">
|
|
shop_id = #{shopId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="shopName != null">
|
|
shop_name = #{shopName,jdbcType=VARCHAR},
|
|
</if>
|
|
</set>
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
</update>
|
|
|
|
<update id="updateByPrimaryKey" parameterType="cc.hiver.mall.problemfeedback.entity.ProblemFeedback">
|
|
update t_problem_feedback
|
|
set create_by = #{createBy,jdbcType=VARCHAR},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
del_flag = #{delFlag,jdbcType=INTEGER},
|
|
update_by = #{updateBy,jdbcType=VARCHAR},
|
|
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}
|
|
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
|
|
from t_problem_feedback t
|
|
<where>
|
|
<!--反馈内容-->
|
|
<if test='queryParams.problemContent!=null and queryParams.problemContent.trim() neq ""'>
|
|
AND t.problem_content like concat('%',#{queryParams.problemContent},'%')
|
|
</if>
|
|
</where>
|
|
ORDER BY
|
|
t.create_time desc
|
|
</select>
|
|
</mapper>
|