重要:代码全局优化与添加一次合格,抛光仓库的截止日期数据查询功能

This commit is contained in:
2025-07-28 15:40:59 +08:00
parent 89c113e5e1
commit 42de49629b
162 changed files with 3335 additions and 3604 deletions

View File

@@ -1,13 +1,11 @@
using System;
using System.Linq;
using Infrastructure.Attribute;
using Infrastructure.Extensions;
using SqlSugar;
using ZR.Model;
using System;
using System.Linq;
using ZR.Model.MES.qc;
using ZR.Model.MES.wms;
using ZR.Model.MES.wms.Dto;
using ZR.Repository;
using ZR.Service.mes.qc;
using ZR.Service.mes.wms.IService;
@@ -324,21 +322,24 @@ namespace ZR.Service.mes.wms
{
minCheckRecordQuantity = item.Quantity.Value;
}
// 入库数
int? runum = wmOneTimeRecords
.Where(o =>
o.ActionTime >= checkTime
&& o.Partnumber == item.Partnumber
&& o.ChangeType == 1
)
.WhereIF(parm.EndTime != null, o => o.ActionTime <= parm.EndTime)
.Select(o => o.ChangeQuantity)
.Sum();
// 出库数
int? chunum = wmOneTimeRecords
.Where(o =>
o.ActionTime >= checkTime
&& o.Partnumber == item.Partnumber
&& o.ChangeType == 2
)
.WhereIF(parm.EndTime != null, o => o.ActionTime <= parm.EndTime)
.Select(o => o.ChangeQuantity)
.Sum();