You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
133 lines
4.0 KiB
C#
133 lines
4.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Ys.Core.Common;
|
|
using djy.Model;
|
|
using djy.Paas.Model;
|
|
namespace djy.Paas.IService
|
|
{
|
|
/// <summary>
|
|
/// 报关接口和阿里云合作
|
|
/// </summary>
|
|
public interface IBaoguanService:IsBase<tb_BaoGuanOrderList,tb_BaoGuanOrderList>
|
|
{
|
|
|
|
#region api 接口
|
|
|
|
/// <summary>
|
|
/// Email发送 gid filename
|
|
/// </summary>
|
|
/// <param name="Dto"></param>
|
|
/// <returns></returns>
|
|
ReturnResult<string> EmailSend(ApiFromDto Dto);
|
|
|
|
/// <summary>
|
|
/// 条件查询报关单数据
|
|
/// </summary>
|
|
/// <param name="Dto"></param>
|
|
/// <param name="apiFrom"></param>
|
|
/// <returns></returns>
|
|
Task<ReturnPagedResult<tb_BaoGuanOrderList>> GetBaoguanOrderList(tb_BaoGuanOrderList Dto, ApiFromDto apiFrom);
|
|
/// <summary>
|
|
///绑定报关客户关系
|
|
/// </summary>
|
|
/// <param name="dto"></param>
|
|
/// <returns></returns>
|
|
Task<ReturnResult<int>> BindClient(ClientLinkInfoDto dto);
|
|
|
|
/// <summary>
|
|
///根据箱型编号获取箱型数据
|
|
/// </summary>
|
|
/// <param name="ContNoList"></param>
|
|
/// <returns></returns>
|
|
Task<ReturnResult<List<ContainerDto>>> GetContainerList(List<string> ContNoList);
|
|
|
|
#endregion
|
|
|
|
|
|
/// <summary>
|
|
/// 生成阿里云报关Token
|
|
/// </summary>
|
|
/// <param name="Dto"></param>
|
|
/// <returns></returns>
|
|
Task<ReturnResult<string>> AliyunBaoguanToken(User Dto);
|
|
|
|
/// <summary>
|
|
///阿里云反馈
|
|
/// </summary>
|
|
/// <param name="Dto"></param>
|
|
/// <returns></returns>
|
|
Task<ReturnResult<string>> AliBack(ApiFromDto Dto);
|
|
/// <summary>
|
|
/// 阿里用户离职
|
|
/// </summary>
|
|
/// <param name="UserId"></param>
|
|
/// <returns></returns>
|
|
Task<ReturnResult<string>> AliUserQuit(string UserId);
|
|
|
|
/// <summary>
|
|
/// 阿里报关 消息查询
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
Task<ReturnResult<string>> AliBaoguanrationlist();
|
|
|
|
/// <summary>
|
|
///阿里报关消费
|
|
/// </summary>
|
|
/// <param name="MsIdList">要消费的ali消息Id</param>
|
|
/// <returns></returns>
|
|
Task<ReturnResult<int>> AliBaodanActionConsume(List<string> MsIdList);
|
|
|
|
|
|
/// <summary>
|
|
/// 自动根据阿里海关数据解出报关订单数据
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
Task<ReturnResult<int>> AutoRunBaoguanOrder();
|
|
|
|
/// <summary>
|
|
/// 账单数据校验审核
|
|
/// </summary>
|
|
/// <param name="Dto"></param>
|
|
/// <returns></returns>
|
|
Task<ReturnResult<string>> OrderCheck(tb_BaoGuanOrderList Dto);
|
|
|
|
/// <summary>
|
|
/// 执行杂项
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
ReturnResult<string> Run();
|
|
/// <summary>
|
|
/// 解析单一报关数据
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
ReturnResult<string> RunOrderPsrse();
|
|
/// <summary>
|
|
/// 将通过open提送上来的单一窗口数据解析到BaoguanOrder
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
ReturnResult<string> RunOpenDanyiParseToOrder();
|
|
|
|
/// <summary>
|
|
/// 报关自动接收数据生成同步报关单数据job
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
Task<ReturnResult<int>> AutoAllibonBaoguanJob(ApiFromDto UserDto);
|
|
|
|
/// <summary>
|
|
/// 读取接收报关企业推送msg消息 读取后自动将状态修改为已经读取下次读取将跳过
|
|
/// </summary>
|
|
/// <param name="CompanyGid"></param>
|
|
/// <returns></returns>
|
|
ReturnResult<List<tb_BaoguanOrderCompanyPushMsg>> ReadCompanyPushMsg(Guid? CompanyGid);
|
|
|
|
|
|
/// <summary>
|
|
/// 处理自动扣费
|
|
/// </summary>
|
|
void ProcCustFee();
|
|
}
|
|
}
|