学期新增的时候校验校历功能点添加,否则会有大量的数据重复生成

This commit is contained in:
2026-09-14 17:24:56 +08:00
parent 52a04dbf60
commit 5187435285
9 changed files with 352 additions and 87 deletions
+5 -3
View File
@@ -18,12 +18,14 @@ export function getXqxlb(bh) {
})
}
// 预生成学期整张校历占位记录(首次进入新学期时调用,接口自带去重)
export function addXqxlb(startDate, endDate) {
// 预生成学期整张校历占位记录(首次进入新学期时调用,接口幂等)
// nd 为 6 位学期代号(如 202601),后端据此落库,必须与 listXqxlb 的查询口径一致,
// 否则后端写入的年度与前端查询的年度对不上,会每次进入都重新生成一遍。
export function addXqxlb(startDate, endDate, nd) {
return request({
url: '/xqxlb/add',
method: 'post',
params: { startDate: startDate, endDate: endDate }
params: { startDate: startDate, endDate: endDate, nd: nd }
})
}