From 528ff80d4a68a28299d392f7a7e9b53e149b944e Mon Sep 17 00:00:00 2001 From: gazebo Date: Wed, 19 Sep 2018 17:19:29 +0800 Subject: [PATCH] - fk. --- business/jxstore/cms/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/jxstore/cms/user.go b/business/jxstore/cms/user.go index ae8647ca3..1a89e036c 100644 --- a/business/jxstore/cms/user.go +++ b/business/jxstore/cms/user.go @@ -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)