|
@@ -60,7 +60,7 @@ function serializeWhere(params) {
|
|
|
|
|
|
// scan
|
|
|
function saveUploadInfo(params) {
|
|
|
- const sql = `INSERT INTO scan (taskId, schoolId, semesterId, examId, courseCode, courseName, frontOriginImgPath, versoOriginImgPath, studentCode, ocrArea,fileTypeId,fileTypeName,roomOrClass,batchNo, isFormal, clientUserId, clientUsername, clientUserLoginTime, isUpload,createdTime, finishTime) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)`;
|
|
|
+ const sql = `INSERT INTO scan (taskId, schoolId, semesterId, examId, courseCode, courseName, frontOriginImgPath, versoOriginImgPath, studentCode,studentPaperNo, ocrArea,fileTypeId,fileTypeName,roomOrClass,batchNo, isFormal, clientUserId, clientUsername, clientUserLoginTime, isUpload,createdTime, finishTime) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)`;
|
|
|
const datas = [
|
|
|
params.taskId,
|
|
|
params.schoolId,
|
|
@@ -71,6 +71,7 @@ function saveUploadInfo(params) {
|
|
|
params.frontOriginImgPath,
|
|
|
params.versoOriginImgPath,
|
|
|
params.studentCode,
|
|
|
+ params.studentPaperNo,
|
|
|
params.ocrArea,
|
|
|
params.fileTypeId,
|
|
|
params.fileTypeName,
|
|
@@ -107,6 +108,7 @@ function batchSaveUploadInfo(dataList) {
|
|
|
item.frontOriginImgPath,
|
|
|
item.versoOriginImgPath,
|
|
|
item.studentCode,
|
|
|
+ item.studentPaperNo,
|
|
|
item.ocrArea,
|
|
|
item.fileTypeId,
|
|
|
item.fileTypeName,
|
|
@@ -123,7 +125,7 @@ function batchSaveUploadInfo(dataList) {
|
|
|
});
|
|
|
|
|
|
return new Promise((resolve, reject) => {
|
|
|
- const sql = `INSERT INTO scan (taskId, schoolId, semesterId, examId, courseCode, courseName, frontOriginImgPath, versoOriginImgPath, studentCode, ocrArea,fileTypeId,fileTypeName,roomOrClass,batchNo, isFormal, clientUserId, clientUsername, clientUserLoginTime, isUpload,createdTime, finishTime) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)`;
|
|
|
+ const sql = `INSERT INTO scan (taskId, schoolId, semesterId, examId, courseCode, courseName, frontOriginImgPath, versoOriginImgPath, studentCode, studentPaperNo, ocrArea,fileTypeId,fileTypeName,roomOrClass,batchNo, isFormal, clientUserId, clientUsername, clientUserLoginTime, isUpload,createdTime, finishTime) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)`;
|
|
|
db.serialize(() => {
|
|
|
const stmt = db.prepare(sql);
|
|
|
|