功能调整
This commit is contained in:
@@ -745,20 +745,6 @@ namespace ZR.Service.mes.wms
|
|||||||
Context.Ado.BeginTran();
|
Context.Ado.BeginTran();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// 批量更新校验状态
|
|
||||||
var packageCodes = preparegoodsList
|
|
||||||
.Where(p => !string.IsNullOrEmpty(p.PackageCode))
|
|
||||||
.Select(p => p.PackageCode)
|
|
||||||
.ToList();
|
|
||||||
|
|
||||||
if (packageCodes.Any())
|
|
||||||
{
|
|
||||||
Context.Updateable<WmFgentryInspect>()
|
|
||||||
.SetColumns(it => it.Bitwm == 1)
|
|
||||||
.Where(it => packageCodes.Contains(it.Packcode))
|
|
||||||
.ExecuteCommand();
|
|
||||||
}
|
|
||||||
|
|
||||||
// 批量插入入库记录
|
// 批量插入入库记录
|
||||||
int insertResult = Context.Insertable(preparegoodsList).ExecuteCommand();
|
int insertResult = Context.Insertable(preparegoodsList).ExecuteCommand();
|
||||||
if (insertResult == 0)
|
if (insertResult == 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user