|
@@ -23,11 +23,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="isReadUser" column="is_read_user" />
|
|
|
<result property="isReadStore" column="is_read_store" />
|
|
|
<result property="isReadPlatform" column="is_read_platform" />
|
|
|
+ <result property="storeId" column="store_id" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsUserComplaintVo">
|
|
|
select id, fs_user_id, title, content, images, type, link_id, create_time, create_by, update_time, update_by,
|
|
|
- remark,complaint_type,is_handle_store,is_handle_platform,is_read_user,is_read_store,is_read_platform
|
|
|
+ remark,complaint_type,is_handle_store,is_handle_platform,is_read_user,is_read_store,is_read_platform,store_id
|
|
|
from fs_user_complaint
|
|
|
</sql>
|
|
|
|
|
@@ -46,13 +47,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isReadUser != null "> and is_read_user = #{isReadUser}</if>
|
|
|
<if test="isReadStore != null "> and is_read_store = #{isReadStore}</if>
|
|
|
<if test="isReadPlatform != null "> and is_read_platform = #{isReadPlatform}</if>
|
|
|
+ <if test="storeId != null "> and store_id = #{storeId}</if>
|
|
|
</where>
|
|
|
order by id desc
|
|
|
</select>
|
|
|
|
|
|
<select id="selectFsUserComplaintVoList" resultType="com.fs.user.domain.vo.FsUserComplaintVo">
|
|
|
select c.id, u.nick_name,c.title, c.content, c.images, c.type, c.link_id, c.create_time, c.create_by, c.update_time, c.update_by,
|
|
|
- c.remark,c.complaint_type,c.is_handle_store,c.is_handle_platform,c.is_read_user,c.is_read_store,c.is_read_platform
|
|
|
+ c.remark,c.complaint_type,c.is_handle_store,c.is_handle_platform,c.is_read_user,c.is_read_store,c.is_read_platform,c.store_id
|
|
|
from fs_user_complaint c
|
|
|
left join fs_user u on c.fs_user_id = u.user_id
|
|
|
<where>
|
|
@@ -69,6 +71,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isReadUser != null "> and c.is_read_user = #{isReadUser}</if>
|
|
|
<if test="isReadStore != null "> and c.is_read_store = #{isReadStore}</if>
|
|
|
<if test="isReadPlatform != null "> and c.is_read_platform = #{isReadPlatform}</if>
|
|
|
+ <if test="storeId != null "> and c.store_id = #{storeId}</if>
|
|
|
</where>
|
|
|
order by id desc
|
|
|
</select>
|
|
@@ -80,7 +83,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectFsUserComplaintVoById" parameterType="Long" resultType="com.fs.user.domain.vo.FsUserComplaintVo">
|
|
|
select c.id, u.nick_name,c.title, c.content, c.images, c.type, c.link_id, c.create_time, c.create_by, c.update_time, c.update_by,
|
|
|
- c.remark,c.complaint_type,c.is_handle_store,c.is_handle_platform,c.is_read_user,c.is_read_store,c.is_read_platform
|
|
|
+ c.remark,c.complaint_type,c.is_handle_store,c.is_handle_platform,c.is_read_user,c.is_read_store,c.is_read_platform,c.store_id
|
|
|
from fs_user_complaint c
|
|
|
left join fs_user u on c.fs_user_id = u.user_id
|
|
|
where c.id = #{id}
|
|
@@ -107,6 +110,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isReadUser != null">is_read_user,</if>
|
|
|
<if test="isReadStore != null">is_read_store,</if>
|
|
|
<if test="isReadPlatform != null">is_read_platform,</if>
|
|
|
+ <if test="storeId != null">store_id,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="fsUserId != null">#{fsUserId},</if>
|
|
@@ -126,6 +130,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isReadUser != null">#{isReadUser},</if>
|
|
|
<if test="isReadStore != null">#{isReadStore},</if>
|
|
|
<if test="isReadPlatform != null">#{isReadPlatform},</if>
|
|
|
+ <if test="storeId != null">#{storeId},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -149,6 +154,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isReadUser != null">is_read_user = #{isReadUser},</if>
|
|
|
<if test="isReadStore != null">is_read_store = #{isReadStore},</if>
|
|
|
<if test="isReadPlatform != null">is_read_platform = #{isReadPlatform},</if>
|
|
|
+ <if test="storeId != null">store_id = #{storeId},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|