提交代码

This commit is contained in:
zlwu committed 2025-08-16 06:57:33 +08:00
1 parent bee68f318d
commit a884f695ea
8 files changed
+847 -107

No files matched your search

@@ -78,12 +78,14 @@ export const delDormViolation = (id: string | number | Array<string | number>) =
* @param query 查询参数
* @returns 学生选项列表
*/
export const getStudentOptions = (query?: StudentOptionQuery): AxiosPromise<{
export const getStudentOptions = (
query?: StudentOptionQuery
): AxiosPromise<{
total: number;
rows: StudentOptionVO[];
}> => {
return request({
url: '/holidayStay/holidayStay/studentOptions',
url: '/dormViolation/dormViolation/studentOptions',
method: 'get',
params: query
});
@@ -151,3 +153,15 @@ export const getBedOptions = (roomId?: string | number): AxiosPromise<any[]> =>
params: roomId ? { roomId } : undefined
});
};
/**
* 根据学生ID获取学生详细信息
* @param studentId 学生ID
* @returns 学生详细信息
*/
export const getStudentById = (studentId: string | number): AxiosPromise<StudentOptionVO> => {
return request({
url: `/dormViolation/dormViolation/student/${studentId}`,
method: 'get'
});
};
@@ -263,9 +263,9 @@ export interface DormViolationForm extends BaseEntity {
violationDescription?: string;
/**
* 涉及其他学生id(逗号分隔)
* 涉及其他学生id(逗号分隔)或数组
*/
involvedStudents?: string;
involvedStudents?: string | (string | number)[];
/**
* 附件OSS ID列表(逗号分隔)