@ -465,7 +465,7 @@ type ProfitDetail struct {
func (o logic) ProfitSaleList(args ArgsProfitListReq) (res ProfitDetail, err error) {
var p []order.Profit
mysql.Db.Where("status = 2 and type = 7").Find(&p, "user_id = ?", args.UserID)
mysql.Db.Where("type = 7").Find(&p, "user_id = ?", args.UserID)
ids := make([]uint, 0)
incomeMap := make(map[uint]decimal.Decimal)