Merge remote-tracking branch 'origin/main'
This commit is contained in:
@@ -0,0 +1,368 @@
|
||||
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.*;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.*;
|
||||
import com.srs.common.core.domain.BaseEntity;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 外宿申请对象 dms_accommodations
|
||||
*
|
||||
* @author srs
|
||||
* @date 2025-11-11
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
@ApiModel(value = "DmsAccommodations对象" , description = "外宿申请表")
|
||||
@TableName("dms_accommodations")
|
||||
public class DmsAccommodations extends BaseEntity{
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/**
|
||||
* #
|
||||
*/
|
||||
@ApiModelProperty("#")
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 学号
|
||||
*/
|
||||
@ApiModelProperty("学号")
|
||||
@TableField("stu_no")
|
||||
@Excel(name = "学号")
|
||||
private String stuNo;
|
||||
|
||||
/**
|
||||
* 姓名
|
||||
*/
|
||||
@ApiModelProperty("姓名")
|
||||
@TableField("stu_name")
|
||||
@Excel(name = "姓名")
|
||||
private String stuName;
|
||||
|
||||
/**
|
||||
* 出生日期
|
||||
*/
|
||||
@ApiModelProperty("出生日期")
|
||||
@TableField("birthday")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "出生日期" , width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date birthday;
|
||||
|
||||
/**
|
||||
* 性别
|
||||
*/
|
||||
@ApiModelProperty("性别")
|
||||
@TableField("gender")
|
||||
@Excel(name = "性别")
|
||||
private String gender;
|
||||
|
||||
/**
|
||||
* 班级
|
||||
*/
|
||||
@ApiModelProperty("班级")
|
||||
@TableField("class_name")
|
||||
@Excel(name = "班级")
|
||||
private String className;
|
||||
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
@ApiModelProperty("联系电话")
|
||||
@TableField("stu_phone")
|
||||
@Excel(name = "联系电话")
|
||||
private String stuPhone;
|
||||
|
||||
/**
|
||||
* 身份证号
|
||||
*/
|
||||
@ApiModelProperty("身份证号")
|
||||
@TableField("sfzh")
|
||||
@Excel(name = "身份证号")
|
||||
private String sfzh;
|
||||
|
||||
/**
|
||||
* 学院
|
||||
*/
|
||||
@ApiModelProperty("学院")
|
||||
@TableField("dept_name")
|
||||
@Excel(name = "学院")
|
||||
private String deptName;
|
||||
|
||||
/**
|
||||
* 专业
|
||||
*/
|
||||
@ApiModelProperty("专业")
|
||||
@TableField("major_name")
|
||||
@Excel(name = "专业")
|
||||
private String majorName;
|
||||
|
||||
/**
|
||||
* 年级
|
||||
*/
|
||||
@ApiModelProperty("年级")
|
||||
@TableField("grade_name")
|
||||
@Excel(name = "年级")
|
||||
private String gradeName;
|
||||
|
||||
/**
|
||||
* 房间号
|
||||
*/
|
||||
@ApiModelProperty("房间号")
|
||||
@TableField("room_no")
|
||||
@Excel(name = "房间号")
|
||||
private String roomNo;
|
||||
|
||||
/**
|
||||
* 宿舍缴费情况
|
||||
*/
|
||||
@ApiModelProperty("宿舍缴费情况")
|
||||
@TableField("isCharge")
|
||||
@Excel(name = "宿舍缴费情况")
|
||||
private Long isCharge;
|
||||
|
||||
/**
|
||||
* 外宿原因
|
||||
*/
|
||||
@ApiModelProperty("外宿原因")
|
||||
@TableField("sleep_out_remark")
|
||||
@Excel(name = "外宿原因")
|
||||
private String sleepOutRemark;
|
||||
|
||||
/**
|
||||
* 外宿地址
|
||||
*/
|
||||
@ApiModelProperty("外宿地址")
|
||||
@TableField("address")
|
||||
@Excel(name = "外宿地址")
|
||||
private String address;
|
||||
|
||||
/**
|
||||
* 紧急联系人
|
||||
*/
|
||||
@ApiModelProperty("紧急联系人")
|
||||
@TableField("emergency_contact")
|
||||
@Excel(name = "紧急联系人")
|
||||
private String emergencyContact;
|
||||
|
||||
/**
|
||||
* 家长意见
|
||||
*/
|
||||
@ApiModelProperty("家长意见")
|
||||
@TableField("parent_comment")
|
||||
@Excel(name = "家长意见")
|
||||
private String parentComment;
|
||||
|
||||
/**
|
||||
* 家长联系电话
|
||||
*/
|
||||
@ApiModelProperty("家长联系电话")
|
||||
@TableField("parent_tel")
|
||||
@Excel(name = "家长联系电话")
|
||||
private String parentTel;
|
||||
|
||||
/**
|
||||
* 家长联系地址
|
||||
*/
|
||||
@ApiModelProperty("家长联系地址")
|
||||
@TableField("parent_address")
|
||||
@Excel(name = "家长联系地址")
|
||||
private String parentAddress;
|
||||
|
||||
/**
|
||||
* 状态(0:保存;1:待审核;2:已审核)
|
||||
*/
|
||||
@ApiModelProperty("状态(0:保存;1:待审核;2:已审核)")
|
||||
@TableField("reviewer_status")
|
||||
@Excel(name = "状态" , readConverterExp = "状态(0:保存;1:待审核;2:已审核)")
|
||||
private Long reviewerStatus;
|
||||
|
||||
/**
|
||||
* 申请人签名
|
||||
*/
|
||||
@ApiModelProperty("申请人签名")
|
||||
@TableField("apply_sign")
|
||||
@Excel(name = "申请人签名")
|
||||
private String applySign;
|
||||
|
||||
/**
|
||||
* 申请日期
|
||||
*/
|
||||
@ApiModelProperty("申请日期")
|
||||
@TableField("apply_date")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "申请日期" , width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date applyDate;
|
||||
|
||||
/**
|
||||
* 申请人签名
|
||||
*/
|
||||
@ApiModelProperty("申请人签名")
|
||||
@TableField("apply_sign")
|
||||
@Excel(name = "申请人签名")
|
||||
private String applySign2;
|
||||
|
||||
/**
|
||||
* 申请日期
|
||||
*/
|
||||
@ApiModelProperty("申请日期")
|
||||
@TableField("apply_date")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "申请日期" , width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date applyDate2;
|
||||
|
||||
/**
|
||||
* 辅导员意见
|
||||
*/
|
||||
@ApiModelProperty("辅导员意见")
|
||||
@TableField("fdy_cmt")
|
||||
@Excel(name = "辅导员意见")
|
||||
private String fdyCmt;
|
||||
|
||||
/**
|
||||
* 辅导员签名
|
||||
*/
|
||||
@ApiModelProperty("辅导员签名")
|
||||
@TableField("fdy_sign")
|
||||
@Excel(name = "辅导员签名")
|
||||
private String fdySign;
|
||||
|
||||
/**
|
||||
* 辅导员审核日期
|
||||
*/
|
||||
@ApiModelProperty("辅导员审核日期")
|
||||
@TableField("fdy_date")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "辅导员审核日期" , width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date fdyDate;
|
||||
|
||||
/**
|
||||
* 辅导员工号
|
||||
*/
|
||||
@ApiModelProperty("辅导员工号")
|
||||
@TableField("fdy_no")
|
||||
@Excel(name = "辅导员工号")
|
||||
private String fdyNo;
|
||||
|
||||
/**
|
||||
* 二级学院审核意见
|
||||
*/
|
||||
@ApiModelProperty("二级学院审核意见")
|
||||
@TableField("dept_cmt")
|
||||
@Excel(name = "二级学院审核意见")
|
||||
private String deptCmt;
|
||||
|
||||
/**
|
||||
* 二级学院签名(公章)
|
||||
*/
|
||||
@ApiModelProperty("二级学院签名(公章)")
|
||||
@TableField("dept_sign")
|
||||
@Excel(name = "二级学院签名" , readConverterExp = "公=章")
|
||||
private String deptSign;
|
||||
|
||||
/**
|
||||
* 二级学院审核日期
|
||||
*/
|
||||
@ApiModelProperty("二级学院审核日期")
|
||||
@TableField("dept_date")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "二级学院审核日期" , width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date deptDate;
|
||||
|
||||
/**
|
||||
* 二级学院审核工号
|
||||
*/
|
||||
@ApiModelProperty("二级学院审核工号")
|
||||
@TableField("dept_no")
|
||||
@Excel(name = "二级学院审核工号")
|
||||
private String deptNo;
|
||||
|
||||
/**
|
||||
* 学工意见
|
||||
*/
|
||||
@ApiModelProperty("学工意见")
|
||||
@TableField("xg_cmt")
|
||||
@Excel(name = "学工意见")
|
||||
private String xgCmt;
|
||||
|
||||
/**
|
||||
* 学工签名
|
||||
*/
|
||||
@ApiModelProperty("学工签名")
|
||||
@TableField("xg_sign")
|
||||
@Excel(name = "学工签名")
|
||||
private String xgSign;
|
||||
|
||||
/**
|
||||
* 学工审核日期
|
||||
*/
|
||||
@ApiModelProperty("学工审核日期")
|
||||
@TableField("xg_date")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "学工审核日期" , width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date xgDate;
|
||||
|
||||
/**
|
||||
* 学工审核工号
|
||||
*/
|
||||
@ApiModelProperty("学工审核工号")
|
||||
@TableField("xg_no")
|
||||
@Excel(name = "学工审核工号")
|
||||
private String xgNo;
|
||||
|
||||
/**
|
||||
* 校领导意见
|
||||
*/
|
||||
@ApiModelProperty("校领导意见")
|
||||
@TableField("leader_cmt")
|
||||
@Excel(name = "校领导意见")
|
||||
private String leaderCmt;
|
||||
|
||||
/**
|
||||
* 校领导
|
||||
*/
|
||||
@ApiModelProperty("校领导")
|
||||
@TableField("leader_sign")
|
||||
@Excel(name = "校领导")
|
||||
private String leaderSign;
|
||||
|
||||
/**
|
||||
* 校领导审核日期
|
||||
*/
|
||||
@ApiModelProperty("校领导审核日期")
|
||||
@TableField("leader_date")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "校领导审核日期" , width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date leaderDate;
|
||||
|
||||
/**
|
||||
* 校领导审核工号
|
||||
*/
|
||||
@ApiModelProperty("校领导审核工号")
|
||||
@TableField("leader_no")
|
||||
@Excel(name = "校领导审核工号")
|
||||
private String leaderNo;
|
||||
|
||||
@ApiModelProperty("园区")
|
||||
@TableField(exist = false)
|
||||
private String Name;
|
||||
|
||||
@ApiModelProperty("签名")
|
||||
@TableField(exist = false)
|
||||
private String signature;
|
||||
|
||||
@ApiModelProperty("学年")
|
||||
@TableField("stu_year_name")
|
||||
@Excel(name = "学年")
|
||||
private String stuYearName;
|
||||
}
|
||||
@@ -0,0 +1,361 @@
|
||||
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.*;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.*;
|
||||
import com.srs.common.core.domain.BaseEntity;
|
||||
|
||||
|
||||
/**
|
||||
* 外宿申请对象 dms_outside_accommodation_apply
|
||||
*
|
||||
* @author srs
|
||||
* @date 2025-12-09
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
@ApiModel(value = "DmsOutsideAccommodationApply对象", description = "外宿申请表")
|
||||
@TableName("dms_outside_accommodation_apply")
|
||||
public class DmsOutsideAccommodationApply extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@ApiModelProperty("主键ID")
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 申请编号(唯一,如WS20240001)
|
||||
*/
|
||||
@ApiModelProperty("申请编号(唯一,如WS20240001)")
|
||||
@TableField("apply_no")
|
||||
@Excel(name = "申请编号", readConverterExp = "唯=一,如WS20240001")
|
||||
private String applyNo;
|
||||
|
||||
/**
|
||||
* 学生ID(关联学生表)
|
||||
*/
|
||||
@ApiModelProperty("学生ID(关联学生表)")
|
||||
@TableField("student_id")
|
||||
@Excel(name = "学生ID", readConverterExp = "关=联学生表")
|
||||
private Long studentId;
|
||||
|
||||
/**
|
||||
* 学号
|
||||
*/
|
||||
@ApiModelProperty("学号")
|
||||
@TableField("student_no")
|
||||
@Excel(name = "学号")
|
||||
private String studentNo;
|
||||
|
||||
/**
|
||||
* 学生姓名
|
||||
*/
|
||||
@ApiModelProperty("学生姓名")
|
||||
@TableField("student_name")
|
||||
@Excel(name = "学生姓名")
|
||||
private String studentName;
|
||||
|
||||
/**
|
||||
* 性别(男/女)
|
||||
*/
|
||||
@ApiModelProperty("性别(男/女)")
|
||||
@TableField("gender")
|
||||
@Excel(name = "性别", readConverterExp = "男=/女")
|
||||
private String gender;
|
||||
|
||||
/**
|
||||
* 出生年月
|
||||
*/
|
||||
@ApiModelProperty("出生年月")
|
||||
@TableField("birth_date")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "出生年月", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date birthDate;
|
||||
|
||||
/**
|
||||
* 学院ID
|
||||
*/
|
||||
@ApiModelProperty("学院ID")
|
||||
@TableField("dept_id")
|
||||
@Excel(name = "学院ID")
|
||||
private Long deptId;
|
||||
|
||||
/**
|
||||
* 学院名称
|
||||
*/
|
||||
@ApiModelProperty("学院名称")
|
||||
@TableField("dept_name")
|
||||
@Excel(name = "学院名称")
|
||||
private String deptName;
|
||||
|
||||
/**
|
||||
* 专业ID
|
||||
*/
|
||||
@ApiModelProperty("专业ID")
|
||||
@TableField("major_id")
|
||||
@Excel(name = "专业ID")
|
||||
private Long majorId;
|
||||
|
||||
/**
|
||||
* 专业名称
|
||||
*/
|
||||
@ApiModelProperty("专业名称")
|
||||
@TableField("major_name")
|
||||
@Excel(name = "专业名称")
|
||||
private String majorName;
|
||||
|
||||
/**
|
||||
* 班级ID
|
||||
*/
|
||||
@ApiModelProperty("班级ID")
|
||||
@TableField("class_id")
|
||||
@Excel(name = "班级ID")
|
||||
private Long classId;
|
||||
|
||||
/**
|
||||
* 班级名称
|
||||
*/
|
||||
@ApiModelProperty("班级名称")
|
||||
@TableField("class_name")
|
||||
@Excel(name = "班级名称")
|
||||
private String className;
|
||||
|
||||
/**
|
||||
* 原宿舍号(如:1栋302)
|
||||
*/
|
||||
@ApiModelProperty("原宿舍号(如:1栋302)")
|
||||
@TableField("original_dormitory")
|
||||
@Excel(name = "原宿舍号", readConverterExp = "如=:1栋302")
|
||||
private String originalDormitory;
|
||||
|
||||
/**
|
||||
* 住宿费缴纳
|
||||
*/
|
||||
@ApiModelProperty("住宿费缴纳")
|
||||
@TableField("accommodation_fee")
|
||||
@Excel(name = "住宿费缴纳")
|
||||
private String accommodationFee;
|
||||
|
||||
/**
|
||||
* 住宿费缴纳状态(1=已交,0=未交)
|
||||
*/
|
||||
@ApiModelProperty("住宿费缴纳状态(1=已交,0=未交)")
|
||||
@TableField("accommodation_fee_status")
|
||||
@Excel(name = "住宿费缴纳状态", readConverterExp = "1==已交,0=未交")
|
||||
private Long accommodationFeeStatus;
|
||||
|
||||
/**
|
||||
* 外宿原因
|
||||
*/
|
||||
@ApiModelProperty("外宿原因")
|
||||
@TableField("apply_reason")
|
||||
@Excel(name = "外宿原因")
|
||||
private String applyReason;
|
||||
|
||||
/**
|
||||
* 外宿详细地址(精确至门牌号)
|
||||
*/
|
||||
@ApiModelProperty("外宿详细地址(精确至门牌号)")
|
||||
@TableField("outside_address")
|
||||
@Excel(name = "外宿详细地址", readConverterExp = "精=确至门牌号")
|
||||
private String outsideAddress;
|
||||
|
||||
/**
|
||||
* 外宿地址-省市区/县
|
||||
*/
|
||||
@ApiModelProperty("外宿地址-省市区/县")
|
||||
@TableField("address")
|
||||
@Excel(name = "外宿地址-省市区/县")
|
||||
private String address;
|
||||
|
||||
/**
|
||||
* 紧急联系人电话
|
||||
*/
|
||||
@ApiModelProperty("紧急联系人电话")
|
||||
@TableField("emergency_phone")
|
||||
@Excel(name = "紧急联系人电话")
|
||||
private String emergencyPhone;
|
||||
|
||||
/**
|
||||
* 外宿紧急联系人
|
||||
*/
|
||||
@ApiModelProperty("外宿紧急联系人")
|
||||
@TableField("emergency_contact")
|
||||
@Excel(name = "外宿紧急联系人")
|
||||
private String emergencyContact;
|
||||
|
||||
/**
|
||||
* 家长意见(1=同意,0=不同意)
|
||||
*/
|
||||
@ApiModelProperty("家长意见(1=同意,0=不同意)")
|
||||
@TableField("parent_opinion")
|
||||
@Excel(name = "家长意见", readConverterExp = "1==同意,0=不同意")
|
||||
private Long parentOpinion;
|
||||
|
||||
/**
|
||||
* 家长签字附件URL
|
||||
*/
|
||||
@ApiModelProperty("家长签字附件URL")
|
||||
@TableField("parent_sign_attachment")
|
||||
@Excel(name = "家长签字附件URL")
|
||||
private String parentSignAttachment;
|
||||
|
||||
/**
|
||||
* 家长联系电话
|
||||
*/
|
||||
@ApiModelProperty("家长联系电话")
|
||||
@TableField("parent_phone")
|
||||
@Excel(name = "家长联系电话")
|
||||
private String parentPhone;
|
||||
|
||||
/**
|
||||
* 家长通讯地址-省市区/县
|
||||
*/
|
||||
@ApiModelProperty("家长通讯地址-省市区/县")
|
||||
@TableField("parent_address")
|
||||
@Excel(name = "家长通讯地址-省市区/县")
|
||||
private String parentAddress;
|
||||
|
||||
/**
|
||||
* 家长通讯地址-详细地址
|
||||
*/
|
||||
@ApiModelProperty("家长通讯地址-详细地址")
|
||||
@TableField("parent_detail_address")
|
||||
@Excel(name = "家长通讯地址-详细地址")
|
||||
private String parentDetailAddress;
|
||||
|
||||
/**
|
||||
* 学生承诺电子签URL
|
||||
*/
|
||||
@ApiModelProperty("学生承诺电子签URL")
|
||||
@TableField("student_promise_sign")
|
||||
@Excel(name = "学生承诺电子签URL")
|
||||
private String studentPromiseSign;
|
||||
|
||||
/**
|
||||
* 承诺签署日期
|
||||
*/
|
||||
@ApiModelProperty("承诺签署日期")
|
||||
@TableField("promise_date")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "承诺签署日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date promiseDate;
|
||||
|
||||
/**
|
||||
* 外宿开始时间
|
||||
*/
|
||||
@ApiModelProperty("外宿开始时间")
|
||||
@TableField("start_date")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "外宿开始时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date startDate;
|
||||
|
||||
/**
|
||||
* 外宿结束时间(默认次年8月31日)
|
||||
*/
|
||||
@ApiModelProperty("外宿结束时间(默认次年8月31日)")
|
||||
@TableField("end_date")
|
||||
@Excel(name = "外宿结束时间", readConverterExp = "默=认次年8月31日")
|
||||
private Date endDate;
|
||||
|
||||
/**
|
||||
* 申请状态(0=草稿,1=待辅导员审批,2=待学院书记审批,3=待学工处审批,4=待学校领导审批,5=审批通过,6=审批驳回)
|
||||
*/
|
||||
@ApiModelProperty("申请状态(0=草稿,1=待辅导员审批,2=待学院书记审批,3=待学工处审批,4=待学校领导审批,5=审批通过,6=审批驳回)")
|
||||
@TableField("status")
|
||||
@Excel(name = "申请状态", readConverterExp = "0==草稿,1=待辅导员审批,2=待学院书记审批,3=待学工处审批,4=待学校领导审批,5=审批通过,6=审批驳回")
|
||||
private Long status;
|
||||
|
||||
/**
|
||||
* 驳回原因
|
||||
*/
|
||||
@ApiModelProperty("驳回原因")
|
||||
@TableField("reject_reason")
|
||||
@Excel(name = "驳回原因")
|
||||
private String rejectReason;
|
||||
|
||||
/**
|
||||
* 是否有效(1=有效,0=失效/到期)
|
||||
*/
|
||||
@ApiModelProperty("是否有效(1=有效,0=失效/到期)")
|
||||
@TableField("is_valid")
|
||||
@Excel(name = "是否有效", readConverterExp = "1==有效,0=失效/到期")
|
||||
private Long isValid;
|
||||
|
||||
/**
|
||||
* 辅导员姓名
|
||||
*/
|
||||
@ApiModelProperty("辅导员姓名")
|
||||
@TableField("teacher_name")
|
||||
@Excel(name = "辅导员姓名")
|
||||
private String teacherName;
|
||||
|
||||
/**
|
||||
* 附件id
|
||||
*/
|
||||
@ApiModelProperty("附件id")
|
||||
@TableField("affix_id")
|
||||
@Excel(name = "附件id")
|
||||
private String affixId;
|
||||
|
||||
/**
|
||||
* 流程部署编号
|
||||
*/
|
||||
@ApiModelProperty("流程部署编号")
|
||||
@TableField("deploy_id")
|
||||
@Excel(name = "流程部署编号")
|
||||
private String deployId;
|
||||
|
||||
/**
|
||||
* Flowable流程实例ID
|
||||
*/
|
||||
@ApiModelProperty("Flowable流程实例ID")
|
||||
@TableField("process_instance_id")
|
||||
@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;
|
||||
|
||||
/**
|
||||
* 承诺内容
|
||||
*/
|
||||
@ApiModelProperty("承诺内容")
|
||||
@TableField("promise_content")
|
||||
@Excel(name = "承诺内容")
|
||||
private String promiseContent;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
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.*;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.*;
|
||||
import com.srs.common.core.domain.BaseEntity;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 外宿申请审批记录对象 dms_outside_accommodation_approval
|
||||
*
|
||||
* @author srs
|
||||
* @date 2025-12-05
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
@ApiModel(value = "DmsOutsideAccommodationApproval对象" , description = "外宿申请审批记录表")
|
||||
@TableName("dms_outside_accommodation_approval")
|
||||
public class DmsOutsideAccommodationApproval extends BaseEntity{
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@ApiModelProperty("主键ID")
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 外宿申请ID(关联申请表)
|
||||
*/
|
||||
@ApiModelProperty("外宿申请ID(关联申请表)")
|
||||
@TableField("apply_id")
|
||||
@Excel(name = "外宿申请ID" , readConverterExp = "关=联申请表")
|
||||
private Long applyId;
|
||||
|
||||
/**
|
||||
* 申请编号
|
||||
*/
|
||||
@ApiModelProperty("申请编号")
|
||||
@TableField("apply_no")
|
||||
@Excel(name = "申请编号")
|
||||
private String applyNo;
|
||||
|
||||
/**
|
||||
* 审批节点
|
||||
*/
|
||||
@ApiModelProperty("审批节点")
|
||||
@TableField("approval_node")
|
||||
@Excel(name = "审批节点")
|
||||
private String approvalNode;
|
||||
|
||||
/**
|
||||
* 审批人ID
|
||||
*/
|
||||
@ApiModelProperty("审批人ID")
|
||||
@TableField("approver_id")
|
||||
@Excel(name = "审批人ID")
|
||||
private Long approverId;
|
||||
|
||||
/**
|
||||
* 审批人姓名
|
||||
*/
|
||||
@ApiModelProperty("审批人姓名")
|
||||
@TableField("approver_name")
|
||||
@Excel(name = "审批人姓名")
|
||||
private String approverName;
|
||||
|
||||
/**
|
||||
* 审批人角色
|
||||
*/
|
||||
@ApiModelProperty("审批人角色")
|
||||
@TableField("approver_role")
|
||||
@Excel(name = "审批人角色")
|
||||
private String approverRole;
|
||||
|
||||
/**
|
||||
* 审批意见
|
||||
*/
|
||||
@ApiModelProperty("审批意见")
|
||||
@TableField("approval_opinion")
|
||||
@Excel(name = "审批意见")
|
||||
private String approvalOpinion;
|
||||
|
||||
/**
|
||||
* 审批结果(1=同意,0=驳回)
|
||||
*/
|
||||
@ApiModelProperty("审批结果(1=同意,0=驳回)")
|
||||
@TableField("approval_result")
|
||||
@Excel(name = "审批结果" , readConverterExp = "1==同意,0=驳回")
|
||||
private Long approvalResult;
|
||||
|
||||
/**
|
||||
* 审批时间
|
||||
*/
|
||||
@ApiModelProperty("审批时间")
|
||||
@TableField("approval_time")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "审批时间" , width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date approvalTime;
|
||||
|
||||
/**
|
||||
* 流程实例ID
|
||||
*/
|
||||
@ApiModelProperty("流程实例ID")
|
||||
@TableField("process_instance_id")
|
||||
@Excel(name = "流程实例ID")
|
||||
private String processInstanceId;
|
||||
|
||||
/**
|
||||
* 学生姓名
|
||||
*/
|
||||
@ApiModelProperty("学生姓名")
|
||||
@TableField("student_name")
|
||||
@Excel(name = "学生姓名")
|
||||
private String studentName;
|
||||
|
||||
/**
|
||||
* 学生学号
|
||||
*/
|
||||
@ApiModelProperty("学生学号")
|
||||
@TableField("student_no")
|
||||
@Excel(name = "学生学号")
|
||||
private String studentNo;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,108 @@
|
||||
package com.srs.dormitory.domain;
|
||||
|
||||
import com.srs.common.annotation.Excel;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.*;
|
||||
import com.srs.common.core.domain.BaseEntity;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 外宿申请附件对象 dms_outside_accommodation_attachment
|
||||
*
|
||||
* @author srs
|
||||
* @date 2025-12-05
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
@ApiModel(value = "DmsOutsideAccommodationAttachment对象" , description = "外宿申请附件表")
|
||||
@TableName("dms_outside_accommodation_attachment")
|
||||
public class DmsOutsideAccommodationAttachment extends BaseEntity{
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@ApiModelProperty("主键ID")
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 外宿申请ID(关联申请表)
|
||||
*/
|
||||
@ApiModelProperty("外宿申请ID(关联申请表)")
|
||||
@TableField("apply_id")
|
||||
@Excel(name = "外宿申请ID" , readConverterExp = "关=联申请表")
|
||||
private Long applyId;
|
||||
|
||||
/**
|
||||
* 附件名称
|
||||
*/
|
||||
@ApiModelProperty("附件名称")
|
||||
@TableField("attachment_name")
|
||||
@Excel(name = "附件名称")
|
||||
private String attachmentName;
|
||||
|
||||
/**
|
||||
* 附件存储URL
|
||||
*/
|
||||
@ApiModelProperty("附件存储URL")
|
||||
@TableField("attachment_url")
|
||||
@Excel(name = "附件存储URL")
|
||||
private String attachmentUrl;
|
||||
|
||||
/**
|
||||
* 附件类型(1=病例证明,2=住房证明,3=其他)
|
||||
*/
|
||||
@ApiModelProperty("附件类型(1=病例证明,2=住房证明,3=其他)")
|
||||
@TableField("attachment_type")
|
||||
@Excel(name = "附件类型" , readConverterExp = "1==病例证明,2=住房证明,3=其他")
|
||||
private Long attachmentType;
|
||||
|
||||
/**
|
||||
* 附件大小(字节)
|
||||
*/
|
||||
@ApiModelProperty("附件大小(字节)")
|
||||
@TableField("file_size")
|
||||
@Excel(name = "附件大小" , readConverterExp = "字=节")
|
||||
private Long fileSize;
|
||||
|
||||
/**
|
||||
* 附件后缀(如jpg、pdf)
|
||||
*/
|
||||
@ApiModelProperty("附件后缀(如jpg、pdf)")
|
||||
@TableField("file_suffix")
|
||||
@Excel(name = "附件后缀" , readConverterExp = "如=jpg、pdf")
|
||||
private String fileSuffix;
|
||||
|
||||
/**
|
||||
* 流程实例ID
|
||||
*/
|
||||
@ApiModelProperty("流程实例ID")
|
||||
@TableField("process_instance_id")
|
||||
@Excel(name = "流程实例ID")
|
||||
private String processInstanceId;
|
||||
|
||||
/**
|
||||
* 学生姓名
|
||||
*/
|
||||
@ApiModelProperty("学生姓名")
|
||||
@TableField("student_name")
|
||||
@Excel(name = "学生姓名")
|
||||
private String studentName;
|
||||
|
||||
/**
|
||||
* 学生学号
|
||||
*/
|
||||
@ApiModelProperty("学生学号")
|
||||
@TableField("student_no")
|
||||
@Excel(name = "学生学号")
|
||||
private String studentNo;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.srs.dormitory.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.srs.dormitory.domain.DmsAccommodations;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 外宿申请Mapper接口
|
||||
*
|
||||
* @author srs
|
||||
* @date 2025-11-11
|
||||
*/
|
||||
public interface DmsAccommodationsMapper extends BaseMapper<DmsAccommodations> {
|
||||
/**
|
||||
* 查询外宿申请
|
||||
*
|
||||
* @param id 外宿申请主键
|
||||
* @return 外宿申请
|
||||
*/
|
||||
public DmsAccommodations selectDmsAccommodationsById(Long id);
|
||||
|
||||
/**
|
||||
* 查询外宿申请列表
|
||||
*
|
||||
* @param dmsAccommodations 外宿申请
|
||||
* @return 外宿申请集合
|
||||
*/
|
||||
List<DmsAccommodations> selectDmsAccommodationsList(DmsAccommodations dmsAccommodations);
|
||||
|
||||
/**
|
||||
* 新增外宿申请
|
||||
*
|
||||
* @param dmsAccommodations 外宿申请
|
||||
* @return 结果
|
||||
*/
|
||||
int insertDmsAccommodations(DmsAccommodations dmsAccommodations);
|
||||
|
||||
/**
|
||||
* 修改外宿申请
|
||||
*
|
||||
* @param dmsAccommodations 外宿申请
|
||||
* @return 结果
|
||||
*/
|
||||
int updateDmsAccommodations(DmsAccommodations dmsAccommodations);
|
||||
|
||||
/**
|
||||
* 删除外宿申请
|
||||
*
|
||||
* @param id 外宿申请主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteDmsAccommodationsById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除外宿申请
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteDmsAccommodationsByIds(Long[] ids);
|
||||
|
||||
DmsAccommodations getStuDormitory(String stuNo);
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
package com.srs.dormitory.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.srs.common.doman.vo.TeacherVo;
|
||||
import com.srs.dormitory.domain.DmsOutsideAccommodationApply;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Options;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* 外宿申请Mapper接口
|
||||
*
|
||||
* @author srs
|
||||
* @date 2025-12-05
|
||||
*/
|
||||
public interface DmsOutsideAccommodationApplyMapper extends BaseMapper<DmsOutsideAccommodationApply> {
|
||||
/**
|
||||
* 查询外宿申请
|
||||
*
|
||||
* @param id 外宿申请主键
|
||||
* @return 外宿申请
|
||||
*/
|
||||
public DmsOutsideAccommodationApply selectDmsOutsideAccommodationApplyById(Long id);
|
||||
|
||||
/**
|
||||
* 查询外宿申请
|
||||
*
|
||||
* @param processInstanceId 外宿申请流程id
|
||||
* @return 外宿申请
|
||||
*/
|
||||
public DmsOutsideAccommodationApply selectDmsOutsideAccommodationApplyByProcessInstanceId(String processInstanceId);
|
||||
|
||||
/**
|
||||
* 查询外宿申请列表
|
||||
*
|
||||
* @param dmsOutsideAccommodationApply 外宿申请
|
||||
* @return 外宿申请集合
|
||||
*/
|
||||
List<DmsOutsideAccommodationApply> selectDmsOutsideAccommodationApplyList(DmsOutsideAccommodationApply dmsOutsideAccommodationApply);
|
||||
|
||||
// <!-- 根据学号查询辅导员信息 -->
|
||||
public TeacherVo getCounselorInfo(String stuNo);
|
||||
|
||||
/**
|
||||
* 查询外宿申请
|
||||
*
|
||||
* @param studentName 学生姓名
|
||||
* @return 应征入伍保留学籍申请
|
||||
*/
|
||||
public DmsOutsideAccommodationApply getAccommodationByStuNameAndStuNo(@Param("studentName") String studentName, @Param("studentNo") String studentNo);
|
||||
|
||||
/**
|
||||
* 新增外宿申请
|
||||
*
|
||||
* @param dmsOutsideAccommodationApply 外宿申请
|
||||
* @return 结果
|
||||
*/
|
||||
@Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id")
|
||||
int insertDmsOutsideAccommodationApply(DmsOutsideAccommodationApply dmsOutsideAccommodationApply);
|
||||
|
||||
/**
|
||||
* 修改外宿申请
|
||||
*
|
||||
* @param dmsOutsideAccommodationApply 外宿申请
|
||||
* @return 结果
|
||||
*/
|
||||
int updateDmsOutsideAccommodationApply(DmsOutsideAccommodationApply dmsOutsideAccommodationApply);
|
||||
|
||||
/**
|
||||
* 删除外宿申请
|
||||
*
|
||||
* @param id 外宿申请主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteDmsOutsideAccommodationApplyById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除外宿申请
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteDmsOutsideAccommodationApplyByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.srs.dormitory.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.srs.dormitory.domain.DmsOutsideAccommodationApproval;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 外宿申请审批记录Mapper接口
|
||||
*
|
||||
* @author srs
|
||||
* @date 2025-12-05
|
||||
*/
|
||||
public interface DmsOutsideAccommodationApprovalMapper extends BaseMapper<DmsOutsideAccommodationApproval> {
|
||||
/**
|
||||
* 查询外宿申请审批记录
|
||||
*
|
||||
* @param id 外宿申请审批记录主键
|
||||
* @return 外宿申请审批记录
|
||||
*/
|
||||
public DmsOutsideAccommodationApproval selectDmsOutsideAccommodationApprovalById(Long id);
|
||||
|
||||
/**
|
||||
* 查询外宿申请审批记录列表
|
||||
*
|
||||
* @param dmsOutsideAccommodationApproval 外宿申请审批记录
|
||||
* @return 外宿申请审批记录集合
|
||||
*/
|
||||
List<DmsOutsideAccommodationApproval> selectDmsOutsideAccommodationApprovalList(DmsOutsideAccommodationApproval dmsOutsideAccommodationApproval);
|
||||
|
||||
/**
|
||||
* 新增外宿申请审批记录
|
||||
*
|
||||
* @param dmsOutsideAccommodationApproval 外宿申请审批记录
|
||||
* @return 结果
|
||||
*/
|
||||
int insertDmsOutsideAccommodationApproval(DmsOutsideAccommodationApproval dmsOutsideAccommodationApproval);
|
||||
|
||||
/**
|
||||
* 修改外宿申请审批记录
|
||||
*
|
||||
* @param dmsOutsideAccommodationApproval 外宿申请审批记录
|
||||
* @return 结果
|
||||
*/
|
||||
int updateDmsOutsideAccommodationApproval(DmsOutsideAccommodationApproval dmsOutsideAccommodationApproval);
|
||||
|
||||
/**
|
||||
* 删除外宿申请审批记录
|
||||
*
|
||||
* @param id 外宿申请审批记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteDmsOutsideAccommodationApprovalById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除外宿申请审批记录
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteDmsOutsideAccommodationApprovalByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.srs.dormitory.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.srs.dormitory.domain.DmsOutsideAccommodationAttachment;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 外宿申请附件Mapper接口
|
||||
*
|
||||
* @author srs
|
||||
* @date 2025-12-05
|
||||
*/
|
||||
public interface DmsOutsideAccommodationAttachmentMapper extends BaseMapper<DmsOutsideAccommodationAttachment> {
|
||||
/**
|
||||
* 查询外宿申请附件
|
||||
*
|
||||
* @param id 外宿申请附件主键
|
||||
* @return 外宿申请附件
|
||||
*/
|
||||
public DmsOutsideAccommodationAttachment selectDmsOutsideAccommodationAttachmentById(Long id);
|
||||
|
||||
/**
|
||||
* 查询外宿申请附件列表
|
||||
*
|
||||
* @param dmsOutsideAccommodationAttachment 外宿申请附件
|
||||
* @return 外宿申请附件集合
|
||||
*/
|
||||
List<DmsOutsideAccommodationAttachment> selectDmsOutsideAccommodationAttachmentList(DmsOutsideAccommodationAttachment dmsOutsideAccommodationAttachment);
|
||||
|
||||
/**
|
||||
* 新增外宿申请附件
|
||||
*
|
||||
* @param dmsOutsideAccommodationAttachment 外宿申请附件
|
||||
* @return 结果
|
||||
*/
|
||||
int insertDmsOutsideAccommodationAttachment(DmsOutsideAccommodationAttachment dmsOutsideAccommodationAttachment);
|
||||
|
||||
/**
|
||||
* 修改外宿申请附件
|
||||
*
|
||||
* @param dmsOutsideAccommodationAttachment 外宿申请附件
|
||||
* @return 结果
|
||||
*/
|
||||
int updateDmsOutsideAccommodationAttachment(DmsOutsideAccommodationAttachment dmsOutsideAccommodationAttachment);
|
||||
|
||||
/**
|
||||
* 删除外宿申请附件
|
||||
*
|
||||
* @param id 外宿申请附件主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteDmsOutsideAccommodationAttachmentById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除外宿申请附件
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteDmsOutsideAccommodationAttachmentByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.srs.dormitory.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.srs.dormitory.domain.DmsAccommodations;
|
||||
|
||||
/**
|
||||
* 外宿申请Service接口
|
||||
*
|
||||
* @author srs
|
||||
* @date 2025-11-11
|
||||
*/
|
||||
public interface IDmsAccommodationsService extends IService<DmsAccommodations> {
|
||||
/**
|
||||
* 查询外宿申请
|
||||
*
|
||||
* @param id 外宿申请主键
|
||||
* @return 外宿申请
|
||||
*/
|
||||
public DmsAccommodations selectDmsAccommodationsById(Long id);
|
||||
|
||||
/**
|
||||
* 查询外宿申请列表
|
||||
*
|
||||
* @param dmsAccommodations 外宿申请
|
||||
* @return 外宿申请集合
|
||||
*/
|
||||
List<DmsAccommodations> selectDmsAccommodationsList(DmsAccommodations dmsAccommodations);
|
||||
|
||||
/**
|
||||
* 新增外宿申请
|
||||
*
|
||||
* @param dmsAccommodations 外宿申请
|
||||
* @return 结果
|
||||
*/
|
||||
int insertDmsAccommodations(DmsAccommodations dmsAccommodations);
|
||||
|
||||
/**
|
||||
* 修改外宿申请
|
||||
*
|
||||
* @param dmsAccommodations 外宿申请
|
||||
* @return 结果
|
||||
*/
|
||||
int updateDmsAccommodations(DmsAccommodations dmsAccommodations);
|
||||
|
||||
/**
|
||||
* 批量删除外宿申请
|
||||
*
|
||||
* @param ids 需要删除的外宿申请主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteDmsAccommodationsByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除外宿申请信息
|
||||
*
|
||||
* @param id 外宿申请主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteDmsAccommodationsById(Long id);
|
||||
|
||||
DmsAccommodations getStuDormitory(String stuNo);
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
package com.srs.dormitory.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.srs.dormitory.domain.DmsOutsideAccommodationApply;
|
||||
|
||||
/**
|
||||
* 外宿申请Service接口
|
||||
*
|
||||
* @author srs
|
||||
* @date 2025-12-05
|
||||
*/
|
||||
public interface IDmsOutsideAccommodationApplyService extends IService<DmsOutsideAccommodationApply> {
|
||||
/**
|
||||
* 查询外宿申请
|
||||
*
|
||||
* @param id 外宿申请主键
|
||||
* @return 外宿申请
|
||||
*/
|
||||
public DmsOutsideAccommodationApply selectDmsOutsideAccommodationApplyById(Long id);
|
||||
|
||||
/**
|
||||
* 查询外宿申请
|
||||
*
|
||||
* @param processInstanceId 外宿申请流程id
|
||||
* @return 外宿申请
|
||||
*/
|
||||
public DmsOutsideAccommodationApply selectDmsOutsideAccommodationApplyByProcessInstanceId(String processInstanceId);
|
||||
|
||||
/**
|
||||
* 查询外宿申请列表
|
||||
*
|
||||
* @param dmsOutsideAccommodationApply 外宿申请
|
||||
* @return 外宿申请集合
|
||||
*/
|
||||
List<DmsOutsideAccommodationApply> selectDmsOutsideAccommodationApplyList(DmsOutsideAccommodationApply dmsOutsideAccommodationApply);
|
||||
|
||||
/**
|
||||
* 新增外宿申请
|
||||
*
|
||||
* @param dmsOutsideAccommodationApply 外宿申请
|
||||
* @return 结果
|
||||
*/
|
||||
int insertDmsOutsideAccommodationApply(DmsOutsideAccommodationApply dmsOutsideAccommodationApply);
|
||||
|
||||
/**
|
||||
* 修改外宿申请
|
||||
*
|
||||
* @param dmsOutsideAccommodationApply 外宿申请
|
||||
* @return 结果
|
||||
*/
|
||||
int updateDmsOutsideAccommodationApply(DmsOutsideAccommodationApply dmsOutsideAccommodationApply);
|
||||
|
||||
/**
|
||||
* 批量删除外宿申请
|
||||
*
|
||||
* @param ids 需要删除的外宿申请主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteDmsOutsideAccommodationApplyByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除外宿申请信息
|
||||
*
|
||||
* @param id 外宿申请主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteDmsOutsideAccommodationApplyById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.srs.dormitory.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.srs.dormitory.domain.DmsOutsideAccommodationApproval;
|
||||
|
||||
/**
|
||||
* 外宿申请审批记录Service接口
|
||||
*
|
||||
* @author srs
|
||||
* @date 2025-12-05
|
||||
*/
|
||||
public interface IDmsOutsideAccommodationApprovalService extends IService<DmsOutsideAccommodationApproval> {
|
||||
/**
|
||||
* 查询外宿申请审批记录
|
||||
*
|
||||
* @param id 外宿申请审批记录主键
|
||||
* @return 外宿申请审批记录
|
||||
*/
|
||||
public DmsOutsideAccommodationApproval selectDmsOutsideAccommodationApprovalById(Long id);
|
||||
|
||||
/**
|
||||
* 查询外宿申请审批记录列表
|
||||
*
|
||||
* @param dmsOutsideAccommodationApproval 外宿申请审批记录
|
||||
* @return 外宿申请审批记录集合
|
||||
*/
|
||||
List<DmsOutsideAccommodationApproval> selectDmsOutsideAccommodationApprovalList(DmsOutsideAccommodationApproval dmsOutsideAccommodationApproval);
|
||||
|
||||
/**
|
||||
* 新增外宿申请审批记录
|
||||
*
|
||||
* @param dmsOutsideAccommodationApproval 外宿申请审批记录
|
||||
* @return 结果
|
||||
*/
|
||||
int insertDmsOutsideAccommodationApproval(DmsOutsideAccommodationApproval dmsOutsideAccommodationApproval);
|
||||
|
||||
/**
|
||||
* 修改外宿申请审批记录
|
||||
*
|
||||
* @param dmsOutsideAccommodationApproval 外宿申请审批记录
|
||||
* @return 结果
|
||||
*/
|
||||
int updateDmsOutsideAccommodationApproval(DmsOutsideAccommodationApproval dmsOutsideAccommodationApproval);
|
||||
|
||||
/**
|
||||
* 批量删除外宿申请审批记录
|
||||
*
|
||||
* @param ids 需要删除的外宿申请审批记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteDmsOutsideAccommodationApprovalByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除外宿申请审批记录信息
|
||||
*
|
||||
* @param id 外宿申请审批记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteDmsOutsideAccommodationApprovalById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.srs.dormitory.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.srs.dormitory.domain.DmsOutsideAccommodationAttachment;
|
||||
|
||||
/**
|
||||
* 外宿申请附件Service接口
|
||||
*
|
||||
* @author srs
|
||||
* @date 2025-12-05
|
||||
*/
|
||||
public interface IDmsOutsideAccommodationAttachmentService extends IService<DmsOutsideAccommodationAttachment> {
|
||||
/**
|
||||
* 查询外宿申请附件
|
||||
*
|
||||
* @param id 外宿申请附件主键
|
||||
* @return 外宿申请附件
|
||||
*/
|
||||
public DmsOutsideAccommodationAttachment selectDmsOutsideAccommodationAttachmentById(Long id);
|
||||
|
||||
/**
|
||||
* 查询外宿申请附件列表
|
||||
*
|
||||
* @param dmsOutsideAccommodationAttachment 外宿申请附件
|
||||
* @return 外宿申请附件集合
|
||||
*/
|
||||
List<DmsOutsideAccommodationAttachment> selectDmsOutsideAccommodationAttachmentList(DmsOutsideAccommodationAttachment dmsOutsideAccommodationAttachment);
|
||||
|
||||
/**
|
||||
* 新增外宿申请附件
|
||||
*
|
||||
* @param dmsOutsideAccommodationAttachment 外宿申请附件
|
||||
* @return 结果
|
||||
*/
|
||||
int insertDmsOutsideAccommodationAttachment(DmsOutsideAccommodationAttachment dmsOutsideAccommodationAttachment);
|
||||
|
||||
/**
|
||||
* 修改外宿申请附件
|
||||
*
|
||||
* @param dmsOutsideAccommodationAttachment 外宿申请附件
|
||||
* @return 结果
|
||||
*/
|
||||
int updateDmsOutsideAccommodationAttachment(DmsOutsideAccommodationAttachment dmsOutsideAccommodationAttachment);
|
||||
|
||||
/**
|
||||
* 批量删除外宿申请附件
|
||||
*
|
||||
* @param ids 需要删除的外宿申请附件主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteDmsOutsideAccommodationAttachmentByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除外宿申请附件信息
|
||||
*
|
||||
* @param id 外宿申请附件主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteDmsOutsideAccommodationAttachmentById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
package com.srs.dormitory.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.srs.common.utils.DateUtils;
|
||||
import com.srs.dormitory.domain.DmsAccommodations;
|
||||
import com.srs.dormitory.mapper.DmsAccommodationsMapper;
|
||||
import com.srs.dormitory.service.IDmsAccommodationsService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 外宿申请Service业务层处理
|
||||
*
|
||||
* @author srs
|
||||
* @date 2025-11-11
|
||||
*/
|
||||
@Service
|
||||
public class DmsAccommodationsServiceImpl extends ServiceImpl<DmsAccommodationsMapper, DmsAccommodations> implements IDmsAccommodationsService {
|
||||
@Autowired
|
||||
private DmsAccommodationsMapper dmsAccommodationsMapper;
|
||||
|
||||
/**
|
||||
* 查询外宿申请
|
||||
*
|
||||
* @param id 外宿申请主键
|
||||
* @return 外宿申请
|
||||
*/
|
||||
@Override
|
||||
public DmsAccommodations selectDmsAccommodationsById(Long id) {
|
||||
return dmsAccommodationsMapper.selectDmsAccommodationsById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询外宿申请列表
|
||||
*
|
||||
* @param dmsAccommodations 外宿申请
|
||||
* @return 外宿申请
|
||||
*/
|
||||
@Override
|
||||
public List<DmsAccommodations> selectDmsAccommodationsList(DmsAccommodations dmsAccommodations) {
|
||||
return dmsAccommodationsMapper.selectDmsAccommodationsList(dmsAccommodations);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增外宿申请
|
||||
*
|
||||
* @param dmsAccommodations 外宿申请
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDmsAccommodations(DmsAccommodations dmsAccommodations) {
|
||||
dmsAccommodations.setCreateTime(DateUtils.getNowDate());
|
||||
return dmsAccommodationsMapper.insertDmsAccommodations(dmsAccommodations);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改外宿申请
|
||||
*
|
||||
* @param dmsAccommodations 外宿申请
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDmsAccommodations(DmsAccommodations dmsAccommodations) {
|
||||
dmsAccommodations.setUpdateTime(DateUtils.getNowDate());
|
||||
return dmsAccommodationsMapper.updateDmsAccommodations(dmsAccommodations);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除外宿申请
|
||||
*
|
||||
* @param ids 需要删除的外宿申请主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDmsAccommodationsByIds(Long[] ids) {
|
||||
return dmsAccommodationsMapper.deleteDmsAccommodationsByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除外宿申请信息
|
||||
*
|
||||
* @param id 外宿申请主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDmsAccommodationsById(Long id) {
|
||||
return dmsAccommodationsMapper.deleteDmsAccommodationsById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DmsAccommodations getStuDormitory(String stuNo){
|
||||
return dmsAccommodationsMapper.getStuDormitory(stuNo);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
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;
|
||||
import com.srs.dormitory.mapper.DmsOutsideAccommodationApplyMapper;
|
||||
import com.srs.dormitory.domain.DmsOutsideAccommodationApply;
|
||||
import com.srs.dormitory.service.IDmsOutsideAccommodationApplyService;
|
||||
|
||||
/**
|
||||
* 外宿申请Service业务层处理
|
||||
*
|
||||
* @author srs
|
||||
* @date 2025-12-05
|
||||
*/
|
||||
@Service
|
||||
public class DmsOutsideAccommodationApplyServiceImpl extends ServiceImpl<DmsOutsideAccommodationApplyMapper, DmsOutsideAccommodationApply> implements IDmsOutsideAccommodationApplyService {
|
||||
@Autowired
|
||||
private DmsOutsideAccommodationApplyMapper dmsOutsideAccommodationApplyMapper;
|
||||
|
||||
/**
|
||||
* 查询外宿申请
|
||||
*
|
||||
* @param id 外宿申请主键
|
||||
* @return 外宿申请
|
||||
*/
|
||||
@Override
|
||||
public DmsOutsideAccommodationApply selectDmsOutsideAccommodationApplyById(Long id) {
|
||||
return dmsOutsideAccommodationApplyMapper.selectDmsOutsideAccommodationApplyById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DmsOutsideAccommodationApply selectDmsOutsideAccommodationApplyByProcessInstanceId(String processInstanceId) {
|
||||
return dmsOutsideAccommodationApplyMapper.selectDmsOutsideAccommodationApplyByProcessInstanceId(processInstanceId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询外宿申请列表
|
||||
*
|
||||
* @param dmsOutsideAccommodationApply 外宿申请
|
||||
* @return 外宿申请
|
||||
*/
|
||||
@Override
|
||||
public List<DmsOutsideAccommodationApply> selectDmsOutsideAccommodationApplyList(DmsOutsideAccommodationApply dmsOutsideAccommodationApply) {
|
||||
return dmsOutsideAccommodationApplyMapper.selectDmsOutsideAccommodationApplyList(dmsOutsideAccommodationApply);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增外宿申请
|
||||
*
|
||||
* @param dmsOutsideAccommodationApply 外宿申请
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDmsOutsideAccommodationApply(DmsOutsideAccommodationApply dmsOutsideAccommodationApply) {
|
||||
dmsOutsideAccommodationApply.setCreateTime(DateUtils.getNowDate());
|
||||
dmsOutsideAccommodationApply.setCreateBy(SecurityUtils.getUsername());
|
||||
return dmsOutsideAccommodationApplyMapper.insertDmsOutsideAccommodationApply(dmsOutsideAccommodationApply);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改外宿申请
|
||||
*
|
||||
* @param dmsOutsideAccommodationApply 外宿申请
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDmsOutsideAccommodationApply(DmsOutsideAccommodationApply dmsOutsideAccommodationApply) {
|
||||
dmsOutsideAccommodationApply.setUpdateTime(DateUtils.getNowDate());
|
||||
return dmsOutsideAccommodationApplyMapper.updateDmsOutsideAccommodationApply(dmsOutsideAccommodationApply);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除外宿申请
|
||||
*
|
||||
* @param ids 需要删除的外宿申请主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDmsOutsideAccommodationApplyByIds(Long[] ids) {
|
||||
return dmsOutsideAccommodationApplyMapper.deleteDmsOutsideAccommodationApplyByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除外宿申请信息
|
||||
*
|
||||
* @param id 外宿申请主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDmsOutsideAccommodationApplyById(Long id) {
|
||||
return dmsOutsideAccommodationApplyMapper.deleteDmsOutsideAccommodationApplyById(id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
package com.srs.dormitory.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.srs.dormitory.mapper.DmsOutsideAccommodationApprovalMapper;
|
||||
import com.srs.dormitory.domain.DmsOutsideAccommodationApproval;
|
||||
import com.srs.dormitory.service.IDmsOutsideAccommodationApprovalService;
|
||||
|
||||
/**
|
||||
* 外宿申请审批记录Service业务层处理
|
||||
*
|
||||
* @author srs
|
||||
* @date 2025-12-05
|
||||
*/
|
||||
@Service
|
||||
public class DmsOutsideAccommodationApprovalServiceImpl extends ServiceImpl<DmsOutsideAccommodationApprovalMapper,DmsOutsideAccommodationApproval> implements IDmsOutsideAccommodationApprovalService {
|
||||
@Autowired
|
||||
private DmsOutsideAccommodationApprovalMapper dmsOutsideAccommodationApprovalMapper;
|
||||
|
||||
/**
|
||||
* 查询外宿申请审批记录
|
||||
*
|
||||
* @param id 外宿申请审批记录主键
|
||||
* @return 外宿申请审批记录
|
||||
*/
|
||||
@Override
|
||||
public DmsOutsideAccommodationApproval selectDmsOutsideAccommodationApprovalById(Long id) {
|
||||
return dmsOutsideAccommodationApprovalMapper.selectDmsOutsideAccommodationApprovalById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询外宿申请审批记录列表
|
||||
*
|
||||
* @param dmsOutsideAccommodationApproval 外宿申请审批记录
|
||||
* @return 外宿申请审批记录
|
||||
*/
|
||||
@Override
|
||||
public List<DmsOutsideAccommodationApproval> selectDmsOutsideAccommodationApprovalList(DmsOutsideAccommodationApproval dmsOutsideAccommodationApproval) {
|
||||
return dmsOutsideAccommodationApprovalMapper.selectDmsOutsideAccommodationApprovalList(dmsOutsideAccommodationApproval);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增外宿申请审批记录
|
||||
*
|
||||
* @param dmsOutsideAccommodationApproval 外宿申请审批记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDmsOutsideAccommodationApproval(DmsOutsideAccommodationApproval dmsOutsideAccommodationApproval) {
|
||||
return dmsOutsideAccommodationApprovalMapper.insertDmsOutsideAccommodationApproval(dmsOutsideAccommodationApproval);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改外宿申请审批记录
|
||||
*
|
||||
* @param dmsOutsideAccommodationApproval 外宿申请审批记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDmsOutsideAccommodationApproval(DmsOutsideAccommodationApproval dmsOutsideAccommodationApproval) {
|
||||
return dmsOutsideAccommodationApprovalMapper.updateDmsOutsideAccommodationApproval(dmsOutsideAccommodationApproval);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除外宿申请审批记录
|
||||
*
|
||||
* @param ids 需要删除的外宿申请审批记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDmsOutsideAccommodationApprovalByIds(Long[] ids) {
|
||||
return dmsOutsideAccommodationApprovalMapper.deleteDmsOutsideAccommodationApprovalByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除外宿申请审批记录信息
|
||||
*
|
||||
* @param id 外宿申请审批记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDmsOutsideAccommodationApprovalById(Long id) {
|
||||
return dmsOutsideAccommodationApprovalMapper.deleteDmsOutsideAccommodationApprovalById(id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
package com.srs.dormitory.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.srs.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.srs.dormitory.mapper.DmsOutsideAccommodationAttachmentMapper;
|
||||
import com.srs.dormitory.domain.DmsOutsideAccommodationAttachment;
|
||||
import com.srs.dormitory.service.IDmsOutsideAccommodationAttachmentService;
|
||||
|
||||
/**
|
||||
* 外宿申请附件Service业务层处理
|
||||
*
|
||||
* @author srs
|
||||
* @date 2025-12-05
|
||||
*/
|
||||
@Service
|
||||
public class DmsOutsideAccommodationAttachmentServiceImpl extends ServiceImpl<DmsOutsideAccommodationAttachmentMapper,DmsOutsideAccommodationAttachment> implements IDmsOutsideAccommodationAttachmentService {
|
||||
@Autowired
|
||||
private DmsOutsideAccommodationAttachmentMapper dmsOutsideAccommodationAttachmentMapper;
|
||||
|
||||
/**
|
||||
* 查询外宿申请附件
|
||||
*
|
||||
* @param id 外宿申请附件主键
|
||||
* @return 外宿申请附件
|
||||
*/
|
||||
@Override
|
||||
public DmsOutsideAccommodationAttachment selectDmsOutsideAccommodationAttachmentById(Long id) {
|
||||
return dmsOutsideAccommodationAttachmentMapper.selectDmsOutsideAccommodationAttachmentById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询外宿申请附件列表
|
||||
*
|
||||
* @param dmsOutsideAccommodationAttachment 外宿申请附件
|
||||
* @return 外宿申请附件
|
||||
*/
|
||||
@Override
|
||||
public List<DmsOutsideAccommodationAttachment> selectDmsOutsideAccommodationAttachmentList(DmsOutsideAccommodationAttachment dmsOutsideAccommodationAttachment) {
|
||||
return dmsOutsideAccommodationAttachmentMapper.selectDmsOutsideAccommodationAttachmentList(dmsOutsideAccommodationAttachment);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增外宿申请附件
|
||||
*
|
||||
* @param dmsOutsideAccommodationAttachment 外宿申请附件
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDmsOutsideAccommodationAttachment(DmsOutsideAccommodationAttachment dmsOutsideAccommodationAttachment) {
|
||||
dmsOutsideAccommodationAttachment.setCreateTime(DateUtils.getNowDate());
|
||||
return dmsOutsideAccommodationAttachmentMapper.insertDmsOutsideAccommodationAttachment(dmsOutsideAccommodationAttachment);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改外宿申请附件
|
||||
*
|
||||
* @param dmsOutsideAccommodationAttachment 外宿申请附件
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDmsOutsideAccommodationAttachment(DmsOutsideAccommodationAttachment dmsOutsideAccommodationAttachment) {
|
||||
return dmsOutsideAccommodationAttachmentMapper.updateDmsOutsideAccommodationAttachment(dmsOutsideAccommodationAttachment);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除外宿申请附件
|
||||
*
|
||||
* @param ids 需要删除的外宿申请附件主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDmsOutsideAccommodationAttachmentByIds(Long[] ids) {
|
||||
return dmsOutsideAccommodationAttachmentMapper.deleteDmsOutsideAccommodationAttachmentByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除外宿申请附件信息
|
||||
*
|
||||
* @param id 外宿申请附件主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDmsOutsideAccommodationAttachmentById(Long id) {
|
||||
return dmsOutsideAccommodationAttachmentMapper.deleteDmsOutsideAccommodationAttachmentById(id);
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user