using AutoMapper;
using OASystem.Domain.Entities.Groups;
using OASystem.Domain.ViewModels.Groups;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OASystem.Infrastructure.Repositories.Groups
{
///
/// 签证提成录入
/// 仓储
///
public class VisaCommissionRepository : BaseRepository
{
private readonly IMapper _mapper;
private readonly DelegationInfoRepository _groupRep;
public VisaCommissionRepository(SqlSugarClient sqlSugar, IMapper mapper, DelegationInfoRepository groupRep)
: base(sqlSugar)
{
_mapper = mapper;
_groupRep = groupRep;
}
///
/// 基础数据
///
///
public async Task _Init()
{
var groupInfo = await _groupRep.GetGroupNameList(new Domain.Dtos.Groups.GroupNameDto() { PortType = 1 });
return new JsonView() { Code = StatusCodes.Status200OK, Msg = "操作成功!", Data = new { GroupData = groupInfo.Data } };
}
}
}