问题修复
This commit is contained in:
parent
b3676f6b2f
commit
206ed11cec
@ -51,3 +51,9 @@ const (
|
|||||||
ExportTypeExchangeSettlement = "exchangeSettlement" // 结汇导出
|
ExportTypeExchangeSettlement = "exchangeSettlement" // 结汇导出
|
||||||
ExportTypeAccounting = "accounting" // 做账导出
|
ExportTypeAccounting = "accounting" // 做账导出
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type BanFlag = int64 // 出舱状态
|
||||||
|
const (
|
||||||
|
BanFlagDisabled BanFlag = 1 // 禁用
|
||||||
|
BanFlagEnabled BanFlag = 2 // 可用
|
||||||
|
)
|
||||||
|
@ -25,6 +25,7 @@ type CustomSearch struct {
|
|||||||
DepartmentIds []int64 // 所属部门
|
DepartmentIds []int64 // 所属部门
|
||||||
BanFlag int64 // 禁用标记 1=禁用 2=启用
|
BanFlag int64 // 禁用标记 1=禁用 2=启用
|
||||||
StaffIds []int64 // 业务员
|
StaffIds []int64 // 业务员
|
||||||
|
CreatedStaffIds []int64 // 业务员
|
||||||
}
|
}
|
||||||
type ReplyCustomList struct {
|
type ReplyCustomList struct {
|
||||||
List []CustomItem `json:"list"`
|
List []CustomItem `json:"list"`
|
||||||
|
@ -29,6 +29,7 @@ type ShipmentSearch struct {
|
|||||||
InvoiceDateEnd *time.Time // 发票日期
|
InvoiceDateEnd *time.Time // 发票日期
|
||||||
ContractDateStart *time.Time // 合同日期
|
ContractDateStart *time.Time // 合同日期
|
||||||
ContractDateEnd *time.Time // 合同日期
|
ContractDateEnd *time.Time // 合同日期
|
||||||
|
BanFlag int64 // 是否有效
|
||||||
}
|
}
|
||||||
type ReplyShipmentList struct {
|
type ReplyShipmentList struct {
|
||||||
List []ShipmentItem `json:"list"`
|
List []ShipmentItem `json:"list"`
|
||||||
@ -229,3 +230,14 @@ func (s *shipment) Customs(ctx context.Context, shipmentId int64) (reply bean2.R
|
|||||||
err = xClient.Call(ctx, "Customs", shipmentId, &reply)
|
err = xClient.Call(ctx, "Customs", shipmentId, &reply)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Cancel @TITLE 作废
|
||||||
|
func (s *shipment) Cancel(ctx context.Context, shipmentId int64) (err error) {
|
||||||
|
xClient, err := client.GetClient(s)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
reply := 0
|
||||||
|
err = xClient.Call(ctx, "Cancel", shipmentId, &reply)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
@ -75,4 +75,5 @@ type ReplyShipmentInfo struct {
|
|||||||
SaleCurrencyName string `json:"saleCurrencyName"`
|
SaleCurrencyName string `json:"saleCurrencyName"`
|
||||||
SaleCurrencySymbol string `json:"saleCurrencySymbol"`
|
SaleCurrencySymbol string `json:"saleCurrencySymbol"`
|
||||||
SaleCurrencyRate decimal.Decimal `json:"saleCurrencyRate"`
|
SaleCurrencyRate decimal.Decimal `json:"saleCurrencyRate"`
|
||||||
|
BanFlag int64 `json:"banFlag"`
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ type CustomsSearch struct {
|
|||||||
InvoiceSerial string // 出运发票号
|
InvoiceSerial string // 出运发票号
|
||||||
CustomIds []int64 // 客户筛选
|
CustomIds []int64 // 客户筛选
|
||||||
StaffIds []int64 // 业务员筛选
|
StaffIds []int64 // 业务员筛选
|
||||||
IsCancel int64 // 是否有效
|
BanFlag int64 // 是否有效
|
||||||
CustomsIds []int64 // 报关id
|
CustomsIds []int64 // 报关id
|
||||||
}
|
}
|
||||||
type ReplyCustomsList struct {
|
type ReplyCustomsList struct {
|
||||||
@ -40,7 +40,7 @@ type CustomsItem struct {
|
|||||||
EstSailingDate *time.Time `json:"estSailingDate"`
|
EstSailingDate *time.Time `json:"estSailingDate"`
|
||||||
ShipPort string `json:"shipPort"`
|
ShipPort string `json:"shipPort"`
|
||||||
DischargePort string `json:"dischargePort"`
|
DischargePort string `json:"dischargePort"`
|
||||||
IsCancel int64 `json:"isCancel"`
|
BanFlag int64 `json:"banFlag"`
|
||||||
CreatedStaffId int64 `json:"createdStaffId"`
|
CreatedStaffId int64 `json:"createdStaffId"`
|
||||||
CreatedAt *time.Time `json:"createdAt"`
|
CreatedAt *time.Time `json:"createdAt"`
|
||||||
UpdatedAt *time.Time `json:"updatedAt"`
|
UpdatedAt *time.Time `json:"updatedAt"`
|
||||||
@ -60,7 +60,7 @@ type ReplyCustomsInfo struct {
|
|||||||
ReplyShipmentInfo
|
ReplyShipmentInfo
|
||||||
CustomsNo string `json:"customsNo"`
|
CustomsNo string `json:"customsNo"`
|
||||||
ShipmentId int64 `json:"shipmentId"`
|
ShipmentId int64 `json:"shipmentId"`
|
||||||
IsCancel int64 `json:"isCancel"`
|
BanFlag int64 `json:"banFlag"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Info @TITLE 详情
|
// Info @TITLE 详情
|
||||||
|
@ -19,7 +19,7 @@ type ExchangeSettlementSearch struct {
|
|||||||
InvoiceSerial string // 出运发票号
|
InvoiceSerial string // 出运发票号
|
||||||
CustomIds []int64 // 客户筛选
|
CustomIds []int64 // 客户筛选
|
||||||
StaffIds []int64 // 业务员筛选
|
StaffIds []int64 // 业务员筛选
|
||||||
IsCancel int64 // 是否有效
|
BanFlag int64 // 是否有效
|
||||||
ExchangeSettlementIds []int64 // 结汇id
|
ExchangeSettlementIds []int64 // 结汇id
|
||||||
}
|
}
|
||||||
type ReplyExchangeSettlementList struct {
|
type ReplyExchangeSettlementList struct {
|
||||||
@ -39,7 +39,7 @@ type ExchangeSettlementItem struct {
|
|||||||
EstSailingDate *time.Time `json:"estSailingDate"`
|
EstSailingDate *time.Time `json:"estSailingDate"`
|
||||||
ShipPort string `json:"shipPort"`
|
ShipPort string `json:"shipPort"`
|
||||||
DischargePort string `json:"dischargePort"`
|
DischargePort string `json:"dischargePort"`
|
||||||
IsCancel int64 `json:"isCancel"`
|
BanFlag int64 `json:"banFlag"`
|
||||||
CreatedStaffId int64 `json:"createdStaffId"`
|
CreatedStaffId int64 `json:"createdStaffId"`
|
||||||
CreatedAt *time.Time `json:"createdAt"`
|
CreatedAt *time.Time `json:"createdAt"`
|
||||||
UpdatedAt *time.Time `json:"updatedAt"`
|
UpdatedAt *time.Time `json:"updatedAt"`
|
||||||
@ -80,7 +80,7 @@ type ReplyExchangeSettlementInfo struct {
|
|||||||
Info string `json:"info"`
|
Info string `json:"info"`
|
||||||
CustomsInvoiceDate *time.Time `json:"customsInvoiceDate"`
|
CustomsInvoiceDate *time.Time `json:"customsInvoiceDate"`
|
||||||
VesselNameVoyage string `json:"vesselNameVoyage"`
|
VesselNameVoyage string `json:"vesselNameVoyage"`
|
||||||
IsCancel int64 `json:"isCancel"`
|
BanFlag int64 `json:"banFlag"`
|
||||||
RecBankAddress string `json:"recBankAddress"`
|
RecBankAddress string `json:"recBankAddress"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ type SerialSearch struct {
|
|||||||
InvoiceSerial string // 出运发票号
|
InvoiceSerial string // 出运发票号
|
||||||
CustomIds []int64 // 客户筛选
|
CustomIds []int64 // 客户筛选
|
||||||
StaffIds []int64 // 业务员筛选
|
StaffIds []int64 // 业务员筛选
|
||||||
IsCancel int64 // 是否有效
|
BanFlag int64 // 是否有效
|
||||||
SerialIds []int64 // 商检id
|
SerialIds []int64 // 商检id
|
||||||
}
|
}
|
||||||
type ReplySerialList struct {
|
type ReplySerialList struct {
|
||||||
@ -40,7 +40,7 @@ type SerialItem struct {
|
|||||||
EstSailingDate *time.Time `json:"estSailingDate"`
|
EstSailingDate *time.Time `json:"estSailingDate"`
|
||||||
ShipPort string `json:"shipPort"`
|
ShipPort string `json:"shipPort"`
|
||||||
DischargePort string `json:"dischargePort"`
|
DischargePort string `json:"dischargePort"`
|
||||||
IsCancel int64 `json:"isCancel"`
|
BanFlag int64 `json:"banFlag"`
|
||||||
CreatedStaffId int64 `json:"createdStaffId"`
|
CreatedStaffId int64 `json:"createdStaffId"`
|
||||||
CreatedAt *time.Time `json:"createdAt"`
|
CreatedAt *time.Time `json:"createdAt"`
|
||||||
UpdatedAt *time.Time `json:"updatedAt"`
|
UpdatedAt *time.Time `json:"updatedAt"`
|
||||||
@ -60,7 +60,7 @@ type ReplySerialInfo struct {
|
|||||||
ReplyShipmentInfo
|
ReplyShipmentInfo
|
||||||
SerialNo string `json:"serialNo"`
|
SerialNo string `json:"serialNo"`
|
||||||
ShipmentId int64 `json:"shipmentId"`
|
ShipmentId int64 `json:"shipmentId"`
|
||||||
IsCancel int64 `json:"isCancel"`
|
BanFlag int64 `json:"banFlag"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Info @TITLE 详情
|
// Info @TITLE 详情
|
||||||
|
Loading…
Reference in New Issue
Block a user