Browse Source

更新

three
huangjiajun 1 year ago
parent
commit
aaf651581b
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      consume/zhios_guide_store_order_success.go

+ 4
- 2
consume/zhios_guide_store_order_success.go View File

@@ -88,9 +88,9 @@ func success(eg *xorm.Engine, canalMsg *md.ZhiosGuideStoreOrder) error {
defer sess.Close()
sess.Begin()
var data model.GuideStoreOrder
get, _ := eg.Where("pvd_oid=?", canalMsg.Oid).Get(&data)
get, _ := sess.Where("pvd_oid=?", canalMsg.Oid).Get(&data)
var newOrd model.OrdList
eg.Where("pvd_oid=?", canalMsg.Oid).Get(&newOrd)
sess.Where("pvd_oid=?", canalMsg.Oid).Get(&newOrd)
if get == false {
deductPrice := canalMsg.DeductPrice
var storeOrder = model.GuideStoreOrder{
@@ -124,6 +124,8 @@ func success(eg *xorm.Engine, canalMsg *md.ZhiosGuideStoreOrder) error {
return err
}
}
newOrd.OrderFormType = -2
sess.Where("ord_id=?", newOrd.OrdId).Cols("order_form_type").Update(&newOrd)
}
sess.Commit()
return nil


Loading…
Cancel
Save