wangzhibo
4 天以前 c19f1f7e21c93d1f13b4f44a8a615f65af577559
src/modules/operation/controller/admin/wastesale.ts
@@ -2,7 +2,7 @@
import { CoolController, BaseController } from '@cool-midway/core';
import { OperationWastesaleEntity } from '../../entity/wastesale';
import { OperationWastesaleService } from '../../service/wastesale';
import { BaseSysUserEntity } from '../../../base/entity/sys/user';
import { BasicdataSorterEntity } from '../../../basicdata/entity/sorter';
import { BasicdataBuyerEntity } from '../../../basicdata/entity/buyer'
import { BaseSysDepartmentEntity } from '../../../base/entity/sys/department';
import { BasicdataSiteEntity } from '../../../basicdata/entity/site'
@@ -27,7 +27,7 @@
      'b.name AS departmentName',
      'c.businessName AS siteName',
      'd.name AS wasteName',
      'e.name AS handlerName',
      'e.businessName AS handlerName',
      'f.name AS buyerName',
    ],
    join: [
@@ -50,9 +50,9 @@
        type: 'leftJoin',
      },
      {
        entity: BaseSysUserEntity,
        entity: BasicdataSorterEntity,
        alias: 'e',
        condition: 'a.handlerId = e.userId',
        condition: 'a.handlerId = e.businessId',
        type: 'leftJoin',
      },
      {