|
@@ -59,7 +59,7 @@ module.exports = app => {
|
|
|
const result = { ledger: {}, pos: null };
|
|
|
if (!tid || !rid || !lid) return result;
|
|
|
|
|
|
- const select = await this.getDataByLid(tid, lid);
|
|
|
+ const select = await this.getDataByKid(tid, lid);
|
|
|
if (!select) {
|
|
|
throw '位置数据错误';
|
|
|
}
|
|
@@ -136,7 +136,7 @@ module.exports = app => {
|
|
|
// 查询应返回的结果
|
|
|
result.ledger.create = await this.getDataById(newIds);
|
|
|
if (!lastChild) {
|
|
|
- result.ledger.update = await this.getDataByLid(select.id);
|
|
|
+ result.ledger.update = await this.getDataByKid(select.id);
|
|
|
}
|
|
|
result.pos = await this.ctx.service.revisePos.getDataByLid(tid, newIds);
|
|
|
return result;
|
|
@@ -154,11 +154,11 @@ module.exports = app => {
|
|
|
const result = { ledger: {}, pos: null };
|
|
|
if (!tid || !rid || !lid) return result;
|
|
|
|
|
|
- const select = await this.getDataByLid(tid, lid);
|
|
|
+ const select = await this.getDataByKid(tid, lid);
|
|
|
if (!select) {
|
|
|
throw '位置数据错误';
|
|
|
}
|
|
|
- const parentData = await this.getDataByLid(tid, select.ledger_pid);
|
|
|
+ const parentData = await this.getDataByKid(tid, select.ledger_pid);
|
|
|
if (!parentData) {
|
|
|
throw '位置数据错误';
|
|
|
}
|