😭OA创建问题报告接口,新增两个字段,并查询人员RecordGuid
This commit is contained in:
parent
ad441155a5
commit
40bcd40004
453
admin.net.pro/Admin.NET/Vistar.Application/Entity/Obj81.cs
Normal file
453
admin.net.pro/Admin.NET/Vistar.Application/Entity/Obj81.cs
Normal file
@ -0,0 +1,453 @@
|
|||||||
|
// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
|
||||||
|
//
|
||||||
|
// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
|
||||||
|
//
|
||||||
|
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!
|
||||||
|
|
||||||
|
using Admin.NET.Core;
|
||||||
|
using SqlSugar;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
namespace Vistar.Application.Entity;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarTable("Obj81","")]
|
||||||
|
[Tenant("启威星 1.94.4.74")]
|
||||||
|
public class Obj81
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[Required]
|
||||||
|
[SugarColumn(ColumnName = "idRecord", IsIdentity = true, ColumnDescription = "", IsPrimaryKey = true)]
|
||||||
|
public long idRecord { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "CheckedStatus", ColumnDescription = "")]
|
||||||
|
public bool? CheckedStatus { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "VersionIndex", ColumnDescription = "")]
|
||||||
|
public bool? VersionIndex { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "IsLatestVersion", ColumnDescription = "")]
|
||||||
|
public bool? IsLatestVersion { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "CreatedDate", ColumnDescription = "")]
|
||||||
|
public DateTime? CreatedDate { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "dateModified", ColumnDescription = "")]
|
||||||
|
public DateTime? dateModified { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "UserCreatedId", ColumnDescription = "")]
|
||||||
|
public long? UserCreatedId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "UserModifiedId", ColumnDescription = "")]
|
||||||
|
public long? UserModifiedId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "RecordGuid", ColumnDescription = "", Length = 40)]
|
||||||
|
public string? RecordGuid { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "isVisibilityNormal", ColumnDescription = "")]
|
||||||
|
public bool? isVisibilityNormal { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "deleted", ColumnDescription = "")]
|
||||||
|
public bool? deleted { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "SubObjectGuid", ColumnDescription = "", Length = 40)]
|
||||||
|
public string? SubObjectGuid { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "PreviousStatus", ColumnDescription = "")]
|
||||||
|
public bool? PreviousStatus { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "revision", ColumnDescription = "", Length = 50)]
|
||||||
|
public string? revision { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "Record_image160_160", ColumnDescription = "")]
|
||||||
|
public byte[]? Record_image160_160 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "Record_Image320_240", ColumnDescription = "")]
|
||||||
|
public byte[]? Record_Image320_240 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "Record_ImageMax", ColumnDescription = "")]
|
||||||
|
public byte[]? Record_ImageMax { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "_System_objNBS", ColumnDescription = "", Length = 100)]
|
||||||
|
public string? _System_objNBS { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "_System_ObjDescription", ColumnDescription = "", Length = 200)]
|
||||||
|
public string? _System_ObjDescription { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "_System_Effectivity_Begin", ColumnDescription = "")]
|
||||||
|
public DateTime? _System_Effectivity_Begin { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "_System_Effectivity_End", ColumnDescription = "")]
|
||||||
|
public DateTime? _System_Effectivity_End { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "CheckedOutPc", ColumnDescription = "", Length = 255)]
|
||||||
|
public string? CheckedOutPc { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "GroupObjId", ColumnDescription = "")]
|
||||||
|
public long? GroupObjId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "EnableNotifications", ColumnDescription = "")]
|
||||||
|
public bool? EnableNotifications { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "UserId", ColumnDescription = "")]
|
||||||
|
public long? UserId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "FirstName", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? FirstName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "LastName", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? LastName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "VersionCreatedDate", ColumnDescription = "")]
|
||||||
|
public DateTime? VersionCreatedDate { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "VersionUserCreatedId", ColumnDescription = "")]
|
||||||
|
public long? VersionUserCreatedId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "LineManager", ColumnDescription = "")]
|
||||||
|
public long? LineManager { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "LineManager_Rec", ColumnDescription = "", Length = 40)]
|
||||||
|
public string? LineManager_Rec { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "LineManagerOther", ColumnDescription = "")]
|
||||||
|
public long? LineManagerOther { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "LineManagerOther_Rec", ColumnDescription = "", Length = 40)]
|
||||||
|
public string? LineManagerOther_Rec { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "_CheckOutInProgress", ColumnDescription = "")]
|
||||||
|
public bool? _CheckOutInProgress { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "LinkDrw", ColumnDescription = "")]
|
||||||
|
public bool? LinkDrw { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "ParentRecordGuid", ColumnDescription = "", Length = 50)]
|
||||||
|
public string? ParentRecordGuid { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld003866", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld003866 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld003975", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld003975 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld003976", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld003976 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld003977", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld003977 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld003978", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld003978 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld003979", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld003979 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld003980", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld003980 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld003981", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld003981 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld003982", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld003982 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld003983", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld003983 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld003984", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld003984 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[Required]
|
||||||
|
[SugarColumn(ColumnName = "_System_ObjNbsAuto", ColumnDescription = "", Length = 50)]
|
||||||
|
public string _System_ObjNbsAuto { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld004216", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld004216 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld004217", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld004217 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld004218", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld004218 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld004219", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld004219 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld004220", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld004220 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld004221", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld004221 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld004222", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld004222 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld004223", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld004223 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld004224", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld004224 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld004225", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld004225 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld004226", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld004226 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld004227", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld004227 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld004228", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld004228 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld004229", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld004229 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld004230", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld004230 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld004231", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld004231 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld004232", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld004232 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld004233", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld004233 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld004234", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld004234 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "_System_WebLink", ColumnDescription = "", Length = 500)]
|
||||||
|
public string? _System_WebLink { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "isReleasedVersion", ColumnDescription = "")]
|
||||||
|
public bool? isReleasedVersion { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld004900", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld004900 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld005700", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld005700 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "fld006088", ColumnDescription = "", Length = -1)]
|
||||||
|
public string? fld006088 { get; set; }
|
||||||
|
|
||||||
|
}
|
@ -54,7 +54,7 @@ public class OaCreateProcessInput
|
|||||||
public string fld005836 { get; set; }
|
public string fld005836 { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 问题处理人员
|
/// 机械问题处理人员
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string fld005838 { get; set; }
|
public string fld005838 { get; set; }
|
||||||
|
|
||||||
@ -122,4 +122,14 @@ public class OaCreateProcessInput
|
|||||||
/// 变更等级说明
|
/// 变更等级说明
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string fld005845 { get; set; }
|
public string fld005845 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 电气问题处理人员
|
||||||
|
/// </summary>
|
||||||
|
public string fld006061 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 软件问题处理人员
|
||||||
|
/// </summary>
|
||||||
|
public string fld006062 { get; set; }
|
||||||
}
|
}
|
||||||
|
@ -34,19 +34,24 @@ public class OaOpenInterfaceService : IDynamicApiController, ITransient
|
|||||||
public SolidWorksManageService.SolidWorksManageService _solidWorksManageService;
|
public SolidWorksManageService.SolidWorksManageService _solidWorksManageService;
|
||||||
public SqlSugarRepository<ObjectFieldsGroups> _objectFieldsGroupsRep;
|
public SqlSugarRepository<ObjectFieldsGroups> _objectFieldsGroupsRep;
|
||||||
public SqlSugarRepository<FieldGroupDefault> _fieldGroupDefaultRep;
|
public SqlSugarRepository<FieldGroupDefault> _fieldGroupDefaultRep;
|
||||||
|
public SqlSugarRepository<Obj81> _obj81Rep;
|
||||||
|
|
||||||
public OaOpenInterfaceService(
|
public OaOpenInterfaceService(
|
||||||
SqlSugarRepository<Obj109> obj109Rep,
|
SqlSugarRepository<Obj109> obj109Rep,
|
||||||
SqlSugarRepository<Obj140> obj140Rep,
|
SqlSugarRepository<Obj140> obj140Rep,
|
||||||
|
SqlSugarRepository<Obj81> obj81Rep,
|
||||||
SolidWorksManageService.SolidWorksManageService solidWorksManageService,
|
SolidWorksManageService.SolidWorksManageService solidWorksManageService,
|
||||||
SqlSugarRepository<ObjectFieldsGroups> objectFieldsGroupsRep,
|
SqlSugarRepository<ObjectFieldsGroups> objectFieldsGroupsRep,
|
||||||
SqlSugarRepository<FieldGroupDefault> fieldGroupDefaultRep)
|
SqlSugarRepository<FieldGroupDefault> fieldGroupDefaultRep
|
||||||
|
|
||||||
|
)
|
||||||
{
|
{
|
||||||
_obj109Rep = obj109Rep;
|
_obj109Rep = obj109Rep;
|
||||||
_obj140Rep = obj140Rep;
|
_obj140Rep = obj140Rep;
|
||||||
_solidWorksManageService = solidWorksManageService;
|
_solidWorksManageService = solidWorksManageService;
|
||||||
_objectFieldsGroupsRep = objectFieldsGroupsRep;
|
_objectFieldsGroupsRep = objectFieldsGroupsRep;
|
||||||
_fieldGroupDefaultRep = fieldGroupDefaultRep;
|
_fieldGroupDefaultRep = fieldGroupDefaultRep;
|
||||||
|
_obj81Rep= obj81Rep;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -155,7 +160,7 @@ public class OaOpenInterfaceService : IDynamicApiController, ITransient
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// OA创建流程
|
/// OA创建问题报告
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="input"></param>
|
/// <param name="input"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
@ -175,13 +180,13 @@ public class OaOpenInterfaceService : IDynamicApiController, ITransient
|
|||||||
string.IsNullOrWhiteSpace(input.fld005836) ||
|
string.IsNullOrWhiteSpace(input.fld005836) ||
|
||||||
string.IsNullOrWhiteSpace(input.fld005842) ||
|
string.IsNullOrWhiteSpace(input.fld005842) ||
|
||||||
string.IsNullOrWhiteSpace(input.fld005847) ||
|
string.IsNullOrWhiteSpace(input.fld005847) ||
|
||||||
string.IsNullOrWhiteSpace(input.fld005849.ToString("yyyy-MM-dd HH:mm:ss")) ||
|
input.fld005849 == default(DateTime) ||
|
||||||
|
//string.IsNullOrWhiteSpace(input.fld005849.ToString("yyyy-MM-dd HH:mm:ss")) ||
|
||||||
string.IsNullOrWhiteSpace(input.fld005850) ||
|
string.IsNullOrWhiteSpace(input.fld005850) ||
|
||||||
string.IsNullOrWhiteSpace(input.fld005852.ToString("yyyy-MM-dd HH:mm:ss")) ||
|
input.fld005852 == default(DateTime) ||
|
||||||
|
//string.IsNullOrWhiteSpace(input.fld005852.ToString("yyyy-MM-dd HH:mm:ss")) ||
|
||||||
string.IsNullOrWhiteSpace(input.fld005853) ||
|
string.IsNullOrWhiteSpace(input.fld005853) ||
|
||||||
string.IsNullOrWhiteSpace(input.fld005854)
|
string.IsNullOrWhiteSpace(input.fld005854)
|
||||||
|
|
||||||
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
response.Success = true;
|
response.Success = true;
|
||||||
@ -201,11 +206,30 @@ public class OaOpenInterfaceService : IDynamicApiController, ITransient
|
|||||||
fieldList.Add(new Field { key = "fld005831", value = input.fld005831 });
|
fieldList.Add(new Field { key = "fld005831", value = input.fld005831 });
|
||||||
fieldList.Add(new Field { key = "fld005832", value = input.fld005832 });
|
fieldList.Add(new Field { key = "fld005832", value = input.fld005832 });
|
||||||
fieldList.Add(new Field { key = "fld005833", value = input.fld005833 });
|
fieldList.Add(new Field { key = "fld005833", value = input.fld005833 });
|
||||||
fieldList.Add(new Field { key = "fld005836", value = input.fld005836 });
|
var responsiblePersonOaData = await _obj81Rep.AsQueryable().Where(x=>x.fld004900==input.fld005836 && x.deleted==false).ToListAsync();
|
||||||
|
if (responsiblePersonOaData.Count!=0)
|
||||||
|
{
|
||||||
|
fieldList.Add(new Field { key = "fld005836", value = "81" });
|
||||||
|
fieldList.Add(new Field { key = "fld005836_Rec", value = responsiblePersonOaData[0].RecordGuid });
|
||||||
|
}
|
||||||
|
|
||||||
fieldList.Add(new Field { key = "fld005842", value = input.fld005842 });
|
fieldList.Add(new Field { key = "fld005842", value = input.fld005842 });
|
||||||
fieldList.Add(new Field { key = "fld005847", value = input.fld005847 });
|
var createPersonOaData=await _obj81Rep.AsQueryable().Where(x=>x.fld004900==input.fld005847 && x.deleted==false).ToListAsync();
|
||||||
|
if (createPersonOaData.Count!=0)
|
||||||
|
{
|
||||||
|
fieldList.Add(new Field { key = "fld005848", value = "81" });
|
||||||
|
fieldList.Add(new Field { key = "fld005848_Rec", value = createPersonOaData[0].RecordGuid });
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
fieldList.Add(new Field { key = "fld005849", value = input.fld005849.ToString("yyyy-MM-dd HH:mm:ss") });
|
fieldList.Add(new Field { key = "fld005849", value = input.fld005849.ToString("yyyy-MM-dd HH:mm:ss") });
|
||||||
fieldList.Add(new Field { key = "fld005850", value = input.fld005850 });
|
var reviewerOaData = await _obj81Rep.AsQueryable().Where(x => x.fld004900 == input.fld005850 && x.deleted == false).ToListAsync();
|
||||||
|
if (reviewerOaData.Count != 0)
|
||||||
|
{
|
||||||
|
fieldList.Add(new Field { key = "fld005851", value = "81" });
|
||||||
|
fieldList.Add(new Field { key = "fld005851_Rec", value = reviewerOaData[0].RecordGuid });
|
||||||
|
}
|
||||||
|
|
||||||
fieldList.Add(new Field { key = "fld005852", value = input.fld005852.ToString("yyyy-MM-dd HH:mm:ss") });
|
fieldList.Add(new Field { key = "fld005852", value = input.fld005852.ToString("yyyy-MM-dd HH:mm:ss") });
|
||||||
fieldList.Add(new Field { key = "fld005853", value = input.fld005853 });
|
fieldList.Add(new Field { key = "fld005853", value = input.fld005853 });
|
||||||
fieldList.Add(new Field { key = "fld005854", value = input.fld005854 });
|
fieldList.Add(new Field { key = "fld005854", value = input.fld005854 });
|
||||||
@ -213,7 +237,12 @@ public class OaOpenInterfaceService : IDynamicApiController, ITransient
|
|||||||
|
|
||||||
if (!string.IsNullOrWhiteSpace(input.fld005838))
|
if (!string.IsNullOrWhiteSpace(input.fld005838))
|
||||||
{
|
{
|
||||||
fieldList.Add(new Field { key = "fld005838", value = input.fld005838 });
|
var mechanicalProblemHandlerOaId = await _obj81Rep.AsQueryable().Where(x => x.fld004900 == input.fld005838 && x.deleted == false).ToListAsync();
|
||||||
|
if (mechanicalProblemHandlerOaId.Count != 0)
|
||||||
|
{
|
||||||
|
fieldList.Add(new Field { key = "fld005837", value = "81" });
|
||||||
|
fieldList.Add(new Field { key = "fld005837_Rec", value = mechanicalProblemHandlerOaId[0].RecordGuid });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!string.IsNullOrWhiteSpace(input.fld005841))
|
if (!string.IsNullOrWhiteSpace(input.fld005841))
|
||||||
{
|
{
|
||||||
@ -235,6 +264,27 @@ public class OaOpenInterfaceService : IDynamicApiController, ITransient
|
|||||||
{
|
{
|
||||||
fieldList.Add(new Field { key = "fld005845", value = input.fld005845 });
|
fieldList.Add(new Field { key = "fld005845", value = input.fld005845 });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!string.IsNullOrWhiteSpace(input.fld006061))
|
||||||
|
{
|
||||||
|
var electricalProblemHandlerOaData = await _obj81Rep.AsQueryable().Where(x => x.fld004900 == input.fld006061 && x.deleted == false).ToListAsync();
|
||||||
|
if (electricalProblemHandlerOaData.Count != 0)
|
||||||
|
{
|
||||||
|
fieldList.Add(new Field { key = "fld006063", value = "81" });
|
||||||
|
fieldList.Add(new Field { key = "fld006063_Rec", value = electricalProblemHandlerOaData[0].RecordGuid });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!string.IsNullOrWhiteSpace(input.fld006062))
|
||||||
|
{
|
||||||
|
var softwareProblemHandlerOaData = await _obj81Rep.AsQueryable().Where(x => x.fld004900 == input.fld006062 && x.deleted == false).ToListAsync();
|
||||||
|
if (softwareProblemHandlerOaData.Count != 0)
|
||||||
|
{
|
||||||
|
fieldList.Add(new Field { key = "fld006062", value = "81" });
|
||||||
|
fieldList.Add(new Field { key = "fld006062_Rec", value = softwareProblemHandlerOaData[0].RecordGuid });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var fieldGroup = await _objectFieldsGroupsRep.AsQueryable().Where(x => x.GroupName == input.field_group && x.ObjectId == 140).FirstAsync();
|
var fieldGroup = await _objectFieldsGroupsRep.AsQueryable().Where(x => x.GroupName == input.field_group && x.ObjectId == 140).FirstAsync();
|
||||||
|
|
||||||
var data = new CreateProjectInput
|
var data = new CreateProjectInput
|
||||||
@ -255,7 +305,8 @@ public class OaOpenInterfaceService : IDynamicApiController, ITransient
|
|||||||
|
|
||||||
await _solidWorksManageService.CheckIn(CheckData);
|
await _solidWorksManageService.CheckIn(CheckData);
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
response.Success = true;
|
response.Success = true;
|
||||||
response.Message = "编码已存在";
|
response.Message = "编码已存在";
|
||||||
}
|
}
|
||||||
@ -263,4 +314,7 @@ public class OaOpenInterfaceService : IDynamicApiController, ITransient
|
|||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user