请假流程发送通知功能完善
This commit is contained in:
@@ -35,7 +35,6 @@
|
||||
</sql>
|
||||
|
||||
|
||||
|
||||
<select id="getCounselorInfo" resultType="com.srs.common.doman.vo.TeacherVo">
|
||||
SELECT d.user_id userId, d.dept_id deptId, d.user_name userName, d.nick_name nickName
|
||||
FROM srs_student a
|
||||
@@ -58,6 +57,68 @@
|
||||
where leave_application_id = #{leaveApplicationId}
|
||||
</select>
|
||||
|
||||
<!-- 获取审批人的部门id -->
|
||||
<select id="getUpdateDeptId" resultType="com.srs.common.doman.vo.TeacherVo">
|
||||
SELECT a.user_id userId,a.dept_id deptId,a.nick_name userNick,a.user_name userName
|
||||
FROM sys_user a where a.user_id=#{userId}
|
||||
</select>
|
||||
|
||||
<!-- 获取学工用户信息 -->
|
||||
<select id="getUpdateDeptIdInfo" resultType="com.srs.common.doman.vo.TeacherVo">
|
||||
SELECT a.user_id userId,a.dept_id deptId,a.nick_name userNick,a.user_name userName FROM sys_user a
|
||||
LEFT JOIN sys_user_post b ON a.user_id = b.user_id
|
||||
LEFT JOIN sys_post c ON b.post_id=c.post_id
|
||||
WHERE a.dept_id=#{deptId} AND c.post_code='jwcgl'
|
||||
</select>
|
||||
|
||||
<!-- 获取校领导用户信息 -->
|
||||
<select id="getLingDataInfo" resultType="com.srs.common.doman.vo.TeacherVo">
|
||||
SELECT a.user_id userId,a.dept_id deptId,a.nick_name userNick,a.user_name userName FROM sys_user a
|
||||
WHERE a.user_id=#{userId}
|
||||
</select>
|
||||
|
||||
<!-- 查询学生用户信息 -->
|
||||
<select id="getShenUserInfo" resultType="com.srs.common.doman.vo.TeacherVo">
|
||||
SELECT d.user_id userId, d.dept_id deptId, d.user_name userName, d.nick_name nickName
|
||||
FROM srs_student a
|
||||
LEFT JOIN sys_user d ON a.stu_no = d.user_name
|
||||
WHERE a.stu_id = #{stuId}
|
||||
</select>
|
||||
|
||||
<!-- 查询指定收件人所对应的通知信息 -->
|
||||
<select id="selectCphMsgListForFlowable" parameterType="NotificationManage" resultType="com.srs.flowable.domain.NotificationManage">
|
||||
select id, sender, receiver, content, create_by, create_time, update_by, update_time from cph_msg
|
||||
<where>
|
||||
<if test="receiver != null "> and receiver = #{receiver}</if>
|
||||
<if test="content != null and content != ''">
|
||||
and content LIKE CONCAT('%', #{content}, '%')
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<!-- 添加通知信息到cph_msg表中用于工作台中我的消息进行展示 -->
|
||||
<insert id="insertCphMsg" parameterType="NotificationManage" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into cph_msg
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="sender != null">sender,</if>
|
||||
<if test="receiver != null">receiver,</if>
|
||||
<if test="content != null">content,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="sender != null">#{sender},</if>
|
||||
<if test="receiver != null">#{receiver},</if>
|
||||
<if test="content != null">#{content},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateRtStuLeaveApplication" parameterType="RtStuLeaveApplication">
|
||||
update rt_stu_leave_application
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
@@ -86,4 +147,10 @@
|
||||
</trim>
|
||||
where leave_application_id = #{leaveApplicationId}
|
||||
</update>
|
||||
|
||||
<!-- 根据id删除指定通知 -->
|
||||
<delete id="deleteCphMsgById" parameterType="Long">
|
||||
delete from cph_msg where id = #{id}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user