tUrgeHandle.js 743 B

12345678910111213141516171819202122232425262728
  1. 'use strict';
  2. const _ = require('lodash');
  3. const meta = require('./.tUrgeHandle.js');
  4. const Controller = require('egg').Controller;
  5. const { CrudController } = require('naf-framework-mongoose/lib/controller');
  6. // 管理
  7. class TUrgeHandleController extends Controller {
  8. constructor(ctx) {
  9. super(ctx);
  10. this.service = this.ctx.service.tUrgeHandle;
  11. }
  12. // 条件查询
  13. async select() {
  14. const res = await this.service.select(this.ctx.query);
  15. this.ctx.ok({ ...res });
  16. }
  17. // 条件查询
  18. async financingSelect() {
  19. const res = await this.service.financingSelect(this.ctx.query);
  20. this.ctx.ok({ ...res });
  21. }
  22. }
  23. module.exports = CrudController(TUrgeHandleController, meta);