|
|
|
@@ -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}) |
|
|
|
|