1
啊鑫
2024-12-12 b0e84ac95c285c8c552fe0bcda0806b10a81db34
MES.Service/service/WomcaaManager.cs
@@ -58,10 +58,11 @@
            db.Deleteable<Womcab>()
                .Where(s => s.Pid == mesWomcaa.Erpid).ExecuteCommand();
        //插入忽略空字段
        //单条插入忽略空字段
        var orUpdate = db.Insertable(mesWomcaa)
            .IgnoreColumns(true).ExecuteCommand() > 0;
        //批量插入忽略空字段
        var baOrUpdate = db.Insertable(mesWomcabs).PageSize(1)
            .IgnoreColumnsNull()
            .ExecuteCommand() > 0;
@@ -159,7 +160,7 @@
        {
            var womcab = new Womcab
            {
                Erpid = Convert.ToInt32(dto.FENTRYID), /// ERPID
                Erpid = Convert.ToInt32(dto.Id), /// ERPID
                Cab001 = dto.FBillNo, /// 工单单号 
                Cab002 = Convert.ToInt32(dto.FSeq), /// 序号 
                Cab003 = dto.FMaterialID, /// 材料编码 
@@ -206,7 +207,7 @@
            };
            var entity = Db.Queryable<Womcab>()
                .Where(s => s.Erpid == womcab.Erpid).Single();
                .Where(s => s.Eid == womcab.Eid).Single();
            if (entity != null) womcab.Guid = entity.Guid;
            womcabList.Add(womcab);