初始化
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user