充电订单字段修正

zw
xjl 6 months ago
parent 53d526bab1
commit 1e48495e41

@ -75,14 +75,14 @@ public partial class AddChargeOrderReq
/// Default:
/// Nullable:True
/// </summary>
public int? StopSoc { get; set; }
public int StopSoc { get; set; }
/// <summary>
/// Desc:充电时长
/// Default:
/// Nullable:True
/// </summary>
public string ?ChargeTimeCount { get; set; }
public int ChargeTimeCount { get; set; }
/// <summary>
/// Desc:充电电量

@ -94,7 +94,7 @@ namespace Entity.Api.Req
/// Default:
/// Nullable:True
/// </summary>
public string? ChargeTimeCount { get; set; }
public int? ChargeTimeCount { get; set; }
/// <summary>
/// Desc:充电电量

@ -81,7 +81,7 @@ namespace Entity.Api.Req
/// Default:
/// Nullable:True
/// </summary>
public string? ChargeTimeCount { get; set; }
public int? ChargeTimeCount { get; set; }
/// <summary>

@ -93,7 +93,7 @@ namespace Entity.Api.Resp
/// Default:
/// Nullable:True
/// </summary>
public string ChargeTimeCount { get; set; }
public int ChargeTimeCount { get; set; }
/// <summary>
/// Desc:充电电量

@ -86,7 +86,7 @@ public class ChargeOrderService : BaseServices<ChargeOrder>
Expression<Func<ChargeOrder, bool>> condition2Expr = u => u.EndTime == chargeOrder.EndTime;
where = where == null ? condition2Expr : Expression.Lambda<Func<ChargeOrder, bool>>(Expression.AndAlso(where.Body, condition2Expr.Body), parameter);
}
if (!string.IsNullOrEmpty(chargeOrder.ChargeTimeCount))
if (chargeOrder.ChargeTimeCount!=0)
{
Expression<Func<ChargeOrder, bool>> condition2Expr = u => u.ChargeTimeCount == chargeOrder.ChargeTimeCount;
where = where == null ? condition2Expr : Expression.Lambda<Func<ChargeOrder, bool>>(Expression.AndAlso(where.Body, condition2Expr.Body), parameter);

Loading…
Cancel
Save