优化2 patch2
This commit is contained in:
@@ -1246,6 +1246,14 @@ function createRepository({ client, location, read, transaction, close }) {
|
||||
auditOperation(log)
|
||||
]);
|
||||
},
|
||||
async updateFeatureScores(entries) {
|
||||
const operations = [];
|
||||
for (const { registration, log } of entries) {
|
||||
operations.push(operation('UPDATE registrations SET feature_score = ? WHERE id = ?', Number(registration.featureScore || 0), registration.id));
|
||||
operations.push(auditOperation(log));
|
||||
}
|
||||
await transaction(operations);
|
||||
},
|
||||
async saveAdmissionRecord(record, log = null) {
|
||||
const operations = [operation('DELETE FROM admission_records WHERE id = ?', record.id), operation(
|
||||
`INSERT INTO admission_records (
|
||||
|
||||
Reference in New Issue
Block a user