|
|
@@ -332,9 +332,9 @@ func (r *MyTradegoodsdeliveryoffline) GetDataByPage() (interface{}, error, int,
|
|
|
|
|
|
// Deliveryofflinedetail 交易合约线下交收明细表
|
|
|
type MyDeliveryofflinedetail struct {
|
|
|
- DELIVERYDETAILID int64 `json:"deliverydetailid" xorm:"DELIVERYDETAILID"` // 明细单号(906+Unix秒时间戳(10位)+2位(MarketServiceID)+xxxx)
|
|
|
- DELIVERYORDERID int64 `json:"deliveryorderid" xorm:"DELIVERYORDERID" form:"deliveryorderid" binding:"required"` // 交收单号(905+Unix秒时间戳(10位)+2位(MarketServiceID)+xxxx)
|
|
|
- TRADEID int64 `json:"tradeid" xorm:"TRADEID"` // 成交单号(101+Unix秒时间戳(10位)+2位(MarketServiceID)+xxxx)
|
|
|
+ DELIVERYDETAILID string `json:"deliverydetailid" xorm:"DELIVERYDETAILID"` // 明细单号(906+Unix秒时间戳(10位)+2位(MarketServiceID)+xxxx)
|
|
|
+ DELIVERYORDERID string `json:"deliveryorderid" xorm:"DELIVERYORDERID" form:"deliveryorderid" binding:"required"` // 交收单号(905+Unix秒时间戳(10位)+2位(MarketServiceID)+xxxx)
|
|
|
+ TRADEID string `json:"tradeid" xorm:"TRADEID"` // 成交单号(101+Unix秒时间戳(10位)+2位(MarketServiceID)+xxxx)
|
|
|
BUYORSELL int32 `json:"buyorsell" xorm:"BUYORSELL"` // 方向 - 0:买 1:卖
|
|
|
USERID int64 `json:"userid" xorm:"USERID" form:"userid" binding:"required"` // 用户ID
|
|
|
ACCOUNTID int64 `json:"accountid" xorm:"ACCOUNTID"` // 账号ID
|
|
|
@@ -356,9 +356,9 @@ func (r *MyDeliveryofflinedetail) calc() {
|
|
|
func (r *MyDeliveryofflinedetail) buildSql() string {
|
|
|
var sqlId utils.SQLVal = `
|
|
|
SELECT
|
|
|
- t.deliverydetailid,
|
|
|
- t.deliveryorderid,
|
|
|
- t.tradeid,
|
|
|
+ to_char(t.deliverydetailid) DELIVERYDETAILID,
|
|
|
+ to_char(t.deliveryorderid) DELIVERYORDERID,
|
|
|
+ to_char(t.tradeid) TRADEID,
|
|
|
t.buyorsell,
|
|
|
t.userid,
|
|
|
t.accountid,
|
|
|
@@ -391,8 +391,8 @@ func (r *MyDeliveryofflinedetail) GetDataByPage() (interface{}, error, int, int,
|
|
|
|
|
|
// Deliveryofflineoperatelog 交易合约线下交收操作流水表
|
|
|
type MyDeliveryofflineoperatelog struct {
|
|
|
- OPERATELOGID int64 `json:"operatelogid" xorm:"OPERATELOGID"` // 明细单号(907+Unix秒时间戳(10位)+2位(MarketServiceID)+xxxx)
|
|
|
- DELIVERYORDERID int64 `json:"deliveryorderid" xorm:"DELIVERYORDERID" form:"deliveryorderid" binding:"required"` // 交收单ID
|
|
|
+ OPERATELOGID string `json:"operatelogid" xorm:"OPERATELOGID"` // 明细单号(907+Unix秒时间戳(10位)+2位(MarketServiceID)+xxxx)
|
|
|
+ DELIVERYORDERID string `json:"deliveryorderid" xorm:"DELIVERYORDERID" form:"deliveryorderid" binding:"required"` // 交收单ID
|
|
|
OPERATETYPE int32 `json:"operatetype" xorm:"OPERATETYPE" form:"operatetype"` // 操作类型 - 1:交收流程 2:付款流水
|
|
|
CURDELIVERYSTATUS int32 `json:"curdeliverystatus" xorm:"CURDELIVERYSTATUS"` // 当前交收状态(OperateType=1时) - 枚举deliveryStatus
|
|
|
AFTDELIVERYSTATUS int32 `json:"aftdeliverystatus" xorm:"AFTDELIVERYSTATUS"` // 操作后交收状态(OperateType=1时) - 枚举deliveryStatus
|
|
|
@@ -420,8 +420,8 @@ func (r *MyDeliveryofflineoperatelog) calc() {
|
|
|
func (r *MyDeliveryofflineoperatelog) buildSql() string {
|
|
|
var sqlId utils.SQLVal = `
|
|
|
SELECT
|
|
|
- t.operatelogid,
|
|
|
- t.deliveryorderid,
|
|
|
+ to_char(t.operatelogid) OPERATELOGID,
|
|
|
+ to_char(t.deliveryorderid) DELIVERYORDERID,
|
|
|
t.operatetype,
|
|
|
t.curdeliverystatus,
|
|
|
t.aftdeliverystatus,
|