日历增加幼儿园与班级园历显示
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.project.benyi.mapper.BySchoolcalendarClassMapper">
|
||||
|
||||
|
||||
<resultMap type="BySchoolcalendarClass" id="BySchoolcalendarClassResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
@ -12,33 +12,37 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="xnxq" column="xnxq" />
|
||||
<result property="deptid" column="deptId" />
|
||||
<result property="activitytime" column="activitytime" />
|
||||
<result property="activityendtime" column="activityendtime" />
|
||||
<result property="stylecolor" column="stylecolor" />
|
||||
<result property="createuserid" column="createuserid" />
|
||||
<result property="createtime" column="createtime" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectBySchoolcalendarClassVo">
|
||||
select id, name, type, classid, xnxq, deptId, activitytime, createuserid, createtime from by_schoolcalendar_class
|
||||
select id, name, type, classid, xnxq, deptId, activitytime, activityendtime, stylecolor, createuserid, createtime from by_schoolcalendar_class
|
||||
</sql>
|
||||
|
||||
<select id="selectBySchoolcalendarClassList" parameterType="BySchoolcalendarClass" resultMap="BySchoolcalendarClassResult">
|
||||
<include refid="selectBySchoolcalendarClassVo"/>
|
||||
<where>
|
||||
<where>
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
<if test="type != null and type != ''"> and type = #{type}</if>
|
||||
<if test="classid != null and classid != ''"> and classid = #{classid}</if>
|
||||
<if test="xnxq != null and xnxq != ''"> and xnxq = #{xnxq}</if>
|
||||
<if test="deptid != null "> and deptId = #{deptid}</if>
|
||||
<if test="activitytime != null "> and activitytime = #{activitytime}</if>
|
||||
<if test="activityendtime != null "> and activityendtime = #{activityendtime}</if>
|
||||
<if test="stylecolor != null and stylecolor != ''"> and stylecolor = #{stylecolor}</if>
|
||||
<if test="createuserid != null "> and createuserid = #{createuserid}</if>
|
||||
<if test="createtime != null "> and createtime = #{createtime}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectBySchoolcalendarClassById" parameterType="Long" resultMap="BySchoolcalendarClassResult">
|
||||
<include refid="selectBySchoolcalendarClassVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertBySchoolcalendarClass" parameterType="BySchoolcalendarClass">
|
||||
insert into by_schoolcalendar_class
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
@ -49,6 +53,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="xnxq != null and xnxq != ''">xnxq,</if>
|
||||
<if test="deptid != null ">deptId,</if>
|
||||
<if test="activitytime != null ">activitytime,</if>
|
||||
<if test="activityendtime != null ">activityendtime,</if>
|
||||
<if test="stylecolor != null and stylecolor != ''">stylecolor,</if>
|
||||
<if test="createuserid != null ">createuserid,</if>
|
||||
<if test="createtime != null ">createtime,</if>
|
||||
</trim>
|
||||
@ -60,6 +66,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="xnxq != null and xnxq != ''">#{xnxq},</if>
|
||||
<if test="deptid != null ">#{deptid},</if>
|
||||
<if test="activitytime != null ">#{activitytime},</if>
|
||||
<if test="activityendtime != null ">#{activityendtime},</if>
|
||||
<if test="stylecolor != null and stylecolor != ''">#{stylecolor},</if>
|
||||
<if test="createuserid != null ">#{createuserid},</if>
|
||||
<if test="createtime != null ">#{createtime},</if>
|
||||
</trim>
|
||||
@ -74,6 +82,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="xnxq != null and xnxq != ''">xnxq = #{xnxq},</if>
|
||||
<if test="deptid != null ">deptId = #{deptid},</if>
|
||||
<if test="activitytime != null ">activitytime = #{activitytime},</if>
|
||||
<if test="activityendtime != null ">activityendtime = #{activityendtime},</if>
|
||||
<if test="stylecolor != null and stylecolor != ''">stylecolor = #{stylecolor},</if>
|
||||
<if test="createuserid != null ">createuserid = #{createuserid},</if>
|
||||
<if test="createtime != null ">createtime = #{createtime},</if>
|
||||
</trim>
|
||||
@ -85,10 +95,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</delete>
|
||||
|
||||
<delete id="deleteBySchoolcalendarClassByIds" parameterType="String">
|
||||
delete from by_schoolcalendar_class where id in
|
||||
delete from by_schoolcalendar_class where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
||||
</mapper>
|
||||
|
Reference in New Issue
Block a user