std_gcl_list.js 539 B

123456789101112131415161718192021222324252627282930
  1. 'use strict';
  2. /**
  3. *
  4. *
  5. * @author Mai
  6. * @date 2023/7/3
  7. * @version
  8. */
  9. module.exports = app => {
  10. class SpecPull extends app.BaseService {
  11. /**
  12. * 构造函数
  13. *
  14. * @param {Object} ctx - egg全局变量
  15. * @return {void}
  16. */
  17. constructor(ctx) {
  18. super(ctx);
  19. this.tableName = 'std_gcl_list';
  20. }
  21. async getSafeGcl () {
  22. return await this.getAllDataByCondition({ where: { sub_type: 1 } });
  23. }
  24. }
  25. return SpecPull;
  26. };