南骏 池
2025-01-19 2b05015856b93e3bdbf5b015d3ef3562198e0819
1.组织信息接口
已修改3个文件
35 ■■■■ 文件已修改
StandardPda/MES.Service/Dto/webApi/ErpOrganize.cs 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
StandardPda/MES.Service/Modes/Organize.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
StandardPda/MES.Service/service/BasicData/OrganizeManager.cs 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
StandardPda/MES.Service/Dto/webApi/ErpOrganize.cs
@@ -6,12 +6,13 @@
    public string? Type { get; set; }
    public string? FNumber { get; set; }
    public string? FName { get; set; }
    public string? FForbidStatus { get; set; }
    public string? FDescription { get; set; }
    public string? FParentID { get; set; }
    public string? fCreateDate { get; set; }
    public string? FForbidorid { get; set; }
    public string? FForbiddate { get; set; }
    public string? FForbidStatus { get; set; }
   // public string? FDescription { get; set; }
    //public string? FParentID { get; set; }
    //public string? FForbidorid { get; set; }
    //public string? FForbiddate { get; set; }
}
StandardPda/MES.Service/Modes/Organize.cs
@@ -9,7 +9,7 @@
{
    /// <summary>
    /// </summary>
    [SugarColumn(ColumnName = "ID")]
    [SugarColumn(ColumnName = "ID", IsPrimaryKey = true)]
    public decimal Id { get; set; }
    /// <summary>
StandardPda/MES.Service/service/BasicData/OrganizeManager.cs
@@ -30,14 +30,15 @@
                        if (UpdateOrganizetatus(db, entity.Id, "B"))
                            return 1;
                        break;
                    case "2":
                        if (InsertItem(db, entity))
                            return 1;
                        break;
                    //case "2":
                    //    if (InsertItem(db, entity))
                    //        return 1;
                    //    break;
                    case "3":
                        if (DeleteItem(db, Convert.ToDecimal(entity.Id)))
                            return 1;
                        break;
                    case "2":
                    case "4":
                        if (InsertOrUpdate(db, entity))
                            return 1;
@@ -70,14 +71,15 @@
                            if (!UpdateOrganizetatusBatch(db, itemGroup.Value, "B"))
                                throw new NotImplementedException("禁用失败");
                            break;
                        case "2":
                            if (!InsertItemBatch(db, itemGroup.Value))
                                throw new NotImplementedException("插入失败");
                            break;
                        //case "2":
                        //    if (!InsertItemBatch(db, itemGroup.Value))
                        //        throw new NotImplementedException("插入失败");
                        //    break;
                        case "3":
                            if (!DeleteItemBatch(db, itemGroup.Value))
                                throw new NotImplementedException("删除失败");
                            break;
                        case "2":
                        case "4":
                            if (!InsertOrUpdateBatch(db, itemGroup.Value))
                                throw new NotImplementedException("同步失败");
@@ -132,8 +134,8 @@
                Fname = Organize.FName,
                Fforbidstatus = Organize.FForbidStatus,
                Type = Organize.Type,
                Fparentid=Organize.FParentID,
                Fcreatedate=DateTime.Now
                //Fparentid=Organize.FParentID,
                Fcreatedate = Organize.fCreateDate != null ?DateTime.ParseExact(Organize.fCreateDate, "yyyy-MM-dd HH:mm:ss", null):null
            };
        }