'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} */ async getData(tid, rid) { return await this.db.select(this.tableName, { where: {tid: tid, rid: rid} }); } } return RevisePos; };