|
@@ -739,7 +739,7 @@ module.exports = app => {
|
|
|
await transaction.insert(this.ctx.service.pos.tableName, cacheTree.pos);
|
|
|
}
|
|
|
await transaction.commit();
|
|
|
- this.cache.set(cacheKey, cacheTree.items.length + 1, 'EX', this.ctx.app.config.cacheTime);
|
|
|
+ this.cache.set(cacheKey, cacheTree.keyNodeId, 'EX', this.ctx.app.config.cacheTime);
|
|
|
return {bills: datas, pos: cacheTree.pos}
|
|
|
} catch (err) {
|
|
|
await transaction.rollback();
|