aaa
zyf
2024-08-06 f7899769244519db9967e3cdfc57d8ee48c31eb4
aaa
已修改2个文件
18 ■■■■ 文件已修改
MES.Service/Dto/webApi/ErpCAB.cs 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/service/WomcaaManager.cs 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/Dto/webApi/ErpCAB.cs
@@ -20,5 +20,7 @@
    public string? FNumerator { get; set; }
    public string? FDenominator { get; set; }
    public string ID { get; set; }
    public string PID { get; set; }
    public string? PID { get; set; }
    public string? FSeq { get; set; }
}
MES.Service/service/WomcaaManager.cs
@@ -2,6 +2,8 @@
using MES.Service.Dto.webApi;
using MES.Service.Modes;
using SqlSugar;
using System;
using System.Security.Cryptography;
namespace MES.Service.service;
@@ -74,7 +76,8 @@
    private Womcaa MapErpCAAtoWomcaa(ErpCAA dto)
    {
        return new Womcaa
       var entity = new Womcaa
        {
            Erpid = Convert.ToDecimal(dto.Id),
            Caa001 = dto.FBillNo,
@@ -115,6 +118,11 @@
            Caa019 = Convert.ToDecimal(dto.planSeq),
            Caa020 = dto.planNum
        };
        var single = base.GetSingle(it => it.Erpid == entity.Erpid);
        if (single != null) entity.Id = single.Id;
        return entity;
    }
    private List<Womcab> MapErpCABtoWomcab(List<ErpCAB> dtoList)
@@ -127,6 +135,7 @@
            {
                Erpid = Convert.ToDecimal(dto.ID),
                Cab001 = dto.FBillNo,
                Cab002 = dto.FSeq,
                Cab003 = dto.FMaterialID2,
                Cab006 = !string.IsNullOrEmpty(dto.FNeedQty2)
                    ? Convert.ToDecimal(dto.FNeedQty2)
@@ -152,6 +161,9 @@
                Eid = Convert.ToDecimal(dto.PID)
            };
            var entity = Db.Queryable<Womcab>().Where(s => s.Erpid == womcab.Erpid).Single();
            if (entity != null) womcab.Id = entity.Id;
            womcabList.Add(womcab);
        }