| | |
| | | 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' |
| | |
| | | '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: [ |
| | |
| | | type: 'leftJoin', |
| | | }, |
| | | { |
| | | entity: BaseSysUserEntity, |
| | | entity: BasicdataSorterEntity, |
| | | alias: 'e', |
| | | condition: 'a.handlerId = e.userId', |
| | | condition: 'a.handlerId = e.businessId', |
| | | type: 'leftJoin', |
| | | }, |
| | | { |