...
|
...
|
@@ -96,6 +96,9 @@ func (dao *PartnerInfoDao) Partners(partnerIds []int64, queryOptions map[string] |
|
|
if endTime, ok := queryOptions["endTime"]; ok {
|
|
|
filterPartners.WriteString(fmt.Sprintf(" and cooperate_time<to_timestamp(%v)", endTime))
|
|
|
}
|
|
|
if keyword, ok := queryOptions["keyword"]; ok {
|
|
|
filterPartners.WriteString(fmt.Sprintf(" and partner_name LIKE %v", keyword))
|
|
|
}
|
|
|
|
|
|
sql.WriteString(fmt.Sprintf(`
|
|
|
SELECT A.*,B.total,B.amount,COALESCE(B.bonus,0) bonus,B.bonus_expense
|
...
|
...
|
|