Merge remote-tracking branch 'origin/main'

This commit is contained in:
2025-12-10 09:38:43 +08:00
109 changed files with 6403 additions and 470 deletions

View File

@@ -0,0 +1,243 @@
<?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.srs.dormitory.mapper.DmsAccommodationsMapper">
<resultMap type="DmsAccommodations" id="DmsAccommodationsResult">
<result property="id" column="id" />
<result property="stuNo" column="stu_no" />
<result property="stuName" column="stu_name" />
<result property="birthday" column="birthday" />
<result property="gender" column="gender" />
<result property="className" column="class_name" />
<result property="stuPhone" column="stu_phone" />
<result property="sfzh" column="sfzh" />
<result property="deptName" column="dept_name" />
<result property="majorName" column="major_name" />
<result property="gradeName" column="grade_name" />
<result property="roomNo" column="room_no" />
<result property="isCharge" column="isCharge" />
<result property="sleepOutRemark" column="sleep_out_remark" />
<result property="address" column="address" />
<result property="emergencyContact" column="emergency_contact" />
<result property="parentComment" column="parent_comment" />
<result property="parentTel" column="parent_tel" />
<result property="parentAddress" column="parent_address" />
<result property="reviewerStatus" column="reviewer_status" />
<result property="applySign" column="apply_sign" />
<result property="applyDate" column="apply_date" />
<result property="applySign2" column="apply_sign2" />
<result property="applyDate2" column="apply_date2" />
<result property="fdyCmt" column="fdy_cmt" />
<result property="fdySign" column="fdy_sign" />
<result property="fdyDate" column="fdy_date" />
<result property="fdyNo" column="fdy_no" />
<result property="deptCmt" column="dept_cmt" />
<result property="deptSign" column="dept_sign" />
<result property="deptDate" column="dept_date" />
<result property="deptNo" column="dept_no" />
<result property="xgCmt" column="xg_cmt" />
<result property="xgSign" column="xg_sign" />
<result property="xgDate" column="xg_date" />
<result property="xgNo" column="xg_no" />
<result property="leaderCmt" column="leader_cmt" />
<result property="leaderSign" column="leader_sign" />
<result property="leaderDate" column="leader_date" />
<result property="leaderNo" column="leader_no" />
<result property="stuYearName" column="stu_year_name" />
<result property="createTime" column="create_time" />
<result property="createBy" column="create_by" />
<result property="updateTime" column="update_time" />
<result property="updateBy" column="update_by" />
</resultMap>
<sql id="selectDmsAccommodationsVo">
select id, stu_no, stu_name, birthday, gender, class_name, stu_phone, sfzh, dept_name, major_name, grade_name, room_no, isCharge, sleep_out_remark, address, emergency_contact, parent_comment, parent_tel, parent_address, reviewer_status, apply_sign, apply_date, apply_sign2, apply_date2,fdy_cmt, fdy_sign, fdy_date, fdy_no, dept_cmt, dept_sign, dept_date, dept_no, xg_cmt, xg_sign, xg_date, xg_no, leader_cmt, leader_sign, leader_date, leader_no, stu_year_name, create_time, create_by, update_time, update_by from dms_accommodations
</sql>
<select id="selectDmsAccommodationsList" parameterType="DmsAccommodations" resultMap="DmsAccommodationsResult">
<include refid="selectDmsAccommodationsVo"/>
<where>
<if test="stuNo != null and stuNo != ''"> and stu_no = #{stuNo}</if>
<if test="stuName != null and stuName != ''"> and stu_name like concat('%', #{stuName}, '%')</if>
<if test="className != null and className != ''"> and class_name like concat('%', #{className}, '%')</if>
<if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
<if test="majorName != null and majorName != ''"> and major_name like concat('%', #{majorName}, '%')</if>
<if test="gradeName != null and gradeName != ''"> and grade_name like concat('%', #{gradeName}, '%')</if>
<if test="roomNo != null and roomNo != ''"> and room_no = #{roomNo}</if>
</where>
</select>
<select id="selectDmsAccommodationsById" parameterType="Long" resultMap="DmsAccommodationsResult">
<include refid="selectDmsAccommodationsVo"/>
where id = #{id}
</select>
<select id="getStuDormitory" resultType="com.srs.dormitory.domain.DmsAccommodations" parameterType="String">
select e.name,a.room_no,b.`status`,a.charge_standard,f.signature from dms_dormitory a
left join srs_dormitory_student b on a.id=b.dormitory_id
left join dms_dormitory_floor c on c.id=a.floor_id
left join dms_dormitory_building d on d.id=c.building_id
left join dms_dormitory_park e on e.id=d.park_id
left join sys_user f on f.user_name=b.stu_no
where b.stu_no=#{stuNo}
</select>
<insert id="insertDmsAccommodations" parameterType="DmsAccommodations" useGeneratedKeys="true" keyProperty="id">
insert into dms_accommodations
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="stuNo != null">stu_no,</if>
<if test="stuName != null">stu_name,</if>
<if test="birthday != null">birthday,</if>
<if test="gender != null">gender,</if>
<if test="className != null">class_name,</if>
<if test="stuPhone != null">stu_phone,</if>
<if test="sfzh != null">sfzh,</if>
<if test="deptName != null">dept_name,</if>
<if test="majorName != null">major_name,</if>
<if test="gradeName != null">grade_name,</if>
<if test="roomNo != null">room_no,</if>
<if test="isCharge != null">isCharge,</if>
<if test="sleepOutRemark != null">sleep_out_remark,</if>
<if test="address != null">address,</if>
<if test="emergencyContact != null">emergency_contact,</if>
<if test="parentComment != null">parent_comment,</if>
<if test="parentTel != null">parent_tel,</if>
<if test="parentAddress != null">parent_address,</if>
<if test="reviewerStatus != null">reviewer_status,</if>
<if test="applySign != null">apply_sign,</if>
<if test="applyDate != null">apply_date,</if>
<if test="applySign2 != null">apply_sign2,</if>
<if test="applyDate2 != null">apply_date2,</if>
<if test="fdyCmt != null">fdy_cmt,</if>
<if test="fdySign != null">fdy_sign,</if>
<if test="fdyDate != null">fdy_date,</if>
<if test="fdyNo != null">fdy_no,</if>
<if test="deptCmt != null">dept_cmt,</if>
<if test="deptSign != null">dept_sign,</if>
<if test="deptDate != null">dept_date,</if>
<if test="deptNo != null">dept_no,</if>
<if test="xgCmt != null">xg_cmt,</if>
<if test="xgSign != null">xg_sign,</if>
<if test="xgDate != null">xg_date,</if>
<if test="xgNo != null">xg_no,</if>
<if test="leaderCmt != null">leader_cmt,</if>
<if test="leaderSign != null">leader_sign,</if>
<if test="leaderDate != null">leader_date,</if>
<if test="leaderNo != null">leader_no,</if>
<if test="stuYearName != null">stu_year_name,</if>
<if test="createTime != null">create_time,</if>
<if test="createBy != null">create_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="updateBy != null">update_by,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="stuNo != null">#{stuNo},</if>
<if test="stuName != null">#{stuName},</if>
<if test="birthday != null">#{birthday},</if>
<if test="gender != null">#{gender},</if>
<if test="className != null">#{className},</if>
<if test="stuPhone != null">#{stuPhone},</if>
<if test="sfzh != null">#{sfzh},</if>
<if test="deptName != null">#{deptName},</if>
<if test="majorName != null">#{majorName},</if>
<if test="gradeName != null">#{gradeName},</if>
<if test="roomNo != null">#{roomNo},</if>
<if test="isCharge != null">#{isCharge},</if>
<if test="sleepOutRemark != null">#{sleepOutRemark},</if>
<if test="address != null">#{address},</if>
<if test="emergencyContact != null">#{emergencyContact},</if>
<if test="parentComment != null">#{parentComment},</if>
<if test="parentTel != null">#{parentTel},</if>
<if test="parentAddress != null">#{parentAddress},</if>
<if test="reviewerStatus != null">#{reviewerStatus},</if>
<if test="applySign != null">#{applySign},</if>
<if test="applyDate != null">#{applyDate},</if>
<if test="applySign2 != null">#{applySign2},</if>
<if test="applyDate2 != null">#{applyDate2},</if>
<if test="fdyCmt != null">#{fdyCmt},</if>
<if test="fdySign != null">#{fdySign},</if>
<if test="fdyDate != null">#{fdyDate},</if>
<if test="fdyNo != null">#{fdyNo},</if>
<if test="deptCmt != null">#{deptCmt},</if>
<if test="deptSign != null">#{deptSign},</if>
<if test="deptDate != null">#{deptDate},</if>
<if test="deptNo != null">#{deptNo},</if>
<if test="xgCmt != null">#{xgCmt},</if>
<if test="xgSign != null">#{xgSign},</if>
<if test="xgDate != null">#{xgDate},</if>
<if test="xgNo != null">#{xgNo},</if>
<if test="leaderCmt != null">#{leaderCmt},</if>
<if test="leaderSign != null">#{leaderSign},</if>
<if test="leaderDate != null">#{leaderDate},</if>
<if test="leaderNo != null">#{leaderNo},</if>
<if test="stuYearName != null">#{stuYearName},</if>
<if test="createTime != null">#{createTime},</if>
<if test="createBy != null">#{createBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="updateBy != null">#{updateBy},</if>
</trim>
</insert>
<update id="updateDmsAccommodations" parameterType="DmsAccommodations">
update dms_accommodations
<trim prefix="SET" suffixOverrides=",">
<if test="stuNo != null">stu_no = #{stuNo},</if>
<if test="stuName != null">stu_name = #{stuName},</if>
<if test="birthday != null">birthday = #{birthday},</if>
<if test="gender != null">gender = #{gender},</if>
<if test="className != null">class_name = #{className},</if>
<if test="stuPhone != null">stu_phone = #{stuPhone},</if>
<if test="sfzh != null">sfzh = #{sfzh},</if>
<if test="deptName != null">dept_name = #{deptName},</if>
<if test="majorName != null">major_name = #{majorName},</if>
<if test="gradeName != null">grade_name = #{gradeName},</if>
<if test="roomNo != null">room_no = #{roomNo},</if>
<if test="isCharge != null">isCharge = #{isCharge},</if>
<if test="sleepOutRemark != null">sleep_out_remark = #{sleepOutRemark},</if>
<if test="address != null">address = #{address},</if>
<if test="emergencyContact != null">emergency_contact = #{emergencyContact},</if>
<if test="parentComment != null">parent_comment = #{parentComment},</if>
<if test="parentTel != null">parent_tel = #{parentTel},</if>
<if test="parentAddress != null">parent_address = #{parentAddress},</if>
<if test="reviewerStatus != null">reviewer_status = #{reviewerStatus},</if>
<if test="applySign != null">apply_sign = #{applySign},</if>
<if test="applyDate != null">apply_date = #{applyDate},</if>
<if test="applySign2 != null">apply_sign2 = #{applySign2},</if>
<if test="applyDate2 != null">apply_date2 = #{applyDate2},</if>
<if test="fdyCmt != null">fdy_cmt = #{fdyCmt},</if>
<if test="fdySign != null">fdy_sign = #{fdySign},</if>
<if test="fdyDate != null">fdy_date = #{fdyDate},</if>
<if test="fdyNo != null">fdy_no = #{fdyNo},</if>
<if test="deptCmt != null">dept_cmt = #{deptCmt},</if>
<if test="deptSign != null">dept_sign = #{deptSign},</if>
<if test="deptDate != null">dept_date = #{deptDate},</if>
<if test="deptNo != null">dept_no = #{deptNo},</if>
<if test="xgCmt != null">xg_cmt = #{xgCmt},</if>
<if test="xgSign != null">xg_sign = #{xgSign},</if>
<if test="xgDate != null">xg_date = #{xgDate},</if>
<if test="xgNo != null">xg_no = #{xgNo},</if>
<if test="leaderCmt != null">leader_cmt = #{leaderCmt},</if>
<if test="leaderSign != null">leader_sign = #{leaderSign},</if>
<if test="leaderDate != null">leader_date = #{leaderDate},</if>
<if test="leaderNo != null">leader_no = #{leaderNo},</if>
<if test="stuYearName != null">stu_year_name = #{stuYearName},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteDmsAccommodationsById" parameterType="Long">
delete from dms_accommodations where id = #{id}
</delete>
<delete id="deleteDmsAccommodationsByIds" parameterType="String">
delete from dms_accommodations where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,376 @@
<?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.srs.dormitory.mapper.DmsOutsideAccommodationApplyMapper">
<resultMap type="DmsOutsideAccommodationApply" id="DmsOutsideAccommodationApplyResult">
<result property="id" column="id"/>
<result property="applyNo" column="apply_no"/>
<result property="studentId" column="student_id"/>
<result property="studentNo" column="student_no"/>
<result property="studentName" column="student_name"/>
<result property="gender" column="gender"/>
<result property="birthDate" column="birth_date"/>
<result property="deptId" column="dept_id"/>
<result property="deptName" column="dept_name"/>
<result property="majorId" column="major_id"/>
<result property="majorName" column="major_name"/>
<result property="classId" column="class_id"/>
<result property="className" column="class_name"/>
<result property="originalDormitory" column="original_dormitory"/>
<result property="accommodationFee" column="accommodation_fee"/>
<result property="accommodationFeeStatus" column="accommodation_fee_status"/>
<result property="applyReason" column="apply_reason"/>
<result property="outsideAddress" column="outside_address"/>
<result property="address" column="address"/>
<result property="emergencyPhone" column="emergency_phone"/>
<result property="emergencyContact" column="emergency_contact"/>
<result property="parentOpinion" column="parent_opinion"/>
<result property="parentSignAttachment" column="parent_sign_attachment"/>
<result property="parentPhone" column="parent_phone"/>
<result property="parentAddress" column="parent_address"/>
<result property="parentDetailAddress" column="parent_detail_address"/>
<result property="studentPromiseSign" column="student_promise_sign"/>
<result property="promiseDate" column="promise_date"/>
<result property="startDate" column="start_date"/>
<result property="endDate" column="end_date"/>
<result property="status" column="status"/>
<result property="rejectReason" column="reject_reason"/>
<result property="createTime" column="create_time"/>
<result property="createBy" column="create_by"/>
<result property="updateTime" column="update_time"/>
<result property="updateBy" column="update_by"/>
<result property="isValid" column="is_valid"/>
<result property="teacherName" column="teacher_name"/>
<result property="affixId" column="affix_id"/>
<result property="deployId" column="deploy_id"/>
<result property="processInstanceId" column="process_instance_id"/>
<result property="idCard" column="idCard"/>
<result property="studentPhone" column="studentPhone"/>
<result property="studentSignature" column="student_signature"/>
<result property="promiseContent" column="promise_content" />
</resultMap>
<sql id="selectDmsOutsideAccommodationApplyVo">
select id,
apply_no,
student_id,
student_no,
student_name,
gender,
birth_date,
dept_id,
dept_name,
major_id,
major_name,
class_id,
class_name,
original_dormitory,
accommodation_fee,
accommodation_fee_status,
apply_reason,
outside_address,
address,
emergency_phone,
emergency_contact,
parent_opinion,
parent_sign_attachment,
parent_phone,
parent_address,
parent_detail_address,
student_promise_sign,
promise_date,
start_date,
end_date,
status,
reject_reason,
create_time,
create_by,
update_time,
update_by,
is_valid,
teacher_name,
affix_id,
deploy_id,
process_instance_id,
idCard,
studentPhone,
student_signature,
promise_content
from dms_outside_accommodation_apply
</sql>
<select id="selectDmsOutsideAccommodationApplyList" parameterType="DmsOutsideAccommodationApply"
resultMap="DmsOutsideAccommodationApplyResult">
<include refid="selectDmsOutsideAccommodationApplyVo"/>
<where>
<if test="applyNo != null and applyNo != ''">and apply_no = #{applyNo}</if>
<if test="studentId != null ">and student_id = #{studentId}</if>
<if test="studentNo != null and studentNo != ''">and student_no = #{studentNo}</if>
<if test="studentName != null and studentName != ''">and student_name like concat('%', #{studentName},
'%')
</if>
<if test="gender != null and gender != ''">and gender = #{gender}</if>
<if test="birthDate != null ">and birth_date = #{birthDate}</if>
<if test="deptId != null ">and dept_id = #{deptId}</if>
<if test="deptName != null and deptName != ''">and dept_name like concat('%', #{deptName}, '%')</if>
<if test="majorId != null ">and major_id = #{majorId}</if>
<if test="majorName != null and majorName != ''">and major_name like concat('%', #{majorName}, '%')</if>
<if test="classId != null ">and class_id = #{classId}</if>
<if test="className != null and className != ''">and class_name like concat('%', #{className}, '%')</if>
<if test="originalDormitory != null and originalDormitory != ''">and original_dormitory =
#{originalDormitory}
</if>
<if test="accommodationFee != null and accommodationFee != ''">and accommodation_fee =
#{accommodationFee}
</if>
<if test="accommodationFeeStatus != null ">and accommodation_fee_status = #{accommodationFeeStatus}</if>
<if test="applyReason != null and applyReason != ''">and apply_reason = #{applyReason}</if>
<if test="outsideAddress != null and outsideAddress != ''">and outside_address = #{outsideAddress}</if>
<if test="address != null and address != ''">and address = #{address}</if>
<if test="emergencyPhone != null and emergencyPhone != ''">and emergency_phone = #{emergencyPhone}</if>
<if test="emergencyContact != null and emergencyContact != ''">and emergency_contact =
#{emergencyContact}
</if>
<if test="parentOpinion != null ">and parent_opinion = #{parentOpinion}</if>
<if test="parentSignAttachment != null and parentSignAttachment != ''">and parent_sign_attachment =
#{parentSignAttachment}
</if>
<if test="parentPhone != null and parentPhone != ''">and parent_phone = #{parentPhone}</if>
<if test="parentAddress != null and parentAddress != ''">and parent_address = #{parentAddress}</if>
<if test="parentDetailAddress != null and parentDetailAddress != ''">and parent_detail_address =
#{parentDetailAddress}
</if>
<if test="studentPromiseSign != null and studentPromiseSign != ''">and student_promise_sign =
#{studentPromiseSign}
</if>
<if test="promiseDate != null ">and promise_date = #{promiseDate}</if>
<if test="startDate != null ">and start_date = #{startDate}</if>
<if test="endDate != null ">and end_date = #{endDate}</if>
<if test="status != null ">and status = #{status}</if>
<if test="rejectReason != null and rejectReason != ''">and reject_reason = #{rejectReason}</if>
<if test="isValid != null ">and is_valid = #{isValid}</if>
<if test="teacherName != null and teacherName != ''">and teacher_name like concat('%', #{teacherName},
'%')
</if>
<if test="affixId != null and affixId != ''">and affix_id = #{affixId}</if>
<if test="deployId != null and deployId != ''">and deploy_id = #{deployId}</if>
<if test="processInstanceId != null and processInstanceId != ''">and process_instance_id =
#{processInstanceId}
</if>
<if test="idCard != null and idCard != ''">and idCard = #{idCard}</if>
<if test="studentPhone != null and studentPhone != ''">and studentPhone = #{studentPhone}</if>
<if test="studentSignature != null and studentSignature != ''">and student_signature =
#{studentSignature}
</if>
</where>
</select>
<select id="selectDmsOutsideAccommodationApplyById" parameterType="Long"
resultMap="DmsOutsideAccommodationApplyResult">
<include refid="selectDmsOutsideAccommodationApplyVo"/>
where id = #{id}
</select>
<!--根据流程ID查询信息-->
<select id="selectDmsOutsideAccommodationApplyByProcessInstanceId" parameterType="String"
resultMap="DmsOutsideAccommodationApplyResult">
<include refid="selectDmsOutsideAccommodationApplyVo"/>
where processInstanceId = #{process_instance_id}
</select>
<!--根据学生姓名和学号查询申请表-->
<select id="getAccommodationByStuNameAndStuNo" resultMap="DmsOutsideAccommodationApplyResult">
select *
from dms_outside_accommodation_apply
<where>
<if test="studentName != null and studentName != ''">
and student_name = #{studentName}
</if>
<if test="studentNo != null and studentNo != ''">
and student_no = #{studentNo}
</if>
</where>
</select>
<!-- 根据学号查询辅导员信息 -->
<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
LEFT JOIN srs_class b ON a.class_id = b.class_id
LEFT JOIN cph_teacher c ON b.teacher_id = c.teacher_id
LEFT JOIN sys_user d ON c.employee_id = d.user_name
WHERE a.stu_no = #{stuNo}
</select>
<insert id="insertDmsOutsideAccommodationApply" parameterType="DmsOutsideAccommodationApply" useGeneratedKeys="true"
keyProperty="id">
insert into dms_outside_accommodation_apply
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="applyNo != null and applyNo != ''">apply_no,</if>
<if test="studentId != null">student_id,</if>
<if test="studentNo != null and studentNo != ''">student_no,</if>
<if test="studentName != null and studentName != ''">student_name,</if>
<if test="gender != null">gender,</if>
<if test="birthDate != null">birth_date,</if>
<if test="deptId != null">dept_id,</if>
<if test="deptName != null and deptName != ''">dept_name,</if>
<if test="majorId != null">major_id,</if>
<if test="majorName != null and majorName != ''">major_name,</if>
<if test="classId != null">class_id,</if>
<if test="className != null and className != ''">class_name,</if>
<if test="originalDormitory != null and originalDormitory != ''">original_dormitory,</if>
<if test="accommodationFee != null and accommodationFee != ''">accommodation_fee,</if>
<if test="accommodationFeeStatus != null">accommodation_fee_status,</if>
<if test="applyReason != null and applyReason != ''">apply_reason,</if>
<if test="outsideAddress != null and outsideAddress != ''">outside_address,</if>
<if test="address != null and address != ''">address,</if>
<if test="emergencyPhone != null and emergencyPhone != ''">emergency_phone,</if>
<if test="emergencyContact != null and emergencyContact != ''">emergency_contact,</if>
<if test="parentOpinion != null">parent_opinion,</if>
<if test="parentSignAttachment != null and parentSignAttachment != ''">parent_sign_attachment,</if>
<if test="parentPhone != null and parentPhone != ''">parent_phone,</if>
<if test="parentAddress != null and parentAddress != ''">parent_address,</if>
<if test="parentDetailAddress != null and parentDetailAddress != ''">parent_detail_address,</if>
<if test="studentPromiseSign != null and studentPromiseSign != ''">student_promise_sign,</if>
<if test="promiseDate != null">promise_date,</if>
<if test="startDate != null">start_date,</if>
<if test="endDate != null">end_date,</if>
<if test="status != null">status,</if>
<if test="rejectReason != null">reject_reason,</if>
<if test="createTime != null">create_time,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="isValid != null">is_valid,</if>
<if test="teacherName != null and teacherName != ''">teacher_name,</if>
<if test="affixId != null">affix_id,</if>
<if test="deployId != null">deploy_id,</if>
<if test="processInstanceId != null">process_instance_id,</if>
<if test="idCard != null and idCard != ''">idCard,</if>
<if test="studentPhone != null">studentPhone,</if>
<if test="studentSignature != null">student_signature,</if>
<if test="promiseContent != null">promise_content,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="applyNo != null and applyNo != ''">#{applyNo},</if>
<if test="studentId != null">#{studentId},</if>
<if test="studentNo != null and studentNo != ''">#{studentNo},</if>
<if test="studentName != null and studentName != ''">#{studentName},</if>
<if test="gender != null">#{gender},</if>
<if test="birthDate != null">#{birthDate},</if>
<if test="deptId != null">#{deptId},</if>
<if test="deptName != null and deptName != ''">#{deptName},</if>
<if test="majorId != null">#{majorId},</if>
<if test="majorName != null and majorName != ''">#{majorName},</if>
<if test="classId != null">#{classId},</if>
<if test="className != null and className != ''">#{className},</if>
<if test="originalDormitory != null and originalDormitory != ''">#{originalDormitory},</if>
<if test="accommodationFee != null and accommodationFee != ''">#{accommodationFee},</if>
<if test="accommodationFeeStatus != null">#{accommodationFeeStatus},</if>
<if test="applyReason != null and applyReason != ''">#{applyReason},</if>
<if test="outsideAddress != null and outsideAddress != ''">#{outsideAddress},</if>
<if test="address != null and address != ''">#{address},</if>
<if test="emergencyPhone != null and emergencyPhone != ''">#{emergencyPhone},</if>
<if test="emergencyContact != null and emergencyContact != ''">#{emergencyContact},</if>
<if test="parentOpinion != null">#{parentOpinion},</if>
<if test="parentSignAttachment != null and parentSignAttachment != ''">#{parentSignAttachment},</if>
<if test="parentPhone != null and parentPhone != ''">#{parentPhone},</if>
<if test="parentAddress != null and parentAddress != ''">#{parentAddress},</if>
<if test="parentDetailAddress != null and parentDetailAddress != ''">#{parentDetailAddress},</if>
<if test="studentPromiseSign != null and studentPromiseSign != ''">#{studentPromiseSign},</if>
<if test="promiseDate != null">#{promiseDate},</if>
<if test="startDate != null">#{startDate},</if>
<if test="endDate != null">#{endDate},</if>
<if test="status != null">#{status},</if>
<if test="rejectReason != null">#{rejectReason},</if>
<if test="createTime != null">#{createTime},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="isValid != null">#{isValid},</if>
<if test="teacherName != null and teacherName != ''">#{teacherName},</if>
<if test="affixId != null">#{affixId},</if>
<if test="deployId != null">#{deployId},</if>
<if test="processInstanceId != null">#{processInstanceId},</if>
<if test="idCard != null and idCard != ''">#{idCard},</if>
<if test="studentPhone != null">#{studentPhone},</if>
<if test="studentSignature != null">#{studentSignature},</if>
<if test="promiseContent != null">#{promiseContent},</if>
</trim>
</insert>
<update id="updateDmsOutsideAccommodationApply" parameterType="DmsOutsideAccommodationApply">
update dms_outside_accommodation_apply
<trim prefix="SET" suffixOverrides=",">
<if test="applyNo != null and applyNo != ''">apply_no = #{applyNo},</if>
<if test="studentId != null">student_id = #{studentId},</if>
<if test="studentNo != null and studentNo != ''">student_no = #{studentNo},</if>
<if test="studentName != null and studentName != ''">student_name = #{studentName},</if>
<if test="gender != null">gender = #{gender},</if>
<if test="birthDate != null">birth_date = #{birthDate},</if>
<if test="deptId != null">dept_id = #{deptId},</if>
<if test="deptName != null and deptName != ''">dept_name = #{deptName},</if>
<if test="majorId != null">major_id = #{majorId},</if>
<if test="majorName != null and majorName != ''">major_name = #{majorName},</if>
<if test="classId != null">class_id = #{classId},</if>
<if test="className != null and className != ''">class_name = #{className},</if>
<if test="originalDormitory != null and originalDormitory != ''">original_dormitory =
#{originalDormitory},
</if>
<if test="accommodationFee != null and accommodationFee != ''">accommodation_fee = #{accommodationFee},</if>
<if test="accommodationFeeStatus != null">accommodation_fee_status = #{accommodationFeeStatus},</if>
<if test="applyReason != null and applyReason != ''">apply_reason = #{applyReason},</if>
<if test="outsideAddress != null and outsideAddress != ''">outside_address = #{outsideAddress},</if>
<if test="address != null and address != ''">address = #{address},</if>
<if test="emergencyPhone != null and emergencyPhone != ''">emergency_phone = #{emergencyPhone},</if>
<if test="emergencyContact != null and emergencyContact != ''">emergency_contact = #{emergencyContact},</if>
<if test="parentOpinion != null">parent_opinion = #{parentOpinion},</if>
<if test="parentSignAttachment != null and parentSignAttachment != ''">parent_sign_attachment =
#{parentSignAttachment},
</if>
<if test="parentPhone != null and parentPhone != ''">parent_phone = #{parentPhone},</if>
<if test="parentAddress != null and parentAddress != ''">parent_address = #{parentAddress},</if>
<if test="parentDetailAddress != null and parentDetailAddress != ''">parent_detail_address =
#{parentDetailAddress},
</if>
<if test="studentPromiseSign != null and studentPromiseSign != ''">student_promise_sign =
#{studentPromiseSign},
</if>
<if test="promiseDate != null">promise_date = #{promiseDate},</if>
<if test="startDate != null">start_date = #{startDate},</if>
<if test="endDate != null">end_date = #{endDate},</if>
<if test="status != null">status = #{status},</if>
<if test="rejectReason != null">reject_reason = #{rejectReason},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="isValid != null">is_valid = #{isValid},</if>
<if test="teacherName != null and teacherName != ''">teacher_name = #{teacherName},</if>
<if test="affixId != null">affix_id = #{affixId},</if>
<if test="deployId != null">deploy_id = #{deployId},</if>
<if test="processInstanceId != null">process_instance_id = #{processInstanceId},</if>
<if test="idCard != null and idCard != ''">idCard = #{idCard},</if>
<if test="studentPhone != null">studentPhone = #{studentPhone},</if>
<if test="studentSignature != null">student_signature = #{studentSignature},</if>
<if test="promiseContent != null">promise_content = #{promiseContent},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteDmsOutsideAccommodationApplyById" parameterType="Long">
delete
from dms_outside_accommodation_apply
where id = #{id}
</delete>
<delete id="deleteDmsOutsideAccommodationApplyByIds" parameterType="String">
delete from dms_outside_accommodation_apply where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,111 @@
<?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.srs.dormitory.mapper.DmsOutsideAccommodationApprovalMapper">
<resultMap type="DmsOutsideAccommodationApproval" id="DmsOutsideAccommodationApprovalResult">
<result property="id" column="id" />
<result property="applyId" column="apply_id" />
<result property="applyNo" column="apply_no" />
<result property="approvalNode" column="approval_node" />
<result property="approverId" column="approver_id" />
<result property="approverName" column="approver_name" />
<result property="approverRole" column="approver_role" />
<result property="approvalOpinion" column="approval_opinion" />
<result property="approvalResult" column="approval_result" />
<result property="approvalTime" column="approval_time" />
<result property="processInstanceId" column="process_instance_id" />
<result property="studentName" column="student_name" />
<result property="studentNo" column="student_no" />
</resultMap>
<sql id="selectDmsOutsideAccommodationApprovalVo">
select id, apply_id, apply_no, approval_node, approver_id, approver_name, approver_role, approval_opinion, approval_result, approval_time, process_instance_id, student_name, student_no from dms_outside_accommodation_approval
</sql>
<select id="selectDmsOutsideAccommodationApprovalList" parameterType="DmsOutsideAccommodationApproval" resultMap="DmsOutsideAccommodationApprovalResult">
<include refid="selectDmsOutsideAccommodationApprovalVo"/>
<where>
<if test="applyId != null "> and apply_id = #{applyId}</if>
<if test="applyNo != null and applyNo != ''"> and apply_no = #{applyNo}</if>
<if test="approvalNode != null "> and approval_node = #{approvalNode}</if>
<if test="approverId != null "> and approver_id = #{approverId}</if>
<if test="approverName != null and approverName != ''"> and approver_name like concat('%', #{approverName}, '%')</if>
<if test="approverRole != null and approverRole != ''"> and approver_role = #{approverRole}</if>
<if test="approvalOpinion != null and approvalOpinion != ''"> and approval_opinion = #{approvalOpinion}</if>
<if test="approvalResult != null "> and approval_result = #{approvalResult}</if>
<if test="approvalTime != null "> and approval_time = #{approvalTime}</if>
<if test="processInstanceId != null and processInstanceId != ''"> and process_instance_id = #{processInstanceId}</if>
<if test="studentName != null and studentName != ''"> and student_name like concat('%', #{studentName}, '%')</if>
<if test="studentNo != null and studentNo != ''"> and student_no = #{studentNo}</if>
</where>
</select>
<select id="selectDmsOutsideAccommodationApprovalById" parameterType="Long" resultMap="DmsOutsideAccommodationApprovalResult">
<include refid="selectDmsOutsideAccommodationApprovalVo"/>
where id = #{id}
</select>
<insert id="insertDmsOutsideAccommodationApproval" parameterType="DmsOutsideAccommodationApproval" useGeneratedKeys="true" keyProperty="id">
insert into dms_outside_accommodation_approval
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="applyId != null">apply_id,</if>
<if test="applyNo != null and applyNo != ''">apply_no,</if>
<if test="approvalNode != null">approval_node,</if>
<if test="approverId != null">approver_id,</if>
<if test="approverName != null and approverName != ''">approver_name,</if>
<if test="approverRole != null and approverRole != ''">approver_role,</if>
<if test="approvalOpinion != null">approval_opinion,</if>
<if test="approvalResult != null">approval_result,</if>
<if test="approvalTime != null">approval_time,</if>
<if test="processInstanceId != null">process_instance_id,</if>
<if test="studentName != null and studentName != ''">student_name,</if>
<if test="studentNo != null and studentNo != ''">student_no,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="applyId != null">#{applyId},</if>
<if test="applyNo != null and applyNo != ''">#{applyNo},</if>
<if test="approvalNode != null">#{approvalNode},</if>
<if test="approverId != null">#{approverId},</if>
<if test="approverName != null and approverName != ''">#{approverName},</if>
<if test="approverRole != null and approverRole != ''">#{approverRole},</if>
<if test="approvalOpinion != null">#{approvalOpinion},</if>
<if test="approvalResult != null">#{approvalResult},</if>
<if test="approvalTime != null">#{approvalTime},</if>
<if test="processInstanceId != null">#{processInstanceId},</if>
<if test="studentName != null and studentName != ''">#{studentName},</if>
<if test="studentNo != null and studentNo != ''">#{studentNo},</if>
</trim>
</insert>
<update id="updateDmsOutsideAccommodationApproval" parameterType="DmsOutsideAccommodationApproval">
update dms_outside_accommodation_approval
<trim prefix="SET" suffixOverrides=",">
<if test="applyId != null">apply_id = #{applyId},</if>
<if test="applyNo != null and applyNo != ''">apply_no = #{applyNo},</if>
<if test="approvalNode != null">approval_node = #{approvalNode},</if>
<if test="approverId != null">approver_id = #{approverId},</if>
<if test="approverName != null and approverName != ''">approver_name = #{approverName},</if>
<if test="approverRole != null and approverRole != ''">approver_role = #{approverRole},</if>
<if test="approvalOpinion != null">approval_opinion = #{approvalOpinion},</if>
<if test="approvalResult != null">approval_result = #{approvalResult},</if>
<if test="approvalTime != null">approval_time = #{approvalTime},</if>
<if test="processInstanceId != null">process_instance_id = #{processInstanceId},</if>
<if test="studentName != null and studentName != ''">student_name = #{studentName},</if>
<if test="studentNo != null and studentNo != ''">student_no = #{studentNo},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteDmsOutsideAccommodationApprovalById" parameterType="Long">
delete from dms_outside_accommodation_approval where id = #{id}
</delete>
<delete id="deleteDmsOutsideAccommodationApprovalByIds" parameterType="String">
delete from dms_outside_accommodation_approval where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,100 @@
<?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.srs.dormitory.mapper.DmsOutsideAccommodationAttachmentMapper">
<resultMap type="DmsOutsideAccommodationAttachment" id="DmsOutsideAccommodationAttachmentResult">
<result property="id" column="id" />
<result property="applyId" column="apply_id" />
<result property="attachmentName" column="attachment_name" />
<result property="attachmentUrl" column="attachment_url" />
<result property="attachmentType" column="attachment_type" />
<result property="fileSize" column="file_size" />
<result property="fileSuffix" column="file_suffix" />
<result property="createTime" column="create_time" />
<result property="processInstanceId" column="process_instance_id" />
<result property="studentName" column="student_name" />
<result property="studentNo" column="student_no" />
</resultMap>
<sql id="selectDmsOutsideAccommodationAttachmentVo">
select id, apply_id, attachment_name, attachment_url, attachment_type, file_size, file_suffix, create_time, process_instance_id, student_name, student_no from dms_outside_accommodation_attachment
</sql>
<select id="selectDmsOutsideAccommodationAttachmentList" parameterType="DmsOutsideAccommodationAttachment" resultMap="DmsOutsideAccommodationAttachmentResult">
<include refid="selectDmsOutsideAccommodationAttachmentVo"/>
<where>
<if test="applyId != null "> and apply_id = #{applyId}</if>
<if test="attachmentName != null and attachmentName != ''"> and attachment_name like concat('%', #{attachmentName}, '%')</if>
<if test="attachmentUrl != null and attachmentUrl != ''"> and attachment_url = #{attachmentUrl}</if>
<if test="attachmentType != null "> and attachment_type = #{attachmentType}</if>
<if test="fileSize != null "> and file_size = #{fileSize}</if>
<if test="fileSuffix != null and fileSuffix != ''"> and file_suffix = #{fileSuffix}</if>
<if test="processInstanceId != null and processInstanceId != ''"> and process_instance_id = #{processInstanceId}</if>
<if test="studentName != null and studentName != ''"> and student_name like concat('%', #{studentName}, '%')</if>
<if test="studentNo != null and studentNo != ''"> and student_no = #{studentNo}</if>
</where>
</select>
<select id="selectDmsOutsideAccommodationAttachmentById" parameterType="Long" resultMap="DmsOutsideAccommodationAttachmentResult">
<include refid="selectDmsOutsideAccommodationAttachmentVo"/>
where id = #{id}
</select>
<insert id="insertDmsOutsideAccommodationAttachment" parameterType="DmsOutsideAccommodationAttachment" useGeneratedKeys="true" keyProperty="id">
insert into dms_outside_accommodation_attachment
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="applyId != null">apply_id,</if>
<if test="attachmentName != null and attachmentName != ''">attachment_name,</if>
<if test="attachmentUrl != null and attachmentUrl != ''">attachment_url,</if>
<if test="attachmentType != null">attachment_type,</if>
<if test="fileSize != null">file_size,</if>
<if test="fileSuffix != null and fileSuffix != ''">file_suffix,</if>
<if test="createTime != null">create_time,</if>
<if test="processInstanceId != null">process_instance_id,</if>
<if test="studentName != null and studentName != ''">student_name,</if>
<if test="studentNo != null and studentNo != ''">student_no,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="applyId != null">#{applyId},</if>
<if test="attachmentName != null and attachmentName != ''">#{attachmentName},</if>
<if test="attachmentUrl != null and attachmentUrl != ''">#{attachmentUrl},</if>
<if test="attachmentType != null">#{attachmentType},</if>
<if test="fileSize != null">#{fileSize},</if>
<if test="fileSuffix != null and fileSuffix != ''">#{fileSuffix},</if>
<if test="createTime != null">#{createTime},</if>
<if test="processInstanceId != null">#{processInstanceId},</if>
<if test="studentName != null and studentName != ''">#{studentName},</if>
<if test="studentNo != null and studentNo != ''">#{studentNo},</if>
</trim>
</insert>
<update id="updateDmsOutsideAccommodationAttachment" parameterType="DmsOutsideAccommodationAttachment">
update dms_outside_accommodation_attachment
<trim prefix="SET" suffixOverrides=",">
<if test="applyId != null">apply_id = #{applyId},</if>
<if test="attachmentName != null and attachmentName != ''">attachment_name = #{attachmentName},</if>
<if test="attachmentUrl != null and attachmentUrl != ''">attachment_url = #{attachmentUrl},</if>
<if test="attachmentType != null">attachment_type = #{attachmentType},</if>
<if test="fileSize != null">file_size = #{fileSize},</if>
<if test="fileSuffix != null and fileSuffix != ''">file_suffix = #{fileSuffix},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="processInstanceId != null">process_instance_id = #{processInstanceId},</if>
<if test="studentName != null and studentName != ''">student_name = #{studentName},</if>
<if test="studentNo != null and studentNo != ''">student_no = #{studentNo},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteDmsOutsideAccommodationAttachmentById" parameterType="Long">
delete from dms_outside_accommodation_attachment where id = #{id}
</delete>
<delete id="deleteDmsOutsideAccommodationAttachmentByIds" parameterType="String">
delete from dms_outside_accommodation_attachment where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>