Java后端V1.0
This commit is contained in:
109
srs-staff/pom.xml
Normal file
109
srs-staff/pom.xml
Normal file
@@ -0,0 +1,109 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>srs</artifactId>
|
||||
<groupId>com.srs</groupId>
|
||||
<version>3.8.5</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<description>
|
||||
职工管理
|
||||
</description>
|
||||
<artifactId>srs-staff</artifactId>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.data</groupId>
|
||||
<artifactId>spring-data-commons</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-web</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-context</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.swagger</groupId>
|
||||
<artifactId>swagger-annotations</artifactId>
|
||||
<version>1.6.2</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>jakarta.validation</groupId>
|
||||
<artifactId>jakarta.validation-api</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate.validator</groupId>
|
||||
<artifactId>hibernate-validator</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-lang3</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.srs</groupId>
|
||||
<artifactId>srs-common</artifactId>
|
||||
</dependency>
|
||||
<!-- 系统模块-->
|
||||
<dependency>
|
||||
<groupId>com.srs</groupId>
|
||||
<artifactId>srs-system</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>mybatis-plus-annotation</artifactId>
|
||||
<version>3.5.3.1</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>mybatis-plus-core</artifactId>
|
||||
<version>3.5.3.1</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>mybatis-plus-extension</artifactId>
|
||||
<version>3.5.3.1</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<!--阿里云核心API-->
|
||||
<dependency>
|
||||
<groupId>com.aliyun</groupId>
|
||||
<artifactId>aliyun-java-sdk-core</artifactId>
|
||||
<version>4.5.3</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.srs</groupId>
|
||||
<artifactId>srs-framework</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.linuxense</groupId>
|
||||
<artifactId>javadbf</artifactId>
|
||||
<version>0.4.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.srs</groupId>
|
||||
<artifactId>srs-flowable</artifactId>
|
||||
</dependency>
|
||||
<!-- 新增2依赖 知无涯-->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.fastjson2</groupId>
|
||||
<artifactId>fastjson2</artifactId>
|
||||
<version>2.0.34</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
</project>
|
@@ -0,0 +1,176 @@
|
||||
package com.srs.staff.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* 一站式社区模块-社区活动对象 srs_staff_one_stop_community_activities
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-07-16
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
@ApiModel(value = "SrsStaffOneStopCommunityActivities对象", description = "一站式社区模块-社区活动")
|
||||
@TableName("srs_staff_one_stop_community_activities")
|
||||
public class SrsStaffOneStopCommunityActivities extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 社区活动id
|
||||
*/
|
||||
@ApiModelProperty("社区活动id")
|
||||
@TableField("activity_id")
|
||||
private Long activityId;
|
||||
|
||||
/**
|
||||
* 活动主题
|
||||
*/
|
||||
@ApiModelProperty("活动主题")
|
||||
@TableField("activity_theme")
|
||||
@Excel(name = "活动主题")
|
||||
private String activityTheme;
|
||||
|
||||
/**
|
||||
* 容纳人数
|
||||
*/
|
||||
@ApiModelProperty("容纳人数")
|
||||
@TableField("galleryful")
|
||||
@Excel(name = "容纳人数")
|
||||
private Long galleryful;
|
||||
|
||||
/**
|
||||
* 活动地点
|
||||
*/
|
||||
@ApiModelProperty("活动地点")
|
||||
@TableField("activity_place")
|
||||
@Excel(name = "活动地点")
|
||||
private String activityPlace;
|
||||
|
||||
/**
|
||||
* 发布状态
|
||||
*/
|
||||
@ApiModelProperty("发布状态 0发布 1未发布")
|
||||
@TableField("publish_status")
|
||||
@Excel(name = "发布状态")
|
||||
private Long publishStatus;
|
||||
|
||||
/**
|
||||
* 活动状态
|
||||
*/
|
||||
@ApiModelProperty("活动状态 0进行中 1报名中 2结束")
|
||||
@TableField("activity_status")
|
||||
@Excel(name = "活动状态")
|
||||
private Long activityStatus;
|
||||
|
||||
/**
|
||||
* 报名开始时间
|
||||
*/
|
||||
@ApiModelProperty("报名开始时间")
|
||||
@TableField("sign_up_start_time")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "报名开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date signUpStartTime;
|
||||
|
||||
/**
|
||||
* 报名结束时间
|
||||
*/
|
||||
@ApiModelProperty("报名结束时间")
|
||||
@TableField("sign_up_end_time")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "报名结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date signUpEndTime;
|
||||
|
||||
/**
|
||||
* 活动开始时间
|
||||
*/
|
||||
@ApiModelProperty("活动开始时间")
|
||||
@TableField("activity_start_time")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "活动开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date activityStartTime;
|
||||
|
||||
/**
|
||||
* 活动结束时间
|
||||
*/
|
||||
@ApiModelProperty("活动结束时间")
|
||||
@TableField("activity_end_time")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "活动结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date activityEndTime;
|
||||
|
||||
/**
|
||||
* 具体要求
|
||||
*/
|
||||
@ApiModelProperty("具体要求")
|
||||
@TableField("specific_requirements")
|
||||
@Excel(name = "具体要求")
|
||||
private String specificRequirements;
|
||||
|
||||
/**
|
||||
* 报名成功提示
|
||||
*/
|
||||
@ApiModelProperty("报名成功提示")
|
||||
@TableField("sign_up_prompt")
|
||||
@Excel(name = "报名成功提示")
|
||||
private String signUpPrompt;
|
||||
|
||||
/**
|
||||
* 活动结束反馈
|
||||
*/
|
||||
@ApiModelProperty("活动结束反馈")
|
||||
@TableField("feedback")
|
||||
@Excel(name = "活动结束反馈")
|
||||
private String feedback;
|
||||
|
||||
/**
|
||||
* 活动发起人
|
||||
*/
|
||||
@ApiModelProperty("活动发起人")
|
||||
@TableField("event_promoter")
|
||||
@Excel(name = "活动发起人")
|
||||
private String eventPromoter;
|
||||
|
||||
/**
|
||||
* 活动结束反馈图片
|
||||
*/
|
||||
@ApiModelProperty("活动结束反馈图片")
|
||||
@TableField("feedback_imgs")
|
||||
@Excel(name = "活动结束反馈图片")
|
||||
private String feedbackImgs;
|
||||
|
||||
/**
|
||||
* 活动图片
|
||||
*/
|
||||
@ApiModelProperty(value = "活动图片")
|
||||
@TableField("activity_imgs")
|
||||
@Excel(name = "活动图片")
|
||||
private String activityImgs;
|
||||
|
||||
|
||||
/**
|
||||
* 活动图片
|
||||
*/
|
||||
@ApiModelProperty(value = "活动压缩文件")
|
||||
@TableField("active_package")
|
||||
@Excel(name = "活动压缩文件")
|
||||
private String activePackage;
|
||||
|
||||
/**
|
||||
* 社区活动-报名记录
|
||||
*/
|
||||
@ApiModelProperty(value = "社区活动-报名记录", hidden = true)
|
||||
@Excel(name = "社区活动-报名记录")
|
||||
private List<SrsStaffOneStopRegistrationRecord> oneStopRegistrationRecords;
|
||||
}
|
@@ -0,0 +1,149 @@
|
||||
package com.srs.staff.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
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;
|
||||
|
||||
|
||||
/**
|
||||
* 一站式社区模块:社区建设对象 srs_staff_one_stop_community_construction
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-07-17
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
@ApiModel(value = "SrsStaffOneStopCommunityConstruction对象", description = "一站式社区模块:社区建设")
|
||||
@TableName("srs_staff_one_stop_community_construction")
|
||||
public class SrsStaffOneStopCommunityConstruction extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 社区建设记录id
|
||||
*/
|
||||
@ApiModelProperty("社区建设记录id")
|
||||
@TableField("construct_id")
|
||||
private Long constructId;
|
||||
|
||||
// 用户选择某条数据的id列表 (导出)
|
||||
private List<Long> ids;
|
||||
|
||||
// 查询数据按时间查询(开始时间)
|
||||
private Date startTime;
|
||||
|
||||
// 查询数据按时间查询(结束时间)
|
||||
private Date endTime;
|
||||
|
||||
/**
|
||||
* 活动主题
|
||||
*/
|
||||
@ApiModelProperty("活动主题")
|
||||
@TableField("activity_theme")
|
||||
@Excel(name = "活动主题")
|
||||
private String activityTheme;
|
||||
|
||||
/**
|
||||
* 活动概况
|
||||
*/
|
||||
@ApiModelProperty("活动概况")
|
||||
@TableField("activity_profile")
|
||||
@Excel(name = "活动概况")
|
||||
private String activityProfile;
|
||||
|
||||
/**
|
||||
* 参与人员类型
|
||||
*/
|
||||
@ApiModelProperty("参与人员类型")
|
||||
@TableField("personnel_type")
|
||||
@Excel(name = "参与人员类型")
|
||||
private String personnelType;
|
||||
|
||||
/**
|
||||
* 主要参加人员名单
|
||||
*/
|
||||
@ApiModelProperty("主要参加人员名单")
|
||||
@TableField("personnel_list")
|
||||
@Excel(name = "主要参加人员名单")
|
||||
private String personnelList;
|
||||
|
||||
/**
|
||||
* 时间
|
||||
*/
|
||||
@ApiModelProperty("时间")
|
||||
@TableField("construct_time")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date constructTime;
|
||||
|
||||
/**
|
||||
* 地点
|
||||
*/
|
||||
@ApiModelProperty("地点")
|
||||
@TableField("place")
|
||||
@Excel(name = "地点")
|
||||
private String place;
|
||||
|
||||
/**
|
||||
* 服务学生人次
|
||||
*/
|
||||
@ApiModelProperty("服务学生人次")
|
||||
@TableField("stu_number")
|
||||
@Excel(name = "服务学生人次")
|
||||
private Long stuNumber;
|
||||
|
||||
/**
|
||||
* 活动照片
|
||||
*/
|
||||
@ApiModelProperty("活动照片")
|
||||
@TableField("activity_photo")
|
||||
@Excel(name = "活动照片")
|
||||
private String activityPhoto;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
@ApiModelProperty("审核状态")
|
||||
@TableField("audit_status")
|
||||
@Excel(name = "审核状态")
|
||||
private Long auditStatus;
|
||||
|
||||
/**
|
||||
* 修改意见
|
||||
*/
|
||||
@ApiModelProperty("修改意见")
|
||||
@TableField("edit_opinion")
|
||||
@Excel(name = "修改意见")
|
||||
private String editOpinion;
|
||||
|
||||
/**
|
||||
* 活动发起人
|
||||
*/
|
||||
@ApiModelProperty("活动发起人")
|
||||
@TableField("event_promoter")
|
||||
@Excel(name = "活动发起人")
|
||||
private String eventPromoter;
|
||||
|
||||
//user_name
|
||||
@ApiModelProperty("活动发起人学号或工号")
|
||||
@TableField("user_name")
|
||||
@Excel(name = "活动发起人学号/工号")
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
* 活动图片
|
||||
*/
|
||||
@ApiModelProperty(value = "活动压缩文件")
|
||||
@TableField("active_package")
|
||||
@Excel(name = "活动压缩文件")
|
||||
private String activePackage;
|
||||
}
|
@@ -0,0 +1,114 @@
|
||||
package com.srs.staff.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
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;
|
||||
|
||||
|
||||
/**
|
||||
* 一站式社区模块-社区活动-报名记录对象 srs_staff_one_stop_registration_record
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-07-16
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
@ApiModel(value = "SrsStaffOneStopRegistrationRecord对象", description = "一站式社区模块-社区活动-报名记录")
|
||||
@TableName("srs_staff_one_stop_registration_record")
|
||||
public class SrsStaffOneStopRegistrationRecord extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 报名记录id
|
||||
*/
|
||||
@ApiModelProperty("报名记录id")
|
||||
@TableField("record_id")
|
||||
private Long recordId;
|
||||
|
||||
/**
|
||||
* 社区活动id
|
||||
*/
|
||||
@ApiModelProperty(value = "社区活动id", required = true)
|
||||
@TableField("activity_id")
|
||||
@Excel(name = "社区活动id")
|
||||
private Long activityId;
|
||||
|
||||
/**
|
||||
* 活动主题
|
||||
*/
|
||||
@ApiModelProperty(value = "活动主题", required = true)
|
||||
@TableField("activity_theme")
|
||||
@Excel(name = "活动主题")
|
||||
private String activityTheme;
|
||||
|
||||
|
||||
/**
|
||||
* 发起人
|
||||
*/
|
||||
@ApiModelProperty(value = "发起人", required = true)
|
||||
@TableField("initiator")
|
||||
@Excel(name = "发起人")
|
||||
private String initiator;
|
||||
|
||||
/**
|
||||
* 报名人
|
||||
*/
|
||||
@ApiModelProperty(value = "报名人", required = true)
|
||||
@TableField("applicant")
|
||||
@Excel(name = "报名人")
|
||||
private String applicant;
|
||||
|
||||
/**
|
||||
* 报名时间
|
||||
*/
|
||||
@ApiModelProperty("报名时间")
|
||||
@TableField("registration_time")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "报名时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date registrationTime;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
@ApiModelProperty("审核状态")
|
||||
@TableField("audit_status")
|
||||
@Excel(name = "审核状态")
|
||||
private Long auditStatus;
|
||||
|
||||
/**
|
||||
* 工号\学号
|
||||
*/
|
||||
@ApiModelProperty("工号\\学号")
|
||||
@TableField("job_number")
|
||||
@Excel(name = "工号\\学号")
|
||||
private String jobNumber;
|
||||
|
||||
/**
|
||||
* 工号\学号
|
||||
*/
|
||||
@ApiModelProperty("当前报名人数")
|
||||
@TableField("job_number")
|
||||
@Excel(name = "当前报名人数")
|
||||
private Long numberApplicants;
|
||||
|
||||
/**
|
||||
* 社区活动
|
||||
*/
|
||||
@ApiModelProperty(value = "社区活动", hidden = true)
|
||||
@Excel(name = "社区活动")
|
||||
private List<SrsStaffOneStopCommunityActivities> communityActivitiesList;
|
||||
|
||||
@TableField(exist = false)
|
||||
private Long[] recordIds;
|
||||
|
||||
}
|
@@ -0,0 +1,165 @@
|
||||
package com.srs.staff.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
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;
|
||||
|
||||
|
||||
/**
|
||||
* 一站式社区-功能房对象 staff_one_stop_room
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-08-12
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
@ApiModel(value = "StaffOneStopRoom对象", description = "一站式社区-功能房")
|
||||
@TableName("staff_one_stop_room")
|
||||
public class StaffOneStopRoom extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@ApiModelProperty("主键")
|
||||
@TableField("room_id")
|
||||
private Long roomId;
|
||||
|
||||
/**
|
||||
* 功能房编码
|
||||
*/
|
||||
@ApiModelProperty("功能房编码")
|
||||
@TableField("room_no")
|
||||
@Excel(name = "功能房编码")
|
||||
private String roomNo;
|
||||
|
||||
/**
|
||||
* 功能房名
|
||||
*/
|
||||
@ApiModelProperty("功能房名")
|
||||
@TableField("room_name")
|
||||
@Excel(name = "功能房名")
|
||||
private String roomName;
|
||||
|
||||
/**
|
||||
* 使用事项
|
||||
*/
|
||||
@ApiModelProperty("使用事项")
|
||||
@TableField("room_matter")
|
||||
@Excel(name = "使用事项")
|
||||
private String roomMatter;
|
||||
|
||||
/**
|
||||
* 功能房预约规则
|
||||
*/
|
||||
@ApiModelProperty("功能房预约规则")
|
||||
@TableField("room_rule")
|
||||
@Excel(name = "功能房预约规则")
|
||||
private String roomRule;
|
||||
|
||||
/**
|
||||
* 功能房介绍
|
||||
*/
|
||||
@ApiModelProperty("功能房介绍")
|
||||
@TableField("room_info")
|
||||
@Excel(name = "功能房介绍")
|
||||
private String roomInfo;
|
||||
|
||||
/**
|
||||
* 功能房用途
|
||||
*/
|
||||
@ApiModelProperty("功能房用途")
|
||||
@TableField("room_purp")
|
||||
@Excel(name = "功能房用途")
|
||||
private String roomPurp;
|
||||
|
||||
/**
|
||||
* 开放状态
|
||||
*/
|
||||
@ApiModelProperty("开放状态")
|
||||
@TableField("room_status")
|
||||
@Excel(name = "开放状态")
|
||||
private String roomStatus;
|
||||
|
||||
/**
|
||||
* 功能房可承载人数
|
||||
*/
|
||||
@ApiModelProperty("功能房可承载人数")
|
||||
@TableField("room_capacity")
|
||||
@Excel(name = "功能房可承载人数")
|
||||
private String roomCapacity;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty("创建时间")
|
||||
@TableField("room_createTime")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date roomCreatetime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@ApiModelProperty("更新时间")
|
||||
@TableField("room_upTime")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date roomUptime;
|
||||
|
||||
/**
|
||||
* 更新者
|
||||
*/
|
||||
@ApiModelProperty("更新者")
|
||||
@TableField("room_upuser")
|
||||
@Excel(name = "更新者")
|
||||
private String roomUpuser;
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
@ApiModelProperty("创建者")
|
||||
@TableField("room_user")
|
||||
@Excel(name = "创建者")
|
||||
private String roomUser;
|
||||
|
||||
/**
|
||||
* 归属部门、学院
|
||||
*/
|
||||
@ApiModelProperty("归属部门、学院")
|
||||
@TableField("room_depar")
|
||||
@Excel(name = "归属部门、学院")
|
||||
private String roomDepar;
|
||||
|
||||
/**
|
||||
* 功能房图片
|
||||
*/
|
||||
@ApiModelProperty("功能房图片")
|
||||
@TableField("room_imgs")
|
||||
@Excel(name = "功能房图片")
|
||||
private String roomImgs;
|
||||
|
||||
/**
|
||||
* 功能房-预约记录
|
||||
*/
|
||||
@ApiModelProperty(value = "功能房-预约记录", hidden = true)
|
||||
@Excel(name = "功能房-预约记录")
|
||||
private List<StaffOneStopRoomReservation> staffOneStopRoomReservationList;
|
||||
|
||||
/**
|
||||
* 功能房-开放时间
|
||||
*/
|
||||
@ApiModelProperty(value = "功能房-开放时间", hidden = true)
|
||||
@Excel(name = "功能房-开放时间")
|
||||
private List<StaffOneStopRoomOpeningHours> staffOneStopRoomOpeningHoursList;
|
||||
}
|
@@ -0,0 +1,83 @@
|
||||
package com.srs.staff.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;
|
||||
|
||||
|
||||
/**
|
||||
* 一站式社区-功能房开放时间对象 staff_one_stop_room_opening_hours
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-08-13
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
@ApiModel(value = "StaffOneStopRoomOpeningHours对象", description = "一站式社区-功能房开放时间")
|
||||
@TableName("staff_one_stop_room_opening_hours")
|
||||
public class StaffOneStopRoomOpeningHours extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 功能房开放时间id
|
||||
*/
|
||||
@ApiModelProperty("功能房开放时间id")
|
||||
@TableField("oh_id")
|
||||
private Long ohId;
|
||||
|
||||
/**
|
||||
* 功能房编码
|
||||
*/
|
||||
@ApiModelProperty("功能房编码")
|
||||
@TableField("room_no")
|
||||
@Excel(name = "功能房编码")
|
||||
private String roomNo;
|
||||
|
||||
/**
|
||||
* 星期几
|
||||
*/
|
||||
@ApiModelProperty("星期几")
|
||||
@TableField("oh_weekday")
|
||||
@Excel(name = "星期几")
|
||||
private String ohWeekday;
|
||||
|
||||
/**
|
||||
* 开放时间段
|
||||
*/
|
||||
@ApiModelProperty("开放时间段")
|
||||
@TableField("opening_hours")
|
||||
@Excel(name = "开放时间段")
|
||||
private String openingHours;
|
||||
|
||||
/**
|
||||
* 是否使用
|
||||
*/
|
||||
@ApiModelProperty("是否使用 0未使用 1使用")
|
||||
@TableField("is_occupy")
|
||||
@Excel(name = "是否使用 0未使用 1使用")
|
||||
private Long isOccupy;
|
||||
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
@ApiModelProperty("是否删除 0正常 1删除")
|
||||
@TableField("is_del")
|
||||
@Excel(name = "是否删除 0正常 1删除")
|
||||
private Long isDel;
|
||||
|
||||
|
||||
/**
|
||||
* 功能房开放时间编码
|
||||
*/
|
||||
@ApiModelProperty("功能房开放时间编码")
|
||||
@TableField("rt_no")
|
||||
@Excel(name = "功能房开放时间编码")
|
||||
private String rtNo;
|
||||
|
||||
}
|
@@ -0,0 +1,212 @@
|
||||
package com.srs.staff.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
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;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 一站式社区-功能房-预约记录对象 staff_one_stop_room_reservation
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-08-12
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
@ApiModel(value = "StaffOneStopRoomReservation对象" , description = "一站式社区-功能房-预约记录")
|
||||
@TableName("staff_one_stop_room_reservation")
|
||||
public class StaffOneStopRoomReservation extends BaseEntity{
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/**
|
||||
* 预约记录id
|
||||
*/
|
||||
@ApiModelProperty("预约记录id")
|
||||
@TableField("rt_id")
|
||||
private Long rtId;
|
||||
|
||||
/**
|
||||
* 功能房预约编码
|
||||
*/
|
||||
@ApiModelProperty("功能房开放时间编码")
|
||||
@TableField("rt_no")
|
||||
@Excel(name = "功能房开放时间编码")
|
||||
private String rtNo;
|
||||
|
||||
/**
|
||||
* 功能房编码
|
||||
*/
|
||||
@ApiModelProperty("功能房编码")
|
||||
@TableField("room_no")
|
||||
@Excel(name = "功能房编码")
|
||||
private String roomNo;
|
||||
|
||||
/**
|
||||
* 功能房名
|
||||
*/
|
||||
@ApiModelProperty("功能房名")
|
||||
@TableField("room_name")
|
||||
@Excel(name = "功能房名")
|
||||
private String roomName;
|
||||
|
||||
/**
|
||||
* 主题
|
||||
*/
|
||||
@ApiModelProperty("主题")
|
||||
@TableField("rt_theme")
|
||||
@Excel(name = "主题")
|
||||
private String rtTheme;
|
||||
|
||||
/**
|
||||
* 参与人员类型
|
||||
*/
|
||||
@ApiModelProperty("参与人员类型")
|
||||
@TableField("rt_role")
|
||||
@Excel(name = "参与人员类型")
|
||||
private String rtRole;
|
||||
|
||||
/**
|
||||
* 参与人数
|
||||
*/
|
||||
@ApiModelProperty("参与人数")
|
||||
@TableField("rt_people")
|
||||
@Excel(name = "参与人数")
|
||||
private String rtPeople;
|
||||
|
||||
/**
|
||||
* 预约用途
|
||||
*/
|
||||
@ApiModelProperty("预约用途")
|
||||
@TableField("rt_purpose")
|
||||
@Excel(name = "预约用途")
|
||||
private String rtPurpose;
|
||||
|
||||
/**
|
||||
* 预约时间
|
||||
*/
|
||||
@ApiModelProperty("预约时间")
|
||||
@TableField("rt_time")
|
||||
@Excel(name = "预约时间")
|
||||
private String rtTime;
|
||||
|
||||
/**
|
||||
* 预约时间段
|
||||
*/
|
||||
@ApiModelProperty("预约时间段")
|
||||
@TableField("rt_time_period")
|
||||
@Excel(name = "预约时间段")
|
||||
private String rtTimePeriod;
|
||||
|
||||
/**
|
||||
* 使用状态0未使用
|
||||
*/
|
||||
@ApiModelProperty("使用状态0未使用 1使用中 2使用结束")
|
||||
@TableField("rt_state")
|
||||
@Excel(name = "使用状态0未使用")
|
||||
private Integer rtState;
|
||||
|
||||
/**
|
||||
* 试用期间图片
|
||||
*/
|
||||
@ApiModelProperty("试用期间图片")
|
||||
@TableField("rt_imgs")
|
||||
@Excel(name = "试用期间图片")
|
||||
private String rtImgs;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty("创建时间")
|
||||
@TableField("rt_creat_time")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "创建时间" , width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date rtCreatTime;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@ApiModelProperty("修改时间")
|
||||
@TableField("rt_up_time")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "修改时间" , width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date rtUpTime;
|
||||
|
||||
/**
|
||||
* 申请人
|
||||
*/
|
||||
@ApiModelProperty("申请人")
|
||||
@TableField("rt_creat_role")
|
||||
@Excel(name = "申请人")
|
||||
private String rtCreatRole;
|
||||
|
||||
/**
|
||||
* 借用部门、学院
|
||||
*/
|
||||
@ApiModelProperty("借用部门、学院")
|
||||
@TableField("rt_depar")
|
||||
@Excel(name = "借用部门、学院")
|
||||
private String rtDepar;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
@ApiModelProperty("审核状态 0待审核 1同意 2不同意")
|
||||
@TableField("audit_status")
|
||||
@Excel(name = "审核状态")
|
||||
private Long auditStatus;
|
||||
|
||||
|
||||
/**
|
||||
* 修改意见
|
||||
*/
|
||||
@ApiModelProperty("修改意见")
|
||||
@TableField("edit_opinion")
|
||||
@Excel(name = "修改意见")
|
||||
private String editOpinion;
|
||||
|
||||
|
||||
/**
|
||||
* 活动结束反馈
|
||||
*/
|
||||
@ApiModelProperty("活动结束反馈")
|
||||
@TableField("feedback")
|
||||
@Excel(name = "活动结束反馈")
|
||||
private String feedback;
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 功能房-开放时间
|
||||
*/
|
||||
@ApiModelProperty(value = "功能房-开放时间", hidden = true)
|
||||
@Excel(name = "功能房-开放时间")
|
||||
private List<StaffOneStopRoomOpeningHours> staffOneStopRoomOpeningHoursList;
|
||||
|
||||
/**
|
||||
* 功能房-开放时间
|
||||
*/
|
||||
@ApiModelProperty(value = "功能房", hidden = true)
|
||||
@Excel(name = "功能房")
|
||||
private List<StaffOneStopRoom> staffOneStopRoom;
|
||||
|
||||
// 时间范围查询
|
||||
@TableField(exist = false)
|
||||
private String rtTimeStart; // 预约时间段起始
|
||||
|
||||
@TableField(exist = false)
|
||||
private String rtTimeEnd; // 预约时间段结束
|
||||
|
||||
|
||||
}
|
71
srs-staff/src/main/java/com/srs/staff/domain/SysRfile.java
Normal file
71
srs-staff/src/main/java/com/srs/staff/domain/SysRfile.java
Normal file
@@ -0,0 +1,71 @@
|
||||
package com.srs.staff.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;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 文件管理对象 sys_rfile
|
||||
*
|
||||
* @author srs
|
||||
* @date 2024-05-16
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
@ApiModel(value = "SysRfile对象" , description = "学校文件管理")
|
||||
@TableName("sys_rfile")
|
||||
public class SysRfile extends BaseEntity{
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/**
|
||||
* 文件id
|
||||
*/
|
||||
@ApiModelProperty("文件id")
|
||||
@TableField("rfile_id")
|
||||
private Long rfileId;
|
||||
|
||||
/**
|
||||
* 文件标题
|
||||
*/
|
||||
@ApiModelProperty("文件标题")
|
||||
@TableField("rfile_title")
|
||||
@Excel(name = "文件标题")
|
||||
private String rfileTitle;
|
||||
|
||||
/**
|
||||
* 文件路径
|
||||
*/
|
||||
@ApiModelProperty("文件路径")
|
||||
@TableField("rfile_path")
|
||||
@Excel(name = "文件路径")
|
||||
private String rfilePath;
|
||||
|
||||
/**
|
||||
* 文件类型
|
||||
*/
|
||||
@ApiModelProperty("文件类型")
|
||||
@TableField("rfile_type")
|
||||
@Excel(name = "文件类型")
|
||||
private String rfileType;
|
||||
|
||||
/**
|
||||
* 文件上传日期
|
||||
*/
|
||||
@ApiModelProperty("文件上传日期")
|
||||
@TableField("rfile_date")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "文件上传日期" , width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date rfileDate;
|
||||
|
||||
|
||||
}
|
@@ -0,0 +1,18 @@
|
||||
package com.srs.staff.domain.vo;
|
||||
|
||||
import com.srs.common.annotation.Excel;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class DepartmentReservationCountExport {
|
||||
|
||||
// 名称
|
||||
@Excel(name = "部门名称", sort = 1)
|
||||
private String department;
|
||||
// 预约次数
|
||||
@Excel(name = "预约次数", sort = 2)
|
||||
private Integer reservation_count;
|
||||
// 总访客数
|
||||
@Excel(name = "总访客数", sort = 3)
|
||||
private Integer total_visitors;
|
||||
}
|
@@ -0,0 +1,17 @@
|
||||
package com.srs.staff.domain.vo;
|
||||
|
||||
import com.srs.common.annotation.Excel;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class RoomReservationCountExport {
|
||||
// 名称
|
||||
@Excel(name = "功能房名")
|
||||
private String roomName;
|
||||
// 预约次数
|
||||
@Excel(name = "预约次数")
|
||||
private Integer reservation_count;
|
||||
// 总访客数
|
||||
@Excel(name = "总访客数")
|
||||
private Integer total_visitors;
|
||||
}
|
@@ -0,0 +1,68 @@
|
||||
package com.srs.staff.domain.vo;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.srs.common.annotation.Excel;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 导出报名数据模板
|
||||
*/
|
||||
@ApiModel("导出报名数据模板")
|
||||
@Data
|
||||
public class SrsStaffOneStopRegistrationRecordExportVo {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 活动主题
|
||||
*/
|
||||
@ApiModelProperty(value = "活动主题", required = true)
|
||||
@TableField("activity_theme")
|
||||
@Excel(name = "活动主题")
|
||||
private String activityTheme;
|
||||
|
||||
|
||||
/**
|
||||
* 发起人
|
||||
*/
|
||||
@ApiModelProperty(value = "发起人", required = true)
|
||||
@TableField("initiator")
|
||||
@Excel(name = "发起人")
|
||||
private String initiator;
|
||||
|
||||
/**
|
||||
* 报名人
|
||||
*/
|
||||
@ApiModelProperty(value = "报名人", required = true)
|
||||
@TableField("applicant")
|
||||
@Excel(name = "报名人")
|
||||
private String applicant;
|
||||
|
||||
/**
|
||||
* 报名时间
|
||||
*/
|
||||
@ApiModelProperty("报名时间")
|
||||
@TableField("registration_time")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "报名时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date registrationTime;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
@ApiModelProperty("审核状态值")
|
||||
@Excel(name = "审核状态")
|
||||
private String auditStatusValue;
|
||||
|
||||
/**
|
||||
* 工号\学号
|
||||
*/
|
||||
@ApiModelProperty("工号\\学号")
|
||||
@TableField("job_number")
|
||||
@Excel(name = "工号\\学号")
|
||||
private String jobNumber;
|
||||
}
|
@@ -0,0 +1,62 @@
|
||||
package com.srs.staff.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.srs.staff.domain.SrsStaffOneStopCommunityActivities;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 一站式社区模块-社区活动Mapper接口
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-07-16
|
||||
*/
|
||||
public interface SrsStaffOneStopCommunityActivitiesMapper extends BaseMapper<SrsStaffOneStopCommunityActivities> {
|
||||
/**
|
||||
* 查询一站式社区模块-社区活动
|
||||
*
|
||||
* @param activityId 一站式社区模块-社区活动主键
|
||||
* @return 一站式社区模块-社区活动
|
||||
*/
|
||||
public SrsStaffOneStopCommunityActivities selectSrsStaffOneStopCommunityActivitiesByActivityId(Long activityId);
|
||||
|
||||
/**
|
||||
* 查询一站式社区模块-社区活动列表
|
||||
*
|
||||
* @param srsStaffOneStopCommunityActivities 一站式社区模块-社区活动
|
||||
* @return 一站式社区模块-社区活动集合
|
||||
*/
|
||||
List<SrsStaffOneStopCommunityActivities> selectSrsStaffOneStopCommunityActivitiesList(SrsStaffOneStopCommunityActivities srsStaffOneStopCommunityActivities);
|
||||
|
||||
/**
|
||||
* 新增一站式社区模块-社区活动
|
||||
*
|
||||
* @param srsStaffOneStopCommunityActivities 一站式社区模块-社区活动
|
||||
* @return 结果
|
||||
*/
|
||||
int insertSrsStaffOneStopCommunityActivities(SrsStaffOneStopCommunityActivities srsStaffOneStopCommunityActivities);
|
||||
|
||||
/**
|
||||
* 修改一站式社区模块-社区活动
|
||||
*
|
||||
* @param srsStaffOneStopCommunityActivities 一站式社区模块-社区活动
|
||||
* @return 结果
|
||||
*/
|
||||
int updateSrsStaffOneStopCommunityActivities(SrsStaffOneStopCommunityActivities srsStaffOneStopCommunityActivities);
|
||||
|
||||
/**
|
||||
* 删除一站式社区模块-社区活动
|
||||
*
|
||||
* @param activityId 一站式社区模块-社区活动主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteSrsStaffOneStopCommunityActivitiesByActivityId(Long activityId);
|
||||
|
||||
/**
|
||||
* 批量删除一站式社区模块-社区活动
|
||||
*
|
||||
* @param activityIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteSrsStaffOneStopCommunityActivitiesByActivityIds(Long[] activityIds);
|
||||
}
|
@@ -0,0 +1,62 @@
|
||||
package com.srs.staff.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.srs.staff.domain.SrsStaffOneStopCommunityConstruction;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 一站式社区模块:社区建设Mapper接口
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-07-17
|
||||
*/
|
||||
public interface SrsStaffOneStopCommunityConstructionMapper extends BaseMapper<SrsStaffOneStopCommunityConstruction> {
|
||||
/**
|
||||
* 查询一站式社区模块:社区建设
|
||||
*
|
||||
* @param constructId 一站式社区模块:社区建设主键
|
||||
* @return 一站式社区模块:社区建设
|
||||
*/
|
||||
public SrsStaffOneStopCommunityConstruction selectSrsStaffOneStopCommunityConstructionByConstructId(Long constructId);
|
||||
|
||||
/**
|
||||
* 查询一站式社区模块:社区建设列表
|
||||
*
|
||||
* @param srsStaffOneStopCommunityConstruction 一站式社区模块:社区建设
|
||||
* @return 一站式社区模块:社区建设集合
|
||||
*/
|
||||
List<SrsStaffOneStopCommunityConstruction> selectSrsStaffOneStopCommunityConstructionList(SrsStaffOneStopCommunityConstruction srsStaffOneStopCommunityConstruction);
|
||||
|
||||
/**
|
||||
* 新增一站式社区模块:社区建设
|
||||
*
|
||||
* @param srsStaffOneStopCommunityConstruction 一站式社区模块:社区建设
|
||||
* @return 结果
|
||||
*/
|
||||
int insertSrsStaffOneStopCommunityConstruction(SrsStaffOneStopCommunityConstruction srsStaffOneStopCommunityConstruction);
|
||||
|
||||
/**
|
||||
* 修改一站式社区模块:社区建设
|
||||
*
|
||||
* @param srsStaffOneStopCommunityConstruction 一站式社区模块:社区建设
|
||||
* @return 结果
|
||||
*/
|
||||
int updateSrsStaffOneStopCommunityConstruction(SrsStaffOneStopCommunityConstruction srsStaffOneStopCommunityConstruction);
|
||||
|
||||
/**
|
||||
* 删除一站式社区模块:社区建设
|
||||
*
|
||||
* @param constructId 一站式社区模块:社区建设主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteSrsStaffOneStopCommunityConstructionByConstructId(Long constructId);
|
||||
|
||||
/**
|
||||
* 批量删除一站式社区模块:社区建设
|
||||
*
|
||||
* @param constructIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteSrsStaffOneStopCommunityConstructionByConstructIds(Long[] constructIds);
|
||||
}
|
@@ -0,0 +1,135 @@
|
||||
package com.srs.staff.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.srs.staff.domain.SrsStaffOneStopRegistrationRecord;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.srs.staff.domain.vo.SrsStaffOneStopRegistrationRecordExportVo;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* 一站式社区模块-社区活动-报名记录Mapper接口
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-07-16
|
||||
*/
|
||||
public interface SrsStaffOneStopRegistrationRecordMapper extends BaseMapper<SrsStaffOneStopRegistrationRecord> {
|
||||
/**
|
||||
* 查询一站式社区模块-社区活动-报名记录
|
||||
*
|
||||
* @param recordId 一站式社区模块-社区活动-报名记录主键
|
||||
* @return 一站式社区模块-社区活动-报名记录
|
||||
*/
|
||||
public SrsStaffOneStopRegistrationRecord selectSrsStaffOneStopRegistrationRecordByRecordId(Long recordId);
|
||||
|
||||
/**
|
||||
* 查询一站式社区模块-社区活动-报名记录
|
||||
*
|
||||
* @param activityId 一站式社区模块-社区活动-报名记录主键
|
||||
* @return 一站式社区模块-社区活动-报名记录
|
||||
*/
|
||||
public List<SrsStaffOneStopRegistrationRecord> selectSrsStaffOneStopRegistrationRecordByActivityId(Long activityId);
|
||||
|
||||
|
||||
/**
|
||||
* 查询一站式社区模块-社区活动-报名记录
|
||||
*
|
||||
* @param activityId 一站式社区模块-社区活动主键
|
||||
* @return 一站式社区模块-社区活动-报名记录
|
||||
*/
|
||||
public SrsStaffOneStopRegistrationRecord selectRecordByActivityIdAndApplicant(@Param("activityId") Long activityId, @Param("jobNumber") String jobNumber);
|
||||
|
||||
/**
|
||||
* 查询一站式社区模块-社区活动-报名记录列表
|
||||
*
|
||||
* @param srsStaffOneStopRegistrationRecord 一站式社区模块-社区活动-报名记录
|
||||
* @return 一站式社区模块-社区活动-报名记录集合
|
||||
*/
|
||||
List<SrsStaffOneStopRegistrationRecord> selectSrsStaffOneStopRegistrationRecordList(SrsStaffOneStopRegistrationRecord srsStaffOneStopRegistrationRecord);
|
||||
|
||||
/**
|
||||
* 新增一站式社区模块-社区活动-报名记录
|
||||
*
|
||||
* @param srsStaffOneStopRegistrationRecord 一站式社区模块-社区活动-报名记录
|
||||
* @return 结果
|
||||
*/
|
||||
int insertSrsStaffOneStopRegistrationRecord(SrsStaffOneStopRegistrationRecord srsStaffOneStopRegistrationRecord);
|
||||
|
||||
/**
|
||||
* 修改一站式社区模块-社区活动-报名记录
|
||||
*
|
||||
* @param srsStaffOneStopRegistrationRecord 一站式社区模块-社区活动-报名记录
|
||||
* @return 结果
|
||||
*/
|
||||
int updateSrsStaffOneStopRegistrationRecord(SrsStaffOneStopRegistrationRecord srsStaffOneStopRegistrationRecord);
|
||||
|
||||
/**
|
||||
* 批量修改一站式社区模块-社区活动-报名记录
|
||||
*
|
||||
* @param registrationRecordList 一站式社区模块-社区活动-报名记录
|
||||
* @return 结果
|
||||
*/
|
||||
int batchUpdateSysRegistrationRecord(List<SrsStaffOneStopRegistrationRecord> registrationRecordList);
|
||||
|
||||
/**
|
||||
* 删除一站式社区模块-社区活动-报名记录
|
||||
*
|
||||
* @param recordId 一站式社区模块-社区活动-报名记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteSrsStaffOneStopRegistrationRecordByRecordId(Long recordId);
|
||||
|
||||
/**
|
||||
* 批量删除一站式社区模块-社区活动-报名记录
|
||||
*
|
||||
* @param recordIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteSrsStaffOneStopRegistrationRecordByRecordIds(Long[] recordIds);
|
||||
|
||||
/**
|
||||
* 导出
|
||||
* @param srsStaffOneStopRegistrationRecord
|
||||
* @return
|
||||
*/
|
||||
List<SrsStaffOneStopRegistrationRecordExportVo> selectSrsStaffOneStopRegistrationRecordListexport(SrsStaffOneStopRegistrationRecord srsStaffOneStopRegistrationRecord);
|
||||
|
||||
List<Map<String, Object>> getDepartmentUsage(
|
||||
@Param("startTime") String startTime,
|
||||
@Param("endTime") String endTime,
|
||||
@Param("role") String role,
|
||||
@Param("borrower") String borrower,
|
||||
@Param("auditStatus") Integer auditStatus,
|
||||
@Param("rtDepar") String rtDepar
|
||||
);
|
||||
|
||||
List<Map<String, Object>> getRoomReservationCount(
|
||||
@Param("startTime") String startTime,
|
||||
@Param("endTime") String endTime,
|
||||
@Param("role") String role,
|
||||
@Param("borrower") String borrower,
|
||||
@Param("auditStatus") Integer auditStatus,
|
||||
@Param("rtDepar") String rtDepar
|
||||
);
|
||||
|
||||
List<Map<String, Object>> getDepartmentUsageStatistics(
|
||||
@Param("startTime") String startTime,
|
||||
@Param("endTime") String endTime,
|
||||
@Param("role") String role,
|
||||
@Param("borrower") String borrower,
|
||||
@Param("auditStatus") Integer auditStatus,
|
||||
@Param("rtDepar") String rtDepar
|
||||
);
|
||||
|
||||
List<Map<String, Object>> getRoomUsageStatistics(
|
||||
@Param("startTime") String startTime,
|
||||
@Param("endTime") String endTime,
|
||||
@Param("role") String role,
|
||||
@Param("borrower") String borrower,
|
||||
@Param("auditStatus") Integer auditStatus,
|
||||
@Param("rtDepar") String rtDepar
|
||||
);
|
||||
|
||||
int updateAuditStatusToPending(@Param("id") Integer id);
|
||||
}
|
@@ -0,0 +1,71 @@
|
||||
package com.srs.staff.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.srs.staff.domain.StaffOneStopRoom;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 一站式社区-功能房Mapper接口
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-08-12
|
||||
*/
|
||||
public interface StaffOneStopRoomMapper extends BaseMapper<StaffOneStopRoom> {
|
||||
/**
|
||||
* 查询一站式社区-功能房
|
||||
*
|
||||
* @param roomId 一站式社区-功能房主键
|
||||
* @return 一站式社区-功能房
|
||||
*/
|
||||
public StaffOneStopRoom selectStaffOneStopRoomByRoomId(Long roomId);
|
||||
|
||||
|
||||
/**
|
||||
* 查询一站式社区-功能房
|
||||
*
|
||||
* @param roomNo 一站式社区-功能房主键
|
||||
* @return 一站式社区-功能房
|
||||
*/
|
||||
public StaffOneStopRoom selectStaffOneStopRoomByRoomNo(String roomNo);
|
||||
|
||||
/**
|
||||
* 查询一站式社区-功能房列表
|
||||
*
|
||||
* @param staffOneStopRoom 一站式社区-功能房
|
||||
* @return 一站式社区-功能房集合
|
||||
*/
|
||||
List<StaffOneStopRoom> selectStaffOneStopRoomList(StaffOneStopRoom staffOneStopRoom);
|
||||
|
||||
/**
|
||||
* 新增一站式社区-功能房
|
||||
*
|
||||
* @param staffOneStopRoom 一站式社区-功能房
|
||||
* @return 结果
|
||||
*/
|
||||
int insertStaffOneStopRoom(StaffOneStopRoom staffOneStopRoom);
|
||||
|
||||
/**
|
||||
* 修改一站式社区-功能房
|
||||
*
|
||||
* @param staffOneStopRoom 一站式社区-功能房
|
||||
* @return 结果
|
||||
*/
|
||||
int updateStaffOneStopRoom(StaffOneStopRoom staffOneStopRoom);
|
||||
|
||||
/**
|
||||
* 删除一站式社区-功能房
|
||||
*
|
||||
* @param roomId 一站式社区-功能房主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteStaffOneStopRoomByRoomId(Long roomId);
|
||||
|
||||
/**
|
||||
* 批量删除一站式社区-功能房
|
||||
*
|
||||
* @param roomIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteStaffOneStopRoomByRoomIds(Long[] roomIds);
|
||||
}
|
@@ -0,0 +1,102 @@
|
||||
package com.srs.staff.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.srs.staff.domain.StaffOneStopRoomOpeningHours;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* 一站式社区-功能房开放时间Mapper接口
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-08-13
|
||||
*/
|
||||
public interface StaffOneStopRoomOpeningHoursMapper extends BaseMapper<StaffOneStopRoomOpeningHours> {
|
||||
/**
|
||||
* 查询一站式社区-功能房开放时间
|
||||
*
|
||||
* @param ohId 一站式社区-功能房开放时间主键
|
||||
* @return 一站式社区-功能房开放时间
|
||||
*/
|
||||
public StaffOneStopRoomOpeningHours selectStaffOneStopRoomOpeningHoursByOhId(Long ohId);
|
||||
|
||||
/**
|
||||
* 查询一站式社区-功能房开放时间
|
||||
*
|
||||
* @param roomNo 一站式社区-功能房开放时间主键
|
||||
* @return 一站式社区-功能房开放时间
|
||||
*/
|
||||
public StaffOneStopRoomOpeningHours selectStaffOneStopRoomOpeningHoursByRoomNo(String roomNo);
|
||||
/**
|
||||
* 查询一站式社区-功能房开放时间
|
||||
*
|
||||
* @param rtNo 一站式社区-功能房开放时间主键
|
||||
* @return 一站式社区-功能房开放时间
|
||||
*/
|
||||
public StaffOneStopRoomOpeningHours selectStaffOneStopRoomOpeningHoursByRtNo(String rtNo);
|
||||
|
||||
/**
|
||||
* 查询一站式社区-功能房开放时间
|
||||
*
|
||||
* @param ohWeekday 一站式社区-功能房开放时间主键
|
||||
* @return 一站式社区-功能房开放时间
|
||||
*/
|
||||
public List<StaffOneStopRoomOpeningHours> selectStaffOneStopRoomOpeningHoursByOhWeekday(@Param("roomNo") String roomNo, @Param("ohWeekday") String ohWeekday);
|
||||
|
||||
/**
|
||||
* 查询一站式社区-功能房开放时间列表
|
||||
*
|
||||
* @param staffOneStopRoomOpeningHours 一站式社区-功能房开放时间
|
||||
* @return 一站式社区-功能房开放时间集合
|
||||
*/
|
||||
List<StaffOneStopRoomOpeningHours> selectStaffOneStopRoomOpeningHoursList(StaffOneStopRoomOpeningHours staffOneStopRoomOpeningHours);
|
||||
|
||||
/**
|
||||
* 新增一站式社区-功能房开放时间
|
||||
*
|
||||
* @param staffOneStopRoomOpeningHours 一站式社区-功能房开放时间
|
||||
* @return 结果
|
||||
*/
|
||||
int insertStaffOneStopRoomOpeningHours(StaffOneStopRoomOpeningHours staffOneStopRoomOpeningHours);
|
||||
|
||||
/**
|
||||
* 批量新增一站式社区-功能房开放时间
|
||||
*
|
||||
* @param staffOneStopRoomOpeningHoursList 一站式社区-功能房开放时间
|
||||
* @return 结果
|
||||
*/
|
||||
int insertStaffOneStopRoomOpeningHoursBatch(List<StaffOneStopRoomOpeningHours> staffOneStopRoomOpeningHoursList);
|
||||
|
||||
/**
|
||||
* 修改一站式社区-功能房开放时间
|
||||
*
|
||||
* @param staffOneStopRoomOpeningHours 一站式社区-功能房开放时间
|
||||
* @return 结果
|
||||
*/
|
||||
int updateStaffOneStopRoomOpeningHours(StaffOneStopRoomOpeningHours staffOneStopRoomOpeningHours);
|
||||
|
||||
/**
|
||||
* 批量修改一站式社区-功能房开放时间
|
||||
*
|
||||
* @param staffOneStopRoomOpeningHoursList 一站式社区-功能房开放时间
|
||||
* @return 结果
|
||||
*/
|
||||
int batchUpdateStaffOneStopRoomOpeningHours(List<StaffOneStopRoomOpeningHours> staffOneStopRoomOpeningHoursList);
|
||||
|
||||
/**
|
||||
* 删除一站式社区-功能房开放时间
|
||||
*
|
||||
* @param ohId 一站式社区-功能房开放时间主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteStaffOneStopRoomOpeningHoursByOhId(Long ohId);
|
||||
|
||||
/**
|
||||
* 批量删除一站式社区-功能房开放时间
|
||||
*
|
||||
* @param ohIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteStaffOneStopRoomOpeningHoursByOhIds(Long[] ohIds);
|
||||
}
|
@@ -0,0 +1,71 @@
|
||||
package com.srs.staff.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.srs.staff.domain.StaffOneStopRoomReservation;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* 一站式社区-功能房-预约记录Mapper接口
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-08-12
|
||||
*/
|
||||
public interface StaffOneStopRoomReservationMapper extends BaseMapper<StaffOneStopRoomReservation> {
|
||||
/**
|
||||
* 查询一站式社区-功能房-预约记录
|
||||
*
|
||||
* @param rtId 一站式社区-功能房-预约记录主键
|
||||
* @return 一站式社区-功能房-预约记录
|
||||
*/
|
||||
public StaffOneStopRoomReservation selectStaffOneStopRoomReservationByRtId(Long rtId);
|
||||
|
||||
/**
|
||||
* 查询一站式社区-功能房-预约记录
|
||||
*
|
||||
* @param rtTime 一站式社区-功能房-预约记录主键
|
||||
* @return 一站式社区-功能房-预约记录
|
||||
*/
|
||||
public List<StaffOneStopRoomReservation> selectStaffOneStopRoomReservationByRtTime(@Param("roomNo") String roomNo, @Param("rtTime") String rtTime);
|
||||
|
||||
/**
|
||||
* 查询一站式社区-功能房-预约记录列表
|
||||
*
|
||||
* @param staffOneStopRoomReservation 一站式社区-功能房-预约记录
|
||||
* @return 一站式社区-功能房-预约记录集合
|
||||
*/
|
||||
List<StaffOneStopRoomReservation> selectStaffOneStopRoomReservationList(StaffOneStopRoomReservation staffOneStopRoomReservation);
|
||||
|
||||
/**
|
||||
* 新增一站式社区-功能房-预约记录
|
||||
*
|
||||
* @param staffOneStopRoomReservation 一站式社区-功能房-预约记录
|
||||
* @return 结果
|
||||
*/
|
||||
int insertStaffOneStopRoomReservation(StaffOneStopRoomReservation staffOneStopRoomReservation);
|
||||
|
||||
/**
|
||||
* 修改一站式社区-功能房-预约记录
|
||||
*
|
||||
* @param staffOneStopRoomReservation 一站式社区-功能房-预约记录
|
||||
* @return 结果
|
||||
*/
|
||||
int updateStaffOneStopRoomReservation(StaffOneStopRoomReservation staffOneStopRoomReservation);
|
||||
|
||||
/**
|
||||
* 删除一站式社区-功能房-预约记录
|
||||
*
|
||||
* @param rtId 一站式社区-功能房-预约记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteStaffOneStopRoomReservationByRtId(Long rtId);
|
||||
|
||||
/**
|
||||
* 批量删除一站式社区-功能房-预约记录
|
||||
*
|
||||
* @param rtIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteStaffOneStopRoomReservationByRtIds(Long[] rtIds);
|
||||
}
|
@@ -0,0 +1,62 @@
|
||||
package com.srs.staff.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.srs.staff.domain.SysRfile;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 文件管理Mapper接口
|
||||
*
|
||||
* @author srs
|
||||
* @date 2024-05-16
|
||||
*/
|
||||
public interface SysRfileMapper extends BaseMapper<SysRfile> {
|
||||
/**
|
||||
* 查询文件管理
|
||||
*
|
||||
* @param rfileId 文件管理主键
|
||||
* @return 文件管理
|
||||
*/
|
||||
public SysRfile selectSysRfileByRfileId(Long rfileId);
|
||||
|
||||
/**
|
||||
* 查询文件管理列表
|
||||
*
|
||||
* @param sysRfile 文件管理
|
||||
* @return 文件管理集合
|
||||
*/
|
||||
List<SysRfile> selectSysRfileList(SysRfile sysRfile);
|
||||
|
||||
/**
|
||||
* 新增文件管理
|
||||
*
|
||||
* @param sysRfile 文件管理
|
||||
* @return 结果
|
||||
*/
|
||||
int insertSysRfile(SysRfile sysRfile);
|
||||
|
||||
/**
|
||||
* 修改文件管理
|
||||
*
|
||||
* @param sysRfile 文件管理
|
||||
* @return 结果
|
||||
*/
|
||||
int updateSysRfile(SysRfile sysRfile);
|
||||
|
||||
/**
|
||||
* 删除文件管理
|
||||
*
|
||||
* @param rfileId 文件管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteSysRfileByRfileId(Long rfileId);
|
||||
|
||||
/**
|
||||
* 批量删除文件管理
|
||||
*
|
||||
* @param rfileIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteSysRfileByRfileIds(Long[] rfileIds);
|
||||
}
|
@@ -0,0 +1,62 @@
|
||||
package com.srs.staff.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.srs.staff.domain.SrsStaffOneStopCommunityActivities;
|
||||
|
||||
/**
|
||||
* 一站式社区模块-社区活动Service接口
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-07-16
|
||||
*/
|
||||
public interface ISrsStaffOneStopCommunityActivitiesService extends IService<SrsStaffOneStopCommunityActivities> {
|
||||
/**
|
||||
* 查询一站式社区模块-社区活动
|
||||
*
|
||||
* @param activityId 一站式社区模块-社区活动主键
|
||||
* @return 一站式社区模块-社区活动
|
||||
*/
|
||||
public SrsStaffOneStopCommunityActivities selectSrsStaffOneStopCommunityActivitiesByActivityId(Long activityId);
|
||||
|
||||
/**
|
||||
* 查询一站式社区模块-社区活动列表
|
||||
*
|
||||
* @param srsStaffOneStopCommunityActivities 一站式社区模块-社区活动
|
||||
* @return 一站式社区模块-社区活动集合
|
||||
*/
|
||||
List<SrsStaffOneStopCommunityActivities> selectSrsStaffOneStopCommunityActivitiesList(SrsStaffOneStopCommunityActivities srsStaffOneStopCommunityActivities);
|
||||
|
||||
/**
|
||||
* 新增一站式社区模块-社区活动
|
||||
*
|
||||
* @param srsStaffOneStopCommunityActivities 一站式社区模块-社区活动
|
||||
* @return 结果
|
||||
*/
|
||||
int insertSrsStaffOneStopCommunityActivities(SrsStaffOneStopCommunityActivities srsStaffOneStopCommunityActivities);
|
||||
|
||||
/**
|
||||
* 修改一站式社区模块-社区活动
|
||||
*
|
||||
* @param srsStaffOneStopCommunityActivities 一站式社区模块-社区活动
|
||||
* @return 结果
|
||||
*/
|
||||
int updateSrsStaffOneStopCommunityActivities(SrsStaffOneStopCommunityActivities srsStaffOneStopCommunityActivities);
|
||||
|
||||
/**
|
||||
* 批量删除一站式社区模块-社区活动
|
||||
*
|
||||
* @param activityIds 需要删除的一站式社区模块-社区活动主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteSrsStaffOneStopCommunityActivitiesByActivityIds(Long[] activityIds);
|
||||
|
||||
/**
|
||||
* 删除一站式社区模块-社区活动信息
|
||||
*
|
||||
* @param activityId 一站式社区模块-社区活动主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteSrsStaffOneStopCommunityActivitiesByActivityId(Long activityId);
|
||||
}
|
@@ -0,0 +1,62 @@
|
||||
package com.srs.staff.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.srs.staff.domain.SrsStaffOneStopCommunityConstruction;
|
||||
|
||||
/**
|
||||
* 一站式社区模块:社区建设Service接口
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-07-17
|
||||
*/
|
||||
public interface ISrsStaffOneStopCommunityConstructionService extends IService<SrsStaffOneStopCommunityConstruction> {
|
||||
/**
|
||||
* 查询一站式社区模块:社区建设
|
||||
*
|
||||
* @param constructId 一站式社区模块:社区建设主键
|
||||
* @return 一站式社区模块:社区建设
|
||||
*/
|
||||
public SrsStaffOneStopCommunityConstruction selectSrsStaffOneStopCommunityConstructionByConstructId(Long constructId);
|
||||
|
||||
/**
|
||||
* 查询一站式社区模块:社区建设列表
|
||||
*
|
||||
* @param srsStaffOneStopCommunityConstruction 一站式社区模块:社区建设
|
||||
* @return 一站式社区模块:社区建设集合
|
||||
*/
|
||||
List<SrsStaffOneStopCommunityConstruction> selectSrsStaffOneStopCommunityConstructionList(SrsStaffOneStopCommunityConstruction srsStaffOneStopCommunityConstruction);
|
||||
|
||||
/**
|
||||
* 新增一站式社区模块:社区建设
|
||||
*
|
||||
* @param srsStaffOneStopCommunityConstruction 一站式社区模块:社区建设
|
||||
* @return 结果
|
||||
*/
|
||||
int insertSrsStaffOneStopCommunityConstruction(SrsStaffOneStopCommunityConstruction srsStaffOneStopCommunityConstruction);
|
||||
|
||||
/**
|
||||
* 修改一站式社区模块:社区建设
|
||||
*
|
||||
* @param srsStaffOneStopCommunityConstruction 一站式社区模块:社区建设
|
||||
* @return 结果
|
||||
*/
|
||||
int updateSrsStaffOneStopCommunityConstruction(SrsStaffOneStopCommunityConstruction srsStaffOneStopCommunityConstruction);
|
||||
|
||||
/**
|
||||
* 批量删除一站式社区模块:社区建设
|
||||
*
|
||||
* @param constructIds 需要删除的一站式社区模块:社区建设主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteSrsStaffOneStopCommunityConstructionByConstructIds(Long[] constructIds);
|
||||
|
||||
/**
|
||||
* 删除一站式社区模块:社区建设信息
|
||||
*
|
||||
* @param constructId 一站式社区模块:社区建设主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteSrsStaffOneStopCommunityConstructionByConstructId(Long constructId);
|
||||
}
|
@@ -0,0 +1,94 @@
|
||||
package com.srs.staff.service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.srs.staff.domain.SrsStaffOneStopRegistrationRecord;
|
||||
import com.srs.staff.domain.vo.SrsStaffOneStopRegistrationRecordExportVo;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* 一站式社区模块-社区活动-报名记录Service接口
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-07-16
|
||||
*/
|
||||
public interface ISrsStaffOneStopRegistrationRecordService extends IService<SrsStaffOneStopRegistrationRecord> {
|
||||
/**
|
||||
* 查询一站式社区模块-社区活动-报名记录
|
||||
*
|
||||
* @param recordId 一站式社区模块-社区活动-报名记录主键
|
||||
* @return 一站式社区模块-社区活动-报名记录
|
||||
*/
|
||||
public SrsStaffOneStopRegistrationRecord selectSrsStaffOneStopRegistrationRecordByRecordId(Long recordId);
|
||||
|
||||
/**
|
||||
* 查询一站式社区模块-社区活动-报名记录
|
||||
*
|
||||
* @param activityId 一站式社区模块-社区活动主键
|
||||
* @return 一站式社区模块-社区活动-报名记录
|
||||
*/
|
||||
public SrsStaffOneStopRegistrationRecord selectRecordByActivityIdAndApplicant(@Param("activityId") Long activityId, @Param("jobNumber") String jobNumber);
|
||||
|
||||
/**
|
||||
* 查询一站式社区模块-社区活动-报名记录列表
|
||||
*
|
||||
* @param srsStaffOneStopRegistrationRecord 一站式社区模块-社区活动-报名记录
|
||||
* @return 一站式社区模块-社区活动-报名记录集合
|
||||
*/
|
||||
List<SrsStaffOneStopRegistrationRecord> selectSrsStaffOneStopRegistrationRecordList(SrsStaffOneStopRegistrationRecord srsStaffOneStopRegistrationRecord);
|
||||
|
||||
List<SrsStaffOneStopRegistrationRecordExportVo> selectSrsStaffOneStopRegistrationRecordListexport(SrsStaffOneStopRegistrationRecord srsStaffOneStopRegistrationRecord);
|
||||
|
||||
|
||||
/**
|
||||
* 新增一站式社区模块-社区活动-报名记录
|
||||
*
|
||||
* @param srsStaffOneStopRegistrationRecord 一站式社区模块-社区活动-报名记录
|
||||
* @return 结果
|
||||
*/
|
||||
int insertSrsStaffOneStopRegistrationRecord(SrsStaffOneStopRegistrationRecord srsStaffOneStopRegistrationRecord);
|
||||
|
||||
/**
|
||||
* 修改一站式社区模块-社区活动-报名记录
|
||||
*
|
||||
* @param srsStaffOneStopRegistrationRecord 一站式社区模块-社区活动-报名记录
|
||||
* @return 结果
|
||||
*/
|
||||
int updateSrsStaffOneStopRegistrationRecord(SrsStaffOneStopRegistrationRecord srsStaffOneStopRegistrationRecord);
|
||||
|
||||
/**
|
||||
* 批量修改一站式社区模块-社区活动-报名记录
|
||||
*
|
||||
* @param registrationRecordList 一站式社区模块-社区活动-报名记录
|
||||
* @return 结果
|
||||
*/
|
||||
int batchUpdateSysRegistrationRecord(List<SrsStaffOneStopRegistrationRecord> registrationRecordList);
|
||||
|
||||
/**
|
||||
* 批量删除一站式社区模块-社区活动-报名记录
|
||||
*
|
||||
* @param recordIds 需要删除的一站式社区模块-社区活动-报名记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteSrsStaffOneStopRegistrationRecordByRecordIds(Long[] recordIds);
|
||||
|
||||
/**
|
||||
* 删除一站式社区模块-社区活动-报名记录信息
|
||||
*
|
||||
* @param recordId 一站式社区模块-社区活动-报名记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteSrsStaffOneStopRegistrationRecordByRecordId(Long recordId);
|
||||
|
||||
public List<Map<String, Object>> getDepartmentReservationCount(String startTime,String endTime,String role,String borrower,Integer auditStatus,String rtDepar);
|
||||
|
||||
public List<Map<String, Object>> getRoomReservationCount(String startTime,String endTime,String role,String borrower,Integer auditStatus,String rtDepar);
|
||||
|
||||
public List<Map<String, Object>> getDepartmentUsageStatistics(String startTime,String endTime,String role,String borrower,Integer auditStatus,String rtDepar);
|
||||
|
||||
public List<Map<String, Object>> getRoomUsageStatistics(String startTime,String endTime,String role,String borrower,Integer auditStatus,String rtDepar);
|
||||
|
||||
int resetAuditStatus(Integer id);
|
||||
}
|
@@ -0,0 +1,70 @@
|
||||
package com.srs.staff.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.srs.staff.domain.StaffOneStopRoomOpeningHours;
|
||||
|
||||
/**
|
||||
* 一站式社区-功能房开放时间Service接口
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-08-13
|
||||
*/
|
||||
public interface IStaffOneStopRoomOpeningHoursService extends IService<StaffOneStopRoomOpeningHours> {
|
||||
/**
|
||||
* 查询一站式社区-功能房开放时间
|
||||
*
|
||||
* @param ohId 一站式社区-功能房开放时间主键
|
||||
* @return 一站式社区-功能房开放时间
|
||||
*/
|
||||
public StaffOneStopRoomOpeningHours selectStaffOneStopRoomOpeningHoursByOhId(Long ohId);
|
||||
|
||||
/**
|
||||
* 查询一站式社区-功能房开放时间列表
|
||||
*
|
||||
* @param staffOneStopRoomOpeningHours 一站式社区-功能房开放时间
|
||||
* @return 一站式社区-功能房开放时间集合
|
||||
*/
|
||||
List<StaffOneStopRoomOpeningHours> selectStaffOneStopRoomOpeningHoursList(StaffOneStopRoomOpeningHours staffOneStopRoomOpeningHours);
|
||||
|
||||
/**
|
||||
* 新增一站式社区-功能房开放时间
|
||||
*
|
||||
* @param staffOneStopRoomOpeningHours 一站式社区-功能房开放时间
|
||||
* @return 结果
|
||||
*/
|
||||
int insertStaffOneStopRoomOpeningHours(StaffOneStopRoomOpeningHours staffOneStopRoomOpeningHours);
|
||||
|
||||
/**
|
||||
* 批量新增一站式社区-功能房开放时间
|
||||
*
|
||||
* @param staffOneStopRoomOpeningHoursList 一站式社区-功能房开放时间
|
||||
* @return 结果
|
||||
*/
|
||||
int insertStaffOneStopRoomOpeningHoursBatch(List<StaffOneStopRoomOpeningHours> staffOneStopRoomOpeningHoursList);
|
||||
|
||||
/**
|
||||
* 修改一站式社区-功能房开放时间
|
||||
*
|
||||
* @param staffOneStopRoomOpeningHours 一站式社区-功能房开放时间
|
||||
* @return 结果
|
||||
*/
|
||||
int updateStaffOneStopRoomOpeningHours(StaffOneStopRoomOpeningHours staffOneStopRoomOpeningHours);
|
||||
|
||||
/**
|
||||
* 批量删除一站式社区-功能房开放时间
|
||||
*
|
||||
* @param ohIds 需要删除的一站式社区-功能房开放时间主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteStaffOneStopRoomOpeningHoursByOhIds(Long[] ohIds);
|
||||
|
||||
/**
|
||||
* 删除一站式社区-功能房开放时间信息
|
||||
*
|
||||
* @param ohId 一站式社区-功能房开放时间主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteStaffOneStopRoomOpeningHoursByOhId(Long ohId);
|
||||
}
|
@@ -0,0 +1,72 @@
|
||||
package com.srs.staff.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.srs.staff.domain.StaffOneStopRoomOpeningHours;
|
||||
import com.srs.staff.domain.StaffOneStopRoomReservation;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* 一站式社区-功能房-预约记录Service接口
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-08-12
|
||||
*/
|
||||
public interface IStaffOneStopRoomReservationService extends IService<StaffOneStopRoomReservation> {
|
||||
/**
|
||||
* 查询一站式社区-功能房-预约记录
|
||||
*
|
||||
* @param rtId 一站式社区-功能房-预约记录主键
|
||||
* @return 一站式社区-功能房-预约记录
|
||||
*/
|
||||
public StaffOneStopRoomReservation selectStaffOneStopRoomReservationByRtId(Long rtId);
|
||||
|
||||
/**
|
||||
* 查询一站式社区-功能房-预约记录
|
||||
*
|
||||
* @param rtTime 一站式社区-功能房-预约记录主键
|
||||
* @return 一站式社区-功能房-预约记录
|
||||
*/
|
||||
public List<StaffOneStopRoomOpeningHours> selectStaffOneStopRoomReservationByRtTime(@Param("roomNo") String roomNo, @Param("rtTime") String rtTime);
|
||||
|
||||
/**
|
||||
* 查询一站式社区-功能房-预约记录列表
|
||||
*
|
||||
* @param staffOneStopRoomReservation 一站式社区-功能房-预约记录
|
||||
* @return 一站式社区-功能房-预约记录集合
|
||||
*/
|
||||
List<StaffOneStopRoomReservation> selectStaffOneStopRoomReservationList(StaffOneStopRoomReservation staffOneStopRoomReservation);
|
||||
|
||||
/**
|
||||
* 新增一站式社区-功能房-预约记录
|
||||
*
|
||||
* @param staffOneStopRoomReservation 一站式社区-功能房-预约记录
|
||||
* @return 结果
|
||||
*/
|
||||
int insertStaffOneStopRoomReservation(StaffOneStopRoomReservation staffOneStopRoomReservation);
|
||||
|
||||
/**
|
||||
* 修改一站式社区-功能房-预约记录
|
||||
*
|
||||
* @param staffOneStopRoomReservation 一站式社区-功能房-预约记录
|
||||
* @return 结果
|
||||
*/
|
||||
int updateStaffOneStopRoomReservation(StaffOneStopRoomReservation staffOneStopRoomReservation);
|
||||
|
||||
/**
|
||||
* 批量删除一站式社区-功能房-预约记录
|
||||
*
|
||||
* @param rtIds 需要删除的一站式社区-功能房-预约记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteStaffOneStopRoomReservationByRtIds(Long[] rtIds);
|
||||
|
||||
/**
|
||||
* 删除一站式社区-功能房-预约记录信息
|
||||
*
|
||||
* @param rtId 一站式社区-功能房-预约记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteStaffOneStopRoomReservationByRtId(Long rtId);
|
||||
}
|
@@ -0,0 +1,62 @@
|
||||
package com.srs.staff.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.srs.staff.domain.StaffOneStopRoom;
|
||||
|
||||
/**
|
||||
* 一站式社区-功能房Service接口
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-08-12
|
||||
*/
|
||||
public interface IStaffOneStopRoomService extends IService<StaffOneStopRoom> {
|
||||
/**
|
||||
* 查询一站式社区-功能房
|
||||
*
|
||||
* @param roomId 一站式社区-功能房主键
|
||||
* @return 一站式社区-功能房
|
||||
*/
|
||||
public StaffOneStopRoom selectStaffOneStopRoomByRoomId(Long roomId);
|
||||
|
||||
/**
|
||||
* 查询一站式社区-功能房列表
|
||||
*
|
||||
* @param staffOneStopRoom 一站式社区-功能房
|
||||
* @return 一站式社区-功能房集合
|
||||
*/
|
||||
List<StaffOneStopRoom> selectStaffOneStopRoomList(StaffOneStopRoom staffOneStopRoom);
|
||||
|
||||
/**
|
||||
* 新增一站式社区-功能房
|
||||
*
|
||||
* @param staffOneStopRoom 一站式社区-功能房
|
||||
* @return 结果
|
||||
*/
|
||||
int insertStaffOneStopRoom(StaffOneStopRoom staffOneStopRoom);
|
||||
|
||||
/**
|
||||
* 修改一站式社区-功能房
|
||||
*
|
||||
* @param staffOneStopRoom 一站式社区-功能房
|
||||
* @return 结果
|
||||
*/
|
||||
int updateStaffOneStopRoom(StaffOneStopRoom staffOneStopRoom);
|
||||
|
||||
/**
|
||||
* 批量删除一站式社区-功能房
|
||||
*
|
||||
* @param roomIds 需要删除的一站式社区-功能房主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteStaffOneStopRoomByRoomIds(Long[] roomIds);
|
||||
|
||||
/**
|
||||
* 删除一站式社区-功能房信息
|
||||
*
|
||||
* @param roomId 一站式社区-功能房主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteStaffOneStopRoomByRoomId(Long roomId);
|
||||
}
|
@@ -0,0 +1,62 @@
|
||||
package com.srs.staff.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.srs.staff.domain.SysRfile;
|
||||
|
||||
/**
|
||||
* 文件管理Service接口
|
||||
*
|
||||
* @author srs
|
||||
* @date 2024-05-16
|
||||
*/
|
||||
public interface ISysRfileService extends IService<SysRfile> {
|
||||
/**
|
||||
* 查询文件管理
|
||||
*
|
||||
* @param rfileId 文件管理主键
|
||||
* @return 文件管理
|
||||
*/
|
||||
public SysRfile selectSysRfileByRfileId(Long rfileId);
|
||||
|
||||
/**
|
||||
* 查询文件管理列表
|
||||
*
|
||||
* @param sysRfile 文件管理
|
||||
* @return 文件管理集合
|
||||
*/
|
||||
List<SysRfile> selectSysRfileList(SysRfile sysRfile);
|
||||
|
||||
/**
|
||||
* 新增文件管理
|
||||
*
|
||||
* @param sysRfile 文件管理
|
||||
* @return 结果
|
||||
*/
|
||||
int insertSysRfile(SysRfile sysRfile);
|
||||
|
||||
/**
|
||||
* 修改文件管理
|
||||
*
|
||||
* @param sysRfile 文件管理
|
||||
* @return 结果
|
||||
*/
|
||||
int updateSysRfile(SysRfile sysRfile);
|
||||
|
||||
/**
|
||||
* 批量删除文件管理
|
||||
*
|
||||
* @param rfileIds 需要删除的文件管理主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteSysRfileByRfileIds(Long[] rfileIds);
|
||||
|
||||
/**
|
||||
* 删除文件管理信息
|
||||
*
|
||||
* @param rfileId 文件管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteSysRfileByRfileId(Long rfileId);
|
||||
}
|
@@ -0,0 +1,92 @@
|
||||
package com.srs.staff.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
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.staff.mapper.SrsStaffOneStopCommunityActivitiesMapper;
|
||||
import com.srs.staff.domain.SrsStaffOneStopCommunityActivities;
|
||||
import com.srs.staff.service.ISrsStaffOneStopCommunityActivitiesService;
|
||||
|
||||
/**
|
||||
* 一站式社区模块-社区活动Service业务层处理
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-07-16
|
||||
*/
|
||||
@Service
|
||||
public class SrsStaffOneStopCommunityActivitiesServiceImpl extends ServiceImpl<SrsStaffOneStopCommunityActivitiesMapper, SrsStaffOneStopCommunityActivities> implements ISrsStaffOneStopCommunityActivitiesService {
|
||||
@Autowired
|
||||
private SrsStaffOneStopCommunityActivitiesMapper srsStaffOneStopCommunityActivitiesMapper;
|
||||
|
||||
/**
|
||||
* 查询一站式社区模块-社区活动
|
||||
*
|
||||
* @param activityId 一站式社区模块-社区活动主键
|
||||
* @return 一站式社区模块-社区活动
|
||||
*/
|
||||
@Override
|
||||
public SrsStaffOneStopCommunityActivities selectSrsStaffOneStopCommunityActivitiesByActivityId(Long activityId) {
|
||||
return srsStaffOneStopCommunityActivitiesMapper.selectSrsStaffOneStopCommunityActivitiesByActivityId(activityId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询一站式社区模块-社区活动列表
|
||||
*
|
||||
* @param srsStaffOneStopCommunityActivities 一站式社区模块-社区活动
|
||||
* @return 一站式社区模块-社区活动
|
||||
*/
|
||||
@Override
|
||||
public List<SrsStaffOneStopCommunityActivities> selectSrsStaffOneStopCommunityActivitiesList(SrsStaffOneStopCommunityActivities srsStaffOneStopCommunityActivities) {
|
||||
return srsStaffOneStopCommunityActivitiesMapper.selectSrsStaffOneStopCommunityActivitiesList(srsStaffOneStopCommunityActivities);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增一站式社区模块-社区活动
|
||||
*
|
||||
* @param srsStaffOneStopCommunityActivities 一站式社区模块-社区活动
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSrsStaffOneStopCommunityActivities(SrsStaffOneStopCommunityActivities srsStaffOneStopCommunityActivities) {
|
||||
if (srsStaffOneStopCommunityActivities.getEventPromoter() == null) {
|
||||
srsStaffOneStopCommunityActivities.setEventPromoter(SecurityUtils.getLoginUser().getUser().getNickName());
|
||||
}
|
||||
return srsStaffOneStopCommunityActivitiesMapper.insertSrsStaffOneStopCommunityActivities(srsStaffOneStopCommunityActivities);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改一站式社区模块-社区活动
|
||||
*
|
||||
* @param srsStaffOneStopCommunityActivities 一站式社区模块-社区活动
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSrsStaffOneStopCommunityActivities(SrsStaffOneStopCommunityActivities srsStaffOneStopCommunityActivities) {
|
||||
return srsStaffOneStopCommunityActivitiesMapper.updateSrsStaffOneStopCommunityActivities(srsStaffOneStopCommunityActivities);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除一站式社区模块-社区活动
|
||||
*
|
||||
* @param activityIds 需要删除的一站式社区模块-社区活动主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSrsStaffOneStopCommunityActivitiesByActivityIds(Long[] activityIds) {
|
||||
return srsStaffOneStopCommunityActivitiesMapper.deleteSrsStaffOneStopCommunityActivitiesByActivityIds(activityIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除一站式社区模块-社区活动信息
|
||||
*
|
||||
* @param activityId 一站式社区模块-社区活动主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSrsStaffOneStopCommunityActivitiesByActivityId(Long activityId) {
|
||||
return srsStaffOneStopCommunityActivitiesMapper.deleteSrsStaffOneStopCommunityActivitiesByActivityId(activityId);
|
||||
}
|
||||
}
|
@@ -0,0 +1,93 @@
|
||||
package com.srs.staff.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
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.staff.mapper.SrsStaffOneStopCommunityConstructionMapper;
|
||||
import com.srs.staff.domain.SrsStaffOneStopCommunityConstruction;
|
||||
import com.srs.staff.service.ISrsStaffOneStopCommunityConstructionService;
|
||||
|
||||
/**
|
||||
* 一站式社区模块:社区建设Service业务层处理
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-07-17
|
||||
*/
|
||||
@Service
|
||||
public class SrsStaffOneStopCommunityConstructionServiceImpl extends ServiceImpl<SrsStaffOneStopCommunityConstructionMapper, SrsStaffOneStopCommunityConstruction> implements ISrsStaffOneStopCommunityConstructionService {
|
||||
@Autowired
|
||||
private SrsStaffOneStopCommunityConstructionMapper srsStaffOneStopCommunityConstructionMapper;
|
||||
|
||||
/**
|
||||
* 查询一站式社区模块:社区建设
|
||||
*
|
||||
* @param constructId 一站式社区模块:社区建设主键
|
||||
* @return 一站式社区模块:社区建设
|
||||
*/
|
||||
@Override
|
||||
public SrsStaffOneStopCommunityConstruction selectSrsStaffOneStopCommunityConstructionByConstructId(Long constructId) {
|
||||
return srsStaffOneStopCommunityConstructionMapper.selectSrsStaffOneStopCommunityConstructionByConstructId(constructId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询一站式社区模块:社区建设列表
|
||||
*
|
||||
* @param srsStaffOneStopCommunityConstruction 一站式社区模块:社区建设
|
||||
* @return 一站式社区模块:社区建设
|
||||
*/
|
||||
@Override
|
||||
public List<SrsStaffOneStopCommunityConstruction> selectSrsStaffOneStopCommunityConstructionList(SrsStaffOneStopCommunityConstruction srsStaffOneStopCommunityConstruction) {
|
||||
return srsStaffOneStopCommunityConstructionMapper.selectSrsStaffOneStopCommunityConstructionList(srsStaffOneStopCommunityConstruction);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增一站式社区模块:社区建设
|
||||
*
|
||||
* @param srsStaffOneStopCommunityConstruction 一站式社区模块:社区建设
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSrsStaffOneStopCommunityConstruction(SrsStaffOneStopCommunityConstruction srsStaffOneStopCommunityConstruction) {
|
||||
if (srsStaffOneStopCommunityConstruction.getEventPromoter() == null) {
|
||||
srsStaffOneStopCommunityConstruction.setEventPromoter(SecurityUtils.getLoginUser().getUser().getNickName());
|
||||
}
|
||||
srsStaffOneStopCommunityConstruction.setUserName(SecurityUtils.getUsername());
|
||||
return srsStaffOneStopCommunityConstructionMapper.insertSrsStaffOneStopCommunityConstruction(srsStaffOneStopCommunityConstruction);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改一站式社区模块:社区建设
|
||||
*
|
||||
* @param srsStaffOneStopCommunityConstruction 一站式社区模块:社区建设
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSrsStaffOneStopCommunityConstruction(SrsStaffOneStopCommunityConstruction srsStaffOneStopCommunityConstruction) {
|
||||
return srsStaffOneStopCommunityConstructionMapper.updateSrsStaffOneStopCommunityConstruction(srsStaffOneStopCommunityConstruction);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除一站式社区模块:社区建设
|
||||
*
|
||||
* @param constructIds 需要删除的一站式社区模块:社区建设主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSrsStaffOneStopCommunityConstructionByConstructIds(Long[] constructIds) {
|
||||
return srsStaffOneStopCommunityConstructionMapper.deleteSrsStaffOneStopCommunityConstructionByConstructIds(constructIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除一站式社区模块:社区建设信息
|
||||
*
|
||||
* @param constructId 一站式社区模块:社区建设主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSrsStaffOneStopCommunityConstructionByConstructId(Long constructId) {
|
||||
return srsStaffOneStopCommunityConstructionMapper.deleteSrsStaffOneStopCommunityConstructionByConstructId(constructId);
|
||||
}
|
||||
}
|
@@ -0,0 +1,282 @@
|
||||
package com.srs.staff.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import com.srs.common.exception.ServiceException;
|
||||
import com.srs.common.utils.SecurityUtils;
|
||||
import com.srs.common.utils.WeChatUtil;
|
||||
import com.srs.staff.domain.SrsStaffOneStopCommunityActivities;
|
||||
import com.srs.staff.domain.vo.SrsStaffOneStopRegistrationRecordExportVo;
|
||||
import com.srs.staff.mapper.SrsStaffOneStopCommunityActivitiesMapper;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.srs.staff.mapper.SrsStaffOneStopRegistrationRecordMapper;
|
||||
import com.srs.staff.domain.SrsStaffOneStopRegistrationRecord;
|
||||
import com.srs.staff.service.ISrsStaffOneStopRegistrationRecordService;
|
||||
|
||||
|
||||
/**
|
||||
* 一站式社区模块-社区活动-报名记录Service业务层处理
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-07-16
|
||||
*/
|
||||
@Service
|
||||
public class SrsStaffOneStopRegistrationRecordServiceImpl extends ServiceImpl<SrsStaffOneStopRegistrationRecordMapper, SrsStaffOneStopRegistrationRecord> implements ISrsStaffOneStopRegistrationRecordService {
|
||||
@Autowired
|
||||
private SrsStaffOneStopRegistrationRecordMapper srsStaffOneStopRegistrationRecordMapper;
|
||||
|
||||
@Autowired
|
||||
private SrsStaffOneStopCommunityActivitiesMapper srsStaffOneStopCommunityActivitiesMapper;
|
||||
|
||||
@Autowired
|
||||
private WeChatUtil weChatUtil; // 添加WeChatUtil的注入 知无涯
|
||||
|
||||
/**
|
||||
* 查询一站式社区模块-社区活动-报名记录
|
||||
*
|
||||
* @param recordId 一站式社区模块-社区活动-报名记录主键
|
||||
* @return 一站式社区模块-社区活动-报名记录
|
||||
*/
|
||||
@Override
|
||||
public SrsStaffOneStopRegistrationRecord selectSrsStaffOneStopRegistrationRecordByRecordId(Long recordId) {
|
||||
SrsStaffOneStopRegistrationRecord record = srsStaffOneStopRegistrationRecordMapper.selectSrsStaffOneStopRegistrationRecordByRecordId(recordId);
|
||||
int num = 0; // 重置计数器
|
||||
// 根据每一个报名记录的活动id 查询出活动
|
||||
SrsStaffOneStopCommunityActivities srsStaffOneStopCommunityActivities = srsStaffOneStopCommunityActivitiesMapper.selectSrsStaffOneStopCommunityActivitiesByActivityId(record.getActivityId());
|
||||
// 根据活动里的报名记录统计报名人数,一条记录就是一个人数,审核不通过也就是getAuditStatus()等于2 ,不计算在报名人数
|
||||
for (SrsStaffOneStopRegistrationRecord records : srsStaffOneStopCommunityActivities.getOneStopRegistrationRecords()) {
|
||||
if (records.getAuditStatus() == 1 || records.getAuditStatus() == 0) {
|
||||
num++;
|
||||
}
|
||||
}
|
||||
record.setNumberApplicants((long) num);
|
||||
return record;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SrsStaffOneStopRegistrationRecord selectRecordByActivityIdAndApplicant(Long activityId, String applicant) {
|
||||
return srsStaffOneStopRegistrationRecordMapper.selectRecordByActivityIdAndApplicant(activityId, applicant);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询一站式社区模块-社区活动-报名记录列表
|
||||
*
|
||||
* @param srsStaffOneStopRegistrationRecord 一站式社区模块-社区活动-报名记录
|
||||
* @return 一站式社区模块-社区活动-报名记录
|
||||
*/
|
||||
@Override
|
||||
public List<SrsStaffOneStopRegistrationRecord> selectSrsStaffOneStopRegistrationRecordList(SrsStaffOneStopRegistrationRecord srsStaffOneStopRegistrationRecord) {
|
||||
List<SrsStaffOneStopRegistrationRecord> srsStaffOneStopRegistrationRecords = srsStaffOneStopRegistrationRecordMapper.selectSrsStaffOneStopRegistrationRecordList(srsStaffOneStopRegistrationRecord);
|
||||
// 先循环报名记录
|
||||
for (SrsStaffOneStopRegistrationRecord records : srsStaffOneStopRegistrationRecords) {
|
||||
int num = 0; // 重置计数器
|
||||
// 根据每一个报名记录的活动id 查询出活动
|
||||
SrsStaffOneStopCommunityActivities srsStaffOneStopCommunityActivities = srsStaffOneStopCommunityActivitiesMapper.selectSrsStaffOneStopCommunityActivitiesByActivityId(records.getActivityId());
|
||||
// 根据活动里的报名记录统计报名人数,一条记录就是一个人数,审核不通过也就是getAuditStatus()等于2 ,不计算在报名人数
|
||||
if (srsStaffOneStopCommunityActivities != null && srsStaffOneStopCommunityActivities.getOneStopRegistrationRecords() != null) {
|
||||
for (SrsStaffOneStopRegistrationRecord record : srsStaffOneStopCommunityActivities.getOneStopRegistrationRecords()) {
|
||||
if (record != null && (record.getAuditStatus() == 1 || record.getAuditStatus() == 0)) {
|
||||
num++;
|
||||
}
|
||||
}
|
||||
}
|
||||
records.setNumberApplicants((long) num);
|
||||
}
|
||||
return srsStaffOneStopRegistrationRecords;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SrsStaffOneStopRegistrationRecordExportVo> selectSrsStaffOneStopRegistrationRecordListexport(SrsStaffOneStopRegistrationRecord srsStaffOneStopRegistrationRecord) {
|
||||
return srsStaffOneStopRegistrationRecordMapper.selectSrsStaffOneStopRegistrationRecordListexport(srsStaffOneStopRegistrationRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增一站式社区模块-社区活动-报名记录
|
||||
*
|
||||
* @param srsStaffOneStopRegistrationRecord 一站式社区模块-社区活动-报名记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSrsStaffOneStopRegistrationRecord(SrsStaffOneStopRegistrationRecord srsStaffOneStopRegistrationRecord) {
|
||||
// srsStaffOneStopRegistrationRecord.setJobNumber(SecurityUtils.getLoginUser().getUser().getUserName()); 获取的是当前登陆人信息
|
||||
String applicantJobNumber = srsStaffOneStopRegistrationRecord.getJobNumber(); // 获取申请人工号 知无涯
|
||||
if (applicantJobNumber == null) {
|
||||
throw new ServiceException("申请人工号不能为空", 500);
|
||||
}
|
||||
|
||||
srsStaffOneStopRegistrationRecord.setJobNumber(applicantJobNumber);
|
||||
if (srsStaffOneStopRegistrationRecord.getApplicant() == null) {
|
||||
srsStaffOneStopRegistrationRecord.setApplicant(SecurityUtils.getLoginUser().getUser().getNickName());
|
||||
}
|
||||
SrsStaffOneStopRegistrationRecord srsStaffOneStopRegistrationRecord1 = srsStaffOneStopRegistrationRecordMapper.selectRecordByActivityIdAndApplicant(srsStaffOneStopRegistrationRecord.getActivityId(), srsStaffOneStopRegistrationRecord.getJobNumber());
|
||||
if (srsStaffOneStopRegistrationRecord1 != null) {
|
||||
throw new ServiceException("已报名,请勿重复报名", 500);
|
||||
}
|
||||
|
||||
//报名人数不能超过活动容纳人数
|
||||
List<SrsStaffOneStopRegistrationRecord> srsStaffOneStopRegistrationRecords = srsStaffOneStopRegistrationRecordMapper.selectSrsStaffOneStopRegistrationRecordByActivityId(srsStaffOneStopRegistrationRecord.getActivityId());
|
||||
if (!srsStaffOneStopRegistrationRecords.isEmpty()) {
|
||||
// 筛选报名记录除去审核为2的,也就是审核不通过,不算做一条报名记录
|
||||
List<SrsStaffOneStopRegistrationRecord> filteredRecords =
|
||||
srsStaffOneStopRegistrationRecords.stream() // 将列表转换为Stream
|
||||
.filter(record -> record.getAuditStatus() != 2) // 应用筛选条件
|
||||
.collect(Collectors.toList()); // 将结果收集回列表
|
||||
// 报名人数大于或等于活动容纳人数,则提示
|
||||
if (filteredRecords.size() >= srsStaffOneStopRegistrationRecords.get(0).getCommunityActivitiesList().get(0).getGalleryful()) {
|
||||
throw new ServiceException("报名人数已满", 500);
|
||||
}
|
||||
}
|
||||
// 活动结束后,不允许报名
|
||||
SrsStaffOneStopCommunityActivities srsStaffOneStopCommunityActivities = srsStaffOneStopCommunityActivitiesMapper.selectSrsStaffOneStopCommunityActivitiesByActivityId(srsStaffOneStopRegistrationRecord.getActivityId());
|
||||
if (srsStaffOneStopCommunityActivities.getActivityStatus() == 2) {
|
||||
throw new ServiceException("活动已结束", 500);
|
||||
}
|
||||
if (srsStaffOneStopCommunityActivities.getActivityStatus() == 0) {
|
||||
throw new ServiceException("活动进行中,已无法报名", 500);
|
||||
}
|
||||
return srsStaffOneStopRegistrationRecordMapper.insertSrsStaffOneStopRegistrationRecord(srsStaffOneStopRegistrationRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改一站式社区模块-社区活动-报名记录
|
||||
*
|
||||
* @param srsStaffOneStopRegistrationRecord 一站式社区模块-社区活动-报名记录
|
||||
* @return 结果
|
||||
*/
|
||||
|
||||
/**
|
||||
* 更新单个报名记录并发送微信通知 知无涯
|
||||
* @param srsStaffOneStopRegistrationRecord 报名记录对象
|
||||
* @return 更新结果影响行数
|
||||
*/
|
||||
@Override
|
||||
public int updateSrsStaffOneStopRegistrationRecord(SrsStaffOneStopRegistrationRecord srsStaffOneStopRegistrationRecord) {
|
||||
// 1. 先更新数据库中的报名记录
|
||||
int result = srsStaffOneStopRegistrationRecordMapper.updateSrsStaffOneStopRegistrationRecord(srsStaffOneStopRegistrationRecord);
|
||||
|
||||
// 2. 如果更新成功且审核状态为通过(1)或拒绝(2),则发送微信通知
|
||||
if (result > 0 && (srsStaffOneStopRegistrationRecord.getAuditStatus() == 1 || srsStaffOneStopRegistrationRecord.getAuditStatus() == 2)) {
|
||||
sendWeChatNotice(srsStaffOneStopRegistrationRecord);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 批量更新报名记录并发送微信通知 知无涯
|
||||
* @param registrationRecordList 报名记录列表
|
||||
* @return 更新结果影响行数
|
||||
*/
|
||||
@Override
|
||||
public int batchUpdateSysRegistrationRecord(List<SrsStaffOneStopRegistrationRecord> registrationRecordList) {
|
||||
// 1. 批量更新数据库记录
|
||||
int result = srsStaffOneStopRegistrationRecordMapper.batchUpdateSysRegistrationRecord(registrationRecordList);
|
||||
|
||||
// 2. 如果更新成功,遍历处理每条记录
|
||||
if (result > 0) {
|
||||
for (SrsStaffOneStopRegistrationRecord record : registrationRecordList) {
|
||||
// 只对审核通过或拒绝的记录发送通知
|
||||
if (record.getAuditStatus() == 1 || record.getAuditStatus() == 2) {
|
||||
sendWeChatNotice(record);
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 发送企业微信通知
|
||||
* @param record 报名记录对象
|
||||
*/
|
||||
private void sendWeChatNotice(SrsStaffOneStopRegistrationRecord record) {
|
||||
try {
|
||||
// 1. 获取关联的活动详情
|
||||
SrsStaffOneStopCommunityActivities activity = srsStaffOneStopCommunityActivitiesMapper
|
||||
.selectSrsStaffOneStopCommunityActivitiesByActivityId(record.getActivityId());
|
||||
|
||||
// 2. 构建通知消息内容
|
||||
String content = buildNoticeContent(record, activity);
|
||||
|
||||
// 3. 通过企业微信工具类发送消息
|
||||
// 参数1: 接收人工号(对应企业微信账号)
|
||||
// 参数2: 消息内容
|
||||
weChatUtil.sendTextMessage(record.getJobNumber(), content);
|
||||
} catch (Exception e) {
|
||||
// 记录发送失败日志,但不影响主流程
|
||||
log.error("发送企业微信消息失败", e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 构建通知消息内容
|
||||
* @param record 报名记录
|
||||
* @param activity 关联的活动
|
||||
* @return 格式化后的消息内容
|
||||
*/
|
||||
private String buildNoticeContent(SrsStaffOneStopRegistrationRecord record,
|
||||
SrsStaffOneStopCommunityActivities activity) {
|
||||
// 根据审核状态显示不同文本
|
||||
String status = record.getAuditStatus() == 1 ? "审核通过" : "审核未通过";
|
||||
|
||||
// 格式化消息模板
|
||||
return String.format(
|
||||
"【活动报名通知】\n" +
|
||||
"您报名的活动【%s】%s",
|
||||
activity.getActivityTheme(), // 活动主题
|
||||
status // 审核状态
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 批量删除一站式社区模块-社区活动-报名记录
|
||||
*
|
||||
* @param recordIds 需要删除的一站式社区模块-社区活动-报名记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSrsStaffOneStopRegistrationRecordByRecordIds(Long[] recordIds) {
|
||||
return srsStaffOneStopRegistrationRecordMapper.deleteSrsStaffOneStopRegistrationRecordByRecordIds(recordIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除一站式社区模块-社区活动-报名记录信息
|
||||
*
|
||||
* @param recordId 一站式社区模块-社区活动-报名记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSrsStaffOneStopRegistrationRecordByRecordId(Long recordId) {
|
||||
return srsStaffOneStopRegistrationRecordMapper.deleteSrsStaffOneStopRegistrationRecordByRecordId(recordId);
|
||||
}
|
||||
|
||||
// 统计各部门预约功能房数量
|
||||
public List<Map<String, Object>> getDepartmentReservationCount(String startTime,String endTime,String role,String borrower,Integer auditStatus,String rtDepar) {
|
||||
return srsStaffOneStopRegistrationRecordMapper.getDepartmentUsage(startTime,endTime,role,borrower,auditStatus,rtDepar);
|
||||
}
|
||||
|
||||
// 统计各个功能房的预约数量
|
||||
public List<Map<String, Object>> getRoomReservationCount(String startTime,String endTime,String role,String borrower,Integer auditStatus,String rtDepar) {
|
||||
return srsStaffOneStopRegistrationRecordMapper.getRoomReservationCount(startTime,endTime,role,borrower,auditStatus,rtDepar);
|
||||
}
|
||||
|
||||
// 统计各部门功能房使用情况
|
||||
public List<Map<String, Object>> getDepartmentUsageStatistics(String startTime,String endTime,String role,String borrower,Integer auditStatus,String rtDepar) {
|
||||
return srsStaffOneStopRegistrationRecordMapper.getDepartmentUsageStatistics(startTime,endTime,role,borrower,auditStatus,rtDepar);
|
||||
}
|
||||
|
||||
// 统计各个功能房使用情况
|
||||
public List<Map<String, Object>> getRoomUsageStatistics(String startTime,String endTime,String role,String borrower,Integer auditStatus,String rtDepar) {
|
||||
return srsStaffOneStopRegistrationRecordMapper.getRoomUsageStatistics(startTime,endTime,role,borrower,auditStatus,rtDepar);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int resetAuditStatus(Integer id) {
|
||||
return srsStaffOneStopRegistrationRecordMapper.updateAuditStatusToPending(id);
|
||||
}
|
||||
}
|
@@ -0,0 +1,99 @@
|
||||
package com.srs.staff.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.srs.common.utils.uuid.UUID;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.srs.staff.mapper.StaffOneStopRoomOpeningHoursMapper;
|
||||
import com.srs.staff.domain.StaffOneStopRoomOpeningHours;
|
||||
import com.srs.staff.service.IStaffOneStopRoomOpeningHoursService;
|
||||
|
||||
/**
|
||||
* 一站式社区-功能房开放时间Service业务层处理
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-08-13
|
||||
*/
|
||||
@Service
|
||||
public class StaffOneStopRoomOpeningHoursServiceImpl extends ServiceImpl<StaffOneStopRoomOpeningHoursMapper, StaffOneStopRoomOpeningHours> implements IStaffOneStopRoomOpeningHoursService {
|
||||
@Autowired
|
||||
private StaffOneStopRoomOpeningHoursMapper staffOneStopRoomOpeningHoursMapper;
|
||||
|
||||
/**
|
||||
* 查询一站式社区-功能房开放时间
|
||||
*
|
||||
* @param ohId 一站式社区-功能房开放时间主键
|
||||
* @return 一站式社区-功能房开放时间
|
||||
*/
|
||||
@Override
|
||||
public StaffOneStopRoomOpeningHours selectStaffOneStopRoomOpeningHoursByOhId(Long ohId) {
|
||||
return staffOneStopRoomOpeningHoursMapper.selectStaffOneStopRoomOpeningHoursByOhId(ohId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询一站式社区-功能房开放时间列表
|
||||
*
|
||||
* @param staffOneStopRoomOpeningHours 一站式社区-功能房开放时间
|
||||
* @return 一站式社区-功能房开放时间
|
||||
*/
|
||||
@Override
|
||||
public List<StaffOneStopRoomOpeningHours> selectStaffOneStopRoomOpeningHoursList(StaffOneStopRoomOpeningHours staffOneStopRoomOpeningHours) {
|
||||
return staffOneStopRoomOpeningHoursMapper.selectStaffOneStopRoomOpeningHoursList(staffOneStopRoomOpeningHours);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增一站式社区-功能房开放时间
|
||||
*
|
||||
* @param staffOneStopRoomOpeningHours 一站式社区-功能房开放时间
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertStaffOneStopRoomOpeningHours(StaffOneStopRoomOpeningHours staffOneStopRoomOpeningHours) {
|
||||
staffOneStopRoomOpeningHours.setRtNo(UUID.randomUUID().toString());
|
||||
return staffOneStopRoomOpeningHoursMapper.insertStaffOneStopRoomOpeningHours(staffOneStopRoomOpeningHours);
|
||||
}
|
||||
|
||||
// 批量新增一站式社区-功能房开放时间
|
||||
@Override
|
||||
public int insertStaffOneStopRoomOpeningHoursBatch(List<StaffOneStopRoomOpeningHours> staffOneStopRoomOpeningHoursList) {
|
||||
for (StaffOneStopRoomOpeningHours hours : staffOneStopRoomOpeningHoursList) {
|
||||
hours.setRtNo(UUID.randomUUID().toString());
|
||||
}
|
||||
return staffOneStopRoomOpeningHoursMapper.insertStaffOneStopRoomOpeningHoursBatch(staffOneStopRoomOpeningHoursList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改一站式社区-功能房开放时间
|
||||
*
|
||||
* @param staffOneStopRoomOpeningHours 一站式社区-功能房开放时间
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateStaffOneStopRoomOpeningHours(StaffOneStopRoomOpeningHours staffOneStopRoomOpeningHours) {
|
||||
return staffOneStopRoomOpeningHoursMapper.updateStaffOneStopRoomOpeningHours(staffOneStopRoomOpeningHours);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除一站式社区-功能房开放时间
|
||||
*
|
||||
* @param ohIds 需要删除的一站式社区-功能房开放时间主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteStaffOneStopRoomOpeningHoursByOhIds(Long[] ohIds) {
|
||||
return staffOneStopRoomOpeningHoursMapper.deleteStaffOneStopRoomOpeningHoursByOhIds(ohIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除一站式社区-功能房开放时间信息
|
||||
*
|
||||
* @param ohId 一站式社区-功能房开放时间主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteStaffOneStopRoomOpeningHoursByOhId(Long ohId) {
|
||||
return staffOneStopRoomOpeningHoursMapper.deleteStaffOneStopRoomOpeningHoursByOhId(ohId);
|
||||
}
|
||||
}
|
@@ -0,0 +1,161 @@
|
||||
package com.srs.staff.service.impl;
|
||||
|
||||
import java.time.DayOfWeek;
|
||||
import java.time.LocalDate;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.time.format.TextStyle;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Objects;
|
||||
|
||||
import com.srs.common.exception.ServiceException;
|
||||
import com.srs.common.utils.DateUtils;
|
||||
import com.srs.common.utils.SecurityUtils;
|
||||
import com.srs.staff.domain.StaffOneStopRoom;
|
||||
import com.srs.staff.domain.StaffOneStopRoomOpeningHours;
|
||||
import com.srs.staff.mapper.StaffOneStopRoomMapper;
|
||||
import com.srs.staff.mapper.StaffOneStopRoomOpeningHoursMapper;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.srs.staff.mapper.StaffOneStopRoomReservationMapper;
|
||||
import com.srs.staff.domain.StaffOneStopRoomReservation;
|
||||
import com.srs.staff.service.IStaffOneStopRoomReservationService;
|
||||
|
||||
/**
|
||||
* 一站式社区-功能房-预约记录Service业务层处理
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-08-12
|
||||
*/
|
||||
@Service
|
||||
public class StaffOneStopRoomReservationServiceImpl extends ServiceImpl<StaffOneStopRoomReservationMapper, StaffOneStopRoomReservation> implements IStaffOneStopRoomReservationService {
|
||||
@Autowired
|
||||
private StaffOneStopRoomReservationMapper staffOneStopRoomReservationMapper;
|
||||
|
||||
@Autowired
|
||||
private StaffOneStopRoomOpeningHoursMapper staffOneStopRoomOpeningHoursMapper;
|
||||
|
||||
@Autowired
|
||||
private StaffOneStopRoomMapper staffOneStopRoomMapper;
|
||||
|
||||
/**
|
||||
* 查询一站式社区-功能房-预约记录
|
||||
*
|
||||
* @param rtId 一站式社区-功能房-预约记录主键
|
||||
* @return 一站式社区-功能房-预约记录
|
||||
*/
|
||||
@Override
|
||||
public StaffOneStopRoomReservation selectStaffOneStopRoomReservationByRtId(Long rtId) {
|
||||
return staffOneStopRoomReservationMapper.selectStaffOneStopRoomReservationByRtId(rtId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<StaffOneStopRoomOpeningHours> selectStaffOneStopRoomReservationByRtTime(String roomNo ,String rtTime) {
|
||||
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
||||
LocalDate date = LocalDate.parse(rtTime, formatter);
|
||||
// 获取星期几
|
||||
DayOfWeek dayOfWeek = date.getDayOfWeek();
|
||||
// 将DayOfWeek转换为字符串,使用默认语言环境和全称样式
|
||||
String dayOfWeekString = dayOfWeek.getDisplayName(TextStyle.FULL, Locale.getDefault());
|
||||
|
||||
// 获取功能房对应的预约时间段(根据功能房编号,和指定的星期几)
|
||||
List<StaffOneStopRoomOpeningHours> staffOneStopRoomOpeningHours = staffOneStopRoomOpeningHoursMapper.selectStaffOneStopRoomOpeningHoursByOhWeekday(roomNo, dayOfWeekString);
|
||||
|
||||
// 获取这个功能房的使用预约记录(根据功能房编号,和指定的时间)
|
||||
List<StaffOneStopRoomReservation> roomReservations = staffOneStopRoomReservationMapper.selectStaffOneStopRoomReservationByRtTime(roomNo, rtTime);
|
||||
|
||||
// 遍历预约记录,设置所有被预约的时间
|
||||
for (StaffOneStopRoomReservation reservation : roomReservations) {
|
||||
// 如果不等于2 证明预约时间有被占用
|
||||
if (reservation.getRtState() != 2 && reservation.getAuditStatus() != 2) {
|
||||
// 查询对应的开放时间
|
||||
StaffOneStopRoomOpeningHours hours = staffOneStopRoomOpeningHoursMapper.selectStaffOneStopRoomOpeningHoursByRtNo(reservation.getRtNo());
|
||||
|
||||
// 遍历开放时间列表,设置已被预约的时间
|
||||
for (StaffOneStopRoomOpeningHours roomOpeningHours : staffOneStopRoomOpeningHours) {
|
||||
// 找到对应的预约时间段
|
||||
if (Objects.equals(roomOpeningHours.getOhId(), hours.getOhId())) {
|
||||
// 标记上已经被占用
|
||||
roomOpeningHours.setIsOccupy(1L);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return staffOneStopRoomOpeningHours;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询一站式社区-功能房-预约记录列表
|
||||
*
|
||||
* @param staffOneStopRoomReservation 一站式社区-功能房-预约记录
|
||||
* @return 一站式社区-功能房-预约记录
|
||||
*/
|
||||
@Override
|
||||
public List<StaffOneStopRoomReservation> selectStaffOneStopRoomReservationList(StaffOneStopRoomReservation staffOneStopRoomReservation) {
|
||||
return staffOneStopRoomReservationMapper.selectStaffOneStopRoomReservationList(staffOneStopRoomReservation);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增一站式社区-功能房-预约记录
|
||||
*
|
||||
* @param staffOneStopRoomReservation 一站式社区-功能房-预约记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertStaffOneStopRoomReservation(StaffOneStopRoomReservation staffOneStopRoomReservation) {
|
||||
staffOneStopRoomReservation.setRtCreatTime(DateUtils.getNowDate());
|
||||
staffOneStopRoomReservation.setCreateBy(SecurityUtils.getUsername());
|
||||
staffOneStopRoomReservation.setCreateTime(DateUtils.getNowDate());
|
||||
if (staffOneStopRoomReservation.getRtCreatRole() == null) {
|
||||
staffOneStopRoomReservation.setRtCreatRole(SecurityUtils.getLoginUser().getUser().getNickName());
|
||||
}
|
||||
StaffOneStopRoom stopRoom = staffOneStopRoomMapper.selectStaffOneStopRoomByRoomNo(staffOneStopRoomReservation.getRoomNo());
|
||||
if (!Objects.equals(stopRoom.getRoomStatus(), "1")) {
|
||||
throw new ServiceException("功能房暂未开放", 500);
|
||||
}
|
||||
return staffOneStopRoomReservationMapper.insertStaffOneStopRoomReservation(staffOneStopRoomReservation);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改一站式社区-功能房-预约记录
|
||||
*
|
||||
* @param staffOneStopRoomReservation 一站式社区-功能房-预约记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateStaffOneStopRoomReservation(StaffOneStopRoomReservation staffOneStopRoomReservation) {
|
||||
staffOneStopRoomReservation.setUpdateBy(SecurityUtils.getUsername());
|
||||
staffOneStopRoomReservation.setRtUpTime(DateUtils.getNowDate());
|
||||
List<StaffOneStopRoomOpeningHours> toUpdate = new ArrayList<>(staffOneStopRoomReservation.getStaffOneStopRoomOpeningHoursList());
|
||||
// 如果存在需要更新的记录,则执行批量更新
|
||||
if (!toUpdate.isEmpty()) {
|
||||
staffOneStopRoomOpeningHoursMapper.batchUpdateStaffOneStopRoomOpeningHours(toUpdate);
|
||||
}
|
||||
return staffOneStopRoomReservationMapper.updateStaffOneStopRoomReservation(staffOneStopRoomReservation);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除一站式社区-功能房-预约记录
|
||||
*
|
||||
* @param rtIds 需要删除的一站式社区-功能房-预约记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteStaffOneStopRoomReservationByRtIds(Long[] rtIds) {
|
||||
return staffOneStopRoomReservationMapper.deleteStaffOneStopRoomReservationByRtIds(rtIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除一站式社区-功能房-预约记录信息
|
||||
*
|
||||
* @param rtId 一站式社区-功能房-预约记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteStaffOneStopRoomReservationByRtId(Long rtId) {
|
||||
return staffOneStopRoomReservationMapper.deleteStaffOneStopRoomReservationByRtId(rtId);
|
||||
}
|
||||
}
|
@@ -0,0 +1,181 @@
|
||||
package com.srs.staff.service.impl;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.srs.common.exception.ServiceException;
|
||||
import com.srs.common.utils.DateUtils;
|
||||
import com.srs.common.utils.SecurityUtils;
|
||||
import com.srs.common.utils.uuid.UUID;
|
||||
import com.srs.staff.domain.StaffOneStopRoomOpeningHours;
|
||||
import com.srs.staff.domain.StaffOneStopRoomReservation;
|
||||
import com.srs.staff.mapper.StaffOneStopRoomOpeningHoursMapper;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.srs.staff.mapper.StaffOneStopRoomMapper;
|
||||
import com.srs.staff.domain.StaffOneStopRoom;
|
||||
import com.srs.staff.service.IStaffOneStopRoomService;
|
||||
|
||||
/**
|
||||
* 一站式社区-功能房Service业务层处理
|
||||
*
|
||||
* @author chc
|
||||
* @date 2024-08-12
|
||||
*/
|
||||
@Service
|
||||
public class StaffOneStopRoomServiceImpl extends ServiceImpl<StaffOneStopRoomMapper, StaffOneStopRoom> implements IStaffOneStopRoomService {
|
||||
@Autowired
|
||||
private StaffOneStopRoomMapper staffOneStopRoomMapper;
|
||||
|
||||
@Autowired
|
||||
private StaffOneStopRoomOpeningHoursMapper staffOneStopRoomOpeningHoursMapper;
|
||||
|
||||
/**
|
||||
* 查询一站式社区-功能房
|
||||
*
|
||||
* @param roomId 一站式社区-功能房主键
|
||||
* @return 一站式社区-功能房
|
||||
*/
|
||||
@Override
|
||||
public StaffOneStopRoom selectStaffOneStopRoomByRoomId(Long roomId) {
|
||||
return staffOneStopRoomMapper.selectStaffOneStopRoomByRoomId(roomId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询一站式社区-功能房列表
|
||||
*
|
||||
* @param staffOneStopRoom 一站式社区-功能房
|
||||
* @return 一站式社区-功能房
|
||||
*/
|
||||
@Override
|
||||
public List<StaffOneStopRoom> selectStaffOneStopRoomList(StaffOneStopRoom staffOneStopRoom) {
|
||||
return staffOneStopRoomMapper.selectStaffOneStopRoomList(staffOneStopRoom);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增一站式社区-功能房
|
||||
*
|
||||
* @param staffOneStopRoom 一站式社区-功能房
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertStaffOneStopRoom(StaffOneStopRoom staffOneStopRoom) {
|
||||
staffOneStopRoom.setRoomNo(UUID.randomUUID().toString());
|
||||
staffOneStopRoom.setRoomCreatetime(DateUtils.getNowDate());
|
||||
staffOneStopRoom.setRoomUser(SecurityUtils.getLoginUser().getUser().getNickName());
|
||||
staffOneStopRoom.setRoomDepar(SecurityUtils.getLoginUser().getUser().getDept().getDeptName());
|
||||
return staffOneStopRoomMapper.insertStaffOneStopRoom(staffOneStopRoom);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改一站式社区-功能房
|
||||
*
|
||||
* @param staffOneStopRoom 一站式社区-功能房
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateStaffOneStopRoom(StaffOneStopRoom staffOneStopRoom) {
|
||||
staffOneStopRoom.setRoomUptime(DateUtils.getNowDate());
|
||||
staffOneStopRoom.setRoomUpuser(SecurityUtils.getLoginUser().getUser().getNickName());
|
||||
List<StaffOneStopRoomOpeningHours> toUpdate = new ArrayList<>();
|
||||
List<StaffOneStopRoomOpeningHours> toInsert = new ArrayList<>();
|
||||
List<Long> roomIdsToDelete = new ArrayList<>();
|
||||
|
||||
// 检查并分离更新和插入的列表
|
||||
if (staffOneStopRoom.getStaffOneStopRoomOpeningHoursList() != null) { // 通常不需要这个检查,除非有可能为null
|
||||
for (StaffOneStopRoomOpeningHours hours : staffOneStopRoom.getStaffOneStopRoomOpeningHoursList()) {
|
||||
if (hours.getOhId() != null) {
|
||||
// 如果标记为删除 1,则添加进删除数组
|
||||
if (hours.getIsDel() == 1) {
|
||||
roomIdsToDelete.add(hours.getOhId());
|
||||
} else {
|
||||
toUpdate.add(hours);
|
||||
}
|
||||
} else {
|
||||
hours.setRtNo(UUID.randomUUID().toString());
|
||||
toInsert.add(hours);
|
||||
}
|
||||
}
|
||||
|
||||
// 如果存在需要删除的记录,则执行批量删除
|
||||
if (!roomIdsToDelete.isEmpty()) {
|
||||
Long[] roomIdsArray = roomIdsToDelete.toArray(new Long[0]);
|
||||
staffOneStopRoomOpeningHoursMapper.deleteStaffOneStopRoomOpeningHoursByOhIds(roomIdsArray);
|
||||
}
|
||||
|
||||
// 如果存在需要更新的记录,则执行批量更新
|
||||
if (!toUpdate.isEmpty()) {
|
||||
staffOneStopRoomOpeningHoursMapper.batchUpdateStaffOneStopRoomOpeningHours(toUpdate);
|
||||
}
|
||||
|
||||
// 如果存在需要插入的记录,则执行批量插入
|
||||
if (!toInsert.isEmpty()) {
|
||||
staffOneStopRoomOpeningHoursMapper.insertStaffOneStopRoomOpeningHoursBatch(toInsert);
|
||||
}
|
||||
}
|
||||
|
||||
// 更新staffOneStopRoom(这通常与上面的批量操作分开处理,因为它们可能属于不同的业务逻辑或事务)
|
||||
return staffOneStopRoomMapper.updateStaffOneStopRoom(staffOneStopRoom);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除一站式社区-功能房
|
||||
*
|
||||
* @param roomIds 需要删除的一站式社区-功能房主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteStaffOneStopRoomByRoomIds(Long[] roomIds) {
|
||||
// 检查roomIds数组是否为空
|
||||
if (roomIds == null || roomIds.length == 0) {
|
||||
throw new ServiceException("房间ID数组不能为空", 500);
|
||||
}
|
||||
|
||||
int deleteCount = 0;
|
||||
for (Long roomId : roomIds) {
|
||||
StaffOneStopRoom stopRoom = staffOneStopRoomMapper.selectStaffOneStopRoomByRoomId(roomId);
|
||||
if (stopRoom == null) {
|
||||
// 如果找不到对应的功能房,可以选择跳过或者记录日志
|
||||
continue; // 或者 throw new ServiceException("找不到功能房ID为" + roomId + "的功能房", 404);
|
||||
}
|
||||
|
||||
boolean isRoomInUse = false;
|
||||
for (StaffOneStopRoomReservation roomReservation : stopRoom.getStaffOneStopRoomReservationList()) {
|
||||
if (roomReservation.getRtState() == 1) {
|
||||
isRoomInUse = true;
|
||||
break; // 找到正在使用中的功能房,跳出循环
|
||||
}
|
||||
}
|
||||
|
||||
if (isRoomInUse) {
|
||||
// 如果功能房正在使用中,抛出异常
|
||||
throw new ServiceException("编号为" + roomId + "的功能房正在被使用中,不能删除", 500);
|
||||
} else {
|
||||
// 如果功能房未使用,执行删除操作
|
||||
int result = staffOneStopRoomMapper.deleteStaffOneStopRoomByRoomId(roomId);
|
||||
if (result > 0) {
|
||||
deleteCount++; // 统计成功删除的数量
|
||||
}
|
||||
}
|
||||
}
|
||||
return deleteCount; // 返回成功删除的房间数量
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除一站式社区-功能房信息
|
||||
*
|
||||
* @param roomId 一站式社区-功能房主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteStaffOneStopRoomByRoomId(Long roomId) {
|
||||
StaffOneStopRoom stopRoom = staffOneStopRoomMapper.selectStaffOneStopRoomByRoomId(roomId);
|
||||
for (StaffOneStopRoomReservation roomReservation : stopRoom.getStaffOneStopRoomReservationList()) {
|
||||
if (roomReservation.getRtState() == 1) {
|
||||
throw new ServiceException("该功能房正在被使用中,不能删除", 500);
|
||||
}
|
||||
}
|
||||
return staffOneStopRoomMapper.deleteStaffOneStopRoomByRoomId(roomId);
|
||||
}
|
||||
}
|
@@ -0,0 +1,87 @@
|
||||
package com.srs.staff.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.staff.mapper.SysRfileMapper;
|
||||
import com.srs.staff.domain.SysRfile;
|
||||
import com.srs.staff.service.ISysRfileService;
|
||||
|
||||
/**
|
||||
* 文件管理Service业务层处理
|
||||
*
|
||||
* @author srs
|
||||
* @date 2024-05-16
|
||||
*/
|
||||
@Service
|
||||
public class SysRfileServiceImpl extends ServiceImpl<SysRfileMapper,SysRfile> implements ISysRfileService {
|
||||
@Autowired
|
||||
private SysRfileMapper sysRfileMapper;
|
||||
|
||||
/**
|
||||
* 查询文件管理
|
||||
*
|
||||
* @param rfileId 文件管理主键
|
||||
* @return 文件管理
|
||||
*/
|
||||
@Override
|
||||
public SysRfile selectSysRfileByRfileId(Long rfileId) {
|
||||
return sysRfileMapper.selectSysRfileByRfileId(rfileId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询文件管理列表
|
||||
*
|
||||
* @param sysRfile 文件管理
|
||||
* @return 文件管理
|
||||
*/
|
||||
@Override
|
||||
public List<SysRfile> selectSysRfileList(SysRfile sysRfile) {
|
||||
return sysRfileMapper.selectSysRfileList(sysRfile);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增文件管理
|
||||
*
|
||||
* @param sysRfile 文件管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSysRfile(SysRfile sysRfile) {
|
||||
return sysRfileMapper.insertSysRfile(sysRfile);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改文件管理
|
||||
*
|
||||
* @param sysRfile 文件管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSysRfile(SysRfile sysRfile) {
|
||||
return sysRfileMapper.updateSysRfile(sysRfile);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除文件管理
|
||||
*
|
||||
* @param rfileIds 需要删除的文件管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSysRfileByRfileIds(Long[] rfileIds) {
|
||||
return sysRfileMapper.deleteSysRfileByRfileIds(rfileIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除文件管理信息
|
||||
*
|
||||
* @param rfileId 文件管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSysRfileByRfileId(Long rfileId) {
|
||||
return sysRfileMapper.deleteSysRfileByRfileId(rfileId);
|
||||
}
|
||||
}
|
@@ -0,0 +1,201 @@
|
||||
<?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.staff.mapper.SrsStaffOneStopCommunityActivitiesMapper">
|
||||
|
||||
<resultMap type="SrsStaffOneStopCommunityActivities" id="SrsStaffOneStopCommunityActivitiesResult">
|
||||
<result property="activityId" column="activity_id"/>
|
||||
<result property="activityTheme" column="activity_theme"/>
|
||||
<result property="galleryful" column="galleryful"/>
|
||||
<result property="activityPlace" column="activity_place"/>
|
||||
<result property="publishStatus" column="publish_status"/>
|
||||
<result property="activityStatus" column="activity_status"/>
|
||||
<result property="signUpStartTime" column="sign_up_start_time"/>
|
||||
<result property="signUpEndTime" column="sign_up_end_time"/>
|
||||
<result property="activityStartTime" column="activity_start_time"/>
|
||||
<result property="activityEndTime" column="activity_end_time"/>
|
||||
<result property="specificRequirements" column="specific_requirements"/>
|
||||
<result property="signUpPrompt" column="sign_up_prompt"/>
|
||||
<result property="feedback" column="feedback"/>
|
||||
<result property="eventPromoter" column="event_promoter"/>
|
||||
<result property="feedbackImgs" column="feedback_imgs"/>
|
||||
<result property="activityImgs" column="activity_imgs"/>
|
||||
<result property="activePackage" column="active_package"/>
|
||||
<collection property="oneStopRegistrationRecords" column="{activityId=activity_id}"
|
||||
javaType="java.util.ArrayList" select="selectSrsStaffOneStopRegistrationRecordByRecordId"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="SrsStaffOneStopRegistrationRecord" id="SrsStaffOneStopRegistrationRecordResult">
|
||||
<result property="recordId" column="record_id"/>
|
||||
<result property="activityId" column="activity_id"/>
|
||||
<result property="activityTheme" column="activity_theme"/>
|
||||
<result property="initiator" column="initiator"/>
|
||||
<result property="applicant" column="applicant"/>
|
||||
<result property="registrationTime" column="registration_time"/>
|
||||
<result property="auditStatus" column="audit_status"/>
|
||||
<result property="jobNumber" column="job_number"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="selectSrsStaffOneStopRegistrationRecordByRecordId" resultMap="SrsStaffOneStopRegistrationRecordResult">
|
||||
select *
|
||||
from srs_staff_one_stop_registration_record
|
||||
<where>
|
||||
<if test="activityId != null">
|
||||
and activity_id = #{activityId}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<sql id="selectSrsStaffOneStopCommunityActivitiesVo">
|
||||
select activity_id,
|
||||
activity_theme,
|
||||
galleryful,
|
||||
activity_place,
|
||||
publish_status,
|
||||
activity_status,
|
||||
sign_up_start_time,
|
||||
sign_up_end_time,
|
||||
activity_start_time,
|
||||
activity_end_time,
|
||||
specific_requirements,
|
||||
sign_up_prompt,
|
||||
feedback,
|
||||
event_promoter,
|
||||
feedback_imgs,
|
||||
activity_imgs,
|
||||
active_package
|
||||
from srs_staff_one_stop_community_activities
|
||||
</sql>
|
||||
|
||||
<select id="selectSrsStaffOneStopCommunityActivitiesList" parameterType="SrsStaffOneStopCommunityActivities"
|
||||
resultMap="SrsStaffOneStopCommunityActivitiesResult">
|
||||
<include refid="selectSrsStaffOneStopCommunityActivitiesVo"/>
|
||||
<where>
|
||||
<if test="activityTheme != null and activityTheme != ''">
|
||||
and activity_theme like concat('%', #{activityTheme}, '%')
|
||||
</if>
|
||||
<if test="galleryful != null">
|
||||
and galleryful = #{galleryful}
|
||||
</if>
|
||||
<if test="signUpStartTime != null and signUpEndTime != null">
|
||||
and sign_up_start_time >= #{signUpStartTime}
|
||||
and sign_up_end_time <= #{signUpEndTime}
|
||||
</if>
|
||||
<if test="activityStartTime != null and activityEndTime != null">
|
||||
and activity_start_time >= #{activityStartTime}
|
||||
and activity_end_time <= #{activityEndTime}
|
||||
</if>
|
||||
<if test="activityPlace != null and activityPlace != ''">
|
||||
and activity_place like concat('%', #{activityPlace}, '%')
|
||||
</if>
|
||||
<if test="publishStatus != null">
|
||||
and publish_status = #{publishStatus}
|
||||
</if>
|
||||
<if test="activityStatus != null">
|
||||
and activity_status = #{activityStatus}
|
||||
</if>
|
||||
<if test="specificRequirements != null and specificRequirements != ''">
|
||||
and specific_requirements = #{specificRequirements}
|
||||
</if>
|
||||
<if test="signUpPrompt != null and signUpPrompt != ''">
|
||||
and sign_up_prompt = #{signUpPrompt}
|
||||
</if>
|
||||
<if test="feedback != null and feedback != ''">
|
||||
and feedback = #{feedback}
|
||||
</if>
|
||||
<if test="eventPromoter != null and eventPromoter != ''">
|
||||
and event_promoter = #{eventPromoter}
|
||||
</if>
|
||||
<if test="feedbackImgs != null and feedbackImgs != ''">
|
||||
and feedback_imgs = #{feedbackImgs}
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY activity_id desc
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectSrsStaffOneStopCommunityActivitiesByActivityId" parameterType="Long"
|
||||
resultMap="SrsStaffOneStopCommunityActivitiesResult">
|
||||
<include refid="selectSrsStaffOneStopCommunityActivitiesVo"/>
|
||||
where activity_id = #{activityId}
|
||||
</select>
|
||||
|
||||
<insert id="insertSrsStaffOneStopCommunityActivities" parameterType="SrsStaffOneStopCommunityActivities">
|
||||
insert into srs_staff_one_stop_community_activities
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="activityId != null">activity_id,</if>
|
||||
<if test="activityTheme != null and activityTheme != ''">activity_theme,</if>
|
||||
<if test="galleryful != null">galleryful,</if>
|
||||
<if test="activityPlace != null and activityPlace != ''">activity_place,</if>
|
||||
<if test="publishStatus != null">publish_status,</if>
|
||||
<if test="activityStatus != null">activity_status,</if>
|
||||
<if test="signUpStartTime != null">sign_up_start_time,</if>
|
||||
<if test="signUpEndTime != null">sign_up_end_time,</if>
|
||||
<if test="activityStartTime != null">activity_start_time,</if>
|
||||
<if test="activityEndTime != null">activity_end_time,</if>
|
||||
<if test="specificRequirements != null and specificRequirements != ''">specific_requirements,</if>
|
||||
<if test="signUpPrompt != null">sign_up_prompt,</if>
|
||||
<if test="feedback != null">feedback,</if>
|
||||
<if test="eventPromoter != null">event_promoter,</if>
|
||||
<if test="feedbackImgs != null">feedback_imgs,</if>
|
||||
<if test="activityImgs != null">activity_imgs,</if>
|
||||
<if test="activePackage != null">active_package,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="activityId != null">#{activityId},</if>
|
||||
<if test="activityTheme != null and activityTheme != ''">#{activityTheme},</if>
|
||||
<if test="galleryful != null">#{galleryful},</if>
|
||||
<if test="activityPlace != null and activityPlace != ''">#{activityPlace},</if>
|
||||
<if test="publishStatus != null">#{publishStatus},</if>
|
||||
<if test="activityStatus != null">#{activityStatus},</if>
|
||||
<if test="signUpStartTime != null">#{signUpStartTime},</if>
|
||||
<if test="signUpEndTime != null">#{signUpEndTime},</if>
|
||||
<if test="activityStartTime != null">#{activityStartTime},</if>
|
||||
<if test="activityEndTime != null">#{activityEndTime},</if>
|
||||
<if test="specificRequirements != null and specificRequirements != ''">#{specificRequirements},</if>
|
||||
<if test="signUpPrompt != null">#{signUpPrompt},</if>
|
||||
<if test="feedback != null">#{feedback},</if>
|
||||
<if test="eventPromoter != null">#{eventPromoter},</if>
|
||||
<if test="feedbackImgs != null">#{feedbackImgs},</if>
|
||||
<if test="activityImgs != null">#{activityImgs},</if>
|
||||
<if test="activePackage != null">#{activePackage},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSrsStaffOneStopCommunityActivities" parameterType="SrsStaffOneStopCommunityActivities">
|
||||
update srs_staff_one_stop_community_activities
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="activityTheme != null and activityTheme != ''">activity_theme = #{activityTheme},</if>
|
||||
<if test="galleryful != null">galleryful = #{galleryful},</if>
|
||||
<if test="activityPlace != null and activityPlace != ''">activity_place = #{activityPlace},</if>
|
||||
<if test="publishStatus != null">publish_status = #{publishStatus},</if>
|
||||
<if test="activityStatus != null">activity_status = #{activityStatus},</if>
|
||||
<if test="signUpStartTime != null">sign_up_start_time = #{signUpStartTime},</if>
|
||||
<if test="signUpEndTime != null">sign_up_end_time = #{signUpEndTime},</if>
|
||||
<if test="activityStartTime != null">activity_start_time = #{activityStartTime},</if>
|
||||
<if test="activityEndTime != null">activity_end_time = #{activityEndTime},</if>
|
||||
<if test="specificRequirements != null and specificRequirements != ''">specific_requirements = #{specificRequirements},</if>
|
||||
<if test="signUpPrompt != null">sign_up_prompt = #{signUpPrompt},</if>
|
||||
<if test="feedback != null">feedback = #{feedback},</if>
|
||||
<if test="eventPromoter != null">event_promoter = #{eventPromoter},</if>
|
||||
<if test="feedbackImgs != null">feedback_imgs = #{feedbackImgs},</if>
|
||||
<if test="activityImgs != null">activity_imgs = #{activityImgs},</if>
|
||||
<if test="activePackage != null">active_package = #{activePackage},</if>
|
||||
</trim>
|
||||
where activity_id = #{activityId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSrsStaffOneStopCommunityActivitiesByActivityId" parameterType="Long">
|
||||
delete
|
||||
from srs_staff_one_stop_community_activities
|
||||
where activity_id = #{activityId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSrsStaffOneStopCommunityActivitiesByActivityIds" parameterType="String">
|
||||
delete from srs_staff_one_stop_community_activities where activity_id in
|
||||
<foreach item="activityId" collection="array" open="(" separator="," close=")">
|
||||
#{activityId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@@ -0,0 +1,119 @@
|
||||
<?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.staff.mapper.SrsStaffOneStopCommunityConstructionMapper">
|
||||
|
||||
<resultMap type="SrsStaffOneStopCommunityConstruction" id="SrsStaffOneStopCommunityConstructionResult">
|
||||
<result property="constructId" column="construct_id" />
|
||||
<result property="activityTheme" column="activity_theme" />
|
||||
<result property="activityProfile" column="activity_profile" />
|
||||
<result property="personnelType" column="personnel_type" />
|
||||
<result property="personnelList" column="personnel_list" />
|
||||
<result property="constructTime" column="construct_time" />
|
||||
<result property="place" column="place" />
|
||||
<result property="stuNumber" column="stu_number" />
|
||||
<result property="activityPhoto" column="activity_photo" />
|
||||
<result property="auditStatus" column="audit_status" />
|
||||
<result property="editOpinion" column="edit_opinion" />
|
||||
<result property="eventPromoter" column="event_promoter" />
|
||||
<result property="userName" column="user_name" />
|
||||
<result property="activePackage" column="active_package" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSrsStaffOneStopCommunityConstructionVo">
|
||||
select construct_id, activity_theme, activity_profile, personnel_type, personnel_list, construct_time,
|
||||
place, stu_number, activity_photo, audit_status, edit_opinion, event_promoter,user_name,active_package from srs_staff_one_stop_community_construction
|
||||
</sql>
|
||||
|
||||
<select id="selectSrsStaffOneStopCommunityConstructionList" parameterType="SrsStaffOneStopCommunityConstruction" resultMap="SrsStaffOneStopCommunityConstructionResult">
|
||||
<include refid="selectSrsStaffOneStopCommunityConstructionVo"/>
|
||||
<where>
|
||||
<if test="activityTheme != null and activityTheme != ''"> and activity_theme like concat('%', #{activityTheme}, '%')</if>
|
||||
<if test="activityProfile != null and activityProfile != ''"> and activity_profile = #{activityProfile}</if>
|
||||
<if test="personnelType != null and personnelType != ''"> and personnel_type = #{personnelType}</if>
|
||||
<if test="personnelList != null and personnelList != ''"> and personnel_list = #{personnelList}</if>
|
||||
<if test="constructTime != null "> and construct_time = #{constructTime}</if>
|
||||
<if test="startTime != null and endTime != null">
|
||||
and construct_time BETWEEN #{startTime} AND #{endTime}
|
||||
</if>
|
||||
<if test="place != null and place != ''"> and place = #{place}</if>
|
||||
<if test="stuNumber != null "> and stu_number = #{stuNumber}</if>
|
||||
<if test="activityPhoto != null and activityPhoto != ''"> and activity_photo = #{activityPhoto}</if>
|
||||
<if test="auditStatus != null "> and audit_status = #{auditStatus}</if>
|
||||
<if test="editOpinion != null and editOpinion != ''"> and edit_opinion = #{editOpinion}</if>
|
||||
<if test="eventPromoter != null and eventPromoter != ''"> and event_promoter like concat('%', #{eventPromoter}, '%')</if>
|
||||
<if test="userName != null and userName != ''"> and user_name = #{userName}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSrsStaffOneStopCommunityConstructionByConstructId" parameterType="Long" resultMap="SrsStaffOneStopCommunityConstructionResult">
|
||||
<include refid="selectSrsStaffOneStopCommunityConstructionVo"/>
|
||||
where construct_id = #{constructId}
|
||||
</select>
|
||||
|
||||
<insert id="insertSrsStaffOneStopCommunityConstruction" parameterType="SrsStaffOneStopCommunityConstruction" useGeneratedKeys="true" keyProperty="constructId">
|
||||
insert into srs_staff_one_stop_community_construction
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="activityTheme != null and activityTheme != ''">activity_theme,</if>
|
||||
<if test="activityProfile != null">activity_profile,</if>
|
||||
<if test="personnelType != null">personnel_type,</if>
|
||||
<if test="personnelList != null">personnel_list,</if>
|
||||
<if test="constructTime != null">construct_time,</if>
|
||||
<if test="place != null">place,</if>
|
||||
<if test="stuNumber != null">stu_number,</if>
|
||||
<if test="activityPhoto != null">activity_photo,</if>
|
||||
<if test="auditStatus != null">audit_status,</if>
|
||||
<if test="editOpinion != null">edit_opinion,</if>
|
||||
<if test="eventPromoter != null">event_promoter,</if>
|
||||
<if test="userName != null">user_name,</if>
|
||||
<if test="activePackage != null">active_package,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="activityTheme != null and activityTheme != ''">#{activityTheme},</if>
|
||||
<if test="activityProfile != null">#{activityProfile},</if>
|
||||
<if test="personnelType != null">#{personnelType},</if>
|
||||
<if test="personnelList != null">#{personnelList},</if>
|
||||
<if test="constructTime != null">#{constructTime},</if>
|
||||
<if test="place != null">#{place},</if>
|
||||
<if test="stuNumber != null">#{stuNumber},</if>
|
||||
<if test="activityPhoto != null">#{activityPhoto},</if>
|
||||
<if test="auditStatus != null">#{auditStatus},</if>
|
||||
<if test="editOpinion != null">#{editOpinion},</if>
|
||||
<if test="eventPromoter != null">#{eventPromoter},</if>
|
||||
<if test="userName != null">#{userName},</if>
|
||||
<if test="activePackage != null">#{activePackage},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSrsStaffOneStopCommunityConstruction" parameterType="SrsStaffOneStopCommunityConstruction">
|
||||
update srs_staff_one_stop_community_construction
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="activityTheme != null and activityTheme != ''">activity_theme = #{activityTheme},</if>
|
||||
<if test="activityProfile != null">activity_profile = #{activityProfile},</if>
|
||||
<if test="personnelType != null">personnel_type = #{personnelType},</if>
|
||||
<if test="personnelList != null">personnel_list = #{personnelList},</if>
|
||||
<if test="constructTime != null">construct_time = #{constructTime},</if>
|
||||
<if test="place != null">place = #{place},</if>
|
||||
<if test="stuNumber != null">stu_number = #{stuNumber},</if>
|
||||
<if test="activityPhoto != null">activity_photo = #{activityPhoto},</if>
|
||||
<if test="auditStatus != null">audit_status = #{auditStatus},</if>
|
||||
<if test="editOpinion != null">edit_opinion = #{editOpinion},</if>
|
||||
<if test="eventPromoter != null">event_promoter = #{eventPromoter},</if>
|
||||
<if test="userName != null">user_name = #{userName},</if>
|
||||
<if test="activePackage != null">active_package = #{activePackage},</if>
|
||||
</trim>
|
||||
where construct_id = #{constructId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSrsStaffOneStopCommunityConstructionByConstructId" parameterType="Long">
|
||||
delete from srs_staff_one_stop_community_construction where construct_id = #{constructId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSrsStaffOneStopCommunityConstructionByConstructIds" parameterType="String">
|
||||
delete from srs_staff_one_stop_community_construction where construct_id in
|
||||
<foreach item="constructId" collection="array" open="(" separator="," close=")">
|
||||
#{constructId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@@ -0,0 +1,334 @@
|
||||
<?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.staff.mapper.SrsStaffOneStopRegistrationRecordMapper">
|
||||
|
||||
<resultMap type="SrsStaffOneStopRegistrationRecord" id="SrsStaffOneStopRegistrationRecordResult">
|
||||
<result property="recordId" column="record_id"/>
|
||||
<result property="activityId" column="activity_id"/>
|
||||
<result property="activityTheme" column="activity_theme"/>
|
||||
<result property="initiator" column="initiator"/>
|
||||
<result property="applicant" column="applicant"/>
|
||||
<result property="registrationTime" column="registration_time"/>
|
||||
<result property="auditStatus" column="audit_status"/>
|
||||
<result property="jobNumber" column="job_number"/>
|
||||
<collection property="communityActivitiesList" column="{activityId = activity_id}"
|
||||
javaType="java.util.ArrayList" select="selectActivitiesByActivityId">
|
||||
</collection>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<resultMap type="SrsStaffOneStopCommunityActivities" id="SrsStaffOneStopCommunityActivitiesResult">
|
||||
<result property="activityId" column="activity_id"/>
|
||||
<result property="activityTheme" column="activity_theme"/>
|
||||
<result property="galleryful" column="galleryful"/>
|
||||
<result property="activityPlace" column="activity_place"/>
|
||||
<result property="publishStatus" column="publish_status"/>
|
||||
<result property="activityStatus" column="activity_status"/>
|
||||
<result property="specificRequirements" column="specific_requirements"/>
|
||||
<result property="signUpPrompt" column="sign_up_prompt"/>
|
||||
<result property="feedback" column="feedback"/>
|
||||
<result property="eventPromoter" column="event_promoter"/>
|
||||
<result property="feedbackImgs" column="feedback_imgs" />
|
||||
</resultMap>
|
||||
|
||||
<!--报名活动父表的数据-->
|
||||
<select id="selectActivitiesByActivityId" resultMap="SrsStaffOneStopCommunityActivitiesResult">
|
||||
select *
|
||||
from srs_staff_one_stop_community_activities
|
||||
<where>
|
||||
<if test="activityId != null">
|
||||
and activity_id = #{activityId}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<sql id="selectSrsStaffOneStopRegistrationRecordVo">
|
||||
select record_id, activity_id, activity_theme,initiator, applicant, registration_time, audit_status
|
||||
from srs_staff_one_stop_registration_record
|
||||
</sql>
|
||||
|
||||
<select id="selectRecordByActivityIdAndApplicant" parameterType="String" resultMap="SrsStaffOneStopRegistrationRecordResult">
|
||||
<include refid="selectSrsStaffOneStopRegistrationRecordVo"/>
|
||||
<where>
|
||||
<if test="activityId != null">
|
||||
and activity_id = #{activityId}
|
||||
</if>
|
||||
<if test="jobNumber != null and jobNumber != ''">
|
||||
and job_number = #{jobNumber}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSrsStaffOneStopRegistrationRecordList" parameterType="SrsStaffOneStopRegistrationRecord"
|
||||
resultMap="SrsStaffOneStopRegistrationRecordResult">
|
||||
<include refid="selectSrsStaffOneStopRegistrationRecordVo"/>
|
||||
<where>
|
||||
<if test="activityId != null "> and activity_id = #{activityId}</if>
|
||||
<if test="activityTheme != null and activityTheme != ''"> and activity_theme like concat('%', #{activityTheme}, '%')</if>
|
||||
<if test="initiator != null and initiator != ''"> and initiator = #{initiator}</if>
|
||||
<if test="applicant != null and applicant != ''"> and applicant = #{applicant}</if>
|
||||
<if test="registrationTime != null "> and registration_time = #{registrationTime}</if>
|
||||
<if test="auditStatus != null "> and audit_status = #{auditStatus}</if>
|
||||
<if test="jobNumber != null and jobNumber != ''"> and job_number = #{jobNumber}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSrsStaffOneStopRegistrationRecordByRecordId" parameterType="Long"
|
||||
resultMap="SrsStaffOneStopRegistrationRecordResult">
|
||||
<include refid="selectSrsStaffOneStopRegistrationRecordVo"/>
|
||||
where record_id = #{recordId}
|
||||
</select>
|
||||
|
||||
<select id="selectSrsStaffOneStopRegistrationRecordByActivityId" parameterType="Long"
|
||||
resultMap="SrsStaffOneStopRegistrationRecordResult">
|
||||
<include refid="selectSrsStaffOneStopRegistrationRecordVo"/>
|
||||
where activity_id = #{activityId}
|
||||
</select>
|
||||
<select id="selectSrsStaffOneStopRegistrationRecordListexport"
|
||||
resultType="com.srs.staff.domain.vo.SrsStaffOneStopRegistrationRecordExportVo">
|
||||
SELECT
|
||||
activity_theme activityTheme,
|
||||
initiator,
|
||||
applicant,
|
||||
registration_time registrationTime,
|
||||
CASE
|
||||
WHEN audit_status = 0 THEN '待审核'
|
||||
WHEN audit_status = 1 THEN '同意'
|
||||
WHEN audit_status = 2 THEN '不同意'
|
||||
ELSE '未知状态'
|
||||
END AS auditStatusValue,
|
||||
job_number jobNumber
|
||||
FROM
|
||||
srs_staff_one_stop_registration_record
|
||||
<where>
|
||||
<if test="activityId != null "> and activity_id = #{activityId}</if>
|
||||
<if test="activityTheme != null and activityTheme != ''"> and activity_theme like concat('%', #{activityTheme}, '%')</if>
|
||||
<if test="initiator != null and initiator != ''"> and initiator = #{initiator}</if>
|
||||
<if test="applicant != null and applicant != ''"> and applicant = #{applicant}</if>
|
||||
<if test="registrationTime != null "> and registration_time = #{registrationTime}</if>
|
||||
<if test="auditStatus != null "> and audit_status = #{auditStatus}</if>
|
||||
<if test="jobNumber != null and jobNumber != ''"> and job_number = #{jobNumber}</if>
|
||||
<if test="recordIds != null and recordIds != ''">
|
||||
and record_id in
|
||||
<foreach collection="recordIds" item="recordId" open="(" separator="," close=")">
|
||||
#{recordId}
|
||||
</foreach>
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<!-- 校属各部门功能房预约的统计 (饼图) -->
|
||||
<select id="getDepartmentUsage" resultType="map">
|
||||
SELECT
|
||||
rt_depar AS department,
|
||||
COUNT(*) AS reservation_count,
|
||||
SUM(CAST(rt_people AS SIGNED)) AS total_visitors
|
||||
FROM
|
||||
staff_one_stop_room_reservation
|
||||
WHERE
|
||||
1 = 1
|
||||
<!-- <if test="roomName != null and roomName != ''">-->
|
||||
<!-- AND room_name = #{roomName}-->
|
||||
<!-- </if>-->
|
||||
<if test="startTime != null and startTime != ''">
|
||||
AND rt_time >= #{startTime}
|
||||
</if>
|
||||
<if test="endTime != null and endTime != ''">
|
||||
AND rt_time <= #{endTime}
|
||||
</if>
|
||||
<if test="role != null and role != ''">
|
||||
AND rt_role = #{role}
|
||||
</if>
|
||||
<if test="borrower != null and borrower != ''">
|
||||
AND rt_creat_role LIKE CONCAT('%', #{borrower}, '%')
|
||||
</if>
|
||||
<if test="auditStatus != null">
|
||||
AND audit_status = #{auditStatus}
|
||||
</if>
|
||||
<if test="rtDepar != null">
|
||||
AND rt_depar = #{rtDepar}
|
||||
</if>
|
||||
|
||||
GROUP BY
|
||||
rt_depar
|
||||
ORDER BY
|
||||
reservation_count DESC
|
||||
</select>
|
||||
|
||||
<!-- 校属各功能房预约的统计 (饼图) -->
|
||||
<select id="getRoomReservationCount" resultType="map">
|
||||
SELECT
|
||||
room_name AS roomName,
|
||||
COUNT(*) AS reservation_count,
|
||||
SUM(CAST(rt_people AS SIGNED)) AS total_visitors
|
||||
FROM
|
||||
staff_one_stop_room_reservation
|
||||
WHERE
|
||||
1 = 1
|
||||
<if test="startTime != null and startTime != ''">
|
||||
AND rt_time >= #{startTime}
|
||||
</if>
|
||||
<if test="endTime != null and endTime != ''">
|
||||
AND rt_time <= #{endTime}
|
||||
</if>
|
||||
<if test="role != null and role != ''">
|
||||
AND rt_role = #{role}
|
||||
</if>
|
||||
<if test="borrower != null and borrower != ''">
|
||||
AND rt_creat_role LIKE CONCAT('%', #{borrower}, '%')
|
||||
</if>
|
||||
<if test="auditStatus != null">
|
||||
AND audit_status = #{auditStatus}
|
||||
</if>
|
||||
<if test="rtDepar != null">
|
||||
AND rt_depar = #{rtDepar}
|
||||
</if>
|
||||
GROUP BY
|
||||
room_name
|
||||
ORDER BY
|
||||
reservation_count DESC
|
||||
</select>
|
||||
|
||||
<!-- 校属各部门功能房使用情况 (表格) -->
|
||||
<select id="getDepartmentUsageStatistics" resultType="map">
|
||||
SELECT
|
||||
rt_depar AS department,
|
||||
COUNT(*) AS reservation_count,
|
||||
SUM(CAST(rt_people AS SIGNED)) AS total_visitors
|
||||
FROM
|
||||
staff_one_stop_room_reservation
|
||||
WHERE
|
||||
1 = 1
|
||||
<if test="startTime != null and startTime != ''">
|
||||
AND rt_time >= #{startTime}
|
||||
</if>
|
||||
<if test="endTime != null and endTime != ''">
|
||||
AND rt_time <= #{endTime}
|
||||
</if>
|
||||
<if test="role != null and role != ''">
|
||||
AND rt_role = #{role}
|
||||
</if>
|
||||
<if test="borrower != null and borrower != ''">
|
||||
AND rt_creat_role LIKE CONCAT('%', #{borrower}, '%')
|
||||
</if>
|
||||
<if test="auditStatus != null">
|
||||
AND audit_status = #{auditStatus}
|
||||
</if>
|
||||
<if test="rtDepar != null">
|
||||
AND rt_depar = #{rtDepar}
|
||||
</if>
|
||||
GROUP BY
|
||||
rt_depar
|
||||
ORDER BY
|
||||
reservation_count DESC
|
||||
</select>
|
||||
|
||||
<!-- 校属各功能房使用情况 (表格) -->
|
||||
<select id="getRoomUsageStatistics" resultType="map">
|
||||
SELECT
|
||||
room_name AS roomName,
|
||||
COUNT(*) AS reservation_count,
|
||||
SUM(CAST(rt_people AS SIGNED)) AS total_visitors
|
||||
FROM
|
||||
staff_one_stop_room_reservation
|
||||
WHERE
|
||||
1 = 1
|
||||
<if test="startTime != null and startTime != ''">
|
||||
AND rt_time >= #{startTime}
|
||||
</if>
|
||||
<if test="endTime != null and endTime != ''">
|
||||
AND rt_time <= #{endTime}
|
||||
</if>
|
||||
<if test="role != null and role != ''">
|
||||
AND rt_role = #{role}
|
||||
</if>
|
||||
<if test="borrower != null and borrower != ''">
|
||||
AND rt_creat_role LIKE CONCAT('%', #{borrower}, '%')
|
||||
</if>
|
||||
<if test="auditStatus != null">
|
||||
AND audit_status = #{auditStatus}
|
||||
</if>
|
||||
<if test="rtDepar != null">
|
||||
AND rt_depar = #{rtDepar}
|
||||
</if>
|
||||
GROUP BY
|
||||
room_name
|
||||
ORDER BY
|
||||
reservation_count DESC
|
||||
</select>
|
||||
<insert id="insertSrsStaffOneStopRegistrationRecord" parameterType="SrsStaffOneStopRegistrationRecord"
|
||||
useGeneratedKeys="true" keyProperty="recordId">
|
||||
insert into srs_staff_one_stop_registration_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="activityId != null">activity_id,</if>
|
||||
<if test="activityTheme != null">activity_theme,</if>
|
||||
<if test="initiator != null">initiator,</if>
|
||||
<if test="applicant != null">applicant,</if>
|
||||
<if test="registrationTime != null">registration_time,</if>
|
||||
<if test="auditStatus != null">audit_status,</if>
|
||||
<if test="jobNumber != null">job_number,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="activityId != null">#{activityId},</if>
|
||||
<if test="activityTheme != null">#{activityTheme},</if>
|
||||
<if test="initiator != null">#{initiator},</if>
|
||||
<if test="applicant != null">#{applicant},</if>
|
||||
<if test="registrationTime != null">#{registrationTime},</if>
|
||||
<if test="auditStatus != null">#{auditStatus},</if>
|
||||
<if test="jobNumber != null">#{jobNumber},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSrsStaffOneStopRegistrationRecord" parameterType="SrsStaffOneStopRegistrationRecord">
|
||||
update srs_staff_one_stop_registration_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="activityId != null">activity_id = #{activityId},</if>
|
||||
<if test="activityTheme != null">activity_theme = #{activityTheme},</if>
|
||||
<if test="initiator != null">initiator = #{initiator},</if>
|
||||
<if test="applicant != null">applicant = #{applicant},</if>
|
||||
<if test="registrationTime != null">registration_time = #{registrationTime},</if>
|
||||
<if test="auditStatus != null">audit_status = #{auditStatus},</if>
|
||||
<if test="jobNumber != null">job_number = #{jobNumber},</if>
|
||||
</trim>
|
||||
where record_id = #{recordId}
|
||||
</update>
|
||||
|
||||
<!--批量修改-->
|
||||
<update id="batchUpdateSysRegistrationRecord" parameterType="SrsStaffOneStopRegistrationRecord">
|
||||
<foreach collection="list" item="item" index="index" open="" close="" separator=";">
|
||||
update srs_staff_one_stop_registration_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="item.activityId != null">activity_id = #{item.activityId},</if>
|
||||
<if test="item.activityTheme != null">activity_theme = #{item.activityTheme},</if>
|
||||
<if test="item.initiator != null">initiator = #{item.initiator},</if>
|
||||
<if test="item.applicant != null">applicant = #{item.applicant},</if>
|
||||
<if test="item.registrationTime != null">registration_time = #{item.registrationTime},</if>
|
||||
<if test="item.auditStatus != null">audit_status = #{item.auditStatus},</if>
|
||||
<if test="item.jobNumber != null">job_number = #{item.jobNumber},</if>
|
||||
</trim>
|
||||
where record_id = #{item.recordId}
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<update id="updateAuditStatusToPending" parameterType="int">
|
||||
UPDATE staff_one_stop_room_reservation
|
||||
SET audit_status = 0,rt_state = 0
|
||||
WHERE rt_id = #{id}
|
||||
</update>
|
||||
|
||||
|
||||
<delete id="deleteSrsStaffOneStopRegistrationRecordByRecordId" parameterType="Long">
|
||||
delete
|
||||
from srs_staff_one_stop_registration_record
|
||||
where record_id = #{recordId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSrsStaffOneStopRegistrationRecordByRecordIds" parameterType="String">
|
||||
delete from srs_staff_one_stop_registration_record where record_id in
|
||||
<foreach item="recordId" collection="array" open="(" separator="," close=")">
|
||||
#{recordId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@@ -0,0 +1,237 @@
|
||||
<?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.staff.mapper.StaffOneStopRoomMapper">
|
||||
|
||||
<resultMap type="StaffOneStopRoom" id="StaffOneStopRoomResult">
|
||||
<result property="roomId" column="room_id"/>
|
||||
<result property="roomNo" column="room_no"/>
|
||||
<result property="roomName" column="room_name"/>
|
||||
<result property="roomMatter" column="room_matter"/>
|
||||
<result property="roomRule" column="room_rule"/>
|
||||
<result property="roomInfo" column="room_info"/>
|
||||
<result property="roomPurp" column="room_purp"/>
|
||||
<result property="roomStatus" column="room_status"/>
|
||||
<result property="roomCapacity" column="room_capacity"/>
|
||||
<result property="roomCreatetime" column="room_createTime"/>
|
||||
<result property="roomUptime" column="room_upTime"/>
|
||||
<result property="roomUpuser" column="room_upuser"/>
|
||||
<result property="roomUser" column="room_user"/>
|
||||
<result property="roomDepar" column="room_depar"/>
|
||||
<result property="roomImgs" column="room_imgs"/>
|
||||
<!--查询功能房的预约记录-->
|
||||
<collection property="staffOneStopRoomReservationList" column="{roomNo = room_no}"
|
||||
javaType="java.util.ArrayList" select="selectStaffOneStopRoomReservationByRoomNo">
|
||||
</collection>
|
||||
|
||||
<!--查询功能房的开放时间-->
|
||||
<collection property="staffOneStopRoomOpeningHoursList" column="{roomNo = room_no}"
|
||||
javaType="java.util.ArrayList" select="selectStaffOneStopRoomOpeningHoursByRoomNo">
|
||||
</collection>
|
||||
</resultMap>
|
||||
|
||||
<!--预约记录-->
|
||||
<resultMap type="StaffOneStopRoomReservation" id="StaffOneStopRoomReservationResult">
|
||||
<result property="rtId" column="rt_id"/>
|
||||
<result property="rtNo" column="rt_no"/>
|
||||
<result property="roomNo" column="room_no"/>
|
||||
<result property="roomName" column="room_name"/>
|
||||
<result property="rtTheme" column="rt_theme"/>
|
||||
<result property="rtRole" column="rt_role"/>
|
||||
<result property="rtPeople" column="rt_people"/>
|
||||
<result property="rtPurpose" column="rt_purpose"/>
|
||||
<result property="rtTime" column="rt_time"/>
|
||||
<result property="rtTimePeriod" column="rt_time_period"/>
|
||||
<result property="rtState" column="rt_state"/>
|
||||
<result property="rtImgs" column="rt_imgs"/>
|
||||
<result property="rtCreatTime" column="rt_creat_time"/>
|
||||
<result property="rtUpTime" column="rt_up_time"/>
|
||||
<result property="rtCreatRole" column="rt_creat_role"/>
|
||||
<result property="rtDepar" column="rt_depar"/>
|
||||
<result property="auditStatus" column="audit_status"/>
|
||||
<result property="editOpinion" column="edit_opinion"/>
|
||||
<result property="feedback" column="feedback"/>
|
||||
</resultMap>
|
||||
|
||||
<!--功能房开放时间-->
|
||||
<resultMap type="StaffOneStopRoomOpeningHours" id="StaffOneStopRoomOpeningHoursResult">
|
||||
<result property="ohId" column="oh_id"/>
|
||||
<result property="roomNo" column="room_no"/>
|
||||
<result property="ohWeekday" column="oh_weekday"/>
|
||||
<result property="openingHours" column="opening_hours"/>
|
||||
<result property="isOccupy" column="is_occupy"/>
|
||||
<result property="isDel" column="is_del"/>
|
||||
<result property="rtNo" column="rt_no"/>
|
||||
</resultMap>
|
||||
|
||||
<!--功能房开放时间字段-->
|
||||
<sql id="selectStaffOneStopRoomOpeningHoursVo">
|
||||
select oh_id, room_no, oh_weekday, opening_hours, is_occupy, is_del, rt_no
|
||||
from staff_one_stop_room_opening_hours
|
||||
</sql>
|
||||
|
||||
<!--预约记录字段-->
|
||||
<sql id="selectStaffOneStopRoomReservationVo">
|
||||
select rt_id,
|
||||
rt_no,
|
||||
room_no,
|
||||
room_name,
|
||||
rt_theme,
|
||||
rt_role,
|
||||
rt_people,
|
||||
rt_purpose,
|
||||
rt_time,
|
||||
rt_time_period,
|
||||
rt_state,
|
||||
rt_imgs,
|
||||
rt_creat_time,
|
||||
rt_up_time,
|
||||
rt_creat_role,
|
||||
rt_depar,
|
||||
audit_status,
|
||||
edit_opinion,
|
||||
feedback
|
||||
from staff_one_stop_room_reservation
|
||||
</sql>
|
||||
|
||||
<!--预约记录子表的数据-->
|
||||
<select id="selectStaffOneStopRoomReservationByRoomNo" resultMap="StaffOneStopRoomReservationResult">
|
||||
<include refid="selectStaffOneStopRoomReservationVo"/>
|
||||
<where>
|
||||
<if test="roomNo != null and roomNo != ''">
|
||||
and room_no = #{roomNo}
|
||||
</if>
|
||||
</where>
|
||||
order by rt_creat_time desc
|
||||
</select>
|
||||
|
||||
<!--功能房开放时间子表的数据-->
|
||||
<select id="selectStaffOneStopRoomOpeningHoursByRoomNo" resultMap="StaffOneStopRoomOpeningHoursResult">
|
||||
<include refid="selectStaffOneStopRoomOpeningHoursVo"/>
|
||||
<where>
|
||||
<if test="roomNo != null and roomNo != ''">
|
||||
and room_no = #{roomNo}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<sql id="selectStaffOneStopRoomVo">
|
||||
select room_id,
|
||||
room_no,
|
||||
room_name,
|
||||
room_matter,
|
||||
room_rule,
|
||||
room_info,
|
||||
room_purp,
|
||||
room_status,
|
||||
room_capacity,
|
||||
room_createTime,
|
||||
room_upTime,
|
||||
room_upuser,
|
||||
room_user,
|
||||
room_depar,
|
||||
room_imgs
|
||||
from staff_one_stop_room
|
||||
</sql>
|
||||
|
||||
<select id="selectStaffOneStopRoomList" parameterType="StaffOneStopRoom" resultMap="StaffOneStopRoomResult">
|
||||
<include refid="selectStaffOneStopRoomVo"/>
|
||||
<where>
|
||||
<if test="roomNo != null and roomNo != ''">and room_no = #{roomNo}</if>
|
||||
<if test="roomName != null and roomName != ''">and room_name like concat('%', #{roomName}, '%')</if>
|
||||
<if test="roomMatter != null and roomMatter != ''">and room_matter = #{roomMatter}</if>
|
||||
<if test="roomRule != null and roomRule != ''">and room_rule = #{roomRule}</if>
|
||||
<if test="roomInfo != null and roomInfo != ''">and room_info = #{roomInfo}</if>
|
||||
<if test="roomPurp != null and roomPurp != ''">and room_purp = #{roomPurp}</if>
|
||||
<if test="roomStatus != null and roomStatus != ''">and room_status = #{roomStatus}</if>
|
||||
<if test="roomCapacity != null and roomCapacity != ''">and room_capacity = #{roomCapacity}</if>
|
||||
<if test="roomCreatetime != null ">and room_createTime = #{roomCreatetime}</if>
|
||||
<if test="roomUptime != null ">and room_upTime = #{roomUptime}</if>
|
||||
<if test="roomUpuser != null and roomUpuser != ''">and room_upuser = #{roomUpuser}</if>
|
||||
<if test="roomUser != null and roomUser != ''">and room_user = #{roomUser}</if>
|
||||
<if test="roomDepar != null and roomDepar != ''">and room_depar = #{roomDepar}</if>
|
||||
<if test="roomImgs != null and roomImgs != ''">and room_imgs = #{roomImgs}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectStaffOneStopRoomByRoomId" parameterType="Long" resultMap="StaffOneStopRoomResult">
|
||||
<include refid="selectStaffOneStopRoomVo"/>
|
||||
where room_id = #{roomId}
|
||||
</select>
|
||||
|
||||
<select id="selectStaffOneStopRoomByRoomNo" resultMap="StaffOneStopRoomResult">
|
||||
<include refid="selectStaffOneStopRoomVo"/>
|
||||
where room_no = #{roomNo}
|
||||
</select>
|
||||
|
||||
<insert id="insertStaffOneStopRoom" parameterType="StaffOneStopRoom" useGeneratedKeys="true" keyProperty="roomId">
|
||||
insert into staff_one_stop_room
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="roomNo != null">room_no,</if>
|
||||
<if test="roomName != null and roomName != ''">room_name,</if>
|
||||
<if test="roomMatter != null">room_matter,</if>
|
||||
<if test="roomRule != null">room_rule,</if>
|
||||
<if test="roomInfo != null">room_info,</if>
|
||||
<if test="roomPurp != null">room_purp,</if>
|
||||
<if test="roomStatus != null and roomStatus != ''">room_status,</if>
|
||||
<if test="roomCapacity != null and roomCapacity != ''">room_capacity,</if>
|
||||
<if test="roomCreatetime != null">room_createTime,</if>
|
||||
<if test="roomUptime != null">room_upTime,</if>
|
||||
<if test="roomUpuser != null">room_upuser,</if>
|
||||
<if test="roomUser != null">room_user,</if>
|
||||
<if test="roomDepar != null">room_depar,</if>
|
||||
<if test="roomImgs != null">room_imgs,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="roomNo != null">#{roomNo},</if>
|
||||
<if test="roomName != null and roomName != ''">#{roomName},</if>
|
||||
<if test="roomMatter != null">#{roomMatter},</if>
|
||||
<if test="roomRule != null">#{roomRule},</if>
|
||||
<if test="roomInfo != null">#{roomInfo},</if>
|
||||
<if test="roomPurp != null">#{roomPurp},</if>
|
||||
<if test="roomStatus != null and roomStatus != ''">#{roomStatus},</if>
|
||||
<if test="roomCapacity != null and roomCapacity != ''">#{roomCapacity},</if>
|
||||
<if test="roomCreatetime != null">#{roomCreatetime},</if>
|
||||
<if test="roomUptime != null">#{roomUptime},</if>
|
||||
<if test="roomUpuser != null">#{roomUpuser},</if>
|
||||
<if test="roomUser != null">#{roomUser},</if>
|
||||
<if test="roomDepar != null">#{roomDepar},</if>
|
||||
<if test="roomImgs != null">#{roomImgs},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateStaffOneStopRoom" parameterType="StaffOneStopRoom">
|
||||
update staff_one_stop_room
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="roomNo != null">room_no = #{roomNo},</if>
|
||||
<if test="roomName != null and roomName != ''">room_name = #{roomName},</if>
|
||||
<if test="roomMatter != null">room_matter = #{roomMatter},</if>
|
||||
<if test="roomRule != null">room_rule = #{roomRule},</if>
|
||||
<if test="roomInfo != null">room_info = #{roomInfo},</if>
|
||||
<if test="roomPurp != null">room_purp = #{roomPurp},</if>
|
||||
<if test="roomStatus != null and roomStatus != ''">room_status = #{roomStatus},</if>
|
||||
<if test="roomCapacity != null and roomCapacity != ''">room_capacity = #{roomCapacity},</if>
|
||||
<if test="roomCreatetime != null">room_createTime = #{roomCreatetime},</if>
|
||||
<if test="roomUptime != null">room_upTime = #{roomUptime},</if>
|
||||
<if test="roomUpuser != null">room_upuser = #{roomUpuser},</if>
|
||||
<if test="roomUser != null">room_user = #{roomUser},</if>
|
||||
<if test="roomDepar != null">room_depar = #{roomDepar},</if>
|
||||
<if test="roomImgs != null">room_imgs = #{roomImgs},</if>
|
||||
</trim>
|
||||
where room_id = #{roomId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteStaffOneStopRoomByRoomId" parameterType="Long">
|
||||
delete
|
||||
from staff_one_stop_room
|
||||
where room_id = #{roomId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteStaffOneStopRoomByRoomIds" parameterType="String">
|
||||
delete from staff_one_stop_room where room_id in
|
||||
<foreach item="roomId" collection="array" open="(" separator="," close=")">
|
||||
#{roomId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@@ -0,0 +1,153 @@
|
||||
<?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.staff.mapper.StaffOneStopRoomOpeningHoursMapper">
|
||||
|
||||
<resultMap type="StaffOneStopRoomOpeningHours" id="StaffOneStopRoomOpeningHoursResult">
|
||||
<result property="ohId" column="oh_id"/>
|
||||
<result property="roomNo" column="room_no"/>
|
||||
<result property="ohWeekday" column="oh_weekday"/>
|
||||
<result property="openingHours" column="opening_hours"/>
|
||||
<result property="isOccupy" column="is_occupy"/>
|
||||
<result property="isDel" column="is_del"/>
|
||||
<result property="rtNo" column="rt_no"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectStaffOneStopRoomOpeningHoursVo">
|
||||
select oh_id, room_no, oh_weekday, opening_hours, is_occupy, is_del, rt_no
|
||||
from staff_one_stop_room_opening_hours
|
||||
</sql>
|
||||
|
||||
<select id="selectStaffOneStopRoomOpeningHoursList" parameterType="StaffOneStopRoomOpeningHours"
|
||||
resultMap="StaffOneStopRoomOpeningHoursResult">
|
||||
<include refid="selectStaffOneStopRoomOpeningHoursVo"/>
|
||||
<where>
|
||||
<if test="roomNo != null and roomNo != ''">and room_no = #{roomNo}</if>
|
||||
<if test="ohWeekday != null and ohWeekday != ''">and oh_weekday = #{ohWeekday}</if>
|
||||
<if test="openingHours != null and openingHours != ''">and opening_hours = #{openingHours}</if>
|
||||
<if test="isOccupy != null ">and is_occupy = #{isOccupy}</if>
|
||||
<if test="rtNo != null and rtNo != ''">and rt_no = #{rtNo}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectStaffOneStopRoomOpeningHoursByOhId" parameterType="Long"
|
||||
resultMap="StaffOneStopRoomOpeningHoursResult">
|
||||
<include refid="selectStaffOneStopRoomOpeningHoursVo"/>
|
||||
where oh_id = #{ohId}
|
||||
</select>
|
||||
|
||||
<!--根据功能房编号查询-->
|
||||
<select id="selectStaffOneStopRoomOpeningHoursByRoomNo"
|
||||
resultMap="StaffOneStopRoomOpeningHoursResult">
|
||||
<include refid="selectStaffOneStopRoomOpeningHoursVo"/>
|
||||
where room_no = #{roomNo}
|
||||
</select>
|
||||
|
||||
<!--根据功能房预约记录编号查询-->
|
||||
<select id="selectStaffOneStopRoomOpeningHoursByRtNo"
|
||||
resultMap="StaffOneStopRoomOpeningHoursResult">
|
||||
<include refid="selectStaffOneStopRoomOpeningHoursVo"/>
|
||||
where rt_no = #{rtNo}
|
||||
</select>
|
||||
|
||||
<!--根据功能房星期几查询-->
|
||||
<select id="selectStaffOneStopRoomOpeningHoursByOhWeekday" parameterType="String"
|
||||
resultMap="StaffOneStopRoomOpeningHoursResult">
|
||||
<include refid="selectStaffOneStopRoomOpeningHoursVo"/>
|
||||
<where>
|
||||
<if test="roomNo != null and roomNo != ''">
|
||||
and room_no = #{roomNo}
|
||||
</if>
|
||||
<if test="ohWeekday != null and ohWeekday != ''">
|
||||
and oh_weekday = #{ohWeekday}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<insert id="insertStaffOneStopRoomOpeningHours" parameterType="StaffOneStopRoomOpeningHours" useGeneratedKeys="true"
|
||||
keyProperty="ohId">
|
||||
insert into staff_one_stop_room_opening_hours
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="roomNo != null">room_no,</if>
|
||||
<if test="ohWeekday != null">oh_weekday,</if>
|
||||
<if test="openingHours != null">opening_hours,</if>
|
||||
<if test="isOccupy != null">is_occupy,</if>
|
||||
<if test="isDel != null">is_del,</if>
|
||||
<if test="rtNo != null">rt_no,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="roomNo != null">#{roomNo},</if>
|
||||
<if test="ohWeekday != null">#{ohWeekday},</if>
|
||||
<if test="openingHours != null">#{openingHours},</if>
|
||||
<if test="isOccupy != null">#{isOccupy},</if>
|
||||
<if test="isDel != null">#{isDel},</if>
|
||||
<if test="rtNo != null">#{rtNo},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!--批量新增-->
|
||||
<insert id="insertStaffOneStopRoomOpeningHoursBatch" parameterType="java.util.List">
|
||||
<foreach collection="list" item="item" index="index" separator=";">
|
||||
insert into staff_one_stop_room_opening_hours
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="item.roomNo != null and item.roomNo != ''">room_no,</if>
|
||||
<if test="item.ohWeekday != null and item.ohWeekday != ''">oh_weekday,</if>
|
||||
<if test="item.openingHours != null and item.openingHours != ''">opening_hours,</if>
|
||||
<if test="item.isOccupy != null and item.isOccupy != ''">is_occupy,</if>
|
||||
<if test="item.isDel != null">is_del,</if>
|
||||
<if test="item.rtNo != null">rt_no,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="item.roomNo != null and item.roomNo != ''">#{item.roomNo},</if>
|
||||
<if test="item.ohWeekday != null and item.ohWeekday != ''">#{item.ohWeekday},</if>
|
||||
<if test="item.openingHours != null and item.openingHours != ''">#{item.openingHours},</if>
|
||||
<if test="item.isOccupy != null and item.isOccupy != ''">#{item.isOccupy},</if>
|
||||
<if test="item.isDel != null">#{item.isDel},</if>
|
||||
<if test="item.rtNo != null">#{item.rtNo},</if>
|
||||
</trim>
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<update id="updateStaffOneStopRoomOpeningHours" parameterType="StaffOneStopRoomOpeningHours">
|
||||
update staff_one_stop_room_opening_hours
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="roomNo != null">room_no = #{roomNo},</if>
|
||||
<if test="ohWeekday != null">oh_weekday = #{ohWeekday},</if>
|
||||
<if test="openingHours != null">opening_hours = #{openingHours},</if>
|
||||
<if test="isOccupy != null">is_occupy = #{isOccupy},</if>
|
||||
<if test="isDel != null">is_del = #{isDel},</if>
|
||||
<if test="rtNo != null">rt_no = #{rtNo},</if>
|
||||
</trim>
|
||||
where oh_id = #{ohId}
|
||||
</update>
|
||||
|
||||
<!--批量修改-->
|
||||
<update id="batchUpdateStaffOneStopRoomOpeningHours" parameterType="java.util.List">
|
||||
<foreach collection="list" item="hours" index="index" separator=";">
|
||||
update staff_one_stop_room_opening_hours
|
||||
<set>
|
||||
<if test="hours.roomNo != null">room_no = #{hours.roomNo},</if>
|
||||
<if test="hours.ohWeekday != null">oh_weekday = #{hours.ohWeekday},</if>
|
||||
<if test="hours.openingHours != null">opening_hours = #{hours.openingHours},</if>
|
||||
<if test="hours.isOccupy != null">is_occupy = #{hours.isOccupy},</if>
|
||||
<if test="hours.isDel != null">is_del = #{hours.isDel},</if>
|
||||
<if test="hours.rtNo != null">rt_no = #{hours.rtNo}</if>
|
||||
</set>
|
||||
where oh_id = #{hours.ohId}
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<delete id="deleteStaffOneStopRoomOpeningHoursByOhId" parameterType="Long">
|
||||
delete
|
||||
from staff_one_stop_room_opening_hours
|
||||
where oh_id = #{ohId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteStaffOneStopRoomOpeningHoursByOhIds" parameterType="String">
|
||||
delete from staff_one_stop_room_opening_hours where oh_id in
|
||||
<foreach item="ohId" collection="array" open="(" separator="," close=")">
|
||||
#{ohId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@@ -0,0 +1,320 @@
|
||||
<?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.staff.mapper.StaffOneStopRoomReservationMapper">
|
||||
|
||||
<resultMap type="StaffOneStopRoomReservation" id="StaffOneStopRoomReservationResult">
|
||||
<result property="rtId" column="rt_id"/>
|
||||
<result property="rtNo" column="rt_no"/>
|
||||
<result property="roomNo" column="room_no"/>
|
||||
<result property="roomName" column="room_name"/>
|
||||
<result property="rtTheme" column="rt_theme"/>
|
||||
<result property="rtRole" column="rt_role"/>
|
||||
<result property="rtPeople" column="rt_people"/>
|
||||
<result property="rtPurpose" column="rt_purpose"/>
|
||||
<result property="rtTime" column="rt_time"/>
|
||||
<result property="rtTimePeriod" column="rt_time_period"/>
|
||||
<result property="rtState" column="rt_state"/>
|
||||
<result property="rtImgs" column="rt_imgs"/>
|
||||
<result property="rtCreatTime" column="rt_creat_time"/>
|
||||
<result property="rtUpTime" column="rt_up_time"/>
|
||||
<result property="rtCreatRole" column="rt_creat_role"/>
|
||||
<result property="rtDepar" column="rt_depar"/>
|
||||
<result property="auditStatus" column="audit_status"/>
|
||||
<result property="editOpinion" column="edit_opinion"/>
|
||||
<result property="feedback" column="feedback"/>
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
<!--查询功能房的开放时间-->
|
||||
<collection property="staffOneStopRoomOpeningHoursList" column="{rtNo = rt_no}"
|
||||
javaType="java.util.ArrayList" select="selectStaffOneStopRoomOpeningHoursByRoomNo">
|
||||
</collection>
|
||||
<!--查询功能房-->
|
||||
<collection property="staffOneStopRoom" column="{roomNo = room_no}"
|
||||
javaType="java.util.ArrayList" select="selectStaffOneStopRoomByRoomNo">
|
||||
</collection>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<!--功能房开放时间-->
|
||||
<resultMap type="StaffOneStopRoomOpeningHours" id="StaffOneStopRoomOpeningHoursResult">
|
||||
<result property="ohId" column="oh_id"/>
|
||||
<result property="roomNo" column="room_no"/>
|
||||
<result property="ohWeekday" column="oh_weekday"/>
|
||||
<result property="openingHours" column="opening_hours"/>
|
||||
<result property="isOccupy" column="is_occupy"/>
|
||||
<result property="isDel" column="is_del"/>
|
||||
<result property="rtNo" column="rt_no"/>
|
||||
</resultMap>
|
||||
|
||||
<!--功能房开放时间字段-->
|
||||
<sql id="selectStaffOneStopRoomOpeningHoursVo">
|
||||
select oh_id, room_no, oh_weekday, opening_hours, is_occupy, is_del, rt_no
|
||||
from staff_one_stop_room_opening_hours
|
||||
</sql>
|
||||
|
||||
<!--功能房开放时间子表的数据-->
|
||||
<select id="selectStaffOneStopRoomOpeningHoursByRoomNo" resultMap="StaffOneStopRoomOpeningHoursResult">
|
||||
<include refid="selectStaffOneStopRoomOpeningHoursVo"/>
|
||||
<where>
|
||||
<if test="rtNo != null and rtNo != ''">
|
||||
and rt_no = #{rtNo}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<!--功能房-->
|
||||
<resultMap type="StaffOneStopRoom" id="StaffOneStopRoomResult">
|
||||
<result property="roomId" column="room_id"/>
|
||||
<result property="roomNo" column="room_no"/>
|
||||
<result property="roomName" column="room_name"/>
|
||||
<result property="roomMatter" column="room_matter"/>
|
||||
<result property="roomRule" column="room_rule"/>
|
||||
<result property="roomInfo" column="room_info"/>
|
||||
<result property="roomPurp" column="room_purp"/>
|
||||
<result property="roomStatus" column="room_status"/>
|
||||
<result property="roomCapacity" column="room_capacity"/>
|
||||
<result property="roomCreatetime" column="room_createTime"/>
|
||||
<result property="roomUptime" column="room_upTime"/>
|
||||
<result property="roomUpuser" column="room_upuser"/>
|
||||
<result property="roomUser" column="room_user"/>
|
||||
<result property="roomDepar" column="room_depar"/>
|
||||
<result property="roomImgs" column="room_imgs"/>
|
||||
</resultMap>
|
||||
<!--功能房-->
|
||||
<sql id="selectStaffOneStopRoomVo">
|
||||
select room_id,
|
||||
room_no,
|
||||
room_name,
|
||||
room_matter,
|
||||
room_rule,
|
||||
room_info,
|
||||
room_purp,
|
||||
room_status,
|
||||
room_capacity,
|
||||
room_createTime,
|
||||
room_upTime,
|
||||
room_upuser,
|
||||
room_user,
|
||||
room_depar,
|
||||
room_imgs
|
||||
from staff_one_stop_room
|
||||
</sql>
|
||||
|
||||
<select id="selectStaffOneStopRoomByRoomNo" resultMap="StaffOneStopRoomResult">
|
||||
<include refid="selectStaffOneStopRoomVo"/>
|
||||
<where>
|
||||
<if test="roomNo != null and roomNo != ''">
|
||||
and room_no = #{roomNo}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<sql id="selectStaffOneStopRoomReservationVo">
|
||||
select rt_id,
|
||||
rt_no,
|
||||
room_no,
|
||||
room_name,
|
||||
rt_theme,
|
||||
rt_role,
|
||||
rt_people,
|
||||
rt_purpose,
|
||||
rt_time,
|
||||
rt_time_period,
|
||||
rt_state,
|
||||
rt_imgs,
|
||||
rt_creat_time,
|
||||
rt_up_time,
|
||||
rt_creat_role,
|
||||
rt_depar,
|
||||
audit_status,
|
||||
edit_opinion,
|
||||
feedback
|
||||
from staff_one_stop_room_reservation
|
||||
</sql>
|
||||
|
||||
<select id="selectStaffOneStopRoomReservationList" parameterType="StaffOneStopRoomReservation"
|
||||
resultMap="StaffOneStopRoomReservationResult">
|
||||
<include refid="selectStaffOneStopRoomReservationVo"/>
|
||||
<where>
|
||||
<!-- 原有条件 -->
|
||||
<if test="rtNo != null and rtNo != ''">and rt_no = #{rtNo}</if>
|
||||
<if test="roomNo != null and roomNo != ''">and room_no = #{roomNo}</if>
|
||||
<if test="rtTheme != null and rtTheme != ''">and rt_theme = #{rtTheme}</if>
|
||||
<if test="rtPeople != null and rtPeople != ''">and rt_people = #{rtPeople}</if>
|
||||
<if test="rtPurpose != null and rtPurpose != ''">and rt_purpose = #{rtPurpose}</if>
|
||||
<if test="rtImgs != null and rtImgs != ''">and rt_imgs = #{rtImgs}</if>
|
||||
<if test="rtCreatTime != null ">and rt_creat_time = #{rtCreatTime}</if>
|
||||
<if test="rtUpTime != null ">and rt_up_time = #{rtUpTime}</if>
|
||||
<if test="auditStatus != null ">and audit_status = #{auditStatus}</if>
|
||||
<if test="editOpinion != null and editOpinion != ''">and edit_opinion = #{editOpinion}</if>
|
||||
<if test="feedback != null and feedback != ''">and feedback = #{feedback}</if>
|
||||
<if test="createBy != null and createBy != ''">and create_by = #{createBy}</if>
|
||||
<if test="updateBy != null and updateBy != ''">and update_by = #{updateBy}</if>
|
||||
<!-- 新增查询条件 -->
|
||||
<!-- 根据功能房名模糊查询 -->
|
||||
<if test="roomName != null and roomName != ''">
|
||||
and room_name like concat('%', #{roomName}, '%')
|
||||
</if>
|
||||
|
||||
<!-- 根据部门模糊查询 -->
|
||||
<if test="rtDepar != null and rtDepar != ''">
|
||||
and rt_depar like concat('%', #{rtDepar}, '%')
|
||||
</if>
|
||||
|
||||
<!-- 根据预约时间段查询 -->
|
||||
<if test="rtTimeStart != null and rtTimeStart != ''">
|
||||
<![CDATA[ and rt_time >= #{rtTimeStart} ]]>
|
||||
</if>
|
||||
<if test="rtTimeEnd != null and rtTimeEnd != ''">
|
||||
<![CDATA[ and rt_time <= #{rtTimeEnd} ]]>
|
||||
</if>
|
||||
|
||||
<!-- 根据参与人员类型查询 -->
|
||||
<if test="rtRole != null and rtRole != ''">
|
||||
and rt_role = #{rtRole}
|
||||
</if>
|
||||
|
||||
<!-- 根据申请人模糊查询 -->
|
||||
<if test="rtCreatRole != null and rtCreatRole != ''">
|
||||
and rt_creat_role like concat('%', #{rtCreatRole}, '%')
|
||||
</if>
|
||||
|
||||
<!-- 根据预约状态查询 -->
|
||||
<if test="rtState != null">
|
||||
and rt_state = #{rtState}
|
||||
</if>
|
||||
|
||||
</where>
|
||||
order by
|
||||
CASE audit_status
|
||||
WHEN 0 THEN 0
|
||||
WHEN 1 THEN 1
|
||||
WHEN 2 THEN 2
|
||||
ELSE 99
|
||||
END,
|
||||
rt_creat_time DESC
|
||||
</select>
|
||||
|
||||
<select id="selectStaffOneStopRoomReservationByRtTime"
|
||||
resultMap="StaffOneStopRoomReservationResult">
|
||||
<include refid="selectStaffOneStopRoomReservationVo"/>
|
||||
<where>
|
||||
<if test="roomNo != null and roomNo != ''">
|
||||
and room_no = #{roomNo}
|
||||
</if>
|
||||
<if test="rtTime != null and rtTime != ''">
|
||||
and rt_time = #{rtTime}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectStaffOneStopRoomReservationByRtId" parameterType="Long"
|
||||
resultMap="StaffOneStopRoomReservationResult">
|
||||
<include refid="selectStaffOneStopRoomReservationVo"/>
|
||||
where rt_id = #{rtId}
|
||||
</select>
|
||||
|
||||
<insert id="insertStaffOneStopRoomReservation" parameterType="StaffOneStopRoomReservation" useGeneratedKeys="true"
|
||||
keyProperty="rtId">
|
||||
insert into staff_one_stop_room_reservation
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="rtNo != null">rt_no,</if>
|
||||
<if test="roomNo != null">room_no,</if>
|
||||
<if test="roomName != null">room_name,</if>
|
||||
<if test="rtTheme != null">rt_theme,</if>
|
||||
<if test="rtRole != null">rt_role,</if>
|
||||
<if test="rtPeople != null">rt_people,</if>
|
||||
<if test="rtPurpose != null">rt_purpose,</if>
|
||||
<if test="rtTime != null">rt_time,</if>
|
||||
<if test="rtTimePeriod != null">rt_time_period,</if>
|
||||
<if test="rtState != null">rt_state,</if>
|
||||
<if test="rtImgs != null">rt_imgs,</if>
|
||||
<if test="rtCreatTime != null">rt_creat_time,</if>
|
||||
<if test="rtUpTime != null">rt_up_time,</if>
|
||||
<if test="rtCreatRole != null">rt_creat_role,</if>
|
||||
<if test="rtDepar != null">rt_depar,</if>
|
||||
<if test="auditStatus != null">audit_status,</if>
|
||||
<if test="editOpinion != null">edit_opinion,</if>
|
||||
<if test="feedback != null">feedback,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="rtNo != null">#{rtNo},</if>
|
||||
<if test="roomNo != null">#{roomNo},</if>
|
||||
<if test="roomName != null">#{roomName},</if>
|
||||
<if test="rtTheme != null">#{rtTheme},</if>
|
||||
<if test="rtRole != null">#{rtRole},</if>
|
||||
<if test="rtPeople != null">#{rtPeople},</if>
|
||||
<if test="rtPurpose != null">#{rtPurpose},</if>
|
||||
<if test="rtTime != null">#{rtTime},</if>
|
||||
<if test="rtTimePeriod != null">#{rtTimePeriod},</if>
|
||||
<if test="rtState != null">#{rtState},</if>
|
||||
<if test="rtImgs != null">#{rtImgs},</if>
|
||||
<if test="rtCreatTime != null">#{rtCreatTime},</if>
|
||||
<if test="rtUpTime != null">#{rtUpTime},</if>
|
||||
<if test="rtCreatRole != null">#{rtCreatRole},</if>
|
||||
<if test="rtDepar != null">#{rtDepar},</if>
|
||||
<if test="auditStatus != null">#{auditStatus},</if>
|
||||
<if test="editOpinion != null">#{editOpinion},</if>
|
||||
<if test="feedback != null">#{feedback},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateStaffOneStopRoomReservation" parameterType="StaffOneStopRoomReservation">
|
||||
update staff_one_stop_room_reservation
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="rtNo != null">rt_no = #{rtNo},</if>
|
||||
<if test="roomNo != null">room_no = #{roomNo},</if>
|
||||
<if test="roomName != null">room_name = #{roomName},</if>
|
||||
<if test="rtTheme != null">rt_theme = #{rtTheme},</if>
|
||||
<if test="rtRole != null">rt_role = #{rtRole},</if>
|
||||
<if test="rtPeople != null">rt_people = #{rtPeople},</if>
|
||||
<if test="rtPurpose != null">rt_purpose = #{rtPurpose},</if>
|
||||
<if test="rtTime != null">rt_time = #{rtTime},</if>
|
||||
<if test="rtTimePeriod != null">rt_time_period = #{rtTimePeriod},</if>
|
||||
<if test="rtState != null">rt_state = #{rtState},</if>
|
||||
<if test="rtImgs != null">rt_imgs = #{rtImgs},</if>
|
||||
<if test="rtCreatTime != null">rt_creat_time = #{rtCreatTime},</if>
|
||||
<if test="rtUpTime != null">rt_up_time = #{rtUpTime},</if>
|
||||
<if test="rtCreatRole != null">rt_creat_role = #{rtCreatRole},</if>
|
||||
<if test="rtDepar != null">rt_depar = #{rtDepar},</if>
|
||||
<if test="auditStatus != null">audit_status = #{auditStatus},</if>
|
||||
<if test="editOpinion != null">edit_opinion = #{editOpinion},</if>
|
||||
<if test="feedback != null">feedback = #{feedback},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where rt_id = #{rtId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteStaffOneStopRoomReservationByRtId" parameterType="Long">
|
||||
delete
|
||||
from staff_one_stop_room_reservation
|
||||
where rt_id = #{rtId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteStaffOneStopRoomReservationByRtIds" parameterType="String">
|
||||
delete from staff_one_stop_room_reservation where rt_id in
|
||||
<foreach item="rtId" collection="array" open="(" separator="," close=")">
|
||||
#{rtId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
73
srs-staff/src/main/resources/mapper/staff/SysRfileMapper.xml
Normal file
73
srs-staff/src/main/resources/mapper/staff/SysRfileMapper.xml
Normal file
@@ -0,0 +1,73 @@
|
||||
<?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.staff.mapper.SysRfileMapper">
|
||||
|
||||
<resultMap type="SysRfile" id="SysRfileResult">
|
||||
<result property="rfileId" column="rfile_id" />
|
||||
<result property="rfileTitle" column="rfile_title" />
|
||||
<result property="rfilePath" column="rfile_path" />
|
||||
<result property="rfileType" column="rfile_type" />
|
||||
<result property="rfileDate" column="rfile_date" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSysRfileVo">
|
||||
select rfile_id, rfile_title, rfile_path, rfile_type, rfile_date from sys_rfile
|
||||
</sql>
|
||||
|
||||
<select id="selectSysRfileList" parameterType="SysRfile" resultMap="SysRfileResult">
|
||||
<include refid="selectSysRfileVo"/>
|
||||
<where>
|
||||
<if test="rfileTitle != null and rfileTitle != ''"> and rfile_title like concat('%', #{rfileTitle}, '%')</if>
|
||||
<if test="rfilePath != null and rfilePath != ''"> and rfile_path like concat('%', #{rfilePath}, '%')</if>
|
||||
<if test="rfileType != null and rfileType != ''"> and rfile_type like concat('%', #{rfileType}, '%')</if>
|
||||
<if test="rfileDate != null "> and rfile_date = #{rfileDate}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSysRfileByRfileId" parameterType="Long" resultMap="SysRfileResult">
|
||||
<include refid="selectSysRfileVo"/>
|
||||
where rfile_id = #{rfileId}
|
||||
</select>
|
||||
|
||||
<insert id="insertSysRfile" parameterType="SysRfile">
|
||||
insert into sys_rfile
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="rfileId != null">rfile_id,</if>
|
||||
<if test="rfileTitle != null and rfileTitle != ''">rfile_title,</if>
|
||||
<if test="rfilePath != null and rfilePath != ''">rfile_path,</if>
|
||||
<if test="rfileType != null and rfileType != ''">rfile_type,</if>
|
||||
<if test="rfileDate != null">rfile_date,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="rfileId != null">#{rfileId},</if>
|
||||
<if test="rfileTitle != null and rfileTitle != ''">#{rfileTitle},</if>
|
||||
<if test="rfilePath != null and rfilePath != ''">#{rfilePath},</if>
|
||||
<if test="rfileType != null and rfileType != ''">#{rfileType},</if>
|
||||
<if test="rfileDate != null">#{rfileDate},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSysRfile" parameterType="SysRfile">
|
||||
update sys_rfile
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="rfileTitle != null and rfileTitle != ''">rfile_title = #{rfileTitle},</if>
|
||||
<if test="rfilePath != null and rfilePath != ''">rfile_path = #{rfilePath},</if>
|
||||
<if test="rfileType != null and rfileType != ''">rfile_type = #{rfileType},</if>
|
||||
<if test="rfileDate != null">rfile_date = #{rfileDate},</if>
|
||||
</trim>
|
||||
where rfile_id = #{rfileId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSysRfileByRfileId" parameterType="Long">
|
||||
delete from sys_rfile where rfile_id = #{rfileId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSysRfileByRfileIds" parameterType="String">
|
||||
delete from sys_rfile where rfile_id in
|
||||
<foreach item="rfileId" collection="array" open="(" separator="," close=")">
|
||||
#{rfileId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
Reference in New Issue
Block a user