2021-05-27 16:58:40 +08:00
|
|
|
|
using Furion.DynamicApiController;
|
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
using Nirvana.Common;
|
|
|
|
|
|
using System.Threading.Tasks;
|
2022-05-19 15:01:08 +08:00
|
|
|
|
using Waste.Application.SubscribeInfo;
|
2021-05-27 16:58:40 +08:00
|
|
|
|
|
|
|
|
|
|
namespace Waste.Application.ResultInfos
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 投放记录
|
|
|
|
|
|
/// </summary>
|
2022-05-19 15:01:08 +08:00
|
|
|
|
public class ResultAppService : IDynamicApiController
|
2021-05-27 16:58:40 +08:00
|
|
|
|
{
|
|
|
|
|
|
private readonly IResultService _resultService;
|
2022-07-06 09:07:42 +08:00
|
|
|
|
|
2021-05-27 16:58:40 +08:00
|
|
|
|
public ResultAppService(IResultService resultService)
|
|
|
|
|
|
{
|
|
|
|
|
|
_resultService = resultService;
|
|
|
|
|
|
}
|
2022-07-06 09:07:42 +08:00
|
|
|
|
|
2021-05-27 16:58:40 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 投放记录列表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="param"></param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost]
|
|
|
|
|
|
public async Task<PageParms<ResultList>> GetListAsync(QueryParams param)
|
|
|
|
|
|
{
|
|
|
|
|
|
return await _resultService.GetListAsync(param);
|
|
|
|
|
|
}
|
2022-07-06 09:07:42 +08:00
|
|
|
|
|
2021-05-27 16:58:40 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 添加记录
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="myPackage"></param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
public async Task<ResultInfo> InsertResultAsync(MyPackage myPackage)
|
|
|
|
|
|
{
|
|
|
|
|
|
return await _resultService.InsertResultAsync(myPackage);
|
|
|
|
|
|
}
|
2022-05-19 15:01:08 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// wifi模块测量结果增加
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="data"></param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
public async Task InsertResultByWifiAsync(WifiPackage data)
|
|
|
|
|
|
{
|
|
|
|
|
|
await _resultService.InsertResultByWifiAsync(data);
|
|
|
|
|
|
}
|
2022-07-12 17:53:04 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询历史投放记录
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="input"></param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost]
|
|
|
|
|
|
[Route("api/open/getresultlist")]
|
|
|
|
|
|
[ApiDescriptionSettings("DevApi")]
|
|
|
|
|
|
public async Task<PageParms<ResultListByEquS2CDto>> GetListByEquAsync(ResultListByEquC2SDto input)
|
|
|
|
|
|
{
|
|
|
|
|
|
return await _resultService.GetListByEquAsync(input);
|
|
|
|
|
|
}
|
2021-05-27 16:58:40 +08:00
|
|
|
|
}
|
2022-07-06 09:07:42 +08:00
|
|
|
|
}
|