1234567891011121314151617181920212223242526272829303132 |
- 'use strict';
- /**
- * 系统维护数据模型
- *
- * @author CaiAoLin
- * @date 2017/10/25
- * @version
- */
- module.exports = app => {
- class ProjectStopMsg extends app.BaseService {
- /**
- * 构造函数
- *
- * @param {Object} ctx - egg全局变量
- * @return {void}
- */
- constructor(ctx) {
- super(ctx);
- this.tableName = 'project_stopmsg';
- }
- async getMsg(pid) {
- const info = await this.getDataByCondition({ pid, is_checked: 1 });
- return info ? info.msg : '该账号已被停用,请联系销售人员';
- }
- }
- return ProjectStopMsg;
- };
|