Merge pull request '1' (#560) from feat-IRONFANS-120-Robin into test
Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/560
This commit is contained in:
commit
2f1d45a898
|
@ -577,7 +577,7 @@ func (m *Mysql) GetLastHourZoneAdmissionInfo(ctx *gin.Context, tx *sqlx.Tx, st,
|
|||
|
||||
// 统计空间总人数
|
||||
func (m *Mysql) GetZoneMemberCountGroupByZoneMemberType(ctx *gin.Context, tx *sqlx.Tx, zids []int64) (list []*dbstruct.ZoneMemberCount, err error) {
|
||||
sql := fmt.Sprintf("select count(1), zid , member_type from %s where zid in (%s) group by member_type, zid", TableVasZoneMember, util.Convert2SqlArr(zids))
|
||||
sql := fmt.Sprintf("select count(1) as num, zid, member_type from %s where zid in (%s) group by member_type, zid", TableVasZoneMember, util.Convert2SqlArr(zids))
|
||||
list = make([]*dbstruct.ZoneMemberCount, 0)
|
||||
if tx != nil {
|
||||
err = tx.SelectContext(ctx, &list, sql)
|
||||
|
|
Loading…
Reference in New Issue