|
@@ -1,5 +1,6 @@
|
|
|
using AutoMapper;
|
|
|
using OASystem.Domain;
|
|
|
+using OASystem.Domain.Dtos.Financial;
|
|
|
using OASystem.Domain.Dtos.Groups;
|
|
|
using OASystem.Domain.Entities.Financial;
|
|
|
using OASystem.Domain.ViewModels.Financial;
|
|
@@ -55,6 +56,36 @@ namespace OASystem.Infrastructure.Repositories.Financial
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// 根据diid查询团组应收款项
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="diid"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ public async Task<Result> GetGroupReceivablesInfoByDiId(ForForeignReceivablesInfoDto dto)
|
|
|
+ {
|
|
|
+ Result result = new() { Code = -2 };
|
|
|
+
|
|
|
+ var groupInfoData = await _delegationRep.GetGroupInfo(new GroupInfoDto() { Id = dto.DiId });
|
|
|
+ string sql = string.Format(@"Select * From Fin_ForeignReceivables Where IsDel=0 And Diid={0}", dto.DiId);
|
|
|
+ var groupReceivedList = await _sqlSugar.SqlQueryable<Fin_ForeignReceivables>(sql).ToListAsync();
|
|
|
+
|
|
|
+ if (dto.PortType == 1 )
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ result.Code = 0;
|
|
|
+ result.Msg = "查询成功!";
|
|
|
+ result.Data = new {
|
|
|
+ GroupInfo = groupInfoData.Data,
|
|
|
+ GroupReceivedData=groupReceivedList
|
|
|
+ };
|
|
|
+
|
|
|
+ return result;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 根据diid查询团组应收款项
|
|
|
/// </summary>
|