From 0a885069d2decf7a70dd05ee098daac0aefbb40d Mon Sep 17 00:00:00 2001 From: huanghai <10402852@qq.com> Date: Tue, 7 Jul 2020 08:41:50 +0800 Subject: [PATCH] 'commit' --- .../BaseRolePerson/BaseRolePersonDao/BaseRolePersonDao.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsBaseRpc/RpcService/BaseRolePerson/BaseRolePersonDao/BaseRolePersonDao.go b/dsBaseRpc/RpcService/BaseRolePerson/BaseRolePersonDao/BaseRolePersonDao.go index 480f9987..49dd4b1a 100644 --- a/dsBaseRpc/RpcService/BaseRolePerson/BaseRolePersonDao/BaseRolePersonDao.go +++ b/dsBaseRpc/RpcService/BaseRolePerson/BaseRolePersonDao/BaseRolePersonDao.go @@ -196,7 +196,7 @@ func IsAdmin(personId string) (bool, error) { 时间:2020-06-12 */ func HaveActiveCityList(AreaType int32) ([]map[string]interface{}, int32, error) { - sql := `select t1.area_code,t2.area_name,(select t3.area_name from t_gov_area as t3 where t3.area_code=t1.master_code) as parent_name, + sql := `select t1.area_code,t2.area_name,(select t3.area_name from t_gov_area as t3 where t3.area_code=t2.master_code) as parent_name, if(substring(t2.master_code,3,5)='0000','-1',t2.master_code) as parent_code from t_base_organization as t1 inner join t_gov_area as t2 on t1.area_code=t2.area_code where t1.org_type=1 and t1.b_use=1`