提交代码
This commit is contained in:
1 parent
e60161f7b9
commit
8e1c094d6e
33 files changed
+6946
No files matched your search
@@ -0,0 +1,203 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import {
|
||||
DormHygieneCheckVO,
|
||||
DormHygieneCheckForm,
|
||||
DormHygieneCheckQuery,
|
||||
DormHygieneCheckCompleteForm,
|
||||
DormHygieneStudentScoreVO,
|
||||
DormHygieneStudentScoreForm,
|
||||
DormHygieneStudentScoreQuery
|
||||
} from '@/api/xg/xgss/dormHygieneCheck/dormHygieneCheck/types';
|
||||
|
||||
/**
|
||||
* 查询宿舍卫生检查列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listDormHygieneCheck = (query?: DormHygieneCheckQuery): AxiosPromise<DormHygieneCheckVO[]> => {
|
||||
return request({
|
||||
url: '/dormHygieneCheck/dormHygieneCheck/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询宿舍卫生检查详细
|
||||
* @param id
|
||||
*/
|
||||
export const getDormHygieneCheck = (id: string | number): AxiosPromise<DormHygieneCheckVO> => {
|
||||
return request({
|
||||
url: '/dormHygieneCheck/dormHygieneCheck/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增宿舍卫生检查(包含学生评分数据)
|
||||
* @param data 完整的宿舍卫生检查数据,包含学生评分信息
|
||||
*/
|
||||
export const addDormHygieneCheck = (data: DormHygieneCheckCompleteForm) => {
|
||||
return request({
|
||||
url: '/dormHygieneCheck/dormHygieneCheck/addWithStudentScores',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改宿舍卫生检查(包含学生评分数据)
|
||||
* @param data 完整的宿舍卫生检查数据,包含学生评分信息
|
||||
*/
|
||||
export const updateDormHygieneCheck = (data: DormHygieneCheckCompleteForm) => {
|
||||
return request({
|
||||
url: '/dormHygieneCheck/dormHygieneCheck/updateWithStudentScores',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除宿舍卫生检查
|
||||
* @param id
|
||||
*/
|
||||
export const delDormHygieneCheck = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/dormHygieneCheck/dormHygieneCheck/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询宿舍卫生检查学生评分列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const listDormHygieneStudentScores = (query?: DormHygieneStudentScoreQuery): AxiosPromise<DormHygieneStudentScoreVO[]> => {
|
||||
return request({
|
||||
url: '/dormHygieneCheck/dormHygieneStudentScore/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询宿舍卫生检查学生评分详细
|
||||
* @param id
|
||||
*/
|
||||
export const getDormHygieneStudentScore = (id: string | number): AxiosPromise<DormHygieneStudentScoreVO> => {
|
||||
return request({
|
||||
url: '/dormHygieneCheck/dormHygieneStudentScore/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增宿舍卫生检查学生评分
|
||||
* @param data
|
||||
*/
|
||||
export const addDormHygieneStudentScore = (data: DormHygieneStudentScoreForm) => {
|
||||
return request({
|
||||
url: '/dormHygieneCheck/dormHygieneStudentScore',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改宿舍卫生检查学生评分
|
||||
* @param data
|
||||
*/
|
||||
export const updateDormHygieneStudentScore = (data: DormHygieneStudentScoreForm) => {
|
||||
return request({
|
||||
url: '/dormHygieneCheck/dormHygieneStudentScore',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除宿舍卫生检查学生评分
|
||||
* @param id
|
||||
*/
|
||||
export const delDormHygieneStudentScore = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/dormHygieneCheck/dormHygieneStudentScore/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 根据卫生检查ID查询学生评分列表
|
||||
* @param hygieneCheckId 卫生检查ID
|
||||
* @returns 学生评分列表
|
||||
*/
|
||||
export const getStudentScoresByCheckId = (hygieneCheckId: string | number): AxiosPromise<DormHygieneStudentScoreVO[]> => {
|
||||
return request({
|
||||
url: '/dormHygieneCheck/dormHygieneStudentScore/getByCheckId/' + hygieneCheckId,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 批量删除指定卫生检查的学生评分记录
|
||||
* @param hygieneCheckId 卫生检查ID
|
||||
*/
|
||||
export const deleteStudentScoresByCheckId = (hygieneCheckId: string | number) => {
|
||||
return request({
|
||||
url: '/dormHygieneCheck/dormHygieneStudentScore/deleteByCheckId/' + hygieneCheckId,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取校区选项列表
|
||||
* @returns 校区选项列表
|
||||
*/
|
||||
export const getCampusOptions = (): AxiosPromise<any[]> => {
|
||||
return request({
|
||||
url: '/xqxx/dormCampus/list',
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取指定校区的宿舍区选项列表
|
||||
* @param campusId 校区ID
|
||||
* @returns 宿舍区选项列表
|
||||
*/
|
||||
export const getAreaOptions = (campusId?: string | number): AxiosPromise<any[]> => {
|
||||
return request({
|
||||
url: '/ssqxx/dormArea/list',
|
||||
method: 'get',
|
||||
params: campusId ? { campusId } : undefined
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取指定宿舍区的宿舍楼选项列表
|
||||
* @param areaId 宿舍区ID
|
||||
* @returns 宿舍楼选项列表
|
||||
*/
|
||||
export const getBuildingOptions = (areaId?: string | number): AxiosPromise<any[]> => {
|
||||
return request({
|
||||
url: '/sslxx/dormBuilding/list',
|
||||
method: 'get',
|
||||
params: areaId ? { areaId } : undefined
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取指定宿舍楼的房间选项列表
|
||||
* @param buildingId 宿舍楼ID
|
||||
* @returns 房间选项列表
|
||||
*/
|
||||
export const getRoomOptions = (buildingId?: string | number): AxiosPromise<any[]> => {
|
||||
return request({
|
||||
url: '/xgss/dormRoom/list',
|
||||
method: 'get',
|
||||
params: buildingId ? { buildingId } : undefined
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,648 @@
|
||||
export interface DormHygieneCheckVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 删除标志(0代表存在 1代表删除)
|
||||
*/
|
||||
deleted: number;
|
||||
|
||||
/**
|
||||
* 检查标题
|
||||
*/
|
||||
checkTitle: string;
|
||||
|
||||
/**
|
||||
* 检查日期
|
||||
*/
|
||||
checkDate: string;
|
||||
|
||||
/**
|
||||
* 检查员ID,关联sys_user.id
|
||||
*/
|
||||
checkerId: string | number;
|
||||
|
||||
/**
|
||||
* 检查员姓名
|
||||
*/
|
||||
checkerName: string;
|
||||
|
||||
/**
|
||||
* 检查类型(1日常检查 2专项检查 3突击检查 4复查)
|
||||
*/
|
||||
checkType: string;
|
||||
|
||||
/**
|
||||
* 检查级别(1宿管员 2学院 3学校)
|
||||
*/
|
||||
checkLevel: string;
|
||||
|
||||
/**
|
||||
* 宿舍房间ID,关联xg_dorm_room.id
|
||||
*/
|
||||
roomId: string | number;
|
||||
|
||||
/**
|
||||
* 房间编号
|
||||
*/
|
||||
roomCode: string;
|
||||
|
||||
/**
|
||||
* 房间名称
|
||||
*/
|
||||
roomName: string;
|
||||
|
||||
/**
|
||||
* 宿舍楼ID,关联xg_dorm_building.id
|
||||
*/
|
||||
buildingId: string | number;
|
||||
|
||||
/**
|
||||
* 宿舍楼名称
|
||||
*/
|
||||
buildingName: string;
|
||||
|
||||
/**
|
||||
* 宿舍区ID,关联xg_dorm_area.id
|
||||
*/
|
||||
areaId: string | number;
|
||||
|
||||
/**
|
||||
* 宿舍区名称
|
||||
*/
|
||||
areaName: string;
|
||||
|
||||
/**
|
||||
* 校区ID,关联xg_dorm_campus.id
|
||||
*/
|
||||
campusId: string | number;
|
||||
|
||||
/**
|
||||
* 校区名称
|
||||
*/
|
||||
campusName: string;
|
||||
|
||||
/**
|
||||
* 宿舍总分(0-100分)
|
||||
*/
|
||||
totalScore: number;
|
||||
|
||||
/**
|
||||
* 卫生等级(A优秀 B良好 C合格 D不合格)
|
||||
*/
|
||||
hygieneGrade: string;
|
||||
|
||||
/**
|
||||
* 附件OSS ID列表,逗号分隔
|
||||
*/
|
||||
attachmentIds: string | number;
|
||||
|
||||
/**
|
||||
* 检查总结
|
||||
*/
|
||||
checkSummary: string;
|
||||
|
||||
/**
|
||||
* 整改建议
|
||||
*/
|
||||
improvementSuggestions: string;
|
||||
|
||||
/**
|
||||
* 检查备注
|
||||
*/
|
||||
checkRemarks: string;
|
||||
|
||||
}
|
||||
|
||||
export interface DormHygieneCheckForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 删除标志(0代表存在 1代表删除)
|
||||
*/
|
||||
deleted?: number;
|
||||
|
||||
/**
|
||||
* 检查标题
|
||||
*/
|
||||
checkTitle?: string;
|
||||
|
||||
/**
|
||||
* 检查日期
|
||||
*/
|
||||
checkDate?: string;
|
||||
|
||||
/**
|
||||
* 检查员ID,关联sys_user.id
|
||||
*/
|
||||
checkerId?: string | number;
|
||||
|
||||
/**
|
||||
* 检查员姓名
|
||||
*/
|
||||
checkerName?: string;
|
||||
|
||||
/**
|
||||
* 检查类型(1日常检查 2专项检查 3突击检查 4复查)
|
||||
*/
|
||||
checkType?: string;
|
||||
|
||||
/**
|
||||
* 检查级别(1宿管员 2学院 3学校)
|
||||
*/
|
||||
checkLevel?: string;
|
||||
|
||||
/**
|
||||
* 宿舍房间ID,关联xg_dorm_room.id
|
||||
*/
|
||||
roomId?: string | number;
|
||||
|
||||
/**
|
||||
* 房间编号
|
||||
*/
|
||||
roomCode?: string;
|
||||
|
||||
/**
|
||||
* 房间名称
|
||||
*/
|
||||
roomName?: string;
|
||||
|
||||
/**
|
||||
* 宿舍楼ID,关联xg_dorm_building.id
|
||||
*/
|
||||
buildingId?: string | number;
|
||||
|
||||
/**
|
||||
* 宿舍楼名称
|
||||
*/
|
||||
buildingName?: string;
|
||||
|
||||
/**
|
||||
* 宿舍区ID,关联xg_dorm_area.id
|
||||
*/
|
||||
areaId?: string | number;
|
||||
|
||||
/**
|
||||
* 宿舍区名称
|
||||
*/
|
||||
areaName?: string;
|
||||
|
||||
/**
|
||||
* 校区ID,关联xg_dorm_campus.id
|
||||
*/
|
||||
campusId?: string | number;
|
||||
|
||||
/**
|
||||
* 校区名称
|
||||
*/
|
||||
campusName?: string;
|
||||
|
||||
/**
|
||||
* 宿舍总分(0-100分)
|
||||
*/
|
||||
totalScore?: number;
|
||||
|
||||
/**
|
||||
* 卫生等级(A优秀 B良好 C合格 D不合格)
|
||||
*/
|
||||
hygieneGrade?: string;
|
||||
|
||||
/**
|
||||
* 附件OSS ID列表,逗号分隔
|
||||
*/
|
||||
attachmentIds?: string | number;
|
||||
|
||||
/**
|
||||
* 检查总结
|
||||
*/
|
||||
checkSummary?: string;
|
||||
|
||||
/**
|
||||
* 整改建议
|
||||
*/
|
||||
improvementSuggestions?: string;
|
||||
|
||||
/**
|
||||
* 检查备注
|
||||
*/
|
||||
checkRemarks?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface DormHygieneCheckQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 删除标志(0代表存在 1代表删除)
|
||||
*/
|
||||
deleted?: number;
|
||||
|
||||
/**
|
||||
* 检查标题
|
||||
*/
|
||||
checkTitle?: string;
|
||||
|
||||
/**
|
||||
* 检查日期
|
||||
*/
|
||||
checkDate?: string;
|
||||
|
||||
/**
|
||||
* 检查员ID,关联sys_user.id
|
||||
*/
|
||||
checkerId?: string | number;
|
||||
|
||||
/**
|
||||
* 检查员姓名
|
||||
*/
|
||||
checkerName?: string;
|
||||
|
||||
/**
|
||||
* 检查类型(1日常检查 2专项检查 3突击检查 4复查)
|
||||
*/
|
||||
checkType?: string;
|
||||
|
||||
/**
|
||||
* 检查级别(1宿管员 2学院 3学校)
|
||||
*/
|
||||
checkLevel?: string;
|
||||
|
||||
/**
|
||||
* 宿舍房间ID,关联xg_dorm_room.id
|
||||
*/
|
||||
roomId?: string | number;
|
||||
|
||||
/**
|
||||
* 房间编号
|
||||
*/
|
||||
roomCode?: string;
|
||||
|
||||
/**
|
||||
* 房间名称
|
||||
*/
|
||||
roomName?: string;
|
||||
|
||||
/**
|
||||
* 宿舍楼ID,关联xg_dorm_building.id
|
||||
*/
|
||||
buildingId?: string | number;
|
||||
|
||||
/**
|
||||
* 宿舍楼名称
|
||||
*/
|
||||
buildingName?: string;
|
||||
|
||||
/**
|
||||
* 宿舍区ID,关联xg_dorm_area.id
|
||||
*/
|
||||
areaId?: string | number;
|
||||
|
||||
/**
|
||||
* 宿舍区名称
|
||||
*/
|
||||
areaName?: string;
|
||||
|
||||
/**
|
||||
* 校区ID,关联xg_dorm_campus.id
|
||||
*/
|
||||
campusId?: string | number;
|
||||
|
||||
/**
|
||||
* 校区名称
|
||||
*/
|
||||
campusName?: string;
|
||||
|
||||
/**
|
||||
* 宿舍总分(0-100分)
|
||||
*/
|
||||
totalScore?: number;
|
||||
|
||||
/**
|
||||
* 卫生等级(A优秀 B良好 C合格 D不合格)
|
||||
*/
|
||||
hygieneGrade?: string;
|
||||
|
||||
/**
|
||||
* 附件OSS ID列表,逗号分隔
|
||||
*/
|
||||
attachmentIds?: string | number;
|
||||
|
||||
/**
|
||||
* 检查总结
|
||||
*/
|
||||
checkSummary?: string;
|
||||
|
||||
/**
|
||||
* 整改建议
|
||||
*/
|
||||
improvementSuggestions?: string;
|
||||
|
||||
/**
|
||||
* 检查备注
|
||||
*/
|
||||
checkRemarks?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
// 宿舍级联选择相关类型
|
||||
export interface CampusOptionVO {
|
||||
id: string | number;
|
||||
campusName: string;
|
||||
}
|
||||
|
||||
export interface AreaOptionVO {
|
||||
id: string | number;
|
||||
areaName: string;
|
||||
}
|
||||
|
||||
export interface BuildingOptionVO {
|
||||
id: string | number;
|
||||
buildingName: string;
|
||||
}
|
||||
|
||||
export interface RoomOptionVO {
|
||||
id: string | number;
|
||||
roomName: string;
|
||||
roomCode?: string;
|
||||
}
|
||||
|
||||
// 学生评分相关类型定义
|
||||
export interface DormHygieneStudentScoreVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 删除标志(0代表存在 1代表删除)
|
||||
*/
|
||||
deleted: number;
|
||||
|
||||
/**
|
||||
* 卫生检查ID,关联xg_dorm_hygiene_check.id
|
||||
*/
|
||||
hygieneCheckId: string | number;
|
||||
|
||||
/**
|
||||
* 学生ID,关联xg_student_msg.id
|
||||
*/
|
||||
studentId: string | number;
|
||||
|
||||
/**
|
||||
* 学号
|
||||
*/
|
||||
studentNo: string;
|
||||
|
||||
/**
|
||||
* 学生姓名
|
||||
*/
|
||||
studentName: string;
|
||||
|
||||
/**
|
||||
* 班级ID
|
||||
*/
|
||||
classId?: string | number;
|
||||
|
||||
/**
|
||||
* 班级名称
|
||||
*/
|
||||
className?: string;
|
||||
|
||||
/**
|
||||
* 专业ID
|
||||
*/
|
||||
majorId?: string | number;
|
||||
|
||||
/**
|
||||
* 专业名称
|
||||
*/
|
||||
majorName?: string;
|
||||
|
||||
/**
|
||||
* 学院ID
|
||||
*/
|
||||
collegeId?: string | number;
|
||||
|
||||
/**
|
||||
* 学院名称
|
||||
*/
|
||||
collegeName?: string;
|
||||
|
||||
/**
|
||||
* 床位ID,关联xg_dorm_bed.id
|
||||
*/
|
||||
bedId?: string | number;
|
||||
|
||||
/**
|
||||
* 床位编号
|
||||
*/
|
||||
bedCode?: string;
|
||||
|
||||
/**
|
||||
* 学生个人得分(0-100分)
|
||||
*/
|
||||
studentScore?: number;
|
||||
|
||||
/**
|
||||
* 出勤状态(1在寝 2外出 3请假 4其他)
|
||||
*/
|
||||
attendanceStatus: string;
|
||||
|
||||
/**
|
||||
* 学生评级(A优秀 B良好 C合格 D不合格)
|
||||
*/
|
||||
studentGrade?: string;
|
||||
|
||||
/**
|
||||
* 是否为寝室长(0否 1是)
|
||||
*/
|
||||
isResponsiblePerson?: number;
|
||||
|
||||
/**
|
||||
* 评分备注
|
||||
*/
|
||||
scoreRemarks?: string;
|
||||
|
||||
/**
|
||||
* 改进意见
|
||||
*/
|
||||
improvementNotes?: string;
|
||||
}
|
||||
|
||||
export interface DormHygieneStudentScoreForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 删除标志(0代表存在 1代表删除)
|
||||
*/
|
||||
deleted?: number;
|
||||
|
||||
/**
|
||||
* 卫生检查ID,关联xg_dorm_hygiene_check.id
|
||||
*/
|
||||
hygieneCheckId?: string | number;
|
||||
|
||||
/**
|
||||
* 学生ID,关联xg_student_msg.id
|
||||
*/
|
||||
studentId?: string | number;
|
||||
|
||||
/**
|
||||
* 学号
|
||||
*/
|
||||
studentNo?: string;
|
||||
|
||||
/**
|
||||
* 学生姓名
|
||||
*/
|
||||
studentName?: string;
|
||||
|
||||
/**
|
||||
* 班级ID
|
||||
*/
|
||||
classId?: string | number;
|
||||
|
||||
/**
|
||||
* 班级名称
|
||||
*/
|
||||
className?: string;
|
||||
|
||||
/**
|
||||
* 专业ID
|
||||
*/
|
||||
majorId?: string | number;
|
||||
|
||||
/**
|
||||
* 专业名称
|
||||
*/
|
||||
majorName?: string;
|
||||
|
||||
/**
|
||||
* 学院ID
|
||||
*/
|
||||
collegeId?: string | number;
|
||||
|
||||
/**
|
||||
* 学院名称
|
||||
*/
|
||||
collegeName?: string;
|
||||
|
||||
/**
|
||||
* 床位ID,关联xg_dorm_bed.id
|
||||
*/
|
||||
bedId?: string | number;
|
||||
|
||||
/**
|
||||
* 床位编号
|
||||
*/
|
||||
bedCode?: string;
|
||||
|
||||
/**
|
||||
* 学生个人得分(0-100分)
|
||||
*/
|
||||
studentScore?: number;
|
||||
|
||||
/**
|
||||
* 出勤状态(1在寝 2外出 3请假 4其他)
|
||||
*/
|
||||
attendanceStatus?: string;
|
||||
|
||||
/**
|
||||
* 学生评级(A优秀 B良好 C合格 D不合格)
|
||||
*/
|
||||
studentGrade?: string;
|
||||
|
||||
/**
|
||||
* 是否为寝室长(0否 1是)
|
||||
*/
|
||||
isResponsiblePerson?: number;
|
||||
|
||||
/**
|
||||
* 评分备注
|
||||
*/
|
||||
scoreRemarks?: string;
|
||||
|
||||
/**
|
||||
* 改进意见
|
||||
*/
|
||||
improvementNotes?: string;
|
||||
}
|
||||
|
||||
export interface DormHygieneStudentScoreQuery extends PageQuery {
|
||||
/**
|
||||
* 删除标志(0代表存在 1代表删除)
|
||||
*/
|
||||
deleted?: number;
|
||||
|
||||
/**
|
||||
* 卫生检查ID,关联xg_dorm_hygiene_check.id
|
||||
*/
|
||||
hygieneCheckId?: string | number;
|
||||
|
||||
/**
|
||||
* 学生ID,关联xg_student_msg.id
|
||||
*/
|
||||
studentId?: string | number;
|
||||
|
||||
/**
|
||||
* 学号
|
||||
*/
|
||||
studentNo?: string;
|
||||
|
||||
/**
|
||||
* 学生姓名
|
||||
*/
|
||||
studentName?: string;
|
||||
|
||||
/**
|
||||
* 班级ID
|
||||
*/
|
||||
classId?: string | number;
|
||||
|
||||
/**
|
||||
* 专业ID
|
||||
*/
|
||||
majorId?: string | number;
|
||||
|
||||
/**
|
||||
* 学院ID
|
||||
*/
|
||||
collegeId?: string | number;
|
||||
|
||||
/**
|
||||
* 床位ID,关联xg_dorm_bed.id
|
||||
*/
|
||||
bedId?: string | number;
|
||||
|
||||
/**
|
||||
* 出勤状态(1在寝 2外出 3请假 4其他)
|
||||
*/
|
||||
attendanceStatus?: string;
|
||||
|
||||
/**
|
||||
* 学生评级(A优秀 B良好 C合格 D不合格)
|
||||
*/
|
||||
studentGrade?: string;
|
||||
}
|
||||
|
||||
// 宿舍卫生检查完整表单类型(包含学生评分数据)
|
||||
export interface DormHygieneCheckCompleteForm extends DormHygieneCheckForm {
|
||||
/**
|
||||
* 学生评分数据列表
|
||||
*/
|
||||
studentData?: DormHygieneStudentScoreForm[];
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import {
|
||||
DormHygieneStudentScoreVO,
|
||||
DormHygieneStudentScoreForm,
|
||||
DormHygieneStudentScoreQuery
|
||||
} from '@/api/xg/xgss/dormHygieneStudentScore/dormHygieneStudentScore/types';
|
||||
|
||||
/**
|
||||
* 查询宿舍卫生检查学生评分列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listDormHygieneStudentScore = (query?: DormHygieneStudentScoreQuery): AxiosPromise<DormHygieneStudentScoreVO[]> => {
|
||||
return request({
|
||||
url: '/dormHygieneStudentScore/dormHygieneStudentScore/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询宿舍卫生检查学生评分详细
|
||||
* @param id
|
||||
*/
|
||||
export const getDormHygieneStudentScore = (id: string | number): AxiosPromise<DormHygieneStudentScoreVO> => {
|
||||
return request({
|
||||
url: '/dormHygieneStudentScore/dormHygieneStudentScore/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增宿舍卫生检查学生评分
|
||||
* @param data
|
||||
*/
|
||||
export const addDormHygieneStudentScore = (data: DormHygieneStudentScoreForm) => {
|
||||
return request({
|
||||
url: '/dormHygieneStudentScore/dormHygieneStudentScore',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改宿舍卫生检查学生评分
|
||||
* @param data
|
||||
*/
|
||||
export const updateDormHygieneStudentScore = (data: DormHygieneStudentScoreForm) => {
|
||||
return request({
|
||||
url: '/dormHygieneStudentScore/dormHygieneStudentScore',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除宿舍卫生检查学生评分
|
||||
* @param id
|
||||
*/
|
||||
export const delDormHygieneStudentScore = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/dormHygieneStudentScore/dormHygieneStudentScore/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,311 @@
|
||||
export interface DormHygieneStudentScoreVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 删除标志(0代表存在 1代表删除)
|
||||
*/
|
||||
deleted: number;
|
||||
|
||||
/**
|
||||
* 卫生检查ID,关联xg_dorm_hygiene_check.id
|
||||
*/
|
||||
hygieneCheckId: string | number;
|
||||
|
||||
/**
|
||||
* 学生ID,关联xg_student_msg.id
|
||||
*/
|
||||
studentId: string | number;
|
||||
|
||||
/**
|
||||
* 学号
|
||||
*/
|
||||
studentNo: string;
|
||||
|
||||
/**
|
||||
* 学生姓名
|
||||
*/
|
||||
studentName: string;
|
||||
|
||||
/**
|
||||
* 班级ID
|
||||
*/
|
||||
classId: string | number;
|
||||
|
||||
/**
|
||||
* 班级名称
|
||||
*/
|
||||
className: string;
|
||||
|
||||
/**
|
||||
* 专业ID
|
||||
*/
|
||||
majorId: string | number;
|
||||
|
||||
/**
|
||||
* 专业名称
|
||||
*/
|
||||
majorName: string;
|
||||
|
||||
/**
|
||||
* 学院ID
|
||||
*/
|
||||
collegeId: string | number;
|
||||
|
||||
/**
|
||||
* 学院名称
|
||||
*/
|
||||
collegeName: string;
|
||||
|
||||
/**
|
||||
* 床位ID,关联xg_dorm_bed.id
|
||||
*/
|
||||
bedId: string | number;
|
||||
|
||||
/**
|
||||
* 床位编号
|
||||
*/
|
||||
bedCode: string;
|
||||
|
||||
/**
|
||||
* 学生个人得分(0-100分)
|
||||
*/
|
||||
studentScore: number;
|
||||
|
||||
/**
|
||||
* 是否在寝(1在寝 2外出 3请假 4其他)
|
||||
*/
|
||||
attendanceStatus: string;
|
||||
|
||||
/**
|
||||
* 学生评级(A优秀 B良好 C合格 D不合格)
|
||||
*/
|
||||
studentGrade: string;
|
||||
|
||||
/**
|
||||
* 是否为寝室长(0否 1是)
|
||||
*/
|
||||
isResponsiblePerson: number;
|
||||
|
||||
/**
|
||||
* 评分备注
|
||||
*/
|
||||
scoreRemarks: string;
|
||||
|
||||
/**
|
||||
* 改进意见
|
||||
*/
|
||||
improvementNotes: string;
|
||||
|
||||
}
|
||||
|
||||
export interface DormHygieneStudentScoreForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 删除标志(0代表存在 1代表删除)
|
||||
*/
|
||||
deleted?: number;
|
||||
|
||||
/**
|
||||
* 卫生检查ID,关联xg_dorm_hygiene_check.id
|
||||
*/
|
||||
hygieneCheckId?: string | number;
|
||||
|
||||
/**
|
||||
* 学生ID,关联xg_student_msg.id
|
||||
*/
|
||||
studentId?: string | number;
|
||||
|
||||
/**
|
||||
* 学号
|
||||
*/
|
||||
studentNo?: string;
|
||||
|
||||
/**
|
||||
* 学生姓名
|
||||
*/
|
||||
studentName?: string;
|
||||
|
||||
/**
|
||||
* 班级ID
|
||||
*/
|
||||
classId?: string | number;
|
||||
|
||||
/**
|
||||
* 班级名称
|
||||
*/
|
||||
className?: string;
|
||||
|
||||
/**
|
||||
* 专业ID
|
||||
*/
|
||||
majorId?: string | number;
|
||||
|
||||
/**
|
||||
* 专业名称
|
||||
*/
|
||||
majorName?: string;
|
||||
|
||||
/**
|
||||
* 学院ID
|
||||
*/
|
||||
collegeId?: string | number;
|
||||
|
||||
/**
|
||||
* 学院名称
|
||||
*/
|
||||
collegeName?: string;
|
||||
|
||||
/**
|
||||
* 床位ID,关联xg_dorm_bed.id
|
||||
*/
|
||||
bedId?: string | number;
|
||||
|
||||
/**
|
||||
* 床位编号
|
||||
*/
|
||||
bedCode?: string;
|
||||
|
||||
/**
|
||||
* 学生个人得分(0-100分)
|
||||
*/
|
||||
studentScore?: number;
|
||||
|
||||
/**
|
||||
* 是否在寝(1在寝 2外出 3请假 4其他)
|
||||
*/
|
||||
attendanceStatus?: string;
|
||||
|
||||
/**
|
||||
* 学生评级(A优秀 B良好 C合格 D不合格)
|
||||
*/
|
||||
studentGrade?: string;
|
||||
|
||||
/**
|
||||
* 是否为寝室长(0否 1是)
|
||||
*/
|
||||
isResponsiblePerson?: number;
|
||||
|
||||
/**
|
||||
* 评分备注
|
||||
*/
|
||||
scoreRemarks?: string;
|
||||
|
||||
/**
|
||||
* 改进意见
|
||||
*/
|
||||
improvementNotes?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface DormHygieneStudentScoreQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 删除标志(0代表存在 1代表删除)
|
||||
*/
|
||||
deleted?: number;
|
||||
|
||||
/**
|
||||
* 卫生检查ID,关联xg_dorm_hygiene_check.id
|
||||
*/
|
||||
hygieneCheckId?: string | number;
|
||||
|
||||
/**
|
||||
* 学生ID,关联xg_student_msg.id
|
||||
*/
|
||||
studentId?: string | number;
|
||||
|
||||
/**
|
||||
* 学号
|
||||
*/
|
||||
studentNo?: string;
|
||||
|
||||
/**
|
||||
* 学生姓名
|
||||
*/
|
||||
studentName?: string;
|
||||
|
||||
/**
|
||||
* 班级ID
|
||||
*/
|
||||
classId?: string | number;
|
||||
|
||||
/**
|
||||
* 班级名称
|
||||
*/
|
||||
className?: string;
|
||||
|
||||
/**
|
||||
* 专业ID
|
||||
*/
|
||||
majorId?: string | number;
|
||||
|
||||
/**
|
||||
* 专业名称
|
||||
*/
|
||||
majorName?: string;
|
||||
|
||||
/**
|
||||
* 学院ID
|
||||
*/
|
||||
collegeId?: string | number;
|
||||
|
||||
/**
|
||||
* 学院名称
|
||||
*/
|
||||
collegeName?: string;
|
||||
|
||||
/**
|
||||
* 床位ID,关联xg_dorm_bed.id
|
||||
*/
|
||||
bedId?: string | number;
|
||||
|
||||
/**
|
||||
* 床位编号
|
||||
*/
|
||||
bedCode?: string;
|
||||
|
||||
/**
|
||||
* 学生个人得分(0-100分)
|
||||
*/
|
||||
studentScore?: number;
|
||||
|
||||
/**
|
||||
* 是否在寝(1在寝 2外出 3请假 4其他)
|
||||
*/
|
||||
attendanceStatus?: string;
|
||||
|
||||
/**
|
||||
* 学生评级(A优秀 B良好 C合格 D不合格)
|
||||
*/
|
||||
studentGrade?: string;
|
||||
|
||||
/**
|
||||
* 是否为寝室长(0否 1是)
|
||||
*/
|
||||
isResponsiblePerson?: number;
|
||||
|
||||
/**
|
||||
* 评分备注
|
||||
*/
|
||||
scoreRemarks?: string;
|
||||
|
||||
/**
|
||||
* 改进意见
|
||||
*/
|
||||
improvementNotes?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user