diff --git a/ds-wms-service/DS.Module.Core/Constants/MultiLanguageConst.cs b/ds-wms-service/DS.Module.Core/Constants/MultiLanguageConst.cs index 9243464e..fae4b03f 100644 --- a/ds-wms-service/DS.Module.Core/Constants/MultiLanguageConst.cs +++ b/ds-wms-service/DS.Module.Core/Constants/MultiLanguageConst.cs @@ -288,5 +288,12 @@ public static class MultiLanguageConst public const string ClientInfoExist = "Client_Info_Exist"; + #endregion + + #region MyRegion + [Description("海运出口信息已存在")] + public const string SeaExportExist = "Sea_Export_Exist"; + + #endregion } \ No newline at end of file diff --git a/ds-wms-service/DS.WMS.Core/Sea/Dtos/SeaExportReq.cs b/ds-wms-service/DS.WMS.Core/Sea/Dtos/SeaExportReq.cs new file mode 100644 index 00000000..eed75732 --- /dev/null +++ b/ds-wms-service/DS.WMS.Core/Sea/Dtos/SeaExportReq.cs @@ -0,0 +1,995 @@ +using DS.Module.Core; +using FluentValidation; + +namespace DS.WMS.Core.Sea.Dtos; + +/// +/// 海运出口信息请求实体 +/// +public class SeaExportReq +{ + /// + /// 主键Id + /// + public long Id { get; set; } + + /// + /// 业务编号 + /// + public string BSNO { get; set; } + + /// + /// 主票业务编号 + /// + public string MasterNo { get; set; } + + /// + /// 业务状态 + /// + public int BusinessStatus { get; set; } + + /// + /// 单据费用状态 + /// + public int BillFeeStatus { get; set; } + + /// + /// 单据费用状态时间 + /// + public DateTime BillFeeStatusTime { get; set; } + + /// + /// 费用状态 + /// + public int FeeStatus { get; set; } + + /// + /// 录入日期 + /// + public DateTime BusinessDate { get; set; } = DateTime.Now; + + /// + /// 财务日期 + /// + public DateTime AccountDate { get; set; } = DateTime.Now; + + /// + /// 主提单号 + /// + public string MBLNO { get; set; } + + /// + /// 分提单号 + /// + public string HBLNO { get; set; } + + /// + /// 委托编号 可以根据规则生成 + /// + public string CustomerNo { get; set; } + + /// + /// 运单号 可以根据规则生成 + /// + public string TransNo { get; set; } + + /// + /// 委托单位 t_info_client CUSTNAME + /// + public string CustomerName { get; set; } + + /// + /// 装运方式 整箱、拼箱单票、拼箱主票、拼箱分票 + /// + public string BLType { get; set; } + + /// + /// 发货人 t_info_client CUSTNAME + /// + public long? ShipperId { get; set; } + + /// + /// 收货人 t_info_client CUSTNAME + /// + public long? ConsigneeId { get; set; } + + /// + /// 通知人 t_info_client CUSTNAME + /// + public long? NotifyPartyId { get; set; } + + /// + /// 国外代理人 t_info_client CUSTNAME + /// + public long? AgentId { get; set; } + + /// + /// 发货人内容 + /// + public string ShipperContent { get; set; } + + /// + /// 收货人内容 + /// + public string ConsigneeContent { get; set; } + + /// + /// 通知人内容 + /// + public string NotifyPartyContent { get; set; } + + /// + /// 国外代理内容 + /// + public string AgentContent { get; set; } + + /// + /// 场站 t_crm_client CUSTNAME + /// + public string Yard { get; set; } + + /// + /// 船名 t_code_vessel + /// + public string Vessel { get; set; } + + /// + /// 船名Id t_code_vessel + /// + public long VesselId { get; set; } + + /// + /// 航次 + /// + public string Voyno { get; set; } + + /// + /// 开船日期 + /// + public DateTime? ETD { get; set; } + + /// + /// 预抵日期 + /// + public DateTime? ETA { get; set; } + + /// + /// ATD + /// + public DateTime? ATD { get; set; } + + /// + /// 截港日期 + /// + public DateTime? ClosingDate { get; set; } + + /// + /// 收货地 + /// + public string ReceiptPlace { get; set; } + + /// + /// 装货港Id + /// + public long ReceiptPlaceId { get; set; } + + /// + /// 装货港代码 + /// + public long LoadPortId { get; set; } + + /// + /// 装货港 + /// + public string LoadPort { get; set; } + + /// + /// 卸货港代码 + /// + public long DischargePortId { get; set; } + + /// + /// 卸货港 + /// + public string DischargePort { get; set; } + + + /// + /// 交货地代码 + /// + public long DeliveryPlaceId { get; set; } + + /// + /// 交货地 + /// + public string DeliveryPlace { get; set; } + + /// + /// 目的地代码 + /// + public long DestinationId { get; set; } + + /// + /// 目的地 + /// + public string Destination { get; set; } + + /// + /// 提单份数 + /// + public string NoBill { get; set; } + + /// + /// 副本份数 + /// + public string CopyNoBill { get; set; } + + /// + /// 签单方式 t_code_issutype + /// + public string IssueType { get; set; } + + /// + /// 签单日期 + /// + public DateTime? IssueDate { get; set; } + + /// + /// 签单地点Id + /// + public long IssuePlaceId { get; set; } + + /// + /// 签单地点 + /// + public string IssuePlace { get; set; } + + /// + /// 签单状态 + /// + public DateTime? BLIssueSatus { get; set; } + + /// + /// 付款地点Id + /// + public long PrepareAtId { get; set; } + + /// + /// 预付地点 + /// + public string PrepareAt { get; set; } + + /// + /// 预付地点 + /// + public string PayableAt { get; set; } + + /// + /// 运输条款 CY-CY t_code_service + /// + public string Service { get; set; } + + /// + /// 唛头 N/M + /// + public string Marks { get; set; } + + /// + /// 箱号封号 + /// + public string CntrSealNo { get; set; } + + /// + /// 件数包装 + /// + public string NoPkgs { get; set; } + + /// + /// 货物描述 + /// + public string Description { get; set; } + + /// + /// 品名 t_code_goods + /// + public string GoodsName { get; set; } + + /// + /// 货物毛重 + /// + public string GrossWeight { get; set; } + + /// + /// 货物尺码 + /// + public string Measurement { get; set; } + + /// + /// 件数 + /// + public int? PKGS { get; set; } + + /// + /// 包装 t_code_package + /// + public string KindPkgs { get; set; } + + /// + /// 毛重 + /// + public decimal? KGS { get; set; } + + /// + /// 尺码 + /// + public decimal? CBM { get; set; } + + /// + /// 件数大写 + /// + public string TotalNo { get; set; } + + /// + /// 集装箱大写 + /// + public string CntrNo { get; set; } + + /// + /// 箱型1 + /// + public int Cntr1 { get; set; } + + /// + /// 箱型2 + /// + public int Cntr2 { get; set; } + + /// + /// 箱型3 + /// + public int Cntr3 { get; set; } + + /// + /// 箱型4 + /// + public int Cntr4 { get; set; } + + /// + /// 箱型5 + /// + public int Cntr5 { get; set; } + + /// + /// 箱型6 + /// + public int Cntr6 { get; set; } + + /// + /// 箱型7 + /// + public int Cntr7 { get; set; } + + /// + /// 箱型8 + /// + public int Cntr8 { get; set; } + + /// + /// 箱型9 + /// + public int Cntr9 { get; set; } + + /// + /// 箱型10 + /// + public int Cntr10 { get; set; } + + /// + /// 其他箱型 + /// + public int OtherCntr { get; set; } + + /// + /// 箱TEU + /// + public int TEU { get; set; } + + /// + /// 集装箱 + /// + public string CntrTotal { get; set; } + + /// + /// 操作员 + /// + public long OperatorId { get; set; } + + /// + /// 客服 + /// + public long CustomerService { get; set; } + + /// + /// 外国客服 + /// + public long ForeignCustomerService { get; set; } + + /// + /// 航线 + /// + public long LaneId { get; set; } + + /// + /// 揽货人 + /// + public long Sale { get; set; } + + /// + /// 船公司 + /// + public long Carrier { get; set; } + + /// + /// 货代公司 + /// + public long Forwarder { get; set; } + + /// + /// 报关行 + /// + public long Customser { get; set; } + + /// + /// 承运车队 + /// + public long Trucker { get; set; } + + + /// + /// 发票号 + /// + public string InvoiceNo { get; set; } + + /// + /// 货物标识 S/R/D/O + /// + public string CargoId { get; set; } + + /// + /// 危险品分类 + /// + public string DangerClass { get; set; } + + /// + /// 危险品编号 + /// + public string DangerNo { get; set; } + + /// + /// 危险品页号 + /// + public string DangerPage { get; set; } + + /// + /// 危险品标签 + /// + public string DangerLabel { get; set; } + + /// + /// 冷藏通风量 + /// + public string ReeferQuantity { get; set; } + + /// + /// 温度单位 + /// + public string TemperatureUnit { get; set; } + + /// + /// 设置温度 + /// + public string TemperatureSet { get; set; } + + /// + /// 最低温度 + /// + public string TemperatureMin { get; set; } + + /// + /// 最高温度 + /// + public string TemperatureMax { get; set; } + + /// + /// Desc:业务来源Id + /// + public long SourceId { get; set; } + + /// + /// Desc:业务来源明细Id + /// + public long SourceDetailId { get; set; } + + /// + /// Desc:报关票数 + /// + public int CustomsNum { get; set; } + + /// + /// 运费协议号 + /// + public string ContractNo { get; set; } + + /// + /// 订舱类型 + /// + public string BookingType { get; set; } + + /// + /// 订舱编号 + /// + public string BookingNo { get; set; } + + /// + /// Desc:保险人 + /// + public string Insuranceer { get; set; } + + /// + /// Desc:保险单号 + /// + public string InsuranceNo { get; set; } + + /// + /// Desc:保险金额 + /// + public decimal? InsuranceAmount { get; set; } + + /// + /// Desc:是否生成凭证 + /// + public bool? IsVoucher { get; set; } = false; + + /// + /// Desc:凭证号 + /// + public string VoucherNo { get; set; } + + /// + /// Desc:备注 + /// + public string Remark { get; set; } + + /// + /// Desc:状态1 + /// + public bool? Status1 { get; set; } = false; + + /// + /// Desc:状态2 + /// + public bool? Status2 { get; set; } = false; + + /// + /// Desc:状态3 + /// + public bool? Status3 { get; set; } = false; + + /// + /// Desc:状态4 + /// + public bool? Status4 { get; set; } = false; + + /// + /// Desc:状态5 + /// + public bool? Status5 { get; set; } = false; + + /// + /// Desc:熏蒸 + /// + public bool? IsFumigation { get; set; } = false; + + /// + /// Desc:仓储 + /// + public bool? IsStorage { get; set; } = false; + + /// + /// Desc:陆运 + /// + public bool? IsLand { get; set; } = false; + + /// + /// Desc:报关 + /// + public bool? IsCustoms { get; set; } = false; + + /// + /// Desc:报检 + /// + public bool? IsInspection { get; set; } = false; + + /// + /// Desc:订舱 + /// + public bool? IsBooking { get; set; } = false; + + /// + /// Desc:使用代理 + /// + public bool? IsAgent { get; set; } = false; + + /// + /// Desc:分单签单 + /// + public bool? IsHBLNO { get; set; } = false; + + /// + /// Desc:服务项目9 + /// + public bool? Service9 { get; set; } = false; + + /// + /// Desc:服务项目10 + /// + public bool? Service10 { get; set; } = false; + + + /// + /// Desc:单证 + /// + public string Doc { get; set; } + + /// + /// Desc:装箱类型 + /// + public string PackingType { get; set; } + + /// + /// Desc:仓库 + /// + public string WareHouse { get; set; } + + /// + /// 截单日期 + /// + public DateTime CloseDocDate { get; set; } + + /// + /// 集港日期 + /// + public DateTime IntoPortDocDate { get; set; } + + /// + /// Desc:所属业务部门 + /// + public long SaleDeptId { get; set; } + + /// + /// Desc:MBL付费方式 t_code_frt + /// + public string MBLFrt { get; set; } + + /// + /// Desc:结算方式 + /// + public string StlName { get; set; } + + + /// + /// Desc:月结算时间 + /// + public DateTime StlDate { get; set; } + + /// + /// Desc:委托方式 + /// + public string OrderType { get; set; } + + /// + /// Desc:操作员代码 + /// + public string OperatorCode { get; set; } + + /// + /// Desc:是否为操作 + /// + public bool IsOperator { get; set; } + + /// + /// Desc:操作员邮箱 + /// + public string OperatorEmail { get; set; } + + /// + /// Desc:操作员电话 + /// + public string OperatorTel { get; set; } + + /// + /// Desc:操作员传真 + /// + public string OperatorFax { get; set; } + + /// + /// Desc:场站自结 + /// + public string FinancialStaffCode { get; set; } + + /// + /// Desc:是否为财务 + /// + public bool? IsFinancialStaff { get; set; } = false; + + /// + /// Desc:财务邮箱 + /// + public string FinancialStaffEmail { get; set; } + + /// + /// Desc:财务电话 + /// + public string FinancialStaffTel { get; set; } + + /// + /// Desc:财务传真 + /// + public string FinancialStaffFax { get; set; } + + /// + /// Desc:业务来源代码 + /// + public string SourceCode { get; set; } + + + /// + /// Desc:联系人 + /// + public string LinkMan { get; set; } + + /// + /// Desc:海关代码 + /// + public string HSCode { get; set; } + + /// + /// Desc:EDI备注 + /// + public string EdiRemark { get; set; } + + /// + /// Desc:邮件方案 + /// + public long MailProjectId { get; set; } + + + /// + /// Desc:CSR/IR号 + /// + public string IRCode { get; set; } + + /// + /// Desc:服务合同号 + /// + public string ServiceContractNo { get; set; } + + /// + /// Desc:申请放箱号 + /// + public string ApplyNo { get; set; } + + + /// + /// Desc:报关单号 + /// + public string CustomNo { get; set; } + + /// + /// Desc: 报关日期 + /// + public DateTime CustomDate { get; set; } + + /// + /// 单位编码 + /// + public long? EnterpriseId { get; set; } + + /// + /// 单位 + /// + public string Enterprise { get; set; } + + /// + /// Desc:商检单号 + /// + public string InspectionNo { get; set; } + + /// + /// Desc:商检日期 + /// + public DateTime InspectionDate { get; set; } + + /// + /// Desc:贸易条款 + /// + public string TradeTerm { get; set; } + + /// + /// Desc:贸易方式 + /// + public string TermDelivery { get; set; } + + /// + /// Desc:清关日期 + /// + public DateTime ClearCustomDate { get; set; } + + /// + /// Desc:报检项目 + /// + public string InsperctService { get; set; } + + /// + /// 船代Id + /// + public long ShipAgencyId { get; set; } + + /// + /// Desc:湿度 + /// + public string Humidity { get; set; } + + + /// + /// Master发货人 + /// + public long? MasterShipperId { get; set; } + + /// + /// Master收货人 t_info_client CUSTNAME + /// + public long? MasterConsigneeId { get; set; } + + /// + /// Master通知人 t_info_client CUSTNAME + /// + public long? MasterNotifyPartyId { get; set; } + + /// + /// Master收货人内容 + /// + public string MasterConsigneeContent { get; set; } + + /// + /// Master通知人内容 + /// + public string MasterNotifyPartyContent { get; set; } + + /// + /// Master发货人内容 + /// + public string MasterShipperContent { get; set; } + + /// + /// Master单描述 + /// + public string MasterDescription { get; set; } + + /// + /// Desc:是否SOC + /// + public bool? IsContainerSoc { get; set; } = false; + + /// + /// Desc:运输状态 + /// + public string TranStatus { get; set; } + + /// + /// Desc: + /// + public string ManifestStatus { get; set; } + + /// + /// 是否多品名 + /// + public bool IsMoreGood { get; set; } + + /// + /// 是否打印小票 + /// + public bool IsPrintReceipt { get; set; } + // /// + // /// 是否取消 + // /// + // [SugarColumn(ColumnDescription = "是否取消", DefaultValue = "0")] + // public bool IsCancel { get; set; } + // + // /// + // /// 是否TUI + // /// + // [SugarColumn(ColumnDescription = "是否TUI", DefaultValue = "0")] + // public bool IsTUI { get; set; } + + /// + /// 船名 t_code_vessel + /// + public string Vessel2N { get; set; } + + /// + /// 船名Id t_code_vessel + /// + public long VesselId2N { get; set; } + + /// + /// 二程航次 + /// + public string Voyno2N { get; set; } + + /// + /// 交货日期 + /// + + public DateTime DeliveryDate { get; set; } + + /// + /// 场站联系人 + /// + public string YardATTN { get; set; } + + /// + /// 场站联系方式 + /// + public string YardTel { get; set; } + + /// + /// 销售公司Id + /// + public long SaleOrgId { get; set; } + + /// + /// 中转港 + /// + public string Transport { get; set; } + + /// + /// 转运备注 + /// + public string TransRemark { get; set; } + + /// + /// 预录 + /// + public int PreRecord { get; set; } + + /// + /// 备注 + /// + public string Note { get; set; } = ""; + + +} + +/// +/// 验证 +/// +public class SeaExportReqValidator : AbstractValidator +{ + /// + /// 构造函数 + /// + public SeaExportReqValidator() + { + this.RuleFor(o => o.BSNO) + .NotEmpty().WithName("业务编号"); + this.RuleFor(o => o.MasterNo) + .NotEmpty().WithName("主票业务编号"); + this.RuleFor(o => o.BusinessDate) + .NotEmpty().WithName("录入日期"); + this.RuleFor(o => o.AccountDate) + .NotEmpty().WithName("财务日期"); + this.RuleFor(o => o.BLType) + .NotEmpty().WithName("装运方式"); + } +} \ No newline at end of file diff --git a/ds-wms-service/DS.WMS.Core/Sea/Dtos/SeaExportRes.cs b/ds-wms-service/DS.WMS.Core/Sea/Dtos/SeaExportRes.cs new file mode 100644 index 00000000..b7730ec5 --- /dev/null +++ b/ds-wms-service/DS.WMS.Core/Sea/Dtos/SeaExportRes.cs @@ -0,0 +1,975 @@ +using DS.Module.Core; + +namespace DS.WMS.Core.Sea.Dtos; + +/// +/// 海运出口信息返回实体 +/// +public class SeaExportRes +{ + /// + /// 主键Id + /// + public long Id { get; set; } + + /// + /// 业务编号 + /// + public string BSNO { get; set; } + + /// + /// 主票业务编号 + /// + public string MasterNo { get; set; } + + /// + /// 业务状态 + /// + public int BusinessStatus { get; set; } + + /// + /// 单据费用状态 + /// + public int BillFeeStatus { get; set; } + + /// + /// 单据费用状态时间 + /// + public DateTime BillFeeStatusTime { get; set; } + + /// + /// 费用状态 + /// + public int FeeStatus { get; set; } + + /// + /// 录入日期 + /// + public DateTime BusinessDate { get; set; } = DateTime.Now; + + /// + /// 财务日期 + /// + public DateTime AccountDate { get; set; } = DateTime.Now; + + /// + /// 主提单号 + /// + public string MBLNO { get; set; } + + /// + /// 分提单号 + /// + public string HBLNO { get; set; } + + /// + /// 委托编号 可以根据规则生成 + /// + public string CustomerNo { get; set; } + + /// + /// 运单号 可以根据规则生成 + /// + public string TransNo { get; set; } + + /// + /// 委托单位 t_info_client CUSTNAME + /// + public string CustomerName { get; set; } + + /// + /// 装运方式 整箱、拼箱单票、拼箱主票、拼箱分票 + /// + public string BLType { get; set; } + + /// + /// 发货人 t_info_client CUSTNAME + /// + public long? ShipperId { get; set; } + + /// + /// 收货人 t_info_client CUSTNAME + /// + public long? ConsigneeId { get; set; } + + /// + /// 通知人 t_info_client CUSTNAME + /// + public long? NotifyPartyId { get; set; } + + /// + /// 国外代理人 t_info_client CUSTNAME + /// + public long? AgentId { get; set; } + + /// + /// 发货人内容 + /// + public string ShipperContent { get; set; } + + /// + /// 收货人内容 + /// + public string ConsigneeContent { get; set; } + + /// + /// 通知人内容 + /// + public string NotifyPartyContent { get; set; } + + /// + /// 国外代理内容 + /// + public string AgentContent { get; set; } + + /// + /// 场站 t_crm_client CUSTNAME + /// + public string Yard { get; set; } + + /// + /// 船名 t_code_vessel + /// + public string Vessel { get; set; } + + /// + /// 船名Id t_code_vessel + /// + public long VesselId { get; set; } + + /// + /// 航次 + /// + public string Voyno { get; set; } + + /// + /// 开船日期 + /// + public DateTime? ETD { get; set; } + + /// + /// 预抵日期 + /// + public DateTime? ETA { get; set; } + + /// + /// ATD + /// + public DateTime? ATD { get; set; } + + /// + /// 截港日期 + /// + public DateTime? ClosingDate { get; set; } + + /// + /// 收货地 + /// + public string ReceiptPlace { get; set; } + + /// + /// 装货港Id + /// + public long ReceiptPlaceId { get; set; } + + /// + /// 装货港代码 + /// + public long LoadPortId { get; set; } + + /// + /// 装货港 + /// + public string LoadPort { get; set; } + + /// + /// 卸货港代码 + /// + public long DischargePortId { get; set; } + + /// + /// 卸货港 + /// + public string DischargePort { get; set; } + + + /// + /// 交货地代码 + /// + public long DeliveryPlaceId { get; set; } + + /// + /// 交货地 + /// + public string DeliveryPlace { get; set; } + + /// + /// 目的地代码 + /// + public long DestinationId { get; set; } + + /// + /// 目的地 + /// + public string Destination { get; set; } + + /// + /// 提单份数 + /// + public string NoBill { get; set; } + + /// + /// 副本份数 + /// + public string CopyNoBill { get; set; } + + /// + /// 签单方式 t_code_issutype + /// + public string IssueType { get; set; } + + /// + /// 签单日期 + /// + public DateTime? IssueDate { get; set; } + + /// + /// 签单地点Id + /// + public long IssuePlaceId { get; set; } + + /// + /// 签单地点 + /// + public string IssuePlace { get; set; } + + /// + /// 签单状态 + /// + public DateTime? BLIssueSatus { get; set; } + + /// + /// 付款地点Id + /// + public long PrepareAtId { get; set; } + + /// + /// 预付地点 + /// + public string PrepareAt { get; set; } + + /// + /// 预付地点 + /// + public string PayableAt { get; set; } + + /// + /// 运输条款 CY-CY t_code_service + /// + public string Service { get; set; } + + /// + /// 唛头 N/M + /// + public string Marks { get; set; } + + /// + /// 箱号封号 + /// + public string CntrSealNo { get; set; } + + /// + /// 件数包装 + /// + public string NoPkgs { get; set; } + + /// + /// 货物描述 + /// + public string Description { get; set; } + + /// + /// 品名 t_code_goods + /// + public string GoodsName { get; set; } + + /// + /// 货物毛重 + /// + public string GrossWeight { get; set; } + + /// + /// 货物尺码 + /// + public string Measurement { get; set; } + + /// + /// 件数 + /// + public int? PKGS { get; set; } + + /// + /// 包装 t_code_package + /// + public string KindPkgs { get; set; } + + /// + /// 毛重 + /// + public decimal? KGS { get; set; } + + /// + /// 尺码 + /// + public decimal? CBM { get; set; } + + /// + /// 件数大写 + /// + public string TotalNo { get; set; } + + /// + /// 集装箱大写 + /// + public string CntrNo { get; set; } + + /// + /// 箱型1 + /// + public int Cntr1 { get; set; } + + /// + /// 箱型2 + /// + public int Cntr2 { get; set; } + + /// + /// 箱型3 + /// + public int Cntr3 { get; set; } + + /// + /// 箱型4 + /// + public int Cntr4 { get; set; } + + /// + /// 箱型5 + /// + public int Cntr5 { get; set; } + + /// + /// 箱型6 + /// + public int Cntr6 { get; set; } + + /// + /// 箱型7 + /// + public int Cntr7 { get; set; } + + /// + /// 箱型8 + /// + public int Cntr8 { get; set; } + + /// + /// 箱型9 + /// + public int Cntr9 { get; set; } + + /// + /// 箱型10 + /// + public int Cntr10 { get; set; } + + /// + /// 其他箱型 + /// + public int OtherCntr { get; set; } + + /// + /// 箱TEU + /// + public int TEU { get; set; } + + /// + /// 集装箱 + /// + public string CntrTotal { get; set; } + + /// + /// 操作员 + /// + public long OperatorId { get; set; } + + /// + /// 客服 + /// + public long CustomerService { get; set; } + + /// + /// 外国客服 + /// + public long ForeignCustomerService { get; set; } + + /// + /// 航线 + /// + public long LaneId { get; set; } + + /// + /// 揽货人 + /// + public long Sale { get; set; } + + /// + /// 船公司 + /// + public long Carrier { get; set; } + + /// + /// 货代公司 + /// + public long Forwarder { get; set; } + + /// + /// 报关行 + /// + public long Customser { get; set; } + + /// + /// 承运车队 + /// + public long Trucker { get; set; } + + + /// + /// 发票号 + /// + public string InvoiceNo { get; set; } + + /// + /// 货物标识 S/R/D/O + /// + public string CargoId { get; set; } + + /// + /// 危险品分类 + /// + public string DangerClass { get; set; } + + /// + /// 危险品编号 + /// + public string DangerNo { get; set; } + + /// + /// 危险品页号 + /// + public string DangerPage { get; set; } + + /// + /// 危险品标签 + /// + public string DangerLabel { get; set; } + + /// + /// 冷藏通风量 + /// + public string ReeferQuantity { get; set; } + + /// + /// 温度单位 + /// + public string TemperatureUnit { get; set; } + + /// + /// 设置温度 + /// + public string TemperatureSet { get; set; } + + /// + /// 最低温度 + /// + public string TemperatureMin { get; set; } + + /// + /// 最高温度 + /// + public string TemperatureMax { get; set; } + + /// + /// Desc:业务来源Id + /// + public long SourceId { get; set; } + + /// + /// Desc:业务来源明细Id + /// + public long SourceDetailId { get; set; } + + /// + /// Desc:报关票数 + /// + public int CustomsNum { get; set; } + + /// + /// 运费协议号 + /// + public string ContractNo { get; set; } + + /// + /// 订舱类型 + /// + public string BookingType { get; set; } + + /// + /// 订舱编号 + /// + public string BookingNo { get; set; } + + /// + /// Desc:保险人 + /// + public string Insuranceer { get; set; } + + /// + /// Desc:保险单号 + /// + public string InsuranceNo { get; set; } + + /// + /// Desc:保险金额 + /// + public decimal? InsuranceAmount { get; set; } + + /// + /// Desc:是否生成凭证 + /// + public bool? IsVoucher { get; set; } = false; + + /// + /// Desc:凭证号 + /// + public string VoucherNo { get; set; } + + /// + /// Desc:备注 + /// + public string Remark { get; set; } + + /// + /// Desc:状态1 + /// + public bool? Status1 { get; set; } = false; + + /// + /// Desc:状态2 + /// + public bool? Status2 { get; set; } = false; + + /// + /// Desc:状态3 + /// + public bool? Status3 { get; set; } = false; + + /// + /// Desc:状态4 + /// + public bool? Status4 { get; set; } = false; + + /// + /// Desc:状态5 + /// + public bool? Status5 { get; set; } = false; + + /// + /// Desc:熏蒸 + /// + public bool? IsFumigation { get; set; } = false; + + /// + /// Desc:仓储 + /// + public bool? IsStorage { get; set; } = false; + + /// + /// Desc:陆运 + /// + public bool? IsLand { get; set; } = false; + + /// + /// Desc:报关 + /// + public bool? IsCustoms { get; set; } = false; + + /// + /// Desc:报检 + /// + public bool? IsInspection { get; set; } = false; + + /// + /// Desc:订舱 + /// + public bool? IsBooking { get; set; } = false; + + /// + /// Desc:使用代理 + /// + public bool? IsAgent { get; set; } = false; + + /// + /// Desc:分单签单 + /// + public bool? IsHBLNO { get; set; } = false; + + /// + /// Desc:服务项目9 + /// + public bool? Service9 { get; set; } = false; + + /// + /// Desc:服务项目10 + /// + public bool? Service10 { get; set; } = false; + + + /// + /// Desc:单证 + /// + public string Doc { get; set; } + + /// + /// Desc:装箱类型 + /// + public string PackingType { get; set; } + + /// + /// Desc:仓库 + /// + public string WareHouse { get; set; } + + /// + /// 截单日期 + /// + public DateTime CloseDocDate { get; set; } + + /// + /// 集港日期 + /// + public DateTime IntoPortDocDate { get; set; } + + /// + /// Desc:所属业务部门 + /// + public long SaleDeptId { get; set; } + + /// + /// Desc:MBL付费方式 t_code_frt + /// + public string MBLFrt { get; set; } + + /// + /// Desc:结算方式 + /// + public string StlName { get; set; } + + + /// + /// Desc:月结算时间 + /// + public DateTime StlDate { get; set; } + + /// + /// Desc:委托方式 + /// + public string OrderType { get; set; } + + /// + /// Desc:操作员代码 + /// + public string OperatorCode { get; set; } + + /// + /// Desc:是否为操作 + /// + public bool IsOperator { get; set; } + + /// + /// Desc:操作员邮箱 + /// + public string OperatorEmail { get; set; } + + /// + /// Desc:操作员电话 + /// + public string OperatorTel { get; set; } + + /// + /// Desc:操作员传真 + /// + public string OperatorFax { get; set; } + + /// + /// Desc:场站自结 + /// + public string FinancialStaffCode { get; set; } + + /// + /// Desc:是否为财务 + /// + public bool? IsFinancialStaff { get; set; } = false; + + /// + /// Desc:财务邮箱 + /// + public string FinancialStaffEmail { get; set; } + + /// + /// Desc:财务电话 + /// + public string FinancialStaffTel { get; set; } + + /// + /// Desc:财务传真 + /// + public string FinancialStaffFax { get; set; } + + /// + /// Desc:业务来源代码 + /// + public string SourceCode { get; set; } + + + /// + /// Desc:联系人 + /// + public string LinkMan { get; set; } + + /// + /// Desc:海关代码 + /// + public string HSCode { get; set; } + + /// + /// Desc:EDI备注 + /// + public string EdiRemark { get; set; } + + /// + /// Desc:邮件方案 + /// + public long MailProjectId { get; set; } + + + /// + /// Desc:CSR/IR号 + /// + public string IRCode { get; set; } + + /// + /// Desc:服务合同号 + /// + public string ServiceContractNo { get; set; } + + /// + /// Desc:申请放箱号 + /// + public string ApplyNo { get; set; } + + + /// + /// Desc:报关单号 + /// + public string CustomNo { get; set; } + + /// + /// Desc: 报关日期 + /// + public DateTime CustomDate { get; set; } + + /// + /// 单位编码 + /// + public long? EnterpriseId { get; set; } + + /// + /// 单位 + /// + public string Enterprise { get; set; } + + /// + /// Desc:商检单号 + /// + public string InspectionNo { get; set; } + + /// + /// Desc:商检日期 + /// + public DateTime InspectionDate { get; set; } + + /// + /// Desc:贸易条款 + /// + public string TradeTerm { get; set; } + + /// + /// Desc:贸易方式 + /// + public string TermDelivery { get; set; } + + /// + /// Desc:清关日期 + /// + public DateTime ClearCustomDate { get; set; } + + /// + /// Desc:报检项目 + /// + public string InsperctService { get; set; } + + /// + /// 船代Id + /// + public long ShipAgencyId { get; set; } + + /// + /// Desc:湿度 + /// + public string Humidity { get; set; } + + + /// + /// Master发货人 + /// + public long? MasterShipperId { get; set; } + + /// + /// Master收货人 t_info_client CUSTNAME + /// + public long? MasterConsigneeId { get; set; } + + /// + /// Master通知人 t_info_client CUSTNAME + /// + public long? MasterNotifyPartyId { get; set; } + + /// + /// Master收货人内容 + /// + public string MasterConsigneeContent { get; set; } + + /// + /// Master通知人内容 + /// + public string MasterNotifyPartyContent { get; set; } + + /// + /// Master发货人内容 + /// + public string MasterShipperContent { get; set; } + + /// + /// Master单描述 + /// + public string MasterDescription { get; set; } + + /// + /// Desc:是否SOC + /// + public bool? IsContainerSoc { get; set; } = false; + + /// + /// Desc:运输状态 + /// + public string TranStatus { get; set; } + + /// + /// Desc: + /// + public string ManifestStatus { get; set; } + + /// + /// 是否多品名 + /// + public bool IsMoreGood { get; set; } + + /// + /// 是否打印小票 + /// + public bool IsPrintReceipt { get; set; } + // /// + // /// 是否取消 + // /// + // [SugarColumn(ColumnDescription = "是否取消", DefaultValue = "0")] + // public bool IsCancel { get; set; } + // + // /// + // /// 是否TUI + // /// + // [SugarColumn(ColumnDescription = "是否TUI", DefaultValue = "0")] + // public bool IsTUI { get; set; } + + /// + /// 船名 t_code_vessel + /// + public string Vessel2N { get; set; } + + /// + /// 船名Id t_code_vessel + /// + public long VesselId2N { get; set; } + + /// + /// 二程航次 + /// + public string Voyno2N { get; set; } + + /// + /// 交货日期 + /// + + public DateTime DeliveryDate { get; set; } + + /// + /// 场站联系人 + /// + public string YardATTN { get; set; } + + /// + /// 场站联系方式 + /// + public string YardTel { get; set; } + + /// + /// 销售公司Id + /// + public long SaleOrgId { get; set; } + + /// + /// 中转港 + /// + public string Transport { get; set; } + + /// + /// 转运备注 + /// + public string TransRemark { get; set; } + + /// + /// 预录 + /// + public int PreRecord { get; set; } + + /// + /// 备注 + /// + public string Note { get; set; } = ""; + + + /// + /// 创建时间 + /// + public DateTime CreateTime { get; set; } +} \ No newline at end of file diff --git a/ds-wms-service/DS.WMS.Core/Sea/Entity/SeaExport.cs b/ds-wms-service/DS.WMS.Core/Sea/Entity/SeaExport.cs new file mode 100644 index 00000000..1f6a8150 --- /dev/null +++ b/ds-wms-service/DS.WMS.Core/Sea/Entity/SeaExport.cs @@ -0,0 +1,1177 @@ +using DS.Module.Core.Data; +using SqlSugar; + +namespace DS.WMS.Core.Sea.Entity; + +/// +/// 海运出口表 +/// +[SqlSugar.SugarTable("op_sea_export", "海运出口表")] +public class SeaExport : BaseOrgModel +{ + /// + /// 业务编号 + /// + [SqlSugar.SugarColumn(ColumnDescription = "业务编号", IsNullable = false, Length = 100)] + public string BSNO { get; set; } + + /// + /// 主票业务编号 + /// + [SqlSugar.SugarColumn(ColumnDescription = "主票业务编号", IsNullable = false, Length = 100)] + public string MasterNo { get; set; } + + /// + /// 业务状态 + /// + [SqlSugar.SugarColumn(ColumnDescription = "业务状态", IsNullable = false, DefaultValue = "0")] + public int BusinessStatus { get; set; } + + /// + /// 单据费用状态 + /// + [SqlSugar.SugarColumn(ColumnDescription = "单据费用状态", IsNullable = false, DefaultValue = "0")] + public int BillFeeStatus { get; set; } + + /// + /// 单据费用状态时间 + /// + [SqlSugar.SugarColumn(ColumnDescription = "单据费用状态时间", IsNullable = false)] + public DateTime BillFeeStatusTime { get; set; } + + /// + /// 费用状态 + /// + [SqlSugar.SugarColumn(ColumnDescription = "费用状态", IsNullable = false, DefaultValue = "0")] + public int FeeStatus { get; set; } + + /// + /// 录入日期 + /// + [SqlSugar.SugarColumn(ColumnDescription = "录入日期", IsNullable = false)] + public DateTime BusinessDate { get; set; } = DateTime.Now; + + /// + /// 财务日期 + /// + [SqlSugar.SugarColumn(ColumnDescription = "财务日期", IsNullable = false, Length = 7)] + public DateTime AccountDate { get; set; } = DateTime.Now; + + /// + /// 主提单号 + /// + [SqlSugar.SugarColumn(ColumnDescription = "主提单号", IsNullable = true, Length = 30)] + public string MBLNO { get; set; } + + /// + /// 分提单号 + /// + [SqlSugar.SugarColumn(ColumnDescription = "分提单号", IsNullable = true, Length = 30)] + public string HBLNO { get; set; } + + /// + /// 委托编号 可以根据规则生成 + /// + [SqlSugar.SugarColumn(ColumnDescription = "委托编号", IsNullable = true, Length = 30)] + public string CustomerNo { get; set; } + + /// + /// 运单号 可以根据规则生成 + /// + [SqlSugar.SugarColumn(ColumnDescription = "运单号", IsNullable = true, Length = 30)] + public string TransNo { get; set; } + + /// + /// 委托单位 t_info_client CUSTNAME + /// + [SqlSugar.SugarColumn(ColumnDescription = "委托单位", IsNullable = true, Length = 20)] + public string CustomerName { get; set; } + + /// + /// 装运方式 整箱、拼箱单票、拼箱主票、拼箱分票 + /// + [SqlSugar.SugarColumn(ColumnDescription = "装运方式", IsNullable = false, Length = 8)] + public string BLType { get; set; } + + /// + /// 发货人 t_info_client CUSTNAME + /// + [SqlSugar.SugarColumn(ColumnDescription = "发货人", IsNullable = true)] + public long? ShipperId { get; set; } + + /// + /// 收货人 t_info_client CUSTNAME + /// + [SqlSugar.SugarColumn(ColumnDescription = "收货人", IsNullable = true)] + public long? ConsigneeId { get; set; } + + /// + /// 通知人 t_info_client CUSTNAME + /// + [SqlSugar.SugarColumn(ColumnDescription = "通知人", IsNullable = true)] + public long? NotifyPartyId { get; set; } + + /// + /// 国外代理人 t_info_client CUSTNAME + /// + [SqlSugar.SugarColumn(ColumnDescription = "国外代理人", IsNullable = true)] + public long? AgentId { get; set; } + + /// + /// 发货人内容 + /// + [SqlSugar.SugarColumn(ColumnDescription = "发货人内容", IsNullable = true, Length = 600)] + public string ShipperContent { get; set; } + + /// + /// 收货人内容 + /// + [SqlSugar.SugarColumn(ColumnDescription = "收货人内容", IsNullable = true, Length = 600)] + public string ConsigneeContent { get; set; } + + /// + /// 通知人内容 + /// + [SqlSugar.SugarColumn(ColumnDescription = "通知人内容", IsNullable = true, Length = 600)] + public string NotifyPartyContent { get; set; } + + /// + /// 国外代理内容 + /// + [SqlSugar.SugarColumn(ColumnDescription = "国外代理内容", IsNullable = true, Length = 600)] + public string AgentContent { get; set; } + + /// + /// 场站 t_crm_client CUSTNAME + /// + [SqlSugar.SugarColumn(ColumnDescription = "场站", IsNullable = true, Length = 20)] + public string Yard { get; set; } + + /// + /// 船名 t_code_vessel + /// + [SqlSugar.SugarColumn(ColumnDescription = "船名", IsNullable = true, Length = 60)] + public string Vessel { get; set; } + + /// + /// 船名Id t_code_vessel + /// + [SqlSugar.SugarColumn(ColumnDescription = "船名Id", IsNullable = true, DefaultValue = "0")] + public long VesselId { get; set; } + + /// + /// 航次 + /// + [SqlSugar.SugarColumn(ColumnDescription = "航次", IsNullable = true, Length = 20)] + public string Voyno { get; set; } + + /// + /// 开船日期 + /// + [SugarColumn(ColumnDescription = "开船日期", IsNullable = true)] + public DateTime? ETD { get; set; } + + /// + /// 预抵日期 + /// + [SugarColumn(ColumnDescription = "预抵日期", IsNullable = true)] + public DateTime? ETA { get; set; } + + /// + /// ATD + /// + [SugarColumn(ColumnDescription = "ATD", IsNullable = true)] + public DateTime? ATD { get; set; } + + /// + /// 截港日期 + /// + [SugarColumn(ColumnDescription = "截港日期", IsNullable = true)] + public DateTime? ClosingDate { get; set; } + + /// + /// 收货地 + /// + [SugarColumn(ColumnDescription = "收货地", IsNullable = true, Length = 60)] + public string ReceiptPlace { get; set; } + + /// + /// 装货港Id + /// + [SugarColumn(ColumnDescription = "装货港Id", IsNullable = true, DefaultValue = "0")] + public long ReceiptPlaceId { get; set; } + + /// + /// 装货港代码 + /// + [SugarColumn(ColumnDescription = "装货港代码", IsNullable = true)] + public long LoadPortId { get; set; } + + /// + /// 装货港 + /// + [SugarColumn(ColumnDescription = "装货港", IsNullable = true, Length = 60)] + public string LoadPort { get; set; } + + /// + /// 卸货港代码 + /// + [SugarColumn(ColumnDescription = "卸货港代码", IsNullable = true)] + public long DischargePortId { get; set; } + + /// + /// 卸货港 + /// + [SugarColumn(ColumnDescription = "卸货港", IsNullable = true, Length = 60)] + public string DischargePort { get; set; } + + + /// + /// 交货地代码 + /// + [SugarColumn(ColumnDescription = "交货地代码", IsNullable = true)] + public long DeliveryPlaceId { get; set; } + + /// + /// 交货地 + /// + [SugarColumn(ColumnDescription = "交货地", IsNullable = true, Length = 60)] + public string DeliveryPlace { get; set; } + + /// + /// 目的地代码 + /// + [SugarColumn(ColumnDescription = "目的地代码", IsNullable = true)] + public long DestinationId { get; set; } + + /// + /// 目的地 + /// + [SugarColumn(ColumnDescription = "目的地", IsNullable = true, Length = 60)] + public string Destination { get; set; } + + /// + /// 提单份数 + /// + [SugarColumn(ColumnDescription = "提单份数", IsNullable = true, Length = 5)] + public string NoBill { get; set; } + + /// + /// 副本份数 + /// + [SugarColumn(ColumnDescription = "副本份数", IsNullable = true, Length = 5)] + public string CopyNoBill { get; set; } + + /// + /// 签单方式 t_code_issutype + /// + [SugarColumn(ColumnDescription = "签单方式", IsNullable = true, Length = 12)] + public string IssueType { get; set; } + + /// + /// 签单日期 + /// + [SugarColumn(ColumnDescription = "签单日期", IsNullable = true)] + public DateTime? IssueDate { get; set; } + + /// + /// 签单地点Id + /// + [SugarColumn(ColumnDescription = "签单地点Id", IsNullable = true, DefaultValue = "0")] + public long IssuePlaceId { get; set; } + + /// + /// 签单地点 + /// + [SugarColumn(ColumnDescription = "签单地点", IsNullable = true, Length = 60)] + public string IssuePlace { get; set; } + + /// + /// 签单状态 + /// + [SugarColumn(ColumnDescription = "签单状态", IsNullable = true)] + public DateTime? BLIssueSatus { get; set; } + + /// + /// 付款地点Id + /// + [SugarColumn(ColumnDescription = "付款地点Id", IsNullable = true, DefaultValue = "0")] + public long PrepareAtId { get; set; } + + /// + /// 预付地点 + /// + [SugarColumn(ColumnDescription = "预付地点", IsNullable = true, Length = 50)] + public string PrepareAt { get; set; } + + /// + /// 预付地点 + /// + [SugarColumn(ColumnDescription = "预付地点", IsNullable = true, Length = 50)] + public string PayableAt { get; set; } + + /// + /// 运输条款 CY-CY t_code_service + /// + [SugarColumn(ColumnDescription = "运输条款", IsNullable = true, Length = 50)] + public string Service { get; set; } + + /// + /// 唛头 N/M + /// + [SugarColumn(ColumnDescription = "唛头", IsNullable = true, Length = 3000)] + public string Marks { get; set; } + + /// + /// 箱号封号 + /// + [SugarColumn(ColumnDescription = "箱号封号", IsNullable = true, Length = 4000)] + public string CntrSealNo { get; set; } + + /// + /// 件数包装 + /// + [SugarColumn(ColumnDescription = "件数包装", IsNullable = true, Length = 120)] + public string NoPkgs { get; set; } + + /// + /// 货物描述 + /// + [SugarColumn(ColumnDescription = "货物描述", IsNullable = true, Length = 2000)] + public string Description { get; set; } + + /// + /// 品名 t_code_goods + /// + [SugarColumn(ColumnDescription = "品名", IsNullable = true, Length = 30)] + public string GoodsName { get; set; } + + /// + /// 货物毛重 + /// + [SugarColumn(ColumnDescription = "货物毛重", IsNullable = true, Length = 600)] + public string GrossWeight { get; set; } + + /// + /// 货物尺码 + /// + [SugarColumn(ColumnDescription = "货物尺码", IsNullable = true, Length = 600)] + public string Measurement { get; set; } + + /// + /// 件数 + /// + [SugarColumn(ColumnDescription = "件数", IsNullable = true)] + public int? PKGS { get; set; } + + /// + /// 包装 t_code_package + /// + [SugarColumn(ColumnDescription = "包装", IsNullable = true, Length = 20)] + public string KindPkgs { get; set; } + + /// + /// 毛重 + /// + [SugarColumn(ColumnDescription = "毛重", IsNullable = true, Length = 18, DecimalDigits = 4, DefaultValue = "0")] + public decimal? KGS { get; set; } + + /// + /// 尺码 + /// + [SugarColumn(ColumnDescription = "尺码", IsNullable = true, Length = 18, DecimalDigits = 4, DefaultValue = "0")] + public decimal? CBM { get; set; } + + /// + /// 件数大写 + /// + [SugarColumn(ColumnDescription = "件数大写", IsNullable = true, Length = 100)] + public string TotalNo { get; set; } + + /// + /// 集装箱大写 + /// + [SugarColumn(ColumnDescription = "集装箱大写", IsNullable = true, Length = 1000)] + public string CntrNo { get; set; } + + /// + /// 箱型1 + /// + [SugarColumn(ColumnDescription = "箱型1", IsNullable = true, DefaultValue = "0")] + public int Cntr1 { get; set; } + + /// + /// 箱型2 + /// + [SugarColumn(ColumnDescription = "箱型2", IsNullable = true, DefaultValue = "0")] + public int Cntr2 { get; set; } + + /// + /// 箱型3 + /// + [SugarColumn(ColumnDescription = "箱型3", IsNullable = true, DefaultValue = "0")] + public int Cntr3 { get; set; } + + /// + /// 箱型4 + /// + [SugarColumn(ColumnDescription = "箱型4", IsNullable = true, DefaultValue = "0")] + public int Cntr4 { get; set; } + + /// + /// 箱型5 + /// + [SugarColumn(ColumnDescription = "箱型5", IsNullable = true, DefaultValue = "0")] + public int Cntr5 { get; set; } + + /// + /// 箱型6 + /// + [SugarColumn(ColumnDescription = "箱型6", IsNullable = true, DefaultValue = "0")] + public int Cntr6 { get; set; } + + /// + /// 箱型7 + /// + [SugarColumn(ColumnDescription = "箱型7", IsNullable = true, DefaultValue = "0")] + public int Cntr7 { get; set; } + + /// + /// 箱型8 + /// + [SugarColumn(ColumnDescription = "箱型8", IsNullable = true, DefaultValue = "0")] + public int Cntr8 { get; set; } + + /// + /// 箱型9 + /// + [SugarColumn(ColumnDescription = "箱型9", IsNullable = true, DefaultValue = "0")] + public int Cntr9 { get; set; } + + /// + /// 箱型10 + /// + [SugarColumn(ColumnDescription = "箱型10", IsNullable = true, DefaultValue = "0")] + public int Cntr10 { get; set; } + + /// + /// 其他箱型 + /// + [SugarColumn(ColumnDescription = "其他箱型", IsNullable = true, DefaultValue = "0")] + public int OtherCntr { get; set; } + + /// + /// 箱TEU + /// + [SugarColumn(ColumnDescription = "箱TEU", IsNullable = true, DefaultValue = "0")] + public int TEU { get; set; } + + /// + /// 集装箱 + /// + [SugarColumn(ColumnDescription = "集装箱", IsNullable = true, Length = 4000)] + public string CntrTotal { get; set; } + + /// + /// 操作员 + /// + [SugarColumn(ColumnDescription = "操作员", IsNullable = true, DefaultValue = "0")] + public long OperatorId { get; set; } + + /// + /// 客服 + /// + [SugarColumn(ColumnDescription = "客服", IsNullable = true, DefaultValue = "0")] + public long CustomerService { get; set; } + + /// + /// 外国客服 + /// + [SugarColumn(ColumnDescription = "外国客服", IsNullable = true, DefaultValue = "0")] + public long ForeignCustomerService { get; set; } + + /// + /// 航线 + /// + [SugarColumn(ColumnDescription = "航线", IsNullable = true, DefaultValue = "0")] + public long LaneId { get; set; } + + /// + /// 揽货人 + /// + [SugarColumn(ColumnDescription = "揽货人", IsNullable = true, DefaultValue = "0")] + public long Sale { get; set; } + + /// + /// 船公司 + /// + [SugarColumn(ColumnDescription = "船公司", IsNullable = true, DefaultValue = "0")] + public long Carrier { get; set; } + + /// + /// 货代公司 + /// + [SugarColumn(ColumnDescription = "货代公司", IsNullable = true, DefaultValue = "0")] + public long Forwarder { get; set; } + + /// + /// 报关行 + /// + [SugarColumn(ColumnDescription = "报关行", IsNullable = true, DefaultValue = "0")] + public long Customser { get; set; } + + /// + /// 承运车队 + /// + [SugarColumn(ColumnDescription = "承运车队", IsNullable = true, DefaultValue = "0")] + public long Trucker { get; set; } + + + /// + /// 发票号 + /// + [SugarColumn(ColumnDescription = "发票号", IsNullable = true, Length = 20)] + public string InvoiceNo { get; set; } + + /// + /// 货物标识 S/R/D/O + /// + [SugarColumn(ColumnDescription = "货物标识 S/R/D/O", IsNullable = true, Length = 1)] + public string CargoId { get; set; } + + /// + /// 危险品分类 + /// + [SugarColumn(ColumnDescription = "危险品分类", IsNullable = true, Length = 5)] + public string DangerClass { get; set; } + + /// + /// 危险品编号 + /// + [SugarColumn(ColumnDescription = "危险品编号", IsNullable = true, Length = 16)] + public string DangerNo { get; set; } + + /// + /// 危险品页号 + /// + [SugarColumn(ColumnDescription = "危险品页号", IsNullable = true, Length = 7)] + public string DangerPage { get; set; } + + /// + /// 危险品标签 + /// + [SugarColumn(ColumnDescription = "危险品标签", IsNullable = true, Length = 32)] + public string DangerLabel { get; set; } + + /// + /// 冷藏通风量 + /// + [SugarColumn(ColumnDescription = "冷藏通风量", IsNullable = true, Length = 10)] + public string ReeferQuantity { get; set; } + + /// + /// 温度单位 + /// + [SugarColumn(ColumnDescription = "温度单位", IsNullable = true, Length = 1)] + public string TemperatureUnit { get; set; } + + /// + /// 设置温度 + /// + [SugarColumn(ColumnDescription = "设置温度", IsNullable = true, Length = 5)] + public string TemperatureSet { get; set; } + + /// + /// 最低温度 + /// + [SugarColumn(ColumnDescription = "最低温度", IsNullable = true, Length = 5)] + public string TemperatureMin { get; set; } + + /// + /// 最高温度 + /// + [SugarColumn(ColumnDescription = "最高温度", IsNullable = true, Length = 5)] + public string TemperatureMax { get; set; } + + /// + /// Desc:业务来源Id + /// + [SugarColumn(ColumnDescription = "业务来源Id", IsNullable = true, DefaultValue = "0")] + public long SourceId { get; set; } + + /// + /// Desc:业务来源明细Id + /// + [SugarColumn(ColumnDescription = "业务来源明细Id", IsNullable = true, DefaultValue = "0")] + public long SourceDetailId { get; set; } + + /// + /// Desc:报关票数 + /// + [SugarColumn(ColumnDescription = "报关票数", IsNullable = true, DefaultValue = "0")] + public int CustomsNum { get; set; } + + /// + /// 运费协议号 + /// + [SugarColumn(ColumnDescription = "运费协议号", IsNullable = true, Length = 100)] + public string ContractNo { get; set; } + + /// + /// 订舱类型 + /// + [SugarColumn(ColumnDescription = "订舱类型", IsNullable = true, Length = 50)] + public string BookingType { get; set; } + + /// + /// 订舱编号 + /// + [SugarColumn(ColumnDescription = "订舱编号", IsNullable = true, Length = 20)] + public string BookingNo { get; set; } + + /// + /// Desc:保险人 + /// + [SugarColumn(ColumnDescription = "保险人", IsNullable = true, Length = 30)] + public string Insuranceer { get; set; } + + /// + /// Desc:保险单号 + /// + [SugarColumn(ColumnDescription = "保险单号", IsNullable = true, Length = 20)] + public string InsuranceNo { get; set; } + + /// + /// Desc:保险金额 + /// + [SugarColumn(ColumnDescription = "保险金额", IsNullable = true, Length = 18, DecimalDigits = 2, DefaultValue = "0")] + public decimal? InsuranceAmount { get; set; } + + /// + /// Desc:是否生成凭证 + /// + [SugarColumn(ColumnDescription = "是否生成凭证", DefaultValue = "0")] + public bool? IsVoucher { get; set; } = false; + + /// + /// Desc:凭证号 + /// + [SugarColumn(ColumnDescription = "凭证号", IsNullable = true, Length = 20)] + public string VoucherNo { get; set; } + + /// + /// Desc:备注 + /// + [SugarColumn(ColumnDescription = "备注", IsNullable = true, Length = 4000)] + public string Remark { get; set; } + + /// + /// Desc:状态1 + /// + [SugarColumn(ColumnDescription = "状态1", DefaultValue = "0")] + public bool? Status1 { get; set; } = false; + + /// + /// Desc:状态2 + /// + [SugarColumn(ColumnDescription = "状态2", DefaultValue = "0")] + public bool? Status2 { get; set; } = false; + + /// + /// Desc:状态3 + /// + [SugarColumn(ColumnDescription = "状态3", DefaultValue = "0")] + public bool? Status3 { get; set; } = false; + + /// + /// Desc:状态4 + /// + [SugarColumn(ColumnDescription = "状态4", DefaultValue = "0")] + public bool? Status4 { get; set; } = false; + + /// + /// Desc:状态5 + /// + [SugarColumn(ColumnDescription = "状态5", DefaultValue = "0")] + public bool? Status5 { get; set; } = false; + + /// + /// Desc:熏蒸 + /// + [SugarColumn(ColumnDescription = "熏蒸", DefaultValue = "0")] + public bool? IsFumigation { get; set; } = false; + + /// + /// Desc:仓储 + /// + [SugarColumn(ColumnDescription = "仓储", DefaultValue = "0")] + public bool? IsStorage { get; set; } = false; + + /// + /// Desc:陆运 + /// + [SugarColumn(ColumnDescription = "陆运", DefaultValue = "0")] + public bool? IsLand { get; set; } = false; + + /// + /// Desc:报关 + /// + [SugarColumn(ColumnDescription = "报关", DefaultValue = "0")] + public bool? IsCustoms { get; set; } = false; + + /// + /// Desc:报检 + /// + [SugarColumn(ColumnDescription = "报检", DefaultValue = "0")] + public bool? IsInspection { get; set; } = false; + + /// + /// Desc:订舱 + /// + [SugarColumn(ColumnDescription = "订舱", DefaultValue = "0")] + public bool? IsBooking { get; set; } = false; + + /// + /// Desc:使用代理 + /// + [SugarColumn(ColumnDescription = "使用代理", DefaultValue = "0")] + public bool? IsAgent { get; set; } = false; + + /// + /// Desc:分单签单 + /// + [SugarColumn(ColumnDescription = "分单签单", DefaultValue = "0")] + public bool? IsHBLNO { get; set; } = false; + + /// + /// Desc:服务项目9 + /// + [SugarColumn(ColumnDescription = "服务项目9", DefaultValue = "0")] + public bool? Service9 { get; set; } = false; + + /// + /// Desc:服务项目10 + /// + [SugarColumn(ColumnDescription = "服务项目10", DefaultValue = "0")] + public bool? Service10 { get; set; } = false; + + + /// + /// Desc:单证 + /// + [SugarColumn(ColumnDescription = "单证", IsNullable = true, Length = 10)] + public string Doc { get; set; } + + /// + /// Desc:装箱类型 + /// + [SugarColumn(ColumnDescription = "装箱类型", IsNullable = true, Length = 10)] + public string PackingType { get; set; } + + /// + /// Desc:仓库 + /// + [SugarColumn(ColumnDescription = "仓库", IsNullable = true, Length = 20)] + public string WareHouse { get; set; } + + /// + /// 截单日期 + /// + [SqlSugar.SugarColumn(ColumnDescription = "截单日期", IsNullable = false)] + public DateTime CloseDocDate { get; set; } + + /// + /// 集港日期 + /// + [SqlSugar.SugarColumn(ColumnDescription = "集港日期", IsNullable = false)] + public DateTime IntoPortDocDate { get; set; } + + /// + /// Desc:所属业务部门 + /// + [SugarColumn(ColumnDescription = "所属业务部门", IsNullable = true, DefaultValue = "0")] + public long SaleDeptId { get; set; } + + /// + /// Desc:MBL付费方式 t_code_frt + /// + [SugarColumn(ColumnDescription = "MBL付费方式", IsNullable = true, Length = 20)] + public string MBLFrt { get; set; } + + /// + /// Desc:结算方式 + /// + [SugarColumn(ColumnDescription = "结算方式", IsNullable = true, Length = 30)] + public string StlName { get; set; } + + + /// + /// Desc:月结算时间 + /// + [SqlSugar.SugarColumn(ColumnDescription = "月结算时间", IsNullable = false)] + public DateTime StlDate { get; set; } + + /// + /// Desc:委托方式 + /// + [SugarColumn(ColumnDescription = "委托方式", IsNullable = true, Length = 10)] + public string OrderType { get; set; } + + /// + /// Desc:操作员代码 + /// + [SugarColumn(ColumnDescription = "操作员代码", IsNullable = true, Length = 6)] + public string OperatorCode { get; set; } + + /// + /// Desc:是否为操作 + /// + [SugarColumn(ColumnDescription = "是否为操作", IsNullable = true, DefaultValue = "0")] + public bool IsOperator { get; set; } + + /// + /// Desc:操作员邮箱 + /// + [SugarColumn(ColumnDescription = "操作员邮箱", IsNullable = true, Length = 6)] + public string OperatorEmail { get; set; } + + /// + /// Desc:操作员电话 + /// + [SugarColumn(ColumnDescription = "操作员电话", IsNullable = true, Length = 6)] + public string OperatorTel { get; set; } + + /// + /// Desc:操作员传真 + /// + [SugarColumn(ColumnDescription = "操作员传真", IsNullable = true, Length = 6)] + public string OperatorFax { get; set; } + + /// + /// Desc:场站自结 + /// + [SugarColumn(ColumnDescription = "场站自结", IsNullable = true, Length = 6)] + public string FinancialStaffCode { get; set; } + + /// + /// Desc:是否为财务 + /// + [SugarColumn(ColumnDescription = "是否为财务", IsNullable = true, DefaultValue = "0")] + public bool? IsFinancialStaff { get; set; } = false; + + /// + /// Desc:财务邮箱 + /// + [SugarColumn(ColumnDescription = "财务邮箱", IsNullable = true, Length = 6)] + public string FinancialStaffEmail { get; set; } + + /// + /// Desc:财务电话 + /// + [SugarColumn(ColumnDescription = "财务电话", IsNullable = true, Length = 6)] + public string FinancialStaffTel { get; set; } + + /// + /// Desc:财务传真 + /// + [SugarColumn(ColumnDescription = "财务传真", IsNullable = true, Length = 6)] + public string FinancialStaffFax { get; set; } + + /// + /// Desc:业务来源代码 + /// + [SugarColumn(ColumnDescription = "业务来源代码", IsNullable = true, Length = 10)] + public string SourceCode { get; set; } + + + /// + /// Desc:联系人 + /// + [SugarColumn(ColumnDescription = "联系人", IsNullable = true, Length = 35)] + public string LinkMan { get; set; } + + /// + /// Desc:海关代码 + /// + [SugarColumn(ColumnDescription = "海关代码", IsNullable = true, Length = 20)] + public string HSCode { get; set; } + + /// + /// Desc:EDI备注 + /// + [SugarColumn(ColumnDescription = "EDI备注", IsNullable = true, Length = 300)] + public string EdiRemark { get; set; } + + /// + /// Desc:邮件方案 + /// + [SugarColumn(ColumnDescription = "邮件方案", IsNullable = true, DefaultValue = "0")] + public long MailProjectId { get; set; } + + + /// + /// Desc:CSR/IR号 + /// + [SugarColumn(ColumnDescription = "CSR/IR号", IsNullable = true, Length = 20)] + public string IRCode { get; set; } + + /// + /// Desc:服务合同号 + /// + [SugarColumn(ColumnDescription = "服务合同号", IsNullable = true, Length = 30)] + public string ServiceContractNo { get; set; } + + /// + /// Desc:申请放箱号 + /// + [SugarColumn(ColumnDescription = "申请放箱号", IsNullable = true, Length = 30)] + public string ApplyNo { get; set; } + + + /// + /// Desc:报关单号 + /// + [SugarColumn(ColumnDescription = "报关单号", IsNullable = true, Length = 20)] + public string CustomNo { get; set; } + + /// + /// Desc: 报关日期 + /// + [SugarColumn(ColumnDescription = "报关日期", IsNullable = true)] + public DateTime CustomDate { get; set; } + + /// + /// 单位编码 + /// + [SqlSugar.SugarColumn(ColumnDescription = "单位编码", IsNullable = true)] + public long? EnterpriseId { get; set; } + + /// + /// 单位 + /// + [SqlSugar.SugarColumn(ColumnDescription = "单位", IsNullable = true, Length = 60)] + public string Enterprise { get; set; } + + /// + /// Desc:商检单号 + /// + [SugarColumn(ColumnDescription = "商检单号", Length = 50, IsNullable = true)] + public string InspectionNo { get; set; } + + /// + /// Desc:商检日期 + /// + [SugarColumn(ColumnDescription = "商检日期", IsNullable = true)] + public DateTime InspectionDate { get; set; } + + /// + /// Desc:贸易条款 + /// + [SugarColumn(ColumnDescription = "贸易条款", Length = 20, IsNullable = true)] + public string TradeTerm { get; set; } + + /// + /// Desc:贸易方式 + /// + [SugarColumn(ColumnDescription = "贸易方式", Length = 10, IsNullable = true)] + public string TermDelivery { get; set; } + + /// + /// Desc:清关日期 + /// + [SugarColumn(ColumnDescription = "清关日期", IsNullable = true)] + public DateTime ClearCustomDate { get; set; } + + /// + /// Desc:报检项目 + /// + [SugarColumn(ColumnDescription = "报检项目", Length = 20, IsNullable = true)] + public string InsperctService { get; set; } + + /// + /// 船代Id + /// + [SqlSugar.SugarColumn(ColumnDescription = "船代Id", IsNullable = true)] + public long ShipAgencyId { get; set; } + + /// + /// Desc:湿度 + /// + [SugarColumn(ColumnDescription = "湿度", Length = 20, IsNullable = true)] + public string Humidity { get; set; } + + + /// + /// Master发货人 + /// + [SqlSugar.SugarColumn(ColumnDescription = "Master发货人", IsNullable = true)] + public long? MasterShipperId { get; set; } + + /// + /// Master收货人 t_info_client CUSTNAME + /// + [SqlSugar.SugarColumn(ColumnDescription = "Master收货人", IsNullable = true)] + public long? MasterConsigneeId { get; set; } + + /// + /// Master通知人 t_info_client CUSTNAME + /// + [SqlSugar.SugarColumn(ColumnDescription = "Master通知人", IsNullable = true)] + public long? MasterNotifyPartyId { get; set; } + + /// + /// Master收货人内容 + /// + [SqlSugar.SugarColumn(ColumnDescription = "Master收货人内容", IsNullable = true, Length = 600)] + public string MasterConsigneeContent { get; set; } + + /// + /// Master通知人内容 + /// + [SqlSugar.SugarColumn(ColumnDescription = "Master通知人内容", IsNullable = true, Length = 600)] + public string MasterNotifyPartyContent { get; set; } + + /// + /// Master发货人内容 + /// + [SqlSugar.SugarColumn(ColumnDescription = "Master发货人内容", IsNullable = true, Length = 600)] + public string MasterShipperContent { get; set; } + + /// + /// Master单描述 + /// + [SqlSugar.SugarColumn(ColumnDescription = "Master单描述", IsNullable = true, Length = 200)] + public string MasterDescription { get; set; } + + /// + /// Desc:是否SOC + /// + [SugarColumn(ColumnDescription = "是否SOC", DefaultValue = "0")] + public bool? IsContainerSoc { get; set; } = false; + + /// + /// Desc:运输状态 + /// + [SugarColumn(ColumnDescription = "运输状态", IsNullable = true, Length = 1)] + public string TranStatus { get; set; } + + /// + /// Desc: + /// + [SugarColumn(ColumnDescription = "", IsNullable = true, Length = 10)] + public string ManifestStatus { get; set; } + + /// + /// 是否多品名 + /// + [SugarColumn(ColumnDescription = "是否多品名", DefaultValue = "0")] + public bool IsMoreGood { get; set; } + + /// + /// 是否打印小票 + /// + [SugarColumn(ColumnDescription = "是否打印小票", DefaultValue = "0")] + public bool IsPrintReceipt { get; set; } + // /// + // /// 是否取消 + // /// + // [SugarColumn(ColumnDescription = "是否取消", DefaultValue = "0")] + // public bool IsCancel { get; set; } + // + // /// + // /// 是否TUI + // /// + // [SugarColumn(ColumnDescription = "是否TUI", DefaultValue = "0")] + // public bool IsTUI { get; set; } + + /// + /// 船名 t_code_vessel + /// + [SqlSugar.SugarColumn(ColumnDescription = "船名", IsNullable = true, Length = 60)] + public string Vessel2N { get; set; } + + /// + /// 船名Id t_code_vessel + /// + [SqlSugar.SugarColumn(ColumnDescription = "船名Id", IsNullable = true, DefaultValue = "0")] + public long VesselId2N { get; set; } + + /// + /// 二程航次 + /// + [SqlSugar.SugarColumn(ColumnDescription = "二程航次", IsNullable = true, Length = 12)] + public string Voyno2N { get; set; } + + /// + /// 交货日期 + /// + [SugarColumn(ColumnDescription = "交货日期", IsNullable = true)] + public DateTime DeliveryDate { get; set; } + + /// + /// 场站联系人 + /// + [SqlSugar.SugarColumn(ColumnDescription = "场站联系人", IsNullable = true, Length = 20)] + public string YardATTN { get; set; } + + /// + /// 场站联系方式 + /// + [SqlSugar.SugarColumn(ColumnDescription = "场站联系方式", IsNullable = true, Length = 60)] + public string YardTel { get; set; } + + /// + /// 销售公司Id + /// + [SqlSugar.SugarColumn(ColumnDescription = "销售公司Id", IsNullable = true, DefaultValue = "0")] + public long SaleOrgId { get; set; } + + /// + /// 中转港 + /// + [SqlSugar.SugarColumn(ColumnDescription = "中转港", IsNullable = true, Length = 60)] + public string Transport { get; set; } + + /// + /// 转运备注 + /// + [SqlSugar.SugarColumn(ColumnDescription = "转运备注", IsNullable = true, Length = 600)] + public string TransRemark { get; set; } + + /// + /// 预录 + /// + [SqlSugar.SugarColumn(ColumnDescription = "预录", IsNullable = true, DefaultValue = "0")] + public int PreRecord { get; set; } + + /// + /// + /// + [SqlSugar.SugarColumn(ColumnDescription = "", IsNullable = true, Length = 20)] + public string TruckStatus { get; set; } + + /// + /// Desc: + /// + [SugarColumn(ColumnDescription = "", DefaultValue = "0")] + public bool? IsBookingYDW { get; set; } = false; + + + /// + /// + /// + [SugarColumn(ColumnDescription = "", IsNullable = true)] + public DateTime YDWUpdate { get; set; } + + /// + /// Desc:是否改签 + /// + [SugarColumn(ColumnDescription = "是否改签", DefaultValue = "0")] + public bool? IsChange { get; set; } = false; + + /// + /// Desc: + /// + [SugarColumn(ColumnDescription = "", IsNullable = true, DefaultValue = "0")] + public int WarnCount { get; set; } = 0; +} \ No newline at end of file diff --git a/ds-wms-service/DS.WMS.Core/Sea/Interface/ISeaExportService.cs b/ds-wms-service/DS.WMS.Core/Sea/Interface/ISeaExportService.cs new file mode 100644 index 00000000..23020b01 --- /dev/null +++ b/ds-wms-service/DS.WMS.Core/Sea/Interface/ISeaExportService.cs @@ -0,0 +1,29 @@ +using DS.Module.Core; +using DS.WMS.Core.Sea.Dtos; + +namespace DS.WMS.Core.Sea.Interface; + +public interface ISeaExportService +{ + /// + /// 列表 + /// + /// + /// + DataResult> GetListByPage(PageRequest request); + + + /// + /// 编辑 + /// + /// + /// + DataResult EditSeaExport(SeaExportReq model); + + /// + /// 获取详情 + /// + /// + /// + DataResult GetSeaExportInfo(string id); +} \ No newline at end of file diff --git a/ds-wms-service/DS.WMS.Core/Sea/Method/SeaExportService.cs b/ds-wms-service/DS.WMS.Core/Sea/Method/SeaExportService.cs new file mode 100644 index 00000000..e4ded6ee --- /dev/null +++ b/ds-wms-service/DS.WMS.Core/Sea/Method/SeaExportService.cs @@ -0,0 +1,93 @@ +using DS.Module.Core; +using DS.Module.Core.Extensions; +using DS.Module.SqlSugar; +using DS.Module.UserModule; +using DS.WMS.Core.Sea.Dtos; +using DS.WMS.Core.Sea.Entity; +using DS.WMS.Core.Sea.Interface; +using Mapster; +using Microsoft.Extensions.DependencyInjection; +using SqlSugar; + +namespace DS.WMS.Core.Sea.Method; + +public class SeaExportService:ISeaExportService +{ + private readonly IServiceProvider _serviceProvider; + private readonly ISqlSugarClient db; + private readonly IUser user; + private readonly ISaasDbService saasService; + /// + /// + /// + /// + public SeaExportService(IServiceProvider serviceProvider) + { + _serviceProvider = serviceProvider; + db = _serviceProvider.GetRequiredService(); + user = _serviceProvider.GetRequiredService(); + saasService = _serviceProvider.GetRequiredService(); + } + + /// + /// 列表 + /// + /// + /// + public DataResult> GetListByPage(PageRequest request) + { + var tenantDb = saasService.GetBizDbScopeById(user.TenantId); + //序列化查询条件 + var whereList = db.ConfigQuery.Context.Utilities.JsonToConditionalModels(request.QueryCondition); + var data = tenantDb.Queryable() + .Where(whereList) + .Select().ToQueryPage(request.PageCondition); + return data; + } + /// + /// 编辑 + /// + /// + /// + public DataResult EditSeaExport(SeaExportReq req) + { + var tenantDb = saasService.GetBizDbScopeById(user.TenantId); + if (req.Id == 0) + { + + if (tenantDb.Queryable().Where(x=>x.MasterNo == req.MasterNo.Trim()).Any()) + { + return DataResult.Failed("客户银行信息已存在!",MultiLanguageConst.SeaExportExist); + } + + var data = req.Adapt(); + + var entity = tenantDb.Insertable(data).ExecuteReturnEntity(); + + return DataResult.Successed("添加成功!", entity.Id,MultiLanguageConst.DataCreateSuccess); + } + else + { + var info = tenantDb.Queryable().Where(x => x.Id == req.Id).First(); + + info = req.Adapt(info); + + tenantDb.Updateable(info).IgnoreColumns(ignoreAllNullColumns: true).EnableDiffLogEvent().ExecuteCommand(); + return DataResult.Successed("更新成功!",MultiLanguageConst.DataUpdateSuccess); + } + } + /// + /// 详情 + /// + /// + /// + public DataResult GetSeaExportInfo(string id) + { + var tenantDb = saasService.GetBizDbScopeById(user.TenantId); + var data = tenantDb.Queryable() + .Where(a => a.Id == long.Parse(id)) + .Select() + .First(); + return DataResult.Success(data,MultiLanguageConst.DataQuerySuccess); + } +} \ No newline at end of file diff --git a/ds-wms-service/DS.WMS.Core/System/Method/VersionService.cs b/ds-wms-service/DS.WMS.Core/System/Method/VersionService.cs index 5689fa64..6ef9c0b2 100644 --- a/ds-wms-service/DS.WMS.Core/System/Method/VersionService.cs +++ b/ds-wms-service/DS.WMS.Core/System/Method/VersionService.cs @@ -105,7 +105,7 @@ public class VersionService : IVersionService var types = referencedAssemblies .SelectMany(a => a.DefinedTypes) .Select(type => type.AsType()) - .Where(it => it.FullName.Contains("DS.WMS.Core.Code.Entity.")||it.FullName.Contains("DS.WMS.Core.Info.Entity.")).ToArray(); + .Where(it => it.FullName.Contains("DS.WMS.Core.Code.Entity.")||it.FullName.Contains("DS.WMS.Core.Info.Entity.")||it.FullName.Contains("DS.WMS.Core.Sea.Entity.")).ToArray(); var tenantList = db.Queryable().ToList(); diff --git a/ds-wms-service/DS.WMS.MainApi/Controllers/SeaExportController.cs b/ds-wms-service/DS.WMS.MainApi/Controllers/SeaExportController.cs new file mode 100644 index 00000000..7933c92b --- /dev/null +++ b/ds-wms-service/DS.WMS.MainApi/Controllers/SeaExportController.cs @@ -0,0 +1,66 @@ +using DS.Module.Core; +using DS.WMS.Core.Info.Dtos; +using DS.WMS.Core.Info.Interface; +using DS.WMS.Core.Sea.Dtos; +using DS.WMS.Core.Sea.Interface; +using DS.WMS.Core.System.Dtos; +using DS.WMS.Core.System.Interface; +using Microsoft.AspNetCore.Mvc; + +namespace DS.WMS.MainApi.Controllers; + +/// +/// 海运出口信息-模块 +/// +public class SeaExportController : ApiController +{ + private readonly ISeaExportService _invokeService; + + /// + /// 构造函数 + /// + /// + public SeaExportController(ISeaExportService invokeService) + { + _invokeService = invokeService; + } + + /// + /// 列表 + /// + /// + /// + [HttpPost] + [Route("GetSeaExportList")] + public DataResult> GetSeaExportList([FromBody] PageRequest request) + { + var res = _invokeService.GetListByPage(request); + return res; + } + + /// + /// 编辑 + /// + /// + /// + [HttpPost] + [Route("EditSeaExport")] + public DataResult EditSeaExport([FromBody] SeaExportReq req) + { + var res = _invokeService.EditSeaExport(req); + return res; + } + + /// + /// 详情 + /// + /// + /// + [HttpGet] + [Route("GetSeaExportInfo")] + public DataResult GetSeaExportInfo([FromQuery] string id) + { + var res = _invokeService.GetSeaExportInfo(id); + return res; + } +} \ No newline at end of file