123456789101112131415161718192021222324252627282930313233343536373839 |
- 'use strict';
- /**
- *
- *
- * @author Mai
- * @date
- * @version
- */
- module.exports = app => {
- class RevisePos extends app.BaseService {
- /**
- * 构造函数
- *
- * @param {Object} ctx - egg全局变量
- * @return {void}
- */
- constructor(ctx) {
- super(ctx);
- this.tableName = 'revise_pos';
- }
- /**
- * 获取 修订 清单数据
- * @param {Number}tid - 标段id
- * @param {uuid}rid - 修订id
- * @returns {Promise<void>}
- */
- async getData(tid, rid) {
- return await this.db.select(this.tableName, {
- where: {tid: tid, rid: rid}
- });
- }
- }
- return RevisePos;
- };
|