This commit is contained in:
2023-03-03 16:06:29 +07:00
parent a8d32ada48
commit 47dc7eecc9
@@ -853,6 +853,7 @@ const getLastHistory = (cardNumber) => {
let result = knex('log.t_log_card')
.where('c_card_number', cardNumber)
.whereIn('i_log_name', [21, 90])
.where('c_source', 'CMS')
.where('c_status', 'S')
.orderBy('d_log', 'desc')
.first();
@@ -921,7 +922,8 @@ const checkCardHistory = (c_card_number) => {
let result = knex('log.t_log_card')
.select(['i_log_name'])
.where('c_card_number', c_card_number)
.whereIn('i_log_name', ['21', '90'])
.whereIn('i_log_name', [21, 90])
.where('c_source', 'CMS')
.orderBy('d_log', 'DESC')
.first();