初始化
This commit is contained in:
328
srs-survey/src/main/java/com/srs/survey/domain/SurItinerary.java
Normal file
328
srs-survey/src/main/java/com/srs/survey/domain/SurItinerary.java
Normal file
@@ -0,0 +1,328 @@
|
||||
package com.srs.survey.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;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 学生假期返校对象 sur_itinerary
|
||||
*
|
||||
* @author srs
|
||||
* @date 2025-03-14
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
@ApiModel(value = "SurItinerary对象" , description = "学生假期返校表")
|
||||
@TableName("sur_itinerary")
|
||||
public class SurItinerary extends BaseEntity{
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
|
||||
@TableField(exist = false)
|
||||
public String surveyName;
|
||||
|
||||
@TableField(exist = false)
|
||||
public String teacherName;
|
||||
|
||||
@TableField(exist = false)
|
||||
public String tNo;
|
||||
|
||||
@TableField(exist = false)
|
||||
public String campusName;
|
||||
|
||||
|
||||
@TableField(exist = false)
|
||||
public String parkName;
|
||||
|
||||
@TableField(exist = false)
|
||||
public String buildingName;
|
||||
|
||||
@TableField(exist = false)
|
||||
public String roomNo;
|
||||
|
||||
|
||||
/**
|
||||
* 学生返校id
|
||||
*/
|
||||
@ApiModelProperty("学生返校id")
|
||||
@TableId( value="return_school_id", type = IdType.AUTO )
|
||||
public Long returnSchoolId;
|
||||
|
||||
/**
|
||||
* 学院id
|
||||
*/
|
||||
@ApiModelProperty("学院id")
|
||||
@TableField("dept_id")
|
||||
@Excel(name = "学院id")
|
||||
public Long deptId;
|
||||
|
||||
/**
|
||||
* 学院名称
|
||||
*/
|
||||
@ApiModelProperty("学院名称")
|
||||
@Excel(name = "学院名称")
|
||||
@TableField(exist = false)
|
||||
public String deptName;
|
||||
|
||||
/**
|
||||
* 学号
|
||||
*/
|
||||
@ApiModelProperty("学号")
|
||||
@TableField("stu_no")
|
||||
@Excel(name = "学号")
|
||||
public String stuNo;
|
||||
|
||||
/**
|
||||
* 所属班级id
|
||||
*/
|
||||
@ApiModelProperty("所属班级")
|
||||
@TableField("class_id")
|
||||
@Excel(name = "所属班级")
|
||||
public Long classId;
|
||||
|
||||
/**
|
||||
* 班级名称
|
||||
*/
|
||||
@ApiModelProperty("所属班级")
|
||||
@Excel(name = "所属班级")
|
||||
@TableField(exist = false)
|
||||
public String className;
|
||||
|
||||
/**
|
||||
* 姓名
|
||||
*/
|
||||
@ApiModelProperty("姓名")
|
||||
@TableField("name")
|
||||
@Excel(name = "姓名")
|
||||
public String name;
|
||||
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
@ApiModelProperty("联系电话")
|
||||
@TableField("phone")
|
||||
@Excel(name = "联系电话")
|
||||
public String phone;
|
||||
|
||||
/**
|
||||
* 紧急联系人
|
||||
*/
|
||||
@ApiModelProperty("紧急联系人")
|
||||
@TableField("emergency_contact")
|
||||
@Excel(name = "紧急联系人")
|
||||
public String emergencyContact;
|
||||
|
||||
/**
|
||||
* 紧急联系人电话
|
||||
*/
|
||||
@ApiModelProperty("紧急联系人电话")
|
||||
@TableField("emergency_contact_phone")
|
||||
@Excel(name = "紧急联系人电话")
|
||||
public String emergencyContactPhone;
|
||||
|
||||
/**
|
||||
* 所在校区
|
||||
*/
|
||||
@ApiModelProperty("所在校区")
|
||||
@TableField("school_district")
|
||||
@Excel(name = "所在校区")
|
||||
public String schoolDistrict;
|
||||
|
||||
/**
|
||||
* 公寓楼
|
||||
*/
|
||||
@ApiModelProperty("公寓楼")
|
||||
@TableField("apartment")
|
||||
@Excel(name = "公寓楼")
|
||||
public String apartment;
|
||||
|
||||
/**
|
||||
* 宿舍号
|
||||
*/
|
||||
@ApiModelProperty("宿舍号")
|
||||
@TableField("room")
|
||||
@Excel(name = "宿舍号")
|
||||
public String room;
|
||||
|
||||
/**
|
||||
* 计划返校时间
|
||||
*/
|
||||
@ApiModelProperty("计划返校时间")
|
||||
@TableField("scheduled_return_time")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "计划返校时间" , width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
public Date scheduledReturnTime;
|
||||
|
||||
/**
|
||||
* 是否到校
|
||||
*/
|
||||
@ApiModelProperty("是否到校")
|
||||
@TableField("reach_school_status")
|
||||
@Excel(name = "是否到校")
|
||||
public String reachSchoolStatus;
|
||||
|
||||
/**
|
||||
* 家长姓名
|
||||
*/
|
||||
@ApiModelProperty("家长姓名")
|
||||
@TableField("parent_name")
|
||||
@Excel(name = "家长姓名")
|
||||
public String parentName;
|
||||
|
||||
/**
|
||||
* 家长电话
|
||||
*/
|
||||
@ApiModelProperty("家长电话")
|
||||
@TableField("parent_phone")
|
||||
@Excel(name = "家长电话")
|
||||
public String parentPhone;
|
||||
|
||||
/**
|
||||
* 家长是否知晓
|
||||
*/
|
||||
@ApiModelProperty("家长是否知晓")
|
||||
@TableField("know")
|
||||
@Excel(name = "家长是否知晓")
|
||||
public String know;
|
||||
|
||||
/**
|
||||
* 未返校原因分类
|
||||
*/
|
||||
@ApiModelProperty("未返校原因分类")
|
||||
@TableField("absent_school_type")
|
||||
@Excel(name = "未返校原因分类")
|
||||
public String absentSchoolType;
|
||||
|
||||
/**
|
||||
* 未返校详细原因
|
||||
*/
|
||||
@ApiModelProperty("未返校详细原因")
|
||||
@TableField("absent_school_remark")
|
||||
@Excel(name = "未返校详细原因")
|
||||
public String absentSchoolRemark;
|
||||
|
||||
/**
|
||||
* 到校定位
|
||||
*/
|
||||
@ApiModelProperty("到校定位")
|
||||
@TableField("attend_school_gps")
|
||||
@Excel(name = "到校定位")
|
||||
public String attendSchoolGps;
|
||||
|
||||
/**
|
||||
* 到校时间
|
||||
*/
|
||||
@ApiModelProperty("到校时间")
|
||||
@TableField("attend_school_time")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "到校时间" , width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
public Date attendSchoolTime;
|
||||
|
||||
/**
|
||||
* 状态:0.保存,1.保存,2.已审核
|
||||
*/
|
||||
@ApiModelProperty("状态:0.保存,1.待审核,2.已审核")
|
||||
@TableField("status")
|
||||
@Excel(name = "状态:0.保存,1.待审核,2.已审核")
|
||||
public String status;
|
||||
|
||||
/**
|
||||
* 所属主题
|
||||
*/
|
||||
@ApiModelProperty("所属主题")
|
||||
@TableField("survey_id")
|
||||
@Excel(name = "所属主题")
|
||||
public Long surveyId;
|
||||
|
||||
|
||||
@ApiModelProperty("预计离校时间")
|
||||
@TableField("will_leave_time")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "预计离校时间" , width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
public Date willLeaveTime;
|
||||
|
||||
@ApiModelProperty("是否离校")
|
||||
@TableField("is_leave")
|
||||
@Excel(name = "是否离校")
|
||||
public String isLeave;
|
||||
|
||||
@ApiModelProperty("家长姓名1")
|
||||
@TableField("fam_name")
|
||||
@Excel(name = "家长姓名1")
|
||||
public String famName;
|
||||
|
||||
@ApiModelProperty("家长电话1")
|
||||
@TableField("fam_phone")
|
||||
@Excel(name = "家长电话1")
|
||||
public String famPhone;
|
||||
|
||||
@ApiModelProperty("家长是否知晓1")
|
||||
@TableField("fam_know")
|
||||
@Excel(name = "家长是否知晓1")
|
||||
public String famKnow;
|
||||
|
||||
|
||||
@ApiModelProperty("预计留校时间")
|
||||
@TableField("will_stay_time")
|
||||
@Excel(name = "预计留校时间")
|
||||
public String willStayTime;
|
||||
|
||||
@ApiModelProperty("离校或留校状态")
|
||||
@TableField("leave_status")
|
||||
@Excel(name = "离校或留校状态")
|
||||
public String leaveStatus;
|
||||
|
||||
@ApiModelProperty("是否到家")
|
||||
@TableField("is_home")
|
||||
@Excel(name = "是否到家")
|
||||
public String isHome;
|
||||
|
||||
@ApiModelProperty("到家定位")
|
||||
@TableField("home_gps")
|
||||
@Excel(name = "到家定位")
|
||||
public String homeGps;
|
||||
|
||||
@ApiModelProperty("留校事由")
|
||||
@TableField("stay_reason")
|
||||
@Excel(name = "留校事由")
|
||||
public String stayReason;
|
||||
|
||||
|
||||
@ApiModelProperty("去向地")
|
||||
@TableField("will_addr")
|
||||
@Excel(name = "去向地")
|
||||
public String willAddr;
|
||||
|
||||
|
||||
@TableField("home_gps_addr")
|
||||
public String homeGpsAddr;
|
||||
|
||||
@TableField("home_submit")
|
||||
public String homeSubmit;
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@TableField("home_gps_time")
|
||||
public Date homeGpsTime;
|
||||
|
||||
@TableField("more_dept_name")
|
||||
public String moreDeptName;
|
||||
|
||||
@TableField("stu_fdy_name")
|
||||
public String stuFdyName;
|
||||
|
||||
@TableField(exist = false)
|
||||
public Long pageNum;
|
||||
@TableField(exist = false)
|
||||
public Long pageSize;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
package com.srs.survey.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;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 学工去向调查发布 对象 sur_survey
|
||||
*
|
||||
* @author srs
|
||||
* @date 2025-03-13
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
@ApiModel(value = "SurSurvey对象" , description = "学工去向调查发布表 ")
|
||||
@TableName("sur_survey")
|
||||
public class SurSurvey extends BaseEntity{
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/**
|
||||
* 发布主题id
|
||||
*/
|
||||
@ApiModelProperty("发布主题id")
|
||||
@TableId("survey_id")
|
||||
private Long surveyId;
|
||||
|
||||
/**
|
||||
* 发布的主题
|
||||
*/
|
||||
@ApiModelProperty("发布的主题")
|
||||
@TableField("survey_name")
|
||||
@Excel(name = "发布的主题")
|
||||
private String surveyName;
|
||||
|
||||
/**
|
||||
* 截止时间
|
||||
*/
|
||||
@ApiModelProperty("截止时间")
|
||||
@TableField("cutoff_time")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "截止时间" , width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date cutoffTime;
|
||||
|
||||
/**
|
||||
* 状态:1、发布,0、关闭
|
||||
*/
|
||||
@ApiModelProperty("状态:1、发布,0、关闭")
|
||||
@TableField("status")
|
||||
@Excel(name = "状态:1、发布,0、关闭")
|
||||
private String status;
|
||||
|
||||
@TableField("count_date")
|
||||
public String countDate;
|
||||
|
||||
|
||||
@TableField(exist = false)
|
||||
public String isSubmit;
|
||||
|
||||
@TableField(exist = false)
|
||||
public String leaveStatus;
|
||||
|
||||
@TableField(exist = false)
|
||||
public String homeGps;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.srs.survey.domain.dto;
|
||||
|
||||
import com.srs.common.annotation.Excel;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class LeaveRes {
|
||||
@Excel(name = "学院")
|
||||
public String deptName;
|
||||
@Excel(name = "在学生人数")
|
||||
public int stuNum;
|
||||
@Excel(name = "预计离校学院人数")
|
||||
public int deptLeaveNum;
|
||||
@Excel(name = "计划离校人数")
|
||||
public int schoolLeavers;
|
||||
@Excel(name = "实际离校(到达目的地)")
|
||||
public int homeNum;
|
||||
@Excel(name = "留校人数")
|
||||
public int stayNum;
|
||||
@Excel(name = "返校")
|
||||
public int schoolNum;
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.srs.survey.domain.dto;
|
||||
|
||||
import com.srs.common.annotation.Excel;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ReturnRes {
|
||||
|
||||
@Excel(name = "学院")
|
||||
public String deptName;
|
||||
@Excel(name = "年级")
|
||||
public String gradeName;
|
||||
@Excel(name = "学生数")
|
||||
public int stuNum;
|
||||
@Excel(name = "实习人数")
|
||||
public String shixi;
|
||||
@Excel(name = "应返校人数")
|
||||
public String yingfanxiao;
|
||||
@Excel(name = "实际累计返校")
|
||||
public String yifanxiao;
|
||||
@Excel(name = "未返校")
|
||||
public String weifanxiao;
|
||||
@Excel(name = "路上")
|
||||
public String lushang;
|
||||
@Excel(name = "病假")
|
||||
public String bingjia;
|
||||
@Excel(name = "无票")
|
||||
public String wupiao;
|
||||
@Excel(name = "无课请事假延长")
|
||||
public String wuke;
|
||||
@Excel(name = "事假")
|
||||
public String shijia;
|
||||
@Excel(name = "红白事")
|
||||
public String hongbaishi;
|
||||
@Excel(name = "考试")
|
||||
public String kaoshi;
|
||||
@Excel(name = "参赛")
|
||||
public String cansai;
|
||||
@Excel(name = "兵检或役前训练")
|
||||
public String bingjian;
|
||||
@Excel(name = "退学或休学")
|
||||
public String tuixue;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.srs.survey.domain.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class SubmitRes {
|
||||
public int submitNum;
|
||||
public String moreDeptName;
|
||||
public int homeNum;
|
||||
public int stayNum;
|
||||
public int schoolNum;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.srs.survey.domain.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class SurItineraryStatisticsVo {
|
||||
private String moreDeptName; // 学院名称
|
||||
private Integer expectedLeaveCount; // 预计离校数量
|
||||
private Integer stayCount; // 留校数量
|
||||
private Integer homeCount; // 到家数量
|
||||
private Integer returnCount; // 返校数量
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
package com.srs.survey.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.srs.survey.domain.SurItinerary;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.srs.survey.domain.dto.LeaveRes;
|
||||
import com.srs.survey.domain.dto.ReturnRes;
|
||||
import com.srs.survey.domain.dto.SubmitRes;
|
||||
import com.srs.survey.domain.vo.SurItineraryStatisticsVo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* 学生假期返校Mapper接口
|
||||
*
|
||||
* @author srs
|
||||
* @date 2025-03-14
|
||||
*/
|
||||
@Mapper
|
||||
public interface SurItineraryMapper extends BaseMapper<SurItinerary> {
|
||||
|
||||
public List<Map<String, Object>> countWillLeave(Long surveyId);
|
||||
|
||||
public List<Map<String, Object>> countFdyClassWillLeave(@Param("surveyId") Long surveyId,@Param("fdyNo") String fdyNo);
|
||||
|
||||
public List<Map<String, Object>> listSubmitRes(Long surveyId);
|
||||
|
||||
public List<LeaveRes> listLeaveRes(Long surveyId);
|
||||
|
||||
public List<ReturnRes> listReturnRes(Long surveyId);
|
||||
|
||||
|
||||
public List<SurItinerary> listView(SurItinerary param);
|
||||
|
||||
|
||||
public List<Map<String, Object>> listReturnRes1(Long surveyId);
|
||||
|
||||
|
||||
/**
|
||||
* 查询学生假期返校
|
||||
*
|
||||
* @param returnSchoolId 学生假期返校主键
|
||||
* @return 学生假期返校
|
||||
*/
|
||||
public SurItinerary selectSurItineraryByReturnSchoolId(Long returnSchoolId);
|
||||
|
||||
/**
|
||||
* 查询学生假期返校列表
|
||||
*
|
||||
* @param surItinerary 学生假期返校
|
||||
* @return 学生假期返校集合
|
||||
*/
|
||||
List<SurItinerary> selectSurItineraryList(SurItinerary surItinerary);
|
||||
|
||||
/**
|
||||
* 新增学生假期返校
|
||||
*
|
||||
* @param surItinerary 学生假期返校
|
||||
* @return 结果
|
||||
*/
|
||||
int insertSurItinerary(SurItinerary surItinerary);
|
||||
|
||||
/**
|
||||
* 修改学生假期返校
|
||||
*
|
||||
* @param surItinerary 学生假期返校
|
||||
* @return 结果
|
||||
*/
|
||||
int updateSurItinerary(SurItinerary surItinerary);
|
||||
|
||||
/**
|
||||
* 删除学生假期返校
|
||||
*
|
||||
* @param returnSchoolId 学生假期返校主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteSurItineraryByReturnSchoolId(Long returnSchoolId);
|
||||
|
||||
/**
|
||||
* 批量删除学生假期返校
|
||||
*
|
||||
* @param returnSchoolIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteSurItineraryByReturnSchoolIds(Long[] returnSchoolIds);
|
||||
/**
|
||||
* 审核学生假期返校
|
||||
*/
|
||||
int auditItinerary(Long returnSchoolId);
|
||||
/**
|
||||
* 批量审核学生
|
||||
*/
|
||||
int batchAuditItinerary(Long[] returnSchoolId);
|
||||
|
||||
List<SurItineraryStatisticsVo> getItineraryStatistics(@Param("surveyId") Long surveyId);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.srs.survey.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.srs.survey.domain.SurSurvey;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 学工去向调查发布 Mapper接口
|
||||
*
|
||||
* @author srs
|
||||
* @date 2025-03-13
|
||||
*/
|
||||
public interface SurSurveyMapper extends BaseMapper<SurSurvey> {
|
||||
/**
|
||||
* 查询学工去向调查发布
|
||||
*
|
||||
* @param surveyId 学工去向调查发布 主键
|
||||
* @return 学工去向调查发布
|
||||
*/
|
||||
public SurSurvey selectSurSurveyBySurveyId(Long surveyId);
|
||||
|
||||
/**
|
||||
* 查询学工去向调查发布 列表
|
||||
*
|
||||
* @param surSurvey 学工去向调查发布
|
||||
* @return 学工去向调查发布 集合
|
||||
*/
|
||||
List<SurSurvey> selectSurSurveyList(SurSurvey surSurvey);
|
||||
|
||||
/**
|
||||
* 新增学工去向调查发布
|
||||
*
|
||||
* @param surSurvey 学工去向调查发布
|
||||
* @return 结果
|
||||
*/
|
||||
int insertSurSurvey(SurSurvey surSurvey);
|
||||
|
||||
/**
|
||||
* 修改学工去向调查发布
|
||||
*
|
||||
* @param surSurvey 学工去向调查发布
|
||||
* @return 结果
|
||||
*/
|
||||
int updateSurSurvey(SurSurvey surSurvey);
|
||||
|
||||
/**
|
||||
* 删除学工去向调查发布
|
||||
*
|
||||
* @param surveyId 学工去向调查发布 主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteSurSurveyBySurveyId(Long surveyId);
|
||||
|
||||
/**
|
||||
* 批量删除学工去向调查发布
|
||||
*
|
||||
* @param surveyIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteSurSurveyBySurveyIds(Long[] surveyIds);
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
package com.srs.survey.service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.srs.common.core.domain.AjaxResult;
|
||||
import com.srs.comprehensive.domain.ViewStuInfo;
|
||||
import com.srs.survey.domain.SurItinerary;
|
||||
import com.srs.survey.domain.dto.LeaveRes;
|
||||
import com.srs.survey.domain.dto.ReturnRes;
|
||||
import com.srs.survey.domain.dto.SubmitRes;
|
||||
import com.srs.survey.domain.vo.SurItineraryStatisticsVo;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
|
||||
/**
|
||||
* 学生假期返校Service接口
|
||||
*
|
||||
* @author srs
|
||||
* @date 2025-03-14
|
||||
*/
|
||||
public interface ISurItineraryService extends IService<SurItinerary> {
|
||||
|
||||
|
||||
public AjaxResult sendFdyStuLeaveMsg(SurItinerary param);
|
||||
public AjaxResult sendFdyStuReturnMsg(SurItinerary param);
|
||||
|
||||
public Map<String,Object> listFdyStuReturn(SurItinerary param);
|
||||
|
||||
public Map<String,Object> listFdyStuLeave(SurItinerary param);
|
||||
|
||||
public List<Map<String, Object>> listSubmitRes(Long surveyId);
|
||||
|
||||
public List<Map<String, Object>> countWillLeave(Long surveyId);
|
||||
|
||||
|
||||
public List<Map<String, Object>> countFdyClassWillLeave(Long surveyId,String fdyNo);
|
||||
|
||||
public List<Map<String, Object>> listReturnRes1(Long surveyId);
|
||||
|
||||
public List<LeaveRes> listLeaveRes(Long surveyId);
|
||||
|
||||
public List<ReturnRes> listReturnRes(Long surveyId);
|
||||
|
||||
public AjaxResult getStuCampus();
|
||||
|
||||
public AjaxResult updateStuHomeGpsAddr(SurItinerary param);
|
||||
|
||||
public AjaxResult stuSchoolUpdate(SurItinerary param);
|
||||
|
||||
public AjaxResult manyReturnAudit(Long[] ids);
|
||||
|
||||
public AjaxResult returnAudit(SurItinerary param);
|
||||
|
||||
public AjaxResult stuWillReturnUpdate(SurItinerary param);
|
||||
|
||||
public AjaxResult boolStuOwnReturn(Long id);
|
||||
|
||||
public AjaxResult stuHomeUpdate(SurItinerary param);
|
||||
|
||||
public AjaxResult manyLeaveAudit(Long[] ids);
|
||||
|
||||
public AjaxResult leaveAudit(SurItinerary param);
|
||||
|
||||
public List<SurItinerary> listView(SurItinerary param);
|
||||
|
||||
public AjaxResult stuGetRecordBySvId(Long svId) ;
|
||||
|
||||
public AjaxResult stuLeaveApply(SurItinerary param) ;
|
||||
|
||||
/**
|
||||
* 查询学生假期返校
|
||||
*
|
||||
* @param returnSchoolId 学生假期返校主键
|
||||
* @return 学生假期返校
|
||||
*/
|
||||
public SurItinerary selectSurItineraryByReturnSchoolId(Long returnSchoolId);
|
||||
|
||||
/**
|
||||
* 查询学生假期返校列表
|
||||
*
|
||||
* @param surItinerary 学生假期返校
|
||||
* @return 学生假期返校集合
|
||||
*/
|
||||
List<SurItinerary> selectSurItineraryList(SurItinerary surItinerary);
|
||||
|
||||
/**
|
||||
* 新增学生假期返校
|
||||
*
|
||||
* @param surItinerary 学生假期返校
|
||||
* @return 结果
|
||||
*/
|
||||
int insertSurItinerary(SurItinerary surItinerary);
|
||||
|
||||
/**
|
||||
* 修改学生假期返校
|
||||
*
|
||||
* @param surItinerary 学生假期返校
|
||||
* @return 结果
|
||||
*/
|
||||
int updateSurItinerary(SurItinerary surItinerary);
|
||||
|
||||
/**
|
||||
* 批量删除学生假期返校
|
||||
*
|
||||
* @param returnSchoolIds 需要删除的学生假期返校主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteSurItineraryByReturnSchoolIds(Long[] returnSchoolIds);
|
||||
|
||||
/**
|
||||
* 删除学生假期返校信息
|
||||
*
|
||||
* @param returnSchoolId 学生假期返校主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteSurItineraryByReturnSchoolId(Long returnSchoolId);
|
||||
/**
|
||||
* 审核学生
|
||||
*/
|
||||
int auditItinerary(Long returnSchoolId);
|
||||
int batchAuditItinerary(Long[] returnSchoolId);
|
||||
|
||||
List<SurItineraryStatisticsVo> getItineraryStatistics(Long surveyId);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
package com.srs.survey.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.srs.common.core.domain.AjaxResult;
|
||||
import com.srs.survey.domain.SurSurvey;
|
||||
|
||||
/**
|
||||
* 学工去向调查发布 Service接口
|
||||
*
|
||||
* @author srs
|
||||
* @date 2025-03-13
|
||||
*/
|
||||
public interface ISurSurveyService extends IService<SurSurvey> {
|
||||
|
||||
|
||||
public AjaxResult listStu(SurSurvey param);
|
||||
|
||||
/**
|
||||
* 查询学工去向调查发布
|
||||
*
|
||||
* @param surveyId 学工去向调查发布 主键
|
||||
* @return 学工去向调查发布
|
||||
*/
|
||||
public SurSurvey selectSurSurveyBySurveyId(Long surveyId);
|
||||
|
||||
/**
|
||||
* 查询学工去向调查发布 列表
|
||||
*
|
||||
* @param surSurvey 学工去向调查发布
|
||||
* @return 学工去向调查发布 集合
|
||||
*/
|
||||
List<SurSurvey> selectSurSurveyList(SurSurvey surSurvey);
|
||||
|
||||
/**
|
||||
* 新增学工去向调查发布
|
||||
*
|
||||
* @param surSurvey 学工去向调查发布
|
||||
* @return 结果
|
||||
*/
|
||||
int insertSurSurvey(SurSurvey surSurvey);
|
||||
|
||||
/**
|
||||
* 修改学工去向调查发布
|
||||
*
|
||||
* @param surSurvey 学工去向调查发布
|
||||
* @return 结果
|
||||
*/
|
||||
int updateSurSurvey(SurSurvey surSurvey);
|
||||
|
||||
/**
|
||||
* 批量删除学工去向调查发布
|
||||
*
|
||||
* @param surveyIds 需要删除的学工去向调查发布 主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteSurSurveyBySurveyIds(Long[] surveyIds);
|
||||
|
||||
/**
|
||||
* 删除学工去向调查发布 信息
|
||||
*
|
||||
* @param surveyId 学工去向调查发布 主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteSurSurveyBySurveyId(Long surveyId);
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,124 @@
|
||||
package com.srs.survey.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.srs.common.core.domain.AjaxResult;
|
||||
import com.srs.common.utils.DateUtils;
|
||||
import com.srs.survey.domain.SurItinerary;
|
||||
import com.srs.survey.mapper.SurItineraryMapper;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.srs.survey.mapper.SurSurveyMapper;
|
||||
import com.srs.survey.domain.SurSurvey;
|
||||
import com.srs.survey.service.ISurSurveyService;
|
||||
|
||||
import static com.srs.common.utils.SecurityUtils.getUsername;
|
||||
|
||||
/**
|
||||
* 学工去向调查发布 Service业务层处理
|
||||
*
|
||||
* @author srs
|
||||
* @date 2025-03-13
|
||||
*/
|
||||
@Service
|
||||
public class SurSurveyServiceImpl extends ServiceImpl<SurSurveyMapper,SurSurvey> implements ISurSurveyService {
|
||||
@Autowired
|
||||
private SurSurveyMapper surSurveyMapper;
|
||||
@Autowired
|
||||
private SurItineraryMapper _itineraryMapper;
|
||||
|
||||
@Override
|
||||
public AjaxResult listStu(SurSurvey param){
|
||||
QueryWrapper<SurSurvey> queryWrapper = new QueryWrapper<>();
|
||||
if(param.getSurveyName()!=null && !param.getSurveyName().equals("")){
|
||||
queryWrapper.like("survey_name",param.getSurveyName());
|
||||
}
|
||||
queryWrapper.eq("status",1);
|
||||
queryWrapper.orderByDesc("survey_id");
|
||||
List<SurSurvey> list = surSurveyMapper.selectList(queryWrapper);
|
||||
list.forEach(item->{
|
||||
QueryWrapper<SurItinerary> queryWrapper1 = new QueryWrapper<>();
|
||||
queryWrapper1.eq("stu_no",getUsername());
|
||||
queryWrapper1.eq("survey_id",item.getSurveyId());
|
||||
List<SurItinerary> list1 = _itineraryMapper.selectList(queryWrapper1);
|
||||
if(list1.size()>0){
|
||||
item.leaveStatus = list1.get(0).getLeaveStatus();
|
||||
item.isSubmit = "是";
|
||||
item.homeGps = list1.get(0).getHomeGps();
|
||||
}else{
|
||||
item.isSubmit = "否";
|
||||
}
|
||||
});
|
||||
|
||||
return AjaxResult.success(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询学工去向调查发布
|
||||
*
|
||||
* @param surveyId 学工去向调查发布 主键
|
||||
* @return 学工去向调查发布
|
||||
*/
|
||||
@Override
|
||||
public SurSurvey selectSurSurveyBySurveyId(Long surveyId) {
|
||||
return surSurveyMapper.selectSurSurveyBySurveyId(surveyId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询学工去向调查发布 列表
|
||||
*
|
||||
* @param surSurvey 学工去向调查发布
|
||||
* @return 学工去向调查发布
|
||||
*/
|
||||
@Override
|
||||
public List<SurSurvey> selectSurSurveyList(SurSurvey surSurvey) {
|
||||
return surSurveyMapper.selectSurSurveyList(surSurvey);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增学工去向调查发布
|
||||
*
|
||||
* @param surSurvey 学工去向调查发布
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSurSurvey(SurSurvey surSurvey) {
|
||||
surSurvey.setCreateTime(DateUtils.getNowDate());
|
||||
return surSurveyMapper.insertSurSurvey(surSurvey);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改学工去向调查发布
|
||||
*
|
||||
* @param surSurvey 学工去向调查发布
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSurSurvey(SurSurvey surSurvey) {
|
||||
return surSurveyMapper.updateSurSurvey(surSurvey);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除学工去向调查发布
|
||||
*
|
||||
* @param surveyIds 需要删除的学工去向调查发布 主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSurSurveyBySurveyIds(Long[] surveyIds) {
|
||||
return surSurveyMapper.deleteSurSurveyBySurveyIds(surveyIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除学工去向调查发布 信息
|
||||
*
|
||||
* @param surveyId 学工去向调查发布 主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSurSurveyBySurveyId(Long surveyId) {
|
||||
return surSurveyMapper.deleteSurSurveyBySurveyId(surveyId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user