|
@@ -1,110 +1,207 @@
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<!DOCTYPE mapper
|
|
<!DOCTYPE mapper
|
|
-PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
-"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
|
+ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
+ "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.ruoyi.system.mapper.ZxActivityMapper">
|
|
<mapper namespace="com.ruoyi.system.mapper.ZxActivityMapper">
|
|
-
|
|
|
|
|
|
+
|
|
<resultMap type="ZxActivity" id="ZxActivityResult">
|
|
<resultMap type="ZxActivity" id="ZxActivityResult">
|
|
- <result property="activityId" column="activity_id" />
|
|
|
|
- <result property="activityTitle" column="activity_title" />
|
|
|
|
- <result property="activityDate" column="activity_date" />
|
|
|
|
- <result property="activityTime" column="activity_time" />
|
|
|
|
- <result property="activityAddress" column="activity_address" />
|
|
|
|
- <result property="activityType" column="activity_type" />
|
|
|
|
- <result property="activityDetails" column="activity_details" />
|
|
|
|
- <result property="publishTime" column="publish_time" />
|
|
|
|
- <result property="publishDept" column="publish_dept" />
|
|
|
|
- <result property="publishDeptId" column="publish_dept_id" />
|
|
|
|
- <result property="createBy" column="create_by" />
|
|
|
|
- <result property="createTime" column="create_time" />
|
|
|
|
- <result property="updateBy" column="update_by" />
|
|
|
|
- <result property="updateTime" column="update_time" />
|
|
|
|
- <result property="remark" column="remark" />
|
|
|
|
|
|
+ <result property="activityId" column="activity_id"/>
|
|
|
|
+ <result property="activityTitle" column="activity_title"/>
|
|
|
|
+ <result property="activityDate" column="activity_date"/>
|
|
|
|
+ <result property="activityTime" column="activity_time"/>
|
|
|
|
+ <result property="activityAddress" column="activity_address"/>
|
|
|
|
+ <result property="activityType" column="activity_type"/>
|
|
|
|
+ <result property="activityDetails" column="activity_details"/>
|
|
|
|
+ <result property="publishTime" column="publish_time"/>
|
|
|
|
+ <result property="publishDept" column="publish_dept"/>
|
|
|
|
+ <result property="publishDeptId" column="publish_dept_id"/>
|
|
|
|
+ <result property="createBy" column="create_by"/>
|
|
|
|
+ <result property="createTime" column="create_time"/>
|
|
|
|
+ <result property="updateBy" column="update_by"/>
|
|
|
|
+ <result property="updateTime" column="update_time"/>
|
|
|
|
+ <result property="remark" column="remark"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<resultMap id="ZxActivityZxActivityUserResult" type="ZxActivity" extends="ZxActivityResult">
|
|
<resultMap id="ZxActivityZxActivityUserResult" type="ZxActivity" extends="ZxActivityResult">
|
|
- <collection property="zxActivityUserList" notNullColumn="sub_activity_id" javaType="java.util.List" resultMap="ZxActivityUserResult" />
|
|
|
|
- <collection property="zxFjListFj" notNullColumn="fj_source_id" javaType="java.util.List" resultMap="ZxFjResult" />
|
|
|
|
|
|
+ <collection property="zxActivityUserList" notNullColumn="sub_activity_id" javaType="java.util.List"
|
|
|
|
+ resultMap="ZxActivityUserResult"/>
|
|
|
|
+ <collection property="zxFjListFj" notNullColumn="fj_source_id" javaType="java.util.List"
|
|
|
|
+ resultMap="ZxFjResult"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<resultMap type="ZxActivityUser" id="ZxActivityUserResult">
|
|
<resultMap type="ZxActivityUser" id="ZxActivityUserResult">
|
|
- <result property="activityId" column="sub_activity_id" />
|
|
|
|
- <result property="userId" column="sub_user_id" />
|
|
|
|
- <result property="userName" column="sub_user_name" />
|
|
|
|
- <result property="postName" column="sub_post_name" />
|
|
|
|
- <result property="userLevel" column="sub_user_level" />
|
|
|
|
- <result property="replyTime" column="sub_reply_time" />
|
|
|
|
- <result property="isJoin" column="sub_is_join" />
|
|
|
|
- <result property="leaveType" column="sub_leave_type" />
|
|
|
|
- <result property="leaveReason" column="sub_leave_reason" />
|
|
|
|
- <result property="signIn" column="sub_sign_in" />
|
|
|
|
- <result property="createBy" column="sub_create_by" />
|
|
|
|
- <result property="createTime" column="sub_create_time" />
|
|
|
|
- <result property="updateBy" column="sub_update_by" />
|
|
|
|
- <result property="updateTime" column="sub_update_time" />
|
|
|
|
- <result property="remark" column="sub_remark" />
|
|
|
|
|
|
+ <result property="activityId" column="sub_activity_id"/>
|
|
|
|
+ <result property="userId" column="sub_user_id"/>
|
|
|
|
+ <result property="userName" column="sub_user_name"/>
|
|
|
|
+ <result property="postName" column="sub_post_name"/>
|
|
|
|
+ <result property="userLevel" column="sub_user_level"/>
|
|
|
|
+ <result property="replyTime" column="sub_reply_time"/>
|
|
|
|
+ <result property="isJoin" column="sub_is_join"/>
|
|
|
|
+ <result property="leaveType" column="sub_leave_type"/>
|
|
|
|
+ <result property="leaveReason" column="sub_leave_reason"/>
|
|
|
|
+ <result property="signIn" column="sub_sign_in"/>
|
|
|
|
+ <result property="createBy" column="sub_create_by"/>
|
|
|
|
+ <result property="createTime" column="sub_create_time"/>
|
|
|
|
+ <result property="updateBy" column="sub_update_by"/>
|
|
|
|
+ <result property="updateTime" column="sub_update_time"/>
|
|
|
|
+ <result property="remark" column="sub_remark"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<resultMap type="ZxFj" id="ZxFjResult">
|
|
<resultMap type="ZxFj" id="ZxFjResult">
|
|
- <result property="id" column="fj_id" />
|
|
|
|
- <result property="mainId" column="fj_main_id" />
|
|
|
|
- <result property="sourceId" column="fj_source_id" />
|
|
|
|
- <result property="name" column="fj_name" />
|
|
|
|
- <result property="url" column="fj_url" />
|
|
|
|
- <result property="type" column="fj_type" />
|
|
|
|
- <result property="stytle" column="fj_stytle" />
|
|
|
|
- <result property="remark" column="fj_remark" />
|
|
|
|
|
|
+ <result property="id" column="fj_id"/>
|
|
|
|
+ <result property="mainId" column="fj_main_id"/>
|
|
|
|
+ <result property="sourceId" column="fj_source_id"/>
|
|
|
|
+ <result property="name" column="fj_name"/>
|
|
|
|
+ <result property="url" column="fj_url"/>
|
|
|
|
+ <result property="type" column="fj_type"/>
|
|
|
|
+ <result property="stytle" column="fj_stytle"/>
|
|
|
|
+ <result property="remark" column="fj_remark"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectZxActivityVo">
|
|
<sql id="selectZxActivityVo">
|
|
- select activity_id, activity_title, activity_date, activity_time, activity_address, activity_type, activity_details, publish_time, publish_dept, publish_dept_id, create_by, create_time, update_by, update_time, remark from zx_activity
|
|
|
|
|
|
+ select activity_id,
|
|
|
|
+ activity_title,
|
|
|
|
+ activity_date,
|
|
|
|
+ activity_time,
|
|
|
|
+ activity_address,
|
|
|
|
+ activity_type,
|
|
|
|
+ activity_details,
|
|
|
|
+ publish_time,
|
|
|
|
+ publish_dept,
|
|
|
|
+ publish_dept_id,
|
|
|
|
+ create_by,
|
|
|
|
+ create_time,
|
|
|
|
+ update_by,
|
|
|
|
+ update_time,
|
|
|
|
+ remark
|
|
|
|
+ from zx_activity
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectZxActivityList" parameterType="ZxActivity" resultMap="ZxActivityZxActivityUserResult">
|
|
<select id="selectZxActivityList" parameterType="ZxActivity" resultMap="ZxActivityZxActivityUserResult">
|
|
- select a.activity_id, a.activity_title, a.activity_date, a.activity_time, a.activity_address, a.activity_type, a.activity_details, a.publish_time, a.publish_dept, a.publish_dept_id, a.create_by, a.create_time, a.update_by, a.update_time, a.remark,
|
|
|
|
- b.activity_id as sub_activity_id, b.user_id as sub_user_id, b.user_name as sub_user_name, b.post_name as sub_post_name, b.user_level as sub_user_level, b.reply_time as sub_reply_time, b.is_join as sub_is_join, b.leave_type as sub_leave_type, b.leave_reason as sub_leave_reason, b.sign_in as sub_sign_in, b.create_by as sub_create_by, b.create_time as sub_create_time, b.update_by as sub_update_by, b.update_time as sub_update_time, b.remark as sub_remark,
|
|
|
|
- f.id as fj_id,f.main_id as fj_main_id, f.source_id as fj_source_id, f.name as fj_name, f.url as fj_url, f.type as fj_type,f.stytle as fj_stytle
|
|
|
|
|
|
+ select a.activity_id, a.activity_title, a.activity_date, a.activity_time, a.activity_address, a.activity_type,
|
|
|
|
+ a.activity_details, a.publish_time, a.publish_dept, a.publish_dept_id, a.create_by, a.create_time, a.update_by,
|
|
|
|
+ a.update_time, a.remark,
|
|
|
|
+ b.activity_id as sub_activity_id, b.user_id as sub_user_id, b.user_name as sub_user_name, b.post_name as
|
|
|
|
+ sub_post_name, b.user_level as sub_user_level, b.reply_time as sub_reply_time, b.is_join as sub_is_join,
|
|
|
|
+ b.leave_type as sub_leave_type, b.leave_reason as sub_leave_reason, b.sign_in as sub_sign_in, b.create_by as
|
|
|
|
+ sub_create_by, b.create_time as sub_create_time, b.update_by as sub_update_by, b.update_time as sub_update_time,
|
|
|
|
+ b.remark as sub_remark,
|
|
|
|
+ f.id as fj_id,f.main_id as fj_main_id, f.source_id as fj_source_id, f.name as fj_name, f.url as fj_url, f.type
|
|
|
|
+ as fj_type,f.stytle as fj_stytle
|
|
from zx_activity a
|
|
from zx_activity a
|
|
left join zx_activity_user b on b.activity_id = a.activity_id
|
|
left join zx_activity_user b on b.activity_id = a.activity_id
|
|
left join zx_fj f on f.source_id = a.activity_id
|
|
left join zx_fj f on f.source_id = a.activity_id
|
|
<where>
|
|
<where>
|
|
- <if test="activityTitle != null and activityTitle != ''"> and a.activity_title = #{activityTitle}</if>
|
|
|
|
- <if test="activityDate != null "> and a.activity_date = #{activityDate}</if>
|
|
|
|
- <if test="activityTime != null and activityTime != ''"> and a.activity_time = #{activityTime}</if>
|
|
|
|
- <if test="activityAddress != null and activityAddress != ''"> and a.activity_address = #{activityAddress}</if>
|
|
|
|
- <if test="activityType != null and activityType != ''"> and a.activity_type = #{activityType}</if>
|
|
|
|
- <if test="activityDetails != null and activityDetails != ''"> and a.activity_details = #{activityDetails}</if>
|
|
|
|
- <if test="publishTime != null "> and a.publish_time = #{publishTime}</if>
|
|
|
|
- <if test="publishDept != null and publishDept != ''"> and a.publish_dept = #{publishDept}</if>
|
|
|
|
- <if test="publishDeptId != null "> and a.publish_dept_id = #{publishDeptId}</if>
|
|
|
|
- <if test="userId != null "> and b.user_id = #{userId}</if>
|
|
|
|
|
|
+ <if test="activityTitle != null and activityTitle != ''">and a.activity_title = #{activityTitle}</if>
|
|
|
|
+ <if test="activityDate != null ">and a.activity_date = #{activityDate}</if>
|
|
|
|
+ <if test="activityTime != null and activityTime != ''">and a.activity_time = #{activityTime}</if>
|
|
|
|
+ <if test="activityAddress != null and activityAddress != ''">and a.activity_address = #{activityAddress}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="activityType != null and activityType != ''">and a.activity_type = #{activityType}</if>
|
|
|
|
+ <if test="activityDetails != null and activityDetails != ''">and a.activity_details = #{activityDetails}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="publishTime != null ">and a.publish_time = #{publishTime}</if>
|
|
|
|
+ <if test="publishDept != null and publishDept != ''">and a.publish_dept = #{publishDept}</if>
|
|
|
|
+ <if test="publishDeptId != null ">and a.publish_dept_id = #{publishDeptId}</if>
|
|
|
|
+ <if test="userId != null ">and b.user_id = #{userId}</if>
|
|
<if test="year != null and year != ''"><!-- 开始时间检索 -->
|
|
<if test="year != null and year != ''"><!-- 开始时间检索 -->
|
|
AND date_format(a.publish_time,'%y') = date_format(#{year},'%y')
|
|
AND date_format(a.publish_time,'%y') = date_format(#{year},'%y')
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
order by a.publish_time DESC
|
|
order by a.publish_time DESC
|
|
</select>
|
|
</select>
|
|
-
|
|
|
|
|
|
+
|
|
<select id="selectZxActivityByActivityId" parameterType="Long" resultMap="ZxActivityZxActivityUserResult">
|
|
<select id="selectZxActivityByActivityId" parameterType="Long" resultMap="ZxActivityZxActivityUserResult">
|
|
- select a.activity_id, a.activity_title, a.activity_date, a.activity_time, a.activity_address, a.activity_type, a.activity_details, a.publish_time, a.publish_dept, a.publish_dept_id, a.create_by, a.create_time, a.update_by, a.update_time, a.remark,
|
|
|
|
- b.activity_id as sub_activity_id, b.user_id as sub_user_id, b.user_name as sub_user_name, b.post_name as sub_post_name, b.user_level as sub_user_level, b.reply_time as sub_reply_time, b.is_join as sub_is_join, b.leave_type as sub_leave_type, b.leave_reason as sub_leave_reason, b.sign_in as sub_sign_in, b.create_by as sub_create_by, b.create_time as sub_create_time, b.update_by as sub_update_by, b.update_time as sub_update_time, b.remark as sub_remark,
|
|
|
|
- f.id as fj_id,f.main_id as fj_main_id, f.source_id as fj_source_id, f.name as fj_name, f.url as fj_url, f.type as fj_type,f.stytle as fj_stytle
|
|
|
|
|
|
+ select a.activity_id,
|
|
|
|
+ a.activity_title,
|
|
|
|
+ a.activity_date,
|
|
|
|
+ a.activity_time,
|
|
|
|
+ a.activity_address,
|
|
|
|
+ a.activity_type,
|
|
|
|
+ a.activity_details,
|
|
|
|
+ a.publish_time,
|
|
|
|
+ a.publish_dept,
|
|
|
|
+ a.publish_dept_id,
|
|
|
|
+ a.create_by,
|
|
|
|
+ a.create_time,
|
|
|
|
+ a.update_by,
|
|
|
|
+ a.update_time,
|
|
|
|
+ a.remark,
|
|
|
|
+ b.activity_id as sub_activity_id,
|
|
|
|
+ b.user_id as sub_user_id,
|
|
|
|
+ b.user_name as sub_user_name,
|
|
|
|
+ b.post_name as sub_post_name,
|
|
|
|
+ b.user_level as sub_user_level,
|
|
|
|
+ b.reply_time as sub_reply_time,
|
|
|
|
+ b.is_join as sub_is_join,
|
|
|
|
+ b.leave_type as sub_leave_type,
|
|
|
|
+ b.leave_reason as sub_leave_reason,
|
|
|
|
+ b.sign_in as sub_sign_in,
|
|
|
|
+ b.create_by as sub_create_by,
|
|
|
|
+ b.create_time as sub_create_time,
|
|
|
|
+ b.update_by as sub_update_by,
|
|
|
|
+ b.update_time as sub_update_time,
|
|
|
|
+ b.remark as sub_remark,
|
|
|
|
+ f.id as fj_id,
|
|
|
|
+ f.main_id as fj_main_id,
|
|
|
|
+ f.source_id as fj_source_id,
|
|
|
|
+ f.name as fj_name,
|
|
|
|
+ f.url as fj_url,
|
|
|
|
+ f.type as fj_type,
|
|
|
|
+ f.stytle as fj_stytle
|
|
from zx_activity a
|
|
from zx_activity a
|
|
- left join zx_activity_user b on b.activity_id = a.activity_id
|
|
|
|
- left join zx_fj f on f.source_id = a.activity_id
|
|
|
|
|
|
+ left join zx_activity_user b on b.activity_id = a.activity_id
|
|
|
|
+ left join zx_fj f on f.source_id = a.activity_id
|
|
where a.activity_id = #{activityId}
|
|
where a.activity_id = #{activityId}
|
|
</select>
|
|
</select>
|
|
<select id="selectZxActivityUserByActivityId" resultMap="ZxActivityUserResult">
|
|
<select id="selectZxActivityUserByActivityId" resultMap="ZxActivityUserResult">
|
|
- select b.activity_id as sub_activity_id, b.user_id as sub_user_id, b.user_name as sub_user_name, b.post_name as sub_post_name, b.user_level as sub_user_level, b.reply_time as sub_reply_time, b.is_join as sub_is_join, b.leave_type as sub_leave_type, b.leave_reason as sub_leave_reason, b.sign_in as sub_sign_in, b.create_by as sub_create_by, b.create_time as sub_create_time, b.update_by as sub_update_by, b.update_time as sub_update_time, b.remark as sub_remark
|
|
|
|
- from zx_activity_user b
|
|
|
|
|
|
+ select b.activity_id as sub_activity_id,
|
|
|
|
+ b.user_id as sub_user_id,
|
|
|
|
+ b.user_name as sub_user_name,
|
|
|
|
+ b.post_name as sub_post_name,
|
|
|
|
+ b.user_level as sub_user_level,
|
|
|
|
+ b.reply_time as sub_reply_time,
|
|
|
|
+ b.is_join as sub_is_join,
|
|
|
|
+ b.leave_type as sub_leave_type,
|
|
|
|
+ b.leave_reason as sub_leave_reason,
|
|
|
|
+ b.sign_in as sub_sign_in,
|
|
|
|
+ b.create_by as sub_create_by,
|
|
|
|
+ b.create_time as sub_create_time,
|
|
|
|
+ b.update_by as sub_update_by,
|
|
|
|
+ b.update_time as sub_update_time,
|
|
|
|
+ b.remark as sub_remark
|
|
|
|
+ from zx_activity_user b
|
|
where b.activity_id = #{activityId}
|
|
where b.activity_id = #{activityId}
|
|
</select>
|
|
</select>
|
|
<select id="selectZxActivityUser" resultMap="ZxActivityUserResult">
|
|
<select id="selectZxActivityUser" resultMap="ZxActivityUserResult">
|
|
- select b.activity_id as sub_activity_id, b.user_id as sub_user_id, b.user_name as sub_user_name, b.post_name as sub_post_name, b.user_level as sub_user_level, b.reply_time as sub_reply_time, b.is_join as sub_is_join, b.leave_type as sub_leave_type, b.leave_reason as sub_leave_reason, b.sign_in as sub_sign_in, b.create_by as sub_create_by, b.create_time as sub_create_time, b.update_by as sub_update_by, b.update_time as sub_update_time, b.remark as sub_remark
|
|
|
|
- from zx_activity_user b
|
|
|
|
|
|
+ select b.activity_id as sub_activity_id, b.user_id as sub_user_id, b.user_name as sub_user_name, b.post_name as
|
|
|
|
+ sub_post_name, b.user_level as sub_user_level, b.reply_time as sub_reply_time, b.is_join as sub_is_join,
|
|
|
|
+ b.leave_type as sub_leave_type, b.leave_reason as sub_leave_reason, b.sign_in as sub_sign_in, b.create_by as
|
|
|
|
+ sub_create_by, b.create_time as sub_create_time, b.update_by as sub_update_by, b.update_time as sub_update_time,
|
|
|
|
+ b.remark as sub_remark
|
|
|
|
+ from zx_activity_user b
|
|
<where>
|
|
<where>
|
|
b.activity_id = #{activityId}
|
|
b.activity_id = #{activityId}
|
|
- <if test="userName != null and userName != ''"> and b.user_name = #{userName}</if>
|
|
|
|
|
|
+ <if test="userName != null and userName != ''">and b.user_name = #{userName}</if>
|
|
|
|
+ </where>
|
|
|
|
+ </select>
|
|
|
|
+ <select id="selectZxActivityInfo" parameterType="ZxActivity" resultMap="ZxActivityZxActivityUserResult">
|
|
|
|
+ select a.activity_id, a.activity_title, a.activity_date, a.activity_time, a.activity_address, a.activity_type,
|
|
|
|
+ a.activity_details, a.publish_time, a.publish_dept, a.publish_dept_id, a.create_by, a.create_time, a.update_by,
|
|
|
|
+ a.update_time, a.remark,
|
|
|
|
+ b.activity_id as sub_activity_id, b.user_id as sub_user_id, b.user_name as sub_user_name, b.post_name as
|
|
|
|
+ sub_post_name, b.user_level as sub_user_level, b.reply_time as sub_reply_time, b.is_join as sub_is_join,
|
|
|
|
+ b.leave_type as sub_leave_type, b.leave_reason as sub_leave_reason, b.sign_in as sub_sign_in, b.create_by as
|
|
|
|
+ sub_create_by, b.create_time as sub_create_time, b.update_by as sub_update_by, b.update_time as sub_update_time,
|
|
|
|
+ b.remark as sub_remark,
|
|
|
|
+ f.id as fj_id,f.main_id as fj_main_id, f.source_id as fj_source_id, f.name as fj_name, f.url as fj_url, f.type
|
|
|
|
+ as fj_type,f.stytle as fj_stytle
|
|
|
|
+ from zx_activity a
|
|
|
|
+ left join zx_activity_user b on b.activity_id = a.activity_id
|
|
|
|
+ left join zx_fj f on f.source_id = a.activity_id
|
|
|
|
+ <where>
|
|
|
|
+ a.activity_id = #{activityId}
|
|
|
|
+ <if test="userId != null ">and b.user_id = #{userId}</if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -125,7 +222,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="updateBy != null">update_by,</if>
|
|
<if test="updateBy != null">update_by,</if>
|
|
<if test="updateTime != null">update_time,</if>
|
|
<if test="updateTime != null">update_time,</if>
|
|
<if test="remark != null">remark,</if>
|
|
<if test="remark != null">remark,</if>
|
|
- </trim>
|
|
|
|
|
|
+ </trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="activityTitle != null and activityTitle != ''">#{activityTitle},</if>
|
|
<if test="activityTitle != null and activityTitle != ''">#{activityTitle},</if>
|
|
<if test="activityDate != null">#{activityDate},</if>
|
|
<if test="activityDate != null">#{activityDate},</if>
|
|
@@ -141,7 +238,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
<if test="remark != null">#{remark},</if>
|
|
<if test="remark != null">#{remark},</if>
|
|
- </trim>
|
|
|
|
|
|
+ </trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<update id="updateZxActivity" parameterType="ZxActivity">
|
|
<update id="updateZxActivity" parameterType="ZxActivity">
|
|
@@ -167,7 +264,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<update id="updateReply" parameterType="ZxActivityUser">
|
|
<update id="updateReply" parameterType="ZxActivityUser">
|
|
update zx_activity_user
|
|
update zx_activity_user
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
- <if test="replyTime != null and replyTime != ''">reply_time = #{replyTime},</if>
|
|
|
|
|
|
+ <if test="replyTime != null">reply_time = #{replyTime},</if>
|
|
<if test="isJoin != null and isJoin != ''">is_join = #{isJoin},</if>
|
|
<if test="isJoin != null and isJoin != ''">is_join = #{isJoin},</if>
|
|
<if test="leaveType != null and leaveType != ''">leave_type = #{leaveType},</if>
|
|
<if test="leaveType != null and leaveType != ''">leave_type = #{leaveType},</if>
|
|
<if test="leaveReason != null and leaveReason != ''">leave_reason = #{leaveReason},</if>
|
|
<if test="leaveReason != null and leaveReason != ''">leave_reason = #{leaveReason},</if>
|
|
@@ -177,31 +274,38 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</update>
|
|
</update>
|
|
|
|
|
|
<delete id="deleteZxActivityByActivityId" parameterType="Long">
|
|
<delete id="deleteZxActivityByActivityId" parameterType="Long">
|
|
- delete from zx_activity where activity_id = #{activityId}
|
|
|
|
|
|
+ delete
|
|
|
|
+ from zx_activity
|
|
|
|
+ where activity_id = #{activityId}
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
<delete id="deleteZxActivityByActivityIds" parameterType="String">
|
|
<delete id="deleteZxActivityByActivityIds" parameterType="String">
|
|
- delete from zx_activity where activity_id in
|
|
|
|
|
|
+ delete from zx_activity where activity_id in
|
|
<foreach item="activityId" collection="array" open="(" separator="," close=")">
|
|
<foreach item="activityId" collection="array" open="(" separator="," close=")">
|
|
#{activityId}
|
|
#{activityId}
|
|
</foreach>
|
|
</foreach>
|
|
</delete>
|
|
</delete>
|
|
-
|
|
|
|
|
|
+
|
|
<delete id="deleteZxActivityUserByActivityIds" parameterType="String">
|
|
<delete id="deleteZxActivityUserByActivityIds" parameterType="String">
|
|
- delete from zx_activity_user where activity_id in
|
|
|
|
|
|
+ delete from zx_activity_user where activity_id in
|
|
<foreach item="activityId" collection="array" open="(" separator="," close=")">
|
|
<foreach item="activityId" collection="array" open="(" separator="," close=")">
|
|
#{activityId}
|
|
#{activityId}
|
|
</foreach>
|
|
</foreach>
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
<delete id="deleteZxActivityUserByActivityId" parameterType="Long">
|
|
<delete id="deleteZxActivityUserByActivityId" parameterType="Long">
|
|
- delete from zx_activity_user where activity_id = #{activityId}
|
|
|
|
|
|
+ delete
|
|
|
|
+ from zx_activity_user
|
|
|
|
+ where activity_id = #{activityId}
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
<insert id="batchZxActivityUser">
|
|
<insert id="batchZxActivityUser">
|
|
- insert into zx_activity_user( activity_id, user_id, user_name, post_name, user_level, reply_time, is_join, leave_type, leave_reason, sign_in, create_by, create_time, update_by, update_time, remark) values
|
|
|
|
- <foreach item="item" index="index" collection="list" separator=",">
|
|
|
|
- ( #{item.activityId}, #{item.userId}, #{item.userName}, #{item.postName}, #{item.userLevel}, #{item.replyTime}, #{item.isJoin}, #{item.leaveType}, #{item.leaveReason}, #{item.signIn}, #{item.createBy}, #{item.createTime}, #{item.updateBy}, #{item.updateTime}, #{item.remark})
|
|
|
|
|
|
+ insert into zx_activity_user( activity_id, user_id, user_name, post_name, user_level, reply_time, is_join,
|
|
|
|
+ leave_type, leave_reason, sign_in, create_by, create_time, update_by, update_time, remark) values
|
|
|
|
+ <foreach item="item" index="index" collection="list" separator=",">
|
|
|
|
+ ( #{item.activityId}, #{item.userId}, #{item.userName}, #{item.postName}, #{item.userLevel},
|
|
|
|
+ #{item.replyTime}, #{item.isJoin}, #{item.leaveType}, #{item.leaveReason}, #{item.signIn}, #{item.createBy},
|
|
|
|
+ #{item.createTime}, #{item.updateBy}, #{item.updateTime}, #{item.remark})
|
|
</foreach>
|
|
</foreach>
|
|
</insert>
|
|
</insert>
|
|
</mapper>
|
|
</mapper>
|