|
@@ -5,6 +5,7 @@
|
|
|
*/
|
|
|
|
|
|
const BaseService = require('../base/base_service');
|
|
|
+const rptArchiveConst = require('../const/rpt_archive');
|
|
|
|
|
|
module.exports = app => {
|
|
|
|
|
@@ -114,6 +115,7 @@ module.exports = app => {
|
|
|
rpt_id,
|
|
|
sid,
|
|
|
business_id,
|
|
|
+ business_type: rptArchiveConst.getBusinessType(sid),
|
|
|
source_type,
|
|
|
rel_content: JSON.stringify(relArr),
|
|
|
};
|
|
@@ -159,7 +161,11 @@ module.exports = app => {
|
|
|
} else {
|
|
|
this.transaction = await this.db.beginTransaction();
|
|
|
try {
|
|
|
- const data = { id, tender_id, rpt_id, sid, business_id, source_type, rel_content: JSON.stringify(relArr) };
|
|
|
+ const data = {
|
|
|
+ id, tender_id, rpt_id, sid, business_id,
|
|
|
+ business_type: rptArchiveConst.getBusinessType(sid),
|
|
|
+ source_type, rel_content: JSON.stringify(relArr)
|
|
|
+ };
|
|
|
rst = await this.transaction.update(this.tableName, data);
|
|
|
await this.transaction.commit();
|
|
|
} catch (ex) {
|