外宿申请-申请表

This commit is contained in:
962704835@qq.com
2025-12-06 20:17:33 +08:00
parent 351e7365be
commit 13afaa08b4
3 changed files with 273 additions and 194 deletions

View File

@@ -1,6 +1,7 @@
package com.srs.dormitory.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.srs.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.*;
@@ -10,12 +11,11 @@ import lombok.*;
import com.srs.common.core.domain.BaseEntity;
/**
* 外宿申请对象 dms_outside_accommodation_apply
*
* @author srs
* @date 2025-12-05
* @date 2025-12-06
*/
@Data
@EqualsAndHashCode(callSuper = true)
@@ -139,6 +139,14 @@ private static final long serialVersionUID=1L;
@Excel(name = "原宿舍号", readConverterExp = "如=1栋302")
private String originalDormitory;
/**
* 住宿费缴纳
*/
@ApiModelProperty("住宿费缴纳")
@TableField("accommodation_fee")
@Excel(name = "住宿费缴纳")
private String accommodationFee;
/**
* 住宿费缴纳状态1=已交0=未交)
*/
@@ -164,36 +172,12 @@ private static final long serialVersionUID=1L;
private String outsideAddress;
/**
* 外宿地址-省
* 外宿地址-省市区/县
*/
@ApiModelProperty("外宿地址-省")
@TableField("province")
@Excel(name = "外宿地址-省")
private String province;
/**
* 外宿地址-市
*/
@ApiModelProperty("外宿地址-市")
@TableField("city")
@Excel(name = "外宿地址-市")
private String city;
/**
* 外宿地址-区/县
*/
@ApiModelProperty("外宿地址-区/县")
@TableField("district")
@Excel(name = "外宿地址-区/县")
private String district;
/**
* 外宿紧急联系人
*/
@ApiModelProperty("外宿紧急联系人")
@TableField("emergency_contact")
@Excel(name = "外宿紧急联系人")
private String emergencyContact;
@ApiModelProperty("外宿地址-省市区/县")
@TableField("address")
@Excel(name = "外宿地址-省市区/县")
private String address;
/**
* 紧急联系人电话
@@ -203,6 +187,14 @@ private static final long serialVersionUID=1L;
@Excel(name = "紧急联系人电话")
private String emergencyPhone;
/**
* 外宿紧急联系人
*/
@ApiModelProperty("外宿紧急联系人")
@TableField("emergency_contact")
@Excel(name = "外宿紧急联系人")
private String emergencyContact;
/**
* 家长意见1=同意0=不同意)
*/
@@ -228,28 +220,12 @@ private static final long serialVersionUID=1L;
private String parentPhone;
/**
* 家长通讯地址-省
* 家长通讯地址-省市区/县
*/
@ApiModelProperty("家长通讯地址-省")
@TableField("parent_province")
@Excel(name = "家长通讯地址-省")
private String parentProvince;
/**
* 家长通讯地址-市
*/
@ApiModelProperty("家长通讯地址-市")
@TableField("parent_city")
@Excel(name = "家长通讯地址-市")
private String parentCity;
/**
* 家长通讯地址-区/县
*/
@ApiModelProperty("家长通讯地址-区/县")
@TableField("parent_district")
@Excel(name = "家长通讯地址-区/县")
private String parentDistrict;
@ApiModelProperty("家长通讯地址-省市区/县")
@TableField("parent_address")
@Excel(name = "家长通讯地址-省市区/县")
private String parentAddress;
/**
* 家长通讯地址-详细地址
@@ -349,5 +325,29 @@ private static final long serialVersionUID=1L;
@Excel(name = "Flowable流程实例ID")
private String processInstanceId;
/**
* 身份证号码
*/
@ApiModelProperty("身份证号码")
@TableField("idCard")
@Excel(name = "身份证号码")
private String idCard;
/**
* 学生手机号码
*/
@ApiModelProperty("学生手机号码")
@TableField("studentPhone")
@Excel(name = "学生手机号码")
private String studentPhone;
/**
* 外宿原因学生签名URL
*/
@ApiModelProperty("外宿原因学生签名URL")
@TableField("student_signature")
@Excel(name = "外宿原因学生签名URL")
private String studentSignature;
}

View File

@@ -3,6 +3,7 @@ package com.srs.dormitory.service.impl;
import java.util.List;
import com.srs.common.utils.DateUtils;
import com.srs.common.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
@@ -52,6 +53,7 @@ public class DmsOutsideAccommodationApplyServiceImpl extends ServiceImpl<DmsOuts
@Override
public int insertDmsOutsideAccommodationApply(DmsOutsideAccommodationApply dmsOutsideAccommodationApply) {
dmsOutsideAccommodationApply.setCreateTime(DateUtils.getNowDate());
dmsOutsideAccommodationApply.setCreateBy(SecurityUtils.getUsername());
return dmsOutsideAccommodationApplyMapper.insertDmsOutsideAccommodationApply(dmsOutsideAccommodationApply);
}

