This commit is contained in:
gazebo
2018-09-19 17:19:29 +08:00
parent 46f5a89da0
commit 528ff80d4a

View File

@@ -136,7 +136,7 @@ func verifyMobileHasNoMembers(db *dao.DaoDB, mobile string) (err error) {
if err = dao.GetRow(db, countInfo, `
SELECT COUNT(*) ct
FROM weixins t1
JOIN weixins t2 ON t1.parent_id = t2.id AND t2.mobile = ?
JOIN weixins t2 ON t1.parentid = t2.id AND t2.tel = ?
`, mobile); err == nil {
if countInfo.Ct > 0 {
err = fmt.Errorf("%s本身已经是组长", mobile)