merge problem

This commit is contained in:
Chen,Hui Chen 2024-06-29 18:53:08 +08:00
parent 68c7540795
commit 03b8b5e23e
4 changed files with 4 additions and 32 deletions

View File

@ -8,16 +8,9 @@ router.get("/", async function(req, res) {
let conn;
try {
conn = await util.getDBConnection(); // get connection from db
<<<<<<< HEAD
const query = `
SELECT
item_form.application_id,
item_form.item_info_id,
=======
const query =
`
SELECT item_form.application_id, item_form.item_info_id, item_info.item_content,
>>>>>>> 4e70160c94fd9e085e7a88cae6638beb2998fb45
item_form.application_unit,
item_form.subsidy,
scholarship_application.application_date,
@ -27,13 +20,6 @@ router.get("/", async function(req, res) {
item_form
RIGHT JOIN
scholarship_application ON item_form.application_id = scholarship_application.application_id
<<<<<<< HEAD
RIGHT JOIN
student ON scholarship_application.student_id = student.student_id;
`;
const result = await conn.query(query);
res.json({ success: true, data: result });
=======
LEFT JOIN
student ON scholarship_application.student_id = student.student_id
LEFT JOIN
@ -42,7 +28,6 @@ router.get("/", async function(req, res) {
`;
const result = await conn.query(query);
res.json({ success: true, data: result });
>>>>>>> 4e70160c94fd9e085e7a88cae6638beb2998fb45
}
catch(e) {
console.error(e);

View File

@ -6,10 +6,6 @@ async function submit() {
suc_login = suc_login.data;
console.log(suc_login);
if (suc_login.suc) {
<<<<<<< HEAD
location.href = '/main';
=======
if (account.length >= 9) {
// student
location.href = `/main?name=${suc_login.authen_result}&s_num=${account}`;
@ -18,7 +14,6 @@ async function submit() {
// assistant
location.href = `/audit?name=${suc_login.authen_result}&s_num=${account}`;
}
>>>>>>> 4e70160c94fd9e085e7a88cae6638beb2998fb45
}
else {
alert("帳號或密碼錯誤");

View File

@ -4,14 +4,10 @@ const db = require("mariadb");
// create pool
const pool = db.createPool({
<<<<<<< HEAD
connectionLimit : 10,
=======
connectionLimit : 50,
>>>>>>> 4e70160c94fd9e085e7a88cae6638beb2998fb45
host : 'localhost',
user : 'test',
password : '123',
user : 'user',
password : '',
database : 'scholarship'
});

View File

@ -4,14 +4,10 @@ const db = require("mariadb");
// create pool
const pool = db.createPool({
<<<<<<< HEAD
connectionLimit : 10,
=======
connectionLimit : 50,
>>>>>>> 4e70160c94fd9e085e7a88cae6638beb2998fb45
host : 'localhost',
user : 'test',
password : '123',
user : 'user',
password : '',
database : 'scholarship'
});