|
@@ -11,7 +11,7 @@ class MyList extends API {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
async onRequest(req, res) {
|
|
async onRequest(req, res) {
|
|
|
- let { uuid, session, current = 1, pagesize = 20, biz_type, start_time, end_time } = req.query
|
|
|
|
|
|
|
+ let { uuid, session, current = 1, pagesize = 20, biz_type, remark, start_time, end_time } = req.query
|
|
|
current = Number(current)
|
|
current = Number(current)
|
|
|
pagesize = Number(pagesize)
|
|
pagesize = Number(pagesize)
|
|
|
const startTimeNum = start_time === undefined || start_time === null || start_time === '' ? null : Number(start_time)
|
|
const startTimeNum = start_time === undefined || start_time === null || start_time === '' ? null : Number(start_time)
|
|
@@ -42,6 +42,12 @@ class MyList extends API {
|
|
|
sumWhere.push('biz_type = ?')
|
|
sumWhere.push('biz_type = ?')
|
|
|
sumParams.push(biz_type)
|
|
sumParams.push(biz_type)
|
|
|
}
|
|
}
|
|
|
|
|
+ if (remark) {
|
|
|
|
|
+ where.push('l.remark LIKE ?')
|
|
|
|
|
+ params.push(`%${remark}%`)
|
|
|
|
|
+ sumWhere.push('remark LIKE ?')
|
|
|
|
|
+ sumParams.push(`%${remark}%`)
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
if (startTimeNum !== null) {
|
|
if (startTimeNum !== null) {
|
|
|
where.push('l.created_at >= FROM_UNIXTIME(? / 1000)')
|
|
where.push('l.created_at >= FROM_UNIXTIME(? / 1000)')
|