|
@@ -89,7 +89,7 @@ module.exports = app => {
|
|
|
if (shenpi_status !== shenpiConst.sp_status.sqspr) {
|
|
|
await transaction.delete(this.tableName, { tid: t.id, sp_type: shenpiConst.sp_type[data.code], sp_status: shenpi_status });
|
|
|
for (const aid of data.aidList.split(',')) {
|
|
|
- if (parseInt(aid) !== t.user_id || (parseInt(aid) === t.user_id && canYB)) {
|
|
|
+ if (aid && parseInt(aid) !== t.user_id || (parseInt(aid) === t.user_id && canYB)) {
|
|
|
const insertData = {
|
|
|
tid: t.id,
|
|
|
sp_type: shenpiConst.sp_type[data.code],
|
|
@@ -129,7 +129,7 @@ module.exports = app => {
|
|
|
if (shenpiInfo[code] !== shenpiConst.sp_status.sqspr) {
|
|
|
await transaction.delete(this.tableName, { tid: this.ctx.tender.id, sp_type: shenpiConst.sp_type[code], sp_status: shenpiInfo[code] });
|
|
|
for (const aid of data.aidList.split(',')) {
|
|
|
- if (parseInt(aid) !== this.ctx.tender.data.user_id || (parseInt(aid) === this.ctx.tender.data.user_id && needYB.indexOf(code) !== -1)) {
|
|
|
+ if (aid && parseInt(aid) !== this.ctx.tender.data.user_id || (parseInt(aid) === this.ctx.tender.data.user_id && needYB.indexOf(code) !== -1)) {
|
|
|
const insertData = {
|
|
|
tid: this.ctx.tender.id,
|
|
|
sp_type: shenpiConst.sp_type[code],
|