wangrong
2026-09-24 98ce961272c596468a4cb4b2498a3c70048e4aed
src/modules/push/controller/admin/weight.ts
@@ -1,6 +1,7 @@
import { CoolController, BaseController } from '@cool-midway/core';
import { PushWeightEntity } from '../../entity/weight';
import { PushWeightService } from '../../service/weight';
import { BasicdataWastetypeEntity } from '../../../basicdata/entity/wastetype';
/**
 * 原始称重数据管理
@@ -10,8 +11,16 @@
  entity: PushWeightEntity,
  service: PushWeightService,
  pageQueryOp: {
    select: ['a.*'],
    select: ['a.*', 'b.name AS garbageName'],
    fieldEq: ['a.deviceNo', 'a.garbageType'],
    join: [
      {
        entity: BasicdataWastetypeEntity,
        alias: 'b',
        condition: 'a.garbageType = b.code',
        type: 'leftJoin',
      },
    ],
    where: async ctx => {
      const { startTime, endTime } = ctx.request.body;
      const conditions = [];