TransDate 核销时间/当前时间
This commit is contained in:
parent
ff2d245133
commit
46e6e8f450
|
|
@ -65,12 +65,18 @@ func (v *Cmb) bizContent(_ context.Context, order *bo.OrderBo, orderNotify *bo.O
|
||||||
req := &v1.CmbNotifyRequest{
|
req := &v1.CmbNotifyRequest{
|
||||||
Ticket: orderNotify.OrderNo,
|
Ticket: orderNotify.OrderNo,
|
||||||
Status: cmbStatus.GetValue(),
|
Status: cmbStatus.GetValue(),
|
||||||
TransDate: time.Now().Format("2006-01-02 15:04:05.000"), // 格式yyyy-mm-dd hh:mm:ss.sss
|
TransDate: "", // 格式yyyy-mm-dd hh:mm:ss.sss
|
||||||
OrgNo: v.bc.Cmb.OrgNo,
|
OrgNo: v.bc.Cmb.OrgNo,
|
||||||
Attach: order.Attach,
|
Attach: order.Attach,
|
||||||
Ext: "",
|
Ext: "",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if cmbStatus == vo.CmbStatusUse {
|
||||||
|
req.TransDate = order.LastUseTime.Format("2006-01-02 15:04:05.000")
|
||||||
|
} else {
|
||||||
|
req.TransDate = time.Now().Format("2006-01-02 15:04:05.000")
|
||||||
|
}
|
||||||
|
|
||||||
bizJsonBytes, err := json.Marshal(req)
|
bizJsonBytes, err := json.Marshal(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue