查询电池运营模型

zw
tq 6 months ago
parent cc18e938d4
commit 666510a316

@ -293,7 +293,7 @@ public class ChargeOrderDto
/// Default:CURRENT_TIMESTAMP
/// Nullable:True
/// </summary>
[ExporterHeader(DisplayName = "更新时间", IsBold = true)]
[ExporterHeader(DisplayName = "更新时间", IsBold = true,Width = 25)]
public DateTime? UpdatedTime { get; set; }

@ -0,0 +1,25 @@
using Entity.DbModel.Station;
using HybirdFrameworkCore.Entity;
namespace Entity.Dto.Req;
public class BatteryOpModelDetailReq
{
}
public class PageBatteryOpModelDetailReq : QueryPageModel
{
public string BatteryType { get; set; }
}
public class AddBatteryOpModelDetailReq : BatteryOpModelDetail
{
}
public class UpdateBatteryOpModelDetailReq : AddBatteryOpModelDetailReq
{
}
public class DeleteBatteryOpModelDetailReq : BaseIdReq
{
}

@ -0,0 +1,52 @@
using System.ComponentModel.DataAnnotations;
using Entity.DbModel.Station;
using Entity.Dto.Req;
using HybirdFrameworkCore.Entity;
using Microsoft.AspNetCore.Mvc;
using Service.Station;
namespace WebStarter.Controllers;
/// <summary>
/// 电池运营模型
/// </summary>
[ApiController]
[Route("api/[controller]")]
public class BatteryOpModelDetailController
{
private readonly BatteryOpModelDetailService _batteryOpModelDetailService;
public BatteryOpModelDetailController(BatteryOpModelDetailService batteryOpModelService)
{
_batteryOpModelDetailService = batteryOpModelService;
}
/// <summary>
/// 获取电池运营模型分页列表
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost]
[Route("page")]
public async Task<PageResult<BatteryOpModelDetail>> BatteryOpModelPageList(
[FromBody] PageBatteryOpModelDetailReq input)
{
return await _batteryOpModelDetailService.Page(input);
}
/// <summary>
/// 删除电池运营模型
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost]
[Route("delete")]
public async Task<Result<bool>> DeleteBatteryOpModel([FromBody] [Required] DeleteBatteryOpModelDetailReq input)
{
var data = await _batteryOpModelDetailService.DeleteBatteryOpModelDetail(input);
if (data)
return Result<bool>.Success(data);
else
return Result<bool>.Fail(data);
}
}

@ -26,7 +26,7 @@ public class EquipAlarmRecordController : ControllerBase
/// <param name="typeCode">设备类型:-1-查询全部0-充电机1-电表2-水冷机3-plc<</param>
/// <param name="equipCode">设备编码</param>
/// <returns></returns>
[HttpPost("/QueryEquipAlarmPage")]
[HttpPost("QueryEquipAlarmPage")]
public Result<PageResult<EquipAlarmRecord>> QueryEquipAlarmPage([FromBody] QueryAlarmReq req)
{
return equipAlarmRecordService.QueryEquipAlarmPage(req);
@ -38,7 +38,7 @@ public class EquipAlarmRecordController : ControllerBase
/// <param name="typeCode">设备类型:-1-查询全部0-充电机1-电表2-水冷机3-plc</param>
/// <param name="equipCode">设备编码</param>
/// <returns></returns>
[HttpPost("/QueryEquipAlarmProcessPage")]
[HttpPost("QueryEquipAlarmProcessPage")]
public Result<PageResult<EquipAlarmProcessRecord>> QueryEquipAlarmProcessPage([FromBody] QueryAlarmReq req)
{
return equipAlarmRecordService.QueryEquipAlarmProcessPage(req);

Loading…
Cancel
Save