| 12345678910111213141516171819202122232425262728293031323334353637 | 'use strict';/** * 指数历史期数据表 数据模型 * * @author Mai * @date 2018/8/13 * @version */module.exports = app => {    class MaterialExponentHistory extends app.BaseService {        /**         * 构造函数         *         * @param {Object} ctx - egg全局变量         * @return {void}         */        constructor(ctx) {            super(ctx);            this.tableName = 'material_exponent_history';        }        /**         * 获取历史本期应耗数量和上期调差金额         * @param mid         * @param order         * @param mb_id         * @returns {Promise<*[]>}         */        async getByMeId(mid, order, me_id) {            return await this.getDataByCondition({ mid, order, me_id });        }    }    return MaterialExponentHistory;};
 |