|
@@ -148,7 +148,8 @@ module.exports = app => {
|
|
|
* @return {Boolean} - 返回修改结果
|
|
|
*/
|
|
|
async getMsgList(projectId, spid = '', limit = 5, offset = 0, type = 1) {
|
|
|
- const sqSql = spid ? ' AND (`spid` = "' + spid + '" OR `spid` = "")' : '';
|
|
|
+ const spids = spid ? (spid instanceof Array ? spid : [spid]) : '';
|
|
|
+ const sqSql = spids ? ' AND (`spid` in (' + this.ctx.helper.getInArrStrSqlFilter(spids) + ') OR `spid` = "")' : '';
|
|
|
if (type === 1) {
|
|
|
const sql = 'SELECT * FROM ?? WHERE `project_id` = ?' + sqSql + ' AND `type` = ? ORDER BY CONCAT(`istop`,`release_time`) DESC LIMIT ?,?';
|
|
|
const sqlParam = [this.tableName, projectId, type, offset, limit];
|