hao
2025-05-20 e191eb959028eb2177497498e57205a3bdba5d9d
添加供协送货单接口列表route字段
已修改3个文件
11 ■■■■ 文件已修改
StandardInterface/MES.Service/service/WomcaaManager.cs 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
StandardInterface/MESApplication/Controllers/SRM/MesDeliveryNoteBarcodeController.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
StandardInterface/MESApplication/Controllers/SRM/MesDeliveryNoteController.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
StandardInterface/MES.Service/service/WomcaaManager.cs
@@ -77,6 +77,7 @@
            .Deleteable<Womcab>().In(decimals)
            .ExecuteCommand() > 0;
        if (update && insertOrUpdate) return true;
        throw new NotImplementedException("更新失败");
    }
@@ -265,8 +266,12 @@
            var entity = Db.Queryable<Womcab>()
                .Where(s => s.Erpid == womcab.Erpid).Single();
            if (entity != null) womcab.Id = entity.Id;
            if (entity != null)
            {
                // 删除已有的 Erpid 相关的 Womcab 数据
              //  Db.Deleteable<Womcab>().Where(s => s.Erpid == womcab.Erpid).ExecuteCommand();
                womcab.Id = entity.Id;
            }
            womcabList.Add(womcab);
        }
StandardInterface/MESApplication/Controllers/SRM/MesDeliveryNoteBarcodeController.cs
@@ -31,6 +31,7 @@
        entity.Data = JsonConvert.SerializeObject(barcode);
        entity.Status = 1;
        entity.CreateBy = "PL017";
        entity.Route= barcode.DeliveryNo;
        try
        {
            dynamic resultInfos = new ExpandoObject();
StandardInterface/MESApplication/Controllers/SRM/MesDeliveryNoteController.cs
@@ -31,6 +31,7 @@
        entity.Data = JsonConvert.SerializeObject(delivery);
        entity.Status = 1;
        entity.CreateBy = "PL017";
        entity.Route = delivery.DeliveryNote.DeliveryNo;
        try
        {
            dynamic resultInfos = new ExpandoObject();