- fk.
This commit is contained in:
@@ -136,7 +136,7 @@ func verifyMobileHasNoMembers(db *dao.DaoDB, mobile string) (err error) {
|
|||||||
if err = dao.GetRow(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.parentid = t2.id AND t2.tel = ?
|
||||||
`, mobile); err == nil {
|
`, mobile); err == nil {
|
||||||
if countInfo.Ct > 0 {
|
if countInfo.Ct > 0 {
|
||||||
err = fmt.Errorf("%s本身已经是组长", mobile)
|
err = fmt.Errorf("%s本身已经是组长", mobile)
|
||||||
|
|||||||
Reference in New Issue
Block a user