ningshuxia
2022-08-15 11e0488e846b69f204292cd66742674dee355426
Service/IStation.Service4Product/pump_curve/pump_curve_mapping/PumpCurveMapping.cs
@@ -493,9 +493,11 @@
        public bool SetByCurveID(long CorpID, long CurveID, List<Model.PumpCurveMapping> list)
        {
            var dal = new DAL.PumpCurveMapping();
            if (list != null && list.Count > 0)
            {
                if (list.GroupBy(x => x.PumpID).Count() > 0)
                if (list.GroupBy(x => x.PumpID).Max(x=>x.Count()) > 1)
                    return false;
                var allCurveMappingList = GetCorpCache(CorpID);
                var updateWorkingList = list.FindAll(x => x.IsWorking).ToList();