啊鑫
2024-10-30 c02ff3f682398f022488f98b87a79d4a8e04b5dd
接口更新
已修改10个文件
53 ■■■■ 文件已修改
MES.Service/Modes/MesItems.cs 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/service/BasicData/MesCustomerManager.cs 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/service/BasicData/MesDepotsManager.cs 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/service/BasicData/MesItemsManager.cs 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/service/BasicData/MesPositionManager.cs 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/service/BasicData/MesSupplierManager.cs 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/service/BasicData/MesUnitManager.cs 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/service/BasicData/OrganizeManager.cs 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/service/BasicData/SysDepartmentManager.cs 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/service/MessageCenterManager.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/Modes/MesItems.cs
@@ -218,18 +218,6 @@
    public decimal Fpurchaseunitid { get; set; }
    /// <summary>
    ///     创建组织
    /// </summary>
    [SugarColumn(ColumnName = "create_org")]
    public int? CreateOrg { get; set; }
    /// <summary>
    ///     使用组织
    /// </summary>
    [SugarColumn(ColumnName = "use_org")]
    public int? UseOrg { get; set; }
    /// <summary>
    ///     损耗率
    /// </summary>
    [SugarColumn(ColumnName = "loss_percent")]
MES.Service/service/BasicData/MesCustomerManager.cs
@@ -23,14 +23,11 @@
                    if (UpdateCustomerStatus(db, entity.Id, "B"))
                        return 1;
                    break;
                case "2":
                    if (InsertCustomer(db, entity))
                        return 1;
                    break;
                case "3":
                    if (DeleteCustomer(db, entity.Id))
                        return 1;
                    break;
                case "2":
                case "4":
                    if (InsertOrUpdate(db, entity))
                        return 1;
MES.Service/service/BasicData/MesDepotsManager.cs
@@ -23,14 +23,11 @@
                    if (UpdateDepotStatus(db, entity.DepotId, "B")) return 1;
                    break;
                case "2":
                    if (InsertDepot(db, entity)) return 1;
                    break;
                case "3":
                    if (DeleteDepot(db, entity.DepotId)) return 1;
                    break;
                case "2":
                case "4":
                    if (InsertOrUpdate(db, entity)) return 1;
MES.Service/service/BasicData/MesItemsManager.cs
@@ -23,14 +23,11 @@
                    if (UpdateItemStatus(db, entity.Id, "B"))
                        return 1;
                    break;
                case "2":
                    if (InsertItem(db, entity))
                        return 1;
                    break;
                case "3":
                    if (DeleteItem(db, entity.Id))
                        return 1;
                    break;
                case "2":
                case "4":
                    if (InsertOrUpdate(db, entity))
                        return 1;
MES.Service/service/BasicData/MesPositionManager.cs
@@ -25,14 +25,11 @@
                    if (UpdatePositionStatus(db, entity.Id, "B")) // 禁用岗位
                        return 1;
                    break;
                case "2":
                    if (InsertOrUpdatePosition(db, entity)) // 插入或更新岗位
                        return 1;
                    break;
                case "3":
                    if (DeletePosition(db, entity.Id)) // 删除岗位
                        return 1;
                    break;
                case "2":
                case "4":
                    if (InsertOrUpdatePosition(db, entity)) // 插入或更新岗位
                        return 1;
MES.Service/service/BasicData/MesSupplierManager.cs
@@ -23,14 +23,11 @@
                    if (UpdateSupplierStatus(db, entity.Id, "B"))
                        return 1;
                    break;
                case "2":
                    if (InsertSupplier(db, entity))
                        return 1;
                    break;
                case "3":
                    if (DeleteSupplier(entity.Id))
                        return 1;
                    break;
                case "2":
                case "4":
                    if (InsertOrUpdate(db, entity))
                        return 1;
MES.Service/service/BasicData/MesUnitManager.cs
@@ -23,14 +23,11 @@
                    if (UpdateUnitStatus(db, entity.Id, "B"))
                        return 1;
                    break;
                case "2":
                    if (InsertUnit(db, entity))
                        return 1;
                    break;
                case "3":
                    if (DeleteUnit(db, entity.Id))
                        return 1;
                    break;
                case "2":
                case "4":
                    if (InsertOrUpdate(db, entity))
                        return 1;
MES.Service/service/BasicData/OrganizeManager.cs
@@ -23,14 +23,11 @@
                    if (UpdateOrganizetatus(db, entity.FNumber, "B"))
                        return 1;
                    break;
                case "2":
                    if (InsertItem(db, entity))
                        return 1;
                    break;
                case "3":
                    if (DeleteItem(db, entity.FNumber))
                        return 1;
                    break;
                case "2":
                case "4":
                    if (InsertOrUpdate(db, entity))
                        return 1;
MES.Service/service/BasicData/SysDepartmentManager.cs
@@ -27,14 +27,11 @@
                    if (UpdateDepartmentStatus(db, entity.Id, "B")) // 禁用部门
                        return 1;
                    break;
                case "2":
                    if (InsertDepartment(db, entity)) // 插入新部门
                        return 1;
                    break;
                case "3":
                    if (DeleteDepartment(db, entity.Id)) // 删除部门
                        return 1;
                    break;
                case "2":
                case "4":
                    if (InsertOrUpdateDepartment(db, entity)) // 插入或更新部门
                        return 1;
MES.Service/service/MessageCenterManager.cs
@@ -21,6 +21,7 @@
    public int save(MessageCenter entity)
    {
        entity.Guid = Guid.NewGuid();
        entity.CreateDate = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        entity.Method = "POST";
        return Db.Insertable(entity).ExecuteReturnIdentity();