revise_pos.js 749 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. 'use strict';
  2. /**
  3. *
  4. *
  5. * @author Mai
  6. * @date
  7. * @version
  8. */
  9. module.exports = app => {
  10. class RevisePos extends app.BaseService {
  11. /**
  12. * 构造函数
  13. *
  14. * @param {Object} ctx - egg全局变量
  15. * @return {void}
  16. */
  17. constructor(ctx) {
  18. super(ctx);
  19. this.tableName = 'revise_pos';
  20. }
  21. /**
  22. * 获取 修订 清单数据
  23. * @param {Number}tid - 标段id
  24. * @param {uuid}rid - 修订id
  25. * @returns {Promise<void>}
  26. */
  27. async getData(tid, rid) {
  28. return await this.db.select(this.tableName, {
  29. where: {tid: tid, rid: rid}
  30. });
  31. }
  32. }
  33. return RevisePos;
  34. };