|
@@ -115,8 +115,7 @@ module.exports = app => {
|
|
|
rpt_id,
|
|
|
sid,
|
|
|
business_id,
|
|
|
- business_type: rptArchiveConst.getBusinessType(sid),
|
|
|
- source_type,
|
|
|
+ business_type: source_type,
|
|
|
rel_content: JSON.stringify(relArr),
|
|
|
};
|
|
|
// console.log(data);
|
|
@@ -162,9 +161,12 @@ module.exports = app => {
|
|
|
this.transaction = await this.db.beginTransaction();
|
|
|
try {
|
|
|
const data = {
|
|
|
- id, tender_id, rpt_id, sid, business_id,
|
|
|
- business_type: rptArchiveConst.getBusinessType(sid),
|
|
|
- source_type, rel_content: JSON.stringify(relArr)
|
|
|
+ id,
|
|
|
+ tender_id,
|
|
|
+ rpt_id, sid,
|
|
|
+ business_id,
|
|
|
+ business_type: source_type,
|
|
|
+ rel_content: JSON.stringify(relArr),
|
|
|
};
|
|
|
rst = await this.transaction.update(this.tableName, data);
|
|
|
await this.transaction.commit();
|