Browse Source

更新

one_orenge
huangjiajun 10 months ago
parent
commit
ef279fb0e1
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      consume/zhios_order_hjy.go

+ 6
- 0
consume/zhios_order_hjy.go View File

@@ -173,6 +173,12 @@ func handleZhiosOrderHjy(msg []byte) error {
// } // }
// //
//} //}
var ordRelate = make([]model.OrdListRelate, 0)
sess.Where("oid=?", canalMsg.Oid).Find(&ordRelate)
if len(ordRelate) > 0 {
sess.Commit()
return nil
}
if ordData.State != 4 && int64(ordData.ConfirmAt) > 0 && int64(ordData.ConfirmAt) < utils.TimeStdParseUnix("2023-11-01 00:00:00") { if ordData.State != 4 && int64(ordData.ConfirmAt) > 0 && int64(ordData.ConfirmAt) < utils.TimeStdParseUnix("2023-11-01 00:00:00") {
ordData.State = 5 ordData.State = 5
ordData.SettleAt = ordData.ConfirmAt ordData.SettleAt = ordData.ConfirmAt


Loading…
Cancel
Save