Explorar o código

清单精度,添加删除总额,引起的问题

MaiXinRong %!s(int64=5) %!d(string=hai) anos
pai
achega
916637b6a6
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      app/service/tender_info.js

+ 3 - 1
app/service/tender_info.js

@@ -83,11 +83,13 @@ module.exports = app => {
          * @returns {Promise<void>}
          */
         async saveTenderInfo(tenderId, data) {
+            console.log(data);
             for (const di in data) {
-                if (parseInfo.indexOf(di) >= 0) {
+                if (parseInfo.indexOf(di) >= 0 || arrayInfo.indexOf(di) >= 0) {
                     data[di] = JSON.stringify(data[di]);
                 }
             }
+            console.log(data);
             await this.db.update(this.tableName, data, {where: {tid: tenderId}});
         }