View File

@@ -19,20 +19,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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="province" column="province" />
<result property="city" column="city" />
<result property="district" column="district" />
<result property="emergencyContact" column="emergency_contact" />
<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="parentProvince" column="parent_province" />
<result property="parentCity" column="parent_city" />
<result property="parentDistrict" column="parent_district" />
<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"/>
@@ -49,19 +46,69 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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"/>
</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_status, apply_reason, outside_address, province, city, district, emergency_contact, emergency_phone, parent_opinion, parent_sign_attachment, parent_phone, parent_province, parent_city, parent_district, 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 from dms_outside_accommodation_apply
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
from dms_outside_accommodation_apply
</sql>
<select id="selectDmsOutsideAccommodationApplyList" parameterType="DmsOutsideAccommodationApply" resultMap="DmsOutsideAccommodationApplyResult">
<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="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>
@@ -70,42 +117,62 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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="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="province != null and province != ''"> and province = #{province}</if>
<if test="city != null and city != ''"> and city = #{city}</if>
<if test="district != null and district != ''"> and district = #{district}</if>
<if test="emergencyContact != null and emergencyContact != ''"> and emergency_contact = #{emergencyContact}</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="parentSignAttachment != null and parentSignAttachment != ''">and parent_sign_attachment =
#{parentSignAttachment}
</if>
<if test="parentPhone != null and parentPhone != ''">and parent_phone = #{parentPhone}</if>
<if test="parentProvince != null and parentProvince != ''"> and parent_province = #{parentProvince}</if>
<if test="parentCity != null and parentCity != ''"> and parent_city = #{parentCity}</if>
<if test="parentDistrict != null and parentDistrict != ''"> and parent_district = #{parentDistrict}</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="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="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="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">
<select id="selectDmsOutsideAccommodationApplyById" parameterType="Long"
resultMap="DmsOutsideAccommodationApplyResult">
<include refid="selectDmsOutsideAccommodationApplyVo"/>
where id = #{id}
</select>
<insert id="insertDmsOutsideAccommodationApply" parameterType="DmsOutsideAccommodationApply" useGeneratedKeys="true" keyProperty="id">
<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>
@@ -121,20 +188,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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="province != null and province != ''">province,</if>
<if test="city != null and city != ''">city,</if>
<if test="district != null and district != ''">district,</if>
<if test="emergencyContact != null and emergencyContact != ''">emergency_contact,</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="parentProvince != null and parentProvince != ''">parent_province,</if>
<if test="parentCity != null and parentCity != ''">parent_city,</if>
<if test="parentDistrict != null and parentDistrict != ''">parent_district,</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>
@@ -151,6 +215,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="applyNo != null and applyNo != ''">#{applyNo},</if>
@@ -166,20 +233,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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="province != null and province != ''">#{province},</if>
<if test="city != null and city != ''">#{city},</if>
<if test="district != null and district != ''">#{district},</if>
<if test="emergencyContact != null and emergencyContact != ''">#{emergencyContact},</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="parentProvince != null and parentProvince != ''">#{parentProvince},</if>
<if test="parentCity != null and parentCity != ''">#{parentCity},</if>
<if test="parentDistrict != null and parentDistrict != ''">#{parentDistrict},</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>
@@ -196,6 +260,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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>
</trim>
</insert>
@@ -214,23 +281,28 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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="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="province != null and province != ''">province = #{province},</if>
<if test="city != null and city != ''">city = #{city},</if>
<if test="district != null and district != ''">district = #{district},</if>
<if test="emergencyContact != null and emergencyContact != ''">emergency_contact = #{emergencyContact},</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="parentSignAttachment != null and parentSignAttachment != ''">parent_sign_attachment =
#{parentSignAttachment},
</if>
<if test="parentPhone != null and parentPhone != ''">parent_phone = #{parentPhone},</if>
<if test="parentProvince != null and parentProvince != ''">parent_province = #{parentProvince},</if>
<if test="parentCity != null and parentCity != ''">parent_city = #{parentCity},</if>
<if test="parentDistrict != null and parentDistrict != ''">parent_district = #{parentDistrict},</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="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>
@@ -245,12 +317,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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>
</trim>
where id = #{id}
</update>
<delete id="deleteDmsOutsideAccommodationApplyById" parameterType="Long">
delete from dms_outside_accommodation_apply where id = #{id}
delete
from dms_outside_accommodation_apply
where id = #{id}
</delete>
<delete id="deleteDmsOutsideAccommodationApplyByIds" parameterType="String">