|
@@ -192,7 +192,7 @@ namespace Hotline.Api.Controllers
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
- /// 预案库草稿上架到审核
|
|
|
|
|
|
+ /// 预案库草稿到审核
|
|
/// </summary>
|
|
/// </summary>
|
|
/// <param name="dto"></param>
|
|
/// <param name="dto"></param>
|
|
/// <returns></returns>
|
|
/// <returns></returns>
|
|
@@ -209,7 +209,7 @@ namespace Hotline.Api.Controllers
|
|
/// </summary>
|
|
/// </summary>
|
|
/// <param name="dto"></param>
|
|
/// <param name="dto"></param>
|
|
/// <returns></returns>
|
|
/// <returns></returns>
|
|
- [HttpGet("list/draftremove")]
|
|
|
|
|
|
+ [HttpDelete("list/draftremove")]
|
|
public async Task RemovePlanDraft([FromBody] UpdatePlanListDto dto)
|
|
public async Task RemovePlanDraft([FromBody] UpdatePlanListDto dto)
|
|
{
|
|
{
|
|
dto.ApplyStatus = EPlanApplyStatus.Delete;
|
|
dto.ApplyStatus = EPlanApplyStatus.Delete;
|
|
@@ -220,13 +220,15 @@ namespace Hotline.Api.Controllers
|
|
/// <summary>
|
|
/// <summary>
|
|
/// 预案库删除
|
|
/// 预案库删除
|
|
/// </summary>
|
|
/// </summary>
|
|
- /// <param name="dto"></param>
|
|
|
|
|
|
+ /// <param name="Id"></param>
|
|
/// <returns></returns>
|
|
/// <returns></returns>
|
|
- [HttpGet("list/remove")]
|
|
|
|
- public async Task RemovePlan([FromBody] UpdatePlanListDto dto)
|
|
|
|
|
|
+ [HttpDelete("list/remove/{Id}")]
|
|
|
|
+ public async Task RemovePlan(string Id)
|
|
{
|
|
{
|
|
|
|
+ UpdatePlanListDto dto = new UpdatePlanListDto();
|
|
dto.ApplyStatus = EPlanApplyStatus.Delete;
|
|
dto.ApplyStatus = EPlanApplyStatus.Delete;
|
|
dto.Status = EPlanStatus.Auditing;
|
|
dto.Status = EPlanStatus.Auditing;
|
|
|
|
+ dto.Id = Id;
|
|
await _planApplication.UpdatePlanAsync(dto, HttpContext.RequestAborted);
|
|
await _planApplication.UpdatePlanAsync(dto, HttpContext.RequestAborted);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -256,6 +258,21 @@ namespace Hotline.Api.Controllers
|
|
await _planApplication.UpdatePlanAsync(dto, HttpContext.RequestAborted);
|
|
await _planApplication.UpdatePlanAsync(dto, HttpContext.RequestAborted);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 预案库上架
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <param name="Id">预案库ID</param>
|
|
|
|
+ /// <returns></returns>
|
|
|
|
+ [HttpGet("list/onshelf/{Id}")]
|
|
|
|
+ public async Task OnshelfPlan(string Id)
|
|
|
|
+ {
|
|
|
|
+ UpdatePlanListDto dto = new UpdatePlanListDto();
|
|
|
|
+ dto.Id = Id;
|
|
|
|
+ dto.ApplyStatus = EPlanApplyStatus.Add;
|
|
|
|
+ dto.Status = EPlanStatus.OnShelf;
|
|
|
|
+ await _planApplication.AuditPlanAsync(dto, HttpContext.RequestAborted);
|
|
|
|
+ }
|
|
|
|
+
|
|
/// <summary>
|
|
/// <summary>
|
|
/// 预案库下架
|
|
/// 预案库下架
|
|
/// </summary>
|
|
/// </summary>
|
|
@@ -321,12 +338,13 @@ namespace Hotline.Api.Controllers
|
|
/// <summary>
|
|
/// <summary>
|
|
/// 预案库详情
|
|
/// 预案库详情
|
|
/// </summary>
|
|
/// </summary>
|
|
- /// <param name="dto"></param>
|
|
|
|
|
|
+ /// <param name="Id"></param>
|
|
|
|
+ /// <param name="IsAddPv"></param>
|
|
/// <returns></returns>
|
|
/// <returns></returns>
|
|
[HttpGet("list/info")]
|
|
[HttpGet("list/info")]
|
|
- public async Task<PlanInfoDto> GetPlan([FromBody] PvPlanListDto dto)
|
|
|
|
|
|
+ public async Task<PlanInfoDto> GetPlan(string Id, bool IsAddPv)
|
|
{
|
|
{
|
|
- return await _planApplication.GetPlanAsync(dto.Id, dto.IsAddPv, HttpContext.RequestAborted);
|
|
|
|
|
|
+ return await _planApplication.GetPlanAsync(Id, IsAddPv, HttpContext.RequestAborted);
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|