- GetRow
This commit is contained in:
@@ -133,7 +133,7 @@ func verifyMobileIsBlank(db *dao.DaoDB, mobile string) (user *model.WeiXins, err
|
|||||||
|
|
||||||
func verifyMobileHasNoMembers(db *dao.DaoDB, mobile string) (err error) {
|
func verifyMobileHasNoMembers(db *dao.DaoDB, mobile string) (err error) {
|
||||||
countInfo := &struct{ Ct int }{}
|
countInfo := &struct{ Ct int }{}
|
||||||
if err = dao.GetRows(db, countInfo, `
|
if err = dao.GetRow(db, countInfo, `
|
||||||
SELECT COUNT(*) ct
|
SELECT COUNT(*) ct
|
||||||
FROM weixins t1
|
FROM weixins t1
|
||||||
JOIN weixins t2 ON t1.parent_id = t2.id AND t2.mobile = ?
|
JOIN weixins t2 ON t1.parent_id = t2.id AND t2.mobile = ?
|
||||||
|
|||||||
Reference in New Issue
Block a user