ellisran hai 1 mes
pai
achega
4562cb3c64
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      app/service/tender_info.js

+ 1 - 0
app/service/tender_info.js

@@ -519,6 +519,7 @@ module.exports = app => {
          */
         async getAllTenderShenpiInfo(tenderIds) {
             // const defaultInfo = await this.getDefaultInfo(tenderId);
+            if (!tenderIds || tenderIds.length === 0) return [];
             const infos = await this.getAllDataByCondition({ columns: ['tid', 'shenpi'], where: { tid: tenderIds } });
             const shenpiInfos = [];
             if (!infos || infos.length === 0) return shenpiInfos;