From c278d736f5f9c0ab4a64540aa1a6b89984b0cd2c Mon Sep 17 00:00:00 2001 From: jiangshuai <291802688@qq.com> Date: 星期四, 19 十月 2023 15:52:37 +0800 Subject: [PATCH] 1.wms业务调整及bug修改 --- models/operation_type.go | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/models/operation_type.go b/models/operation_type.go index 4c5f86a..5c1c4b3 100644 --- a/models/operation_type.go +++ b/models/operation_type.go @@ -291,7 +291,8 @@ records = make([]*OperationTypeByStatus, 0) db = slf.Orm ) - db = db.Table("wms_job_type").Select("wms_job_type.id,wms_operation.status,count(wms_operation.id) as count").InnerJoins("inner join wms_operation on wms_operation.operation_type_id=wms_job_type.id").Group("wms_job_type.id,wms_operation.status") + db = db.Table("wms_job_type").Select("wms_job_type.id,wms_operation.status,count(wms_operation.id) as count").InnerJoins("inner join wms_operation on wms_operation.operation_type_id=wms_job_type.id").Where("wms_operation.deleted_at is null"). + Group("wms_job_type.id,wms_operation.status") if len(idList) > 0 { db = db.Where("wms_job_type.id IN ?", idList) } -- Gitblit v1.8.0