From 96c24128b4f4f362cf51c85e068eebce912ef552 Mon Sep 17 00:00:00 2001 From: tommy <3405129587@qq.com> Date: Thu, 6 Aug 2020 15:16:12 +0800 Subject: [PATCH] fix:bug --- controllers/pc/order_draw.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controllers/pc/order_draw.go b/controllers/pc/order_draw.go index 95e5189..4b67ac0 100644 --- a/controllers/pc/order_draw.go +++ b/controllers/pc/order_draw.go @@ -246,13 +246,13 @@ func (t *OrderDrawCtl) Users() { s = s.Table(&models.CustomerOrder{}).Alias("o").Select("o.buyer_id as user_id, "+ " o.phone, o.order_entry_person_name as entry_person_name, o.receiver as username"). Where("o.is_delete=0 and o.activity_id=? and o.rehearsal_id=? and o.arch_id=?", - activityId, activity.RehearsalId, activity.ArchId) + activity.Id, activity.RehearsalId, activity.ArchId) if moduleService.BesideRepeat == define.MODULE_BESIDE_REPEAT { recordIds := make([]int, 0) err = core.GetXormAuto().Table(&models.OrderDrawRecord{}).Select("customer_order_id"). - Where("order_draw_rule_id=? and rehearsal_id=? and arch_id=? and is_delete=0", - ruleId, activity.RehearsalId, activity.ArchId).Find(&recordIds) + Where("activity_id=? and rehearsal_id=? and arch_id=? and is_delete=0", + activity.Id, activity.RehearsalId, activity.ArchId).Find(&recordIds) t.CheckErr(err) s = s.NotIn("o.id", recordIds) }