南骏 池
2025-06-06 a4ae3bf5f1826e8e29a95da3dc2c947d713d4ebb
MES.Service/service/BasicData/MesUnitManager.cs
@@ -60,14 +60,11 @@
                        if (!UpdateUnitStatusBatch(db, unitGroup.Value, "B"))
                            throw new NotImplementedException("禁用失败");
                        break;
                    case "2":
                        if (!InsertUnitBatch(db, unitGroup.Value))
                            throw new NotImplementedException("插入失败");
                        break;
                    case "3":
                        if (!DeleteUnitBatch(db, unitGroup.Value))
                            throw new NotImplementedException("删除失败");
                        break;
                    case "2":
                    case "4":
                        if (!InsertOrUpdateBatch(db, unitGroup.Value))
                            throw new NotImplementedException("同步失败");
@@ -121,7 +118,7 @@
            Fnumber = unit.FNumber,
            Fname = unit.FName,
            Funitgroupid = unit.FUnitGroupId,
            Fconvertdenominator = unit.FConvertDenominator,
            Fconvertdenominator = Convert.ToDouble(unit.ConvertDenominator),
            Fcurrentunitid = unit.FCurrentUnitId,
            Fconvertnumerator = unit.FConvertNumerator,
            Fbaseunit = unit.FBaseUnit,