主题整合学期月计划(明细)
This commit is contained in:
@ -108,4 +108,13 @@
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="selectByThemeActivityByThemeIds" parameterType="String" resultMap="ByThemeActivityResult">
|
||||
<include refid="selectByThemeActivityVo"/>
|
||||
where themeid in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
order by themeid,sort
|
||||
</select>
|
||||
|
||||
</mapper>
|
@ -47,6 +47,7 @@
|
||||
<if test="spyj != null and spyj != ''"> and spyj = #{spyj}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
</where>
|
||||
order by month desc
|
||||
</select>
|
||||
|
||||
<select id="selectByThemeMonthplanById" parameterType="String" resultMap="ByThemeMonthplanResult">
|
||||
|
@ -0,0 +1,94 @@
|
||||
<?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="com.ruoyi.project.benyi.mapper.ByThemeWeekplanMapper">
|
||||
|
||||
<resultMap type="ByThemeWeekplan" id="ByThemeWeekplanResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="mpid" column="mpid"/>
|
||||
<result property="zc" column="zc"/>
|
||||
<result property="starttime" column="starttime"/>
|
||||
<result property="endtime" column="endtime"/>
|
||||
<result property="activityid" column="activityid"/>
|
||||
<result property="jzzc" column="jzzc"/>
|
||||
<result property="createuserid" column="createuserid"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectByThemeWeekplanVo">
|
||||
select id, mpid, zc, starttime, endtime, activityid, jzzc, createuserid, create_time from by_theme_weekplan
|
||||
</sql>
|
||||
|
||||
<select id="selectByThemeWeekplanList" parameterType="ByThemeWeekplan" resultMap="ByThemeWeekplanResult">
|
||||
<include refid="selectByThemeWeekplanVo"/>
|
||||
<where>
|
||||
<if test="mpid != null and mpid != ''">and mpid = #{mpid}</if>
|
||||
<if test="zc != null ">and zc = #{zc}</if>
|
||||
<if test="starttime != null ">and starttime = #{starttime}</if>
|
||||
<if test="endtime != null ">and endtime = #{endtime}</if>
|
||||
<if test="activityid != null and activityid != ''">and activityid = #{activityid}</if>
|
||||
<if test="jzzc != null and jzzc != ''">and jzzc = #{jzzc}</if>
|
||||
<if test="createuserid != null ">and createuserid = #{createuserid}</if>
|
||||
</where>
|
||||
order by zc
|
||||
</select>
|
||||
|
||||
<select id="selectByThemeWeekplanById" parameterType="String" resultMap="ByThemeWeekplanResult">
|
||||
<include refid="selectByThemeWeekplanVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertByThemeWeekplan" parameterType="ByThemeWeekplan">
|
||||
insert into by_theme_weekplan
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">id,</if>
|
||||
<if test="mpid != null and mpid != ''">mpid,</if>
|
||||
<if test="zc != null ">zc,</if>
|
||||
<if test="starttime != null ">starttime,</if>
|
||||
<if test="endtime != null ">endtime,</if>
|
||||
<if test="activityid != null and activityid != ''">activityid,</if>
|
||||
<if test="jzzc != null and jzzc != ''">jzzc,</if>
|
||||
<if test="createuserid != null ">createuserid,</if>
|
||||
<if test="createTime != null ">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">#{id},</if>
|
||||
<if test="mpid != null and mpid != ''">#{mpid},</if>
|
||||
<if test="zc != null ">#{zc},</if>
|
||||
<if test="starttime != null ">#{starttime},</if>
|
||||
<if test="endtime != null ">#{endtime},</if>
|
||||
<if test="activityid != null and activityid != ''">#{activityid},</if>
|
||||
<if test="jzzc != null and jzzc != ''">#{jzzc},</if>
|
||||
<if test="createuserid != null ">#{createuserid},</if>
|
||||
<if test="createTime != null ">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateByThemeWeekplan" parameterType="ByThemeWeekplan">
|
||||
update by_theme_weekplan
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="mpid != null and mpid != ''">mpid = #{mpid},</if>
|
||||
<if test="zc != null ">zc = #{zc},</if>
|
||||
<if test="starttime != null ">starttime = #{starttime},</if>
|
||||
<if test="endtime != null ">endtime = #{endtime},</if>
|
||||
<if test="activityid != null and activityid != ''">activityid = #{activityid},</if>
|
||||
<if test="jzzc != null and jzzc != ''">jzzc = #{jzzc},</if>
|
||||
<if test="createuserid != null ">createuserid = #{createuserid},</if>
|
||||
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteByThemeWeekplanById" parameterType="String">
|
||||
delete from by_theme_weekplan where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteByThemeWeekplanByIds" parameterType="String">
|
||||
delete from by_theme_weekplan where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
Reference in New Issue
Block a user