Browse Source

#2225

fix bug
tags/v1.22.9.2^2
chenyifan01 3 years ago
parent
commit
c79f23979b
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      models/reward_operate_record.go

+ 2
- 4
models/reward_operate_record.go View File

@@ -377,10 +377,8 @@ func (opts *RewardRecordListOpts) toCond() builder.Cond {
if opts.SourceType != "" {
cond = cond.And(builder.Eq{"reward_operate_record.source_type": opts.SourceType})
}
if opts.SourceType == SourceTypeAccomplishTask.Name() {
if opts.ActionType > 0 {
cond = cond.And(builder.Eq{"reward_operate_record.source_template_id": fmt.Sprint(opts.ActionType)})
}
if opts.ActionType > 0 {
cond = cond.And(builder.Eq{"reward_operate_record.source_template_id": fmt.Sprint(opts.ActionType)})
}
if opts.SerialNo != "" {
cond = cond.And(builder.Like{"reward_operate_record.serial_no", opts.SerialNo})


Loading…
Cancel
Save