hao
8 小时以前 161574a0dd7d9e1da6e00c65855a0c8b401c934e
反审核无id通过
已修改4个文件
88 ■■■■ 文件已修改
StandardInterface/MES.Service/service/BasicData/Production/ProductionOrderManager.cs 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
StandardInterface/MES.Service/service/BasicData/Sales/SalesOrderManager.cs 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
StandardInterface/MES.Service/service/BasicData/Sales/SalesReturnNoticeManager.cs 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
StandardInterface/MES.Service/service/WomcaaManager.cs 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
StandardInterface/MES.Service/service/BasicData/Production/ProductionOrderManager.cs
@@ -50,12 +50,25 @@
        List<Womcab> mesRohInDatas)
    {
        var decimals = mesRohInDatas.Select(s => s.Id).ToArray();
        var update = base.DeleteById(womcaaWW.Id);
        var insertOrUpdate = db
            .Deleteable<Womcab>().In(decimals)
            .ExecuteCommand() > 0;
        if (update && insertOrUpdate) return true;
        var update = true;
        if (womcaaWW != null)
        {
            if (womcaaWW.Id != null)
            {
                update = base.DeleteById(womcaaWW.Id);
            }
        }
        var insertOrUpdate = true;
        if (decimals != null || decimals.Length > 0)
        {
            insertOrUpdate = db.Deleteable<Womcab>().In(decimals).ExecuteCommand() > 0;
        }
        if (update && insertOrUpdate)
        {
            return true;
        }
        throw new NotImplementedException("更新失败");
    }
StandardInterface/MES.Service/service/BasicData/Sales/SalesOrderManager.cs
@@ -39,14 +39,29 @@
    private bool DeleteData(SqlSugarScope db, SalesOrder mesSalesOrder, List<SalesOrderDetail> mesSalesOrderDatas)
    {
        var decimals = mesSalesOrderDatas.Select(s => s.Id).ToArray();
        var update = base.DeleteById(mesSalesOrder.Id);
        var insertOrUpdate = db.Deleteable<SalesOrderDetail>().In(decimals).ExecuteCommand() > 0;
        var update = true;
        if (mesSalesOrder != null) {
            if (mesSalesOrder.Id != null)
            {
                 update = base.DeleteById(mesSalesOrder.Id);
            }
        }
        var insertOrUpdate = true;
        if (decimals != null || decimals .Length>0)
        {
            insertOrUpdate = db.Deleteable<SalesOrderDetail>().In(decimals).ExecuteCommand() > 0;
        }
        if (update && insertOrUpdate)
        {
            return true;
        }
        throw new NotImplementedException("更新失败");
    }
    // 插入或更新数据的方法
StandardInterface/MES.Service/service/BasicData/Sales/SalesReturnNoticeManager.cs
@@ -48,12 +48,25 @@
        List<SalesReturnNoticeDetail> mesSalesReturnDatas)
    {
        var decimals = mesSalesReturnDatas.Select(s => s.Id).ToArray();
        var update = base.DeleteById(mesSalesReturn.Id);
        var insertOrUpdate = db
            .Deleteable<SalesReturnNoticeDetail>().In(decimals)
            .ExecuteCommand() > 0;
        if (update && insertOrUpdate) return true;
        var update = true;
        if (mesSalesReturn != null)
        {
            if (mesSalesReturn.Id != null)
            {
                update = base.DeleteById(mesSalesReturn.Id);
            }
        }
        var insertOrUpdate = true;
        if (decimals != null || decimals.Length > 0)
        {
            insertOrUpdate = db.Deleteable<SalesReturnNoticeDetail>().In(decimals).ExecuteCommand() > 0;
        }
        if (update && insertOrUpdate)
        {
            return true;
        }
        throw new NotImplementedException("更新失败");
    }
StandardInterface/MES.Service/service/WomcaaManager.cs
@@ -72,14 +72,27 @@
        List<Womcab> mesWomcabs)
    {
        var decimals = mesWomcabs.Select(s => s.Id).ToArray();
        var update = base.DeleteById(mesWomcaa.Id);
        var insertOrUpdate = db
            .Deleteable<Womcab>().In(decimals)
            .ExecuteCommand() > 0;
        var update = true;
        if (mesWomcaa != null)
        {
            if (mesWomcaa.Id != null)
            {
                update = base.DeleteById(mesWomcaa.Id);
            }
        }
        var insertOrUpdate = true;
        if (decimals != null || decimals.Length > 0)
        {
            insertOrUpdate = db.Deleteable<Womcab>().In(decimals).ExecuteCommand() > 0;
        }
        if (update && insertOrUpdate) return true;
        if (update && insertOrUpdate)
        {
            return true;
        }
        throw new NotImplementedException("更新失败");
    }
    private Womcaa MapErpCAAtoWomcaa(ErpCAA dto)