费用:根据类型获取结算对象列表接口调整

optimize
zhangxiaofeng 10 months ago
parent bb66ac7e55
commit 6a4ab1d5b7

@ -190,7 +190,7 @@ namespace Myshipping.Application
// 往来单位
default:
{
List<(string codeName, string shortName)> list = await _customerService.QueryDjyCustomerByProp(new string[] { code });
List<(string codeName, string shortName)> list = await _customerService.QueryDjyCustomerByProp(code);
return list.Select(x => new FeeCustomerDto()
{
Code = x.codeName,

@ -335,9 +335,9 @@ namespace Myshipping.Core.Service
return list;
}
public async Task<List<(string codeName, string shortName)>> QueryDjyCustomerByProp(string[] propStringCodes)
public async Task<List<(string codeName, string shortName)>> QueryDjyCustomerByProp(string propStringCode)
{
string propStringStr = string.Concat('[', string.Join("][", propStringCodes), ']');
string propStringStr = string.Concat('[', propStringCode, ']');
var entityList = await _rep.AsQueryable()
.Where(x => x.PropString.Contains(propStringStr))
.Select(x => new { code = x.CodeName, name = x.ShortName })

@ -28,7 +28,7 @@ namespace Myshipping.Core.Service
/// <summary>
/// 根据客户属性查询客户列表
/// </summary>
/// <param name="propStringCodes">客户属性编码</param>
Task<List<(string codeName, string shortName)>> QueryDjyCustomerByProp(string[] propStringCodes);
/// <param name="propStringCode">客户属性编码</param>
Task<List<(string codeName, string shortName)>> QueryDjyCustomerByProp(string propStringCode);
}
}

Loading…
Cancel
Save