This commit is contained in:
suyl
2021-05-19 10:25:12 +08:00
parent ec0df984ab
commit 83bd9726ac
3 changed files with 5 additions and 4 deletions

View File

@@ -377,11 +377,11 @@ func DeletePriceReferHistory(db *DaoDB, snapDate time.Time) (num int64, err erro
func UserMemberReport(db *DaoDB, vendorID int, keyword string, offset, pageSize int) (page *model.PagedInfo, err error) {
sql := `
SELECT SQL_CALC_FOUND_ROWS DISTINCT a.mobile, IF(a.vendor_id = ?, c.name, b.consignee_name) name
SELECT SQL_CALC_FOUND_ROWS DISTINCT a.mobile, IF(a.vendor_id = ?, c.name, b.consignee_name) name,
FROM user_member a
LEFT JOIN goods_order b ON a.mobile = b.consignee_mobile2 AND b.status <> ?
LEFT JOIN user c ON c.mobile = a.mobile
GROUP BY
GROUP BY 1, 2
`
sqlParams := []interface{}{
model.VendorIDJX, model.OrderStatusCanceled,