调整vip绑定部分代码

develop
liuyangyi 2024-05-27 21:10:24 +08:00
parent 3aa8cf9bad
commit ea43e76962
4 changed files with 7 additions and 7 deletions

View File

@ -64,7 +64,7 @@ namespace New_College.Model.Models
/// <summary> /// <summary>
/// 租户id /// 租户id
/// </summary> /// </summary>
public virtual int? TenantId { get; set; } public virtual long? TenantId { get; set; }
} }
/// <summary> /// <summary>
///带上租户Id ///带上租户Id
@ -74,7 +74,7 @@ namespace New_College.Model.Models
/// <summary> /// <summary>
/// 租户id /// 租户id
/// </summary> /// </summary>
public virtual int? TenantId { get; set; } public virtual long? TenantId { get; set; }
} }

View File

@ -52,7 +52,7 @@ namespace New_College.Model.Models
/// <summary> /// <summary>
/// 用户Id /// 用户Id
/// </summary> /// </summary>
public int CustomerId { get; set; } public long CustomerId { get; set; }
/// <summary> /// <summary>
/// ///

View File

@ -6,7 +6,7 @@ namespace New_College.Model.ViewModels
{ {
public class VipCardQuery: BasePageRequest public class VipCardQuery: BasePageRequest
{ {
public int CustomerId { get; set; } public long CustomerId { get; set; }
public string CardCode { get; set; } public string CardCode { get; set; }
@ -15,13 +15,13 @@ namespace New_College.Model.ViewModels
public class OpenVipCardRequest public class OpenVipCardRequest
{ {
public int CustomerId { get; set; } public long CustomerId { get; set; }
public string CardCode { get; set; } public string CardCode { get; set; }
public string CardPwd { get; set; } public string CardPwd { get; set; }
public int? TenantId { get; set; } public long? TenantId { get; set; }
} }

View File

@ -210,7 +210,7 @@ namespace New_College.Services
var CoustomerId = await v_CustomerInfoRepository.Query(x => x.Phone.Contains(query.Phone)); var CoustomerId = await v_CustomerInfoRepository.Query(x => x.Phone.Contains(query.Phone));
var ids = CoustomerId.Select(x => x.Id).ToList(); var ids = CoustomerId.Select(x => x.Id).ToList();
if (CoustomerId != null) if (CoustomerId != null)
wheres = wheres.And(x => ids.Contains(x.CustomerId)); wheres = wheres.And(x => ids.Contains((int)x.CustomerId));
} }
//根据卡片类别查询 //根据卡片类别查询