|
@@ -755,7 +755,8 @@ module.exports = class extends Base {
|
|
|
}
|
|
|
// 诉求主体 事项属地 问题所属系统 摘要 三跨三分离 被反映人姓名
|
|
|
if ((data.hasOwnProperty('objectName') && data.objectName !== '')|| (data.hasOwnProperty('happenRegionID') && param.happenRegionID !== '')
|
|
|
- || (data.hasOwnProperty('belongsID') && Array.isArray(data.belongsID) && data.belongsID.length > 0 )
|
|
|
+ // || (data.hasOwnProperty('belongsID') && Array.isArray(data.belongsID) && data.belongsID.length > 0 )
|
|
|
+ || (data.hasOwnProperty('belongsID') && data.belongsID !== "" )
|
|
|
|| (data.hasOwnProperty('abstract') && data.abstract !== '' ) || (data.hasOwnProperty('SKSFL') && Array.isArray(data.SKSFL) && data.SKSFL.length > 0 )
|
|
|
|| (data.hasOwnProperty('identityName') && data.identityName !== '')){
|
|
|
let whereM = {};
|
|
@@ -765,7 +766,8 @@ module.exports = class extends Base {
|
|
|
if (data.hasOwnProperty('happenRegionID') && param.happenRegionID !== '' ) {
|
|
|
whereM['m.happenRegionID'] = data.happenRegionID;
|
|
|
}
|
|
|
- if (data.hasOwnProperty('belongsID') && Array.isArray(data.belongsID) && data.belongsID.length > 0 ) {
|
|
|
+ // if (data.hasOwnProperty('belongsID') && Array.isArray(data.belongsID) && data.belongsID.length > 0 ) {
|
|
|
+ if (data.hasOwnProperty('belongsID') && data.belongsID !== "" ) {
|
|
|
whereM['m.belongsID'] = ['IN',data.belongsID];
|
|
|
}
|
|
|
if (data.hasOwnProperty('abstract') && data.abstract !== '' ) {
|
|
@@ -804,7 +806,7 @@ module.exports = class extends Base {
|
|
|
|
|
|
let count = await this.model('activity').setRelation(false).join('person on person.id = activity.mainPerson')
|
|
|
.join('matter on matter.activityID = activity.id').join('fw_task_act on fw_task_act.c_task = matter.taskid')
|
|
|
- .where(where).distinct('activity.*').select();
|
|
|
+ .where(where).distinct('activity.id').select();
|
|
|
const activity = await this.model('activity').join('person on person.id = activity.mainPerson')
|
|
|
.join('matter on matter.activityID = activity.id').join('fw_task_act on fw_task_act.c_task = matter.taskid')
|
|
|
.where(where).page(data.page, data.pageSize).field("activity.*").distinct('activity.*').order('activity.createTime DESC').countSelect(count.length);
|