班级升级
This commit is contained in:
@ -403,6 +403,14 @@
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="updateByChildClassId" parameterType="ByChild">
|
||||
update by_child
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="classid != null and classid != ''">classid = #{classid},</if>
|
||||
</trim>
|
||||
where classid = #{phone}
|
||||
</update>
|
||||
|
||||
<delete id="deleteByChildById" parameterType="Long">
|
||||
delete from by_child where id = #{id}
|
||||
</delete>
|
||||
|
@ -19,33 +19,51 @@
|
||||
<result property="remark" column="remark"/>
|
||||
<result property="createuserid" column="createuserid"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<association property="byClass" column="classid" javaType="ByClass" resultMap="ByClassResult"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="ByClass" id="ByClassResult">
|
||||
<result property="bjbh" column="bjbh"/>
|
||||
<result property="deptId" column="dept_id"/>
|
||||
<result property="bjtype" column="bjtype"/>
|
||||
<result property="bhxh" column="bhxh"/>
|
||||
<result property="xn" column="xn"/>
|
||||
<result property="bjmc" column="bjmc"/>
|
||||
<result property="bjrych" column="bjrych"/>
|
||||
<result property="jbny" column="jbny"/>
|
||||
<result property="zbjs" column="zbjs"/>
|
||||
<result property="pbjs" column="pbjs"/>
|
||||
<result property="zljs" column="zljs"/>
|
||||
<result property="isdel" column="isdel"/>
|
||||
<result property="createtime" column="createtime"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectByMathTermplanVo">
|
||||
select id, schoolid, classid, name, startmonth, endmonth, xnxq, status, spr, sptime, spyj, remark, createuserid, create_time from by_math_termplan
|
||||
select a.id, a.schoolid, a.classid, b.bjmc,a.name, a.startmonth, a.endmonth, a.xnxq, a.status, a.spr, a.sptime, a.spyj, a.remark, a.createuserid, a.create_time from by_math_termplan a
|
||||
left join by_class b on a.classid=b.bjbh
|
||||
</sql>
|
||||
|
||||
<select id="selectByMathTermplanList" parameterType="ByMathTermplan" resultMap="ByMathTermplanResult">
|
||||
<include refid="selectByMathTermplanVo"/>
|
||||
<where>
|
||||
<if test="schoolid != null ">and schoolid = #{schoolid}</if>
|
||||
<if test="classid != null and classid != ''">and classid = #{classid}</if>
|
||||
<if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if>
|
||||
<if test="startmonth != null ">and startmonth = #{startmonth}</if>
|
||||
<if test="endmonth != null ">and endmonth = #{endmonth}</if>
|
||||
<if test="xnxq != null and xnxq != ''">and xnxq = #{xnxq}</if>
|
||||
<if test="status != null and status != ''">and status = #{status}</if>
|
||||
<if test="spr != null ">and spr = #{spr}</if>
|
||||
<if test="sptime != null ">and sptime = #{sptime}</if>
|
||||
<if test="spyj != null and spyj != ''">and spyj = #{spyj}</if>
|
||||
<if test="createuserid != null ">and createuserid = #{createuserid}</if>
|
||||
<if test="schoolid != null ">and a.schoolid = #{schoolid}</if>
|
||||
<if test="classid != null and classid != ''">and a.classid = #{classid}</if>
|
||||
<if test="name != null and name != ''">and a.name like concat('%', #{name}, '%')</if>
|
||||
<if test="startmonth != null ">and a.startmonth = #{startmonth}</if>
|
||||
<if test="endmonth != null ">and a.endmonth = #{endmonth}</if>
|
||||
<if test="xnxq != null and xnxq != ''">and a.xnxq = #{xnxq}</if>
|
||||
<if test="status != null and status != ''">and a.status = #{status}</if>
|
||||
<if test="spr != null ">and a.spr = #{spr}</if>
|
||||
<if test="sptime != null ">and a.sptime = #{sptime}</if>
|
||||
<if test="spyj != null and spyj != ''">and a.spyj = #{spyj}</if>
|
||||
<if test="createuserid != null ">and a.createuserid = #{createuserid}</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
order by a.create_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectByMathTermplanById" parameterType="String" resultMap="ByMathTermplanResult">
|
||||
<include refid="selectByMathTermplanVo"/>
|
||||
where id = #{id}
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertByMathTermplan" parameterType="ByMathTermplan">
|
||||
|
@ -5,54 +5,72 @@
|
||||
<mapper namespace="com.ruoyi.project.benyi.mapper.ByThemeMonthplanMapper">
|
||||
|
||||
<resultMap type="ByThemeMonthplan" id="ByThemeMonthplanResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="schoolid" column="schoolid" />
|
||||
<result property="classid" column="classid" />
|
||||
<result property="xnxq" column="xnxq" />
|
||||
<result property="month" column="month" />
|
||||
<result property="themes" column="themes" />
|
||||
<result property="selfthemes" column="selfthemes" />
|
||||
<result property="wxkc" column="wxkc" />
|
||||
<result property="support" column="support" />
|
||||
<result property="remarks" column="remarks" />
|
||||
<result property="createuserid" column="createuserid" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="spr" column="spr" />
|
||||
<result property="sptime" column="sptime" />
|
||||
<result property="spyj" column="spyj" />
|
||||
<result property="status" column="status" />
|
||||
<result property="id" column="id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="schoolid" column="schoolid"/>
|
||||
<result property="classid" column="classid"/>
|
||||
<result property="xnxq" column="xnxq"/>
|
||||
<result property="month" column="month"/>
|
||||
<result property="themes" column="themes"/>
|
||||
<result property="selfthemes" column="selfthemes"/>
|
||||
<result property="wxkc" column="wxkc"/>
|
||||
<result property="support" column="support"/>
|
||||
<result property="remarks" column="remarks"/>
|
||||
<result property="createuserid" column="createuserid"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="spr" column="spr"/>
|
||||
<result property="sptime" column="sptime"/>
|
||||
<result property="spyj" column="spyj"/>
|
||||
<result property="status" column="status"/>
|
||||
<association property="byClass" column="classid" javaType="ByClass" resultMap="ByClassResult"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="ByClass" id="ByClassResult">
|
||||
<result property="bjbh" column="bjbh"/>
|
||||
<result property="deptId" column="dept_id"/>
|
||||
<result property="bjtype" column="bjtype"/>
|
||||
<result property="bhxh" column="bhxh"/>
|
||||
<result property="xn" column="xn"/>
|
||||
<result property="bjmc" column="bjmc"/>
|
||||
<result property="bjrych" column="bjrych"/>
|
||||
<result property="jbny" column="jbny"/>
|
||||
<result property="zbjs" column="zbjs"/>
|
||||
<result property="pbjs" column="pbjs"/>
|
||||
<result property="zljs" column="zljs"/>
|
||||
<result property="isdel" column="isdel"/>
|
||||
<result property="createtime" column="createtime"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectByThemeMonthplanVo">
|
||||
select id, name, schoolid, classid, xnxq, month, themes, selfthemes, wxkc, support, remarks, createuserid, create_time, spr, sptime, spyj, status from by_theme_monthplan
|
||||
select a.id, a.name, a.schoolid, a.classid, b.bjmc,a.xnxq, a.month, a.themes, a.selfthemes, a.wxkc, a.support, a.remarks, a.createuserid, a.create_time, a.spr, a.sptime, a.spyj, a.status from by_theme_monthplan a
|
||||
left join by_class b on a.classid=b.bjbh
|
||||
</sql>
|
||||
|
||||
<select id="selectByThemeMonthplanList" parameterType="ByThemeMonthplan" resultMap="ByThemeMonthplanResult">
|
||||
<include refid="selectByThemeMonthplanVo"/>
|
||||
<where>
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
<if test="schoolid != null "> and schoolid = #{schoolid}</if>
|
||||
<if test="classid != null and classid != ''"> and classid = #{classid}</if>
|
||||
<if test="xnxq != null and xnxq != ''"> and xnxq = #{xnxq}</if>
|
||||
<if test="month != null "> and month = #{month}</if>
|
||||
<if test="themes != null and themes != ''"> and themes = #{themes}</if>
|
||||
<if test="selfthemes != null and selfthemes != ''"> and selfthemes = #{selfthemes}</if>
|
||||
<if test="wxkc != null and wxkc != ''"> and wxkc = #{wxkc}</if>
|
||||
<if test="support != null and support != ''"> and support = #{support}</if>
|
||||
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
|
||||
<if test="createuserid != null "> and createuserid = #{createuserid}</if>
|
||||
<if test="spr != null "> and spr = #{spr}</if>
|
||||
<if test="sptime != null "> and sptime = #{sptime}</if>
|
||||
<if test="spyj != null and spyj != ''"> and spyj = #{spyj}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="name != null and name != ''">and a.name like concat('%', #{name}, '%')</if>
|
||||
<if test="schoolid != null ">and a.schoolid = #{schoolid}</if>
|
||||
<if test="classid != null and classid != ''">and a.classid = #{classid}</if>
|
||||
<if test="xnxq != null and xnxq != ''">and a.xnxq = #{xnxq}</if>
|
||||
<if test="month != null ">and a.month = #{month}</if>
|
||||
<if test="themes != null and themes != ''">and a.themes = #{themes}</if>
|
||||
<if test="selfthemes != null and selfthemes != ''">and a.selfthemes = #{selfthemes}</if>
|
||||
<if test="wxkc != null and wxkc != ''">and a.wxkc = #{wxkc}</if>
|
||||
<if test="support != null and support != ''">and a.support = #{support}</if>
|
||||
<if test="remarks != null and remarks != ''">and a.remarks = #{remarks}</if>
|
||||
<if test="createuserid != null ">and a.createuserid = #{createuserid}</if>
|
||||
<if test="spr != null ">and a.spr = #{spr}</if>
|
||||
<if test="sptime != null ">and a.sptime = #{sptime}</if>
|
||||
<if test="spyj != null and spyj != ''">and a.spyj = #{spyj}</if>
|
||||
<if test="status != null and status != ''">and a.status = #{status}</if>
|
||||
</where>
|
||||
order by month desc
|
||||
order by a.month desc
|
||||
</select>
|
||||
|
||||
<select id="selectByThemeMonthplanById" parameterType="String" resultMap="ByThemeMonthplanResult">
|
||||
<include refid="selectByThemeMonthplanVo"/>
|
||||
where id = #{id}
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertByThemeMonthplan" parameterType="ByThemeMonthplan">
|
||||
|
@ -19,33 +19,51 @@
|
||||
<result property="spr" column="spr"/>
|
||||
<result property="sptime" column="sptime"/>
|
||||
<result property="shyj" column="shyj"/>
|
||||
<association property="byClass" column="classid" javaType="ByClass" resultMap="ByClassResult"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="ByClass" id="ByClassResult">
|
||||
<result property="bjbh" column="bjbh"/>
|
||||
<result property="deptId" column="dept_id"/>
|
||||
<result property="bjtype" column="bjtype"/>
|
||||
<result property="bhxh" column="bhxh"/>
|
||||
<result property="xn" column="xn"/>
|
||||
<result property="bjmc" column="bjmc"/>
|
||||
<result property="bjrych" column="bjrych"/>
|
||||
<result property="jbny" column="jbny"/>
|
||||
<result property="zbjs" column="zbjs"/>
|
||||
<result property="pbjs" column="pbjs"/>
|
||||
<result property="zljs" column="zljs"/>
|
||||
<result property="isdel" column="isdel"/>
|
||||
<result property="createtime" column="createtime"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectByThemeTermplanVo">
|
||||
select id, schoolid, classid, name, startmonth, endmonth, xnxq, remark, createuserid, create_time, status, spr, sptime, shyj from by_theme_termplan
|
||||
select a.id, a.schoolid, a.classid, b.bjmc ,a.name, a.startmonth, a.endmonth, a.xnxq, a.remark, a.createuserid, a.create_time, a.status, a.spr, a.sptime, a.shyj from by_theme_termplan a
|
||||
left join by_class b on a.classid=b.bjbh
|
||||
</sql>
|
||||
|
||||
<select id="selectByThemeTermplanList" parameterType="ByThemeTermplan" resultMap="ByThemeTermplanResult">
|
||||
<include refid="selectByThemeTermplanVo"/>
|
||||
<where>
|
||||
<if test="schoolid != null ">and schoolid = #{schoolid}</if>
|
||||
<if test="classid != null and classid != ''">and classid = #{classid}</if>
|
||||
<if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if>
|
||||
<if test="startmonth != null ">and startmonth = #{startmonth}</if>
|
||||
<if test="endmonth != null ">and endmonth = #{endmonth}</if>
|
||||
<if test="xnxq != null and xnxq != ''">and xnxq = #{xnxq}</if>
|
||||
<if test="createuserid != null ">and createuserid = #{createuserid}</if>
|
||||
<if test="status != null and status != ''">and status = #{status}</if>
|
||||
<if test="spr != null ">and spr = #{spr}</if>
|
||||
<if test="sptime != null ">and sptime = #{sptime}</if>
|
||||
<if test="shyj != null and shyj != ''">and shyj = #{shyj}</if>
|
||||
<if test="schoolid != null ">and a.schoolid = #{schoolid}</if>
|
||||
<if test="classid != null and classid != ''">and a.classid = #{classid}</if>
|
||||
<if test="name != null and name != ''">and a.name like concat('%', #{name}, '%')</if>
|
||||
<if test="startmonth != null ">and a.startmonth = #{startmonth}</if>
|
||||
<if test="endmonth != null ">and a.endmonth = #{endmonth}</if>
|
||||
<if test="xnxq != null and xnxq != ''">and a.xnxq = #{xnxq}</if>
|
||||
<if test="createuserid != null ">and a.createuserid = #{createuserid}</if>
|
||||
<if test="status != null and status != ''">and a.status = #{status}</if>
|
||||
<if test="spr != null ">and a.spr = #{spr}</if>
|
||||
<if test="sptime != null ">and a.sptime = #{sptime}</if>
|
||||
<if test="shyj != null and shyj != ''">and a.shyj = #{shyj}</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
order by a.create_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectByThemeTermplanById" parameterType="String" resultMap="ByThemeTermplanResult">
|
||||
<include refid="selectByThemeTermplanVo"/>
|
||||
where id = #{id}
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertByThemeTermplan" parameterType="ByThemeTermplan">
|
||||
|
@ -19,33 +19,51 @@
|
||||
<result property="createuserid" column="createuserid"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="xnxq" column="xnxq"/>
|
||||
<association property="byClass" column="classid" javaType="ByClass" resultMap="ByClassResult"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="ByClass" id="ByClassResult">
|
||||
<result property="bjbh" column="bjbh"/>
|
||||
<result property="deptId" column="dept_id"/>
|
||||
<result property="bjtype" column="bjtype"/>
|
||||
<result property="bhxh" column="bhxh"/>
|
||||
<result property="xn" column="xn"/>
|
||||
<result property="bjmc" column="bjmc"/>
|
||||
<result property="bjrych" column="bjrych"/>
|
||||
<result property="jbny" column="jbny"/>
|
||||
<result property="zbjs" column="zbjs"/>
|
||||
<result property="pbjs" column="pbjs"/>
|
||||
<result property="zljs" column="zljs"/>
|
||||
<result property="isdel" column="isdel"/>
|
||||
<result property="createtime" column="createtime"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectByThemeWeekplanVo">
|
||||
select id, name, schoolid, classid, month, zc, remark, status, spr, sptime, shyj, createuserid, create_time, xnxq from by_theme_weekplan
|
||||
select a.id, a.name, a.schoolid, a.classid, b.bjmc, a.month, a.zc, a.remark, a.status, a.spr, a.sptime, a.shyj, a.createuserid, a.create_time, a.xnxq from by_theme_weekplan a
|
||||
left join by_class b on a.classid=b.bjbh
|
||||
</sql>
|
||||
|
||||
<select id="selectByThemeWeekplanList" parameterType="ByThemeWeekplan" resultMap="ByThemeWeekplanResult">
|
||||
<include refid="selectByThemeWeekplanVo"/>
|
||||
<where>
|
||||
<if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if>
|
||||
<if test="schoolid != null ">and schoolid = #{schoolid}</if>
|
||||
<if test="classid != null and classid != ''">and classid = #{classid}</if>
|
||||
<if test="month != null ">and month = #{month}</if>
|
||||
<if test="zc != null ">and zc = #{zc}</if>
|
||||
<if test="status != null and status != ''">and status = #{status}</if>
|
||||
<if test="spr != null ">and spr = #{spr}</if>
|
||||
<if test="sptime != null ">and sptime = #{sptime}</if>
|
||||
<if test="shyj != null and shyj != ''">and shyj = #{shyj}</if>
|
||||
<if test="createuserid != null ">and createuserid = #{createuserid}</if>
|
||||
<if test="xnxq != null and xnxq != ''">and xnxq = #{xnxq}</if>
|
||||
<if test="name != null and name != ''">and a.name like concat('%', #{name}, '%')</if>
|
||||
<if test="schoolid != null ">and a.schoolid = #{schoolid}</if>
|
||||
<if test="classid != null and classid != ''">and a.classid = #{classid}</if>
|
||||
<if test="month != null ">and a.month = #{month}</if>
|
||||
<if test="zc != null ">and a.zc = #{zc}</if>
|
||||
<if test="status != null and status != ''">and a.status = #{status}</if>
|
||||
<if test="spr != null ">and a.spr = #{spr}</if>
|
||||
<if test="sptime != null ">and a.sptime = #{sptime}</if>
|
||||
<if test="shyj != null and shyj != ''">and a.shyj = #{shyj}</if>
|
||||
<if test="createuserid != null ">and a.createuserid = #{createuserid}</if>
|
||||
<if test="xnxq != null and xnxq != ''">and a.xnxq = #{xnxq}</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
order by a.create_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectByThemeWeekplanById" parameterType="String" resultMap="ByThemeWeekplanResult">
|
||||
<include refid="selectByThemeWeekplanVo"/>
|
||||
where id = #{id}
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertByThemeWeekplan" parameterType="ByThemeWeekplan">
|
||||
|
@ -93,6 +93,30 @@
|
||||
order by createtime desc
|
||||
</select>
|
||||
|
||||
<select id="selectByClassListAll" parameterType="ByClass" resultMap="ByClassResult">
|
||||
<include refid="selectByClassVo"/>
|
||||
<if test="bjbh != null and bjbh != ''">and bjbh = #{bjbh}</if>
|
||||
<if test="deptId != null and deptId != ''">and dept_id = #{deptId}</if>
|
||||
<if test="bjtype != null and bjtype != ''">and bjtype = #{bjtype}</if>
|
||||
<if test="bhxh != null ">and bhxh = #{bhxh}</if>
|
||||
<if test="xn != null and xn != ''">and xn = #{xn}</if>
|
||||
<if test="bjmc != null and bjmc != ''">and bjmc like concat('%', #{bjmc}, '%')</if>
|
||||
<if test="bjrych != null and bjrych != ''">and bjrych = #{bjrych}</if>
|
||||
<if test="jbny != null ">and jbny = #{jbny}</if>
|
||||
<if test="zbjs != null ">and zbjs = #{zbjs}</if>
|
||||
<if test="pbjs != null ">and pbjs = #{pbjs}</if>
|
||||
<if test="zljs != null ">and zljs = #{zljs}</if>
|
||||
<if test="zbjsxm != null and zbjsxm != ''">and zbjsxm like concat('%', #{zbjsxm}, '%')</if>
|
||||
<if test="pbjsxm != null and pbjsxm != ''">and pbjsxm like concat('%', #{pbjsxm}, '%')</if>
|
||||
<if test="zljsxm != null and zljsxm != ''">and zljsxm like concat('%', #{zljsxm}, '%')</if>
|
||||
<if test="isdel != null and isdel != ''">and isdel = #{isdel}</if>
|
||||
<if test="createtime != null ">and createtime = #{createtime}</if>
|
||||
<!-- 数据范围过滤 -->
|
||||
${dataScope}
|
||||
|
||||
order by createtime desc
|
||||
</select>
|
||||
|
||||
<select id="selectByClassById" parameterType="String" resultMap="ByClassResult">
|
||||
<include refid="selectByClassVo"/>
|
||||
where bjbh = #{bjbh}
|
||||
|
Reference in New Issue
Block a user