hao
11 小时以前 161574a0dd7d9e1da6e00c65855a0c8b401c934e
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("更新失败");
    }