|
@@ -51,7 +51,7 @@ module.exports = app => {
|
|
|
await this.ctx.oss.put(billsHis, Buffer.from(JSON.stringify(bills), 'utf8'));
|
|
|
|
|
|
const posHis = `${this.ctx.session.sessionProject.id}/${tender.id}/ledger/pos${timestamp}.json`;
|
|
|
- const pos = await this.ctx.service.pos.getData(tender.id);
|
|
|
+ const pos = await this.ctx.service.pos.getPosData({ tid: tender.id });
|
|
|
await this.ctx.oss.put(posHis, Buffer.from(JSON.stringify(pos), 'utf8'));
|
|
|
|
|
|
const result = await this.db.insert(this.tableName, {
|
|
@@ -111,7 +111,7 @@ module.exports = app => {
|
|
|
await this.ctx.oss.put(billsHis, Buffer.from(JSON.stringify(bills), 'utf8'));
|
|
|
|
|
|
const posHis = `${this.ctx.session.sessionProject.id}/${change.tid}/ledger/pos${timestamp}-c.json`;
|
|
|
- const pos = await this.ctx.service.pos.getData(change.tid);
|
|
|
+ const pos = await this.ctx.service.pos.getPosData({ tid: change.tid });
|
|
|
if (newPosNodes.length > 0) pos.push(...newPosNodes);
|
|
|
await this.ctx.oss.put(posHis, Buffer.from(JSON.stringify(pos), 'utf8'));
|
|
|
|