项目移交接口
parent
d56a896b45
commit
47181c5a0d
|
|
@ -483,12 +483,18 @@ namespace OpenAuth.App.ServiceApp.DroneSsnydManage
|
|||
{
|
||||
throw new Exception("项目不存在");
|
||||
}
|
||||
|
||||
project.RcjgList = Repository
|
||||
.ChangeRepository<SugarRepositiry<DroneSsnydRcjg>>().AsQueryable()
|
||||
.Where(c => c.ssnyd_id == id)
|
||||
.ToList();
|
||||
|
||||
return project;
|
||||
}
|
||||
|
||||
public async Task ProjectHandover(ProjectHandoverReq req)
|
||||
{
|
||||
var project = req.MapTo<DroneSsnyd>();
|
||||
await Repository.AsUpdateable(project).IgnoreNullColumns().ExecuteCommandAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
namespace OpenAuth.App.ServiceApp.DroneSsnydManage.Request;
|
||||
|
||||
public class ProjectHandoverReq
|
||||
{
|
||||
/// <summary>
|
||||
/// 项目id
|
||||
/// </summary>
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 移交部门
|
||||
/// </summary>
|
||||
public string yijiaobumen { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 移交原因
|
||||
/// </summary>
|
||||
public string yijiaoyuanyin { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 移交人员
|
||||
/// </summary>
|
||||
public string yijiaorenyuan { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 移交时间
|
||||
/// </summary>
|
||||
public DateTime yijiaoshijian { get; set; }
|
||||
}
|
||||
|
|
@ -130,7 +130,6 @@ namespace OpenAuth.WebApi.Controllers.ServiceControllers
|
|||
/// <param name="newXiangmuNo"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
|
||||
public async Task<Response<bool>> MaintainNumber(string id, string newXiangmuNo)
|
||||
{
|
||||
var response = new Response<bool>();
|
||||
|
|
@ -218,9 +217,32 @@ namespace OpenAuth.WebApi.Controllers.ServiceControllers
|
|||
|
||||
return response;
|
||||
}
|
||||
|
||||
// 项目移交 项目详情
|
||||
|
||||
|
||||
// 项目移交
|
||||
/// <summary>
|
||||
/// 项目移交
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="newUserId"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<Response<bool>> ProjectHandover(ProjectHandoverReq req)
|
||||
{
|
||||
var response = new Response<bool>();
|
||||
try
|
||||
{
|
||||
await droneSsnyApp.ProjectHandover(req);
|
||||
response.Result = true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
response.Code = 500;
|
||||
response.Message = ex.InnerException?.Message ?? ex.Message;
|
||||
}
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 项目详情
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Reference in New Issue