|
@@ -297,11 +297,13 @@ public class RequiredDao implements IRequiredDao {
|
|
|
" ,c.province as company_province" + //所在省
|
|
" ,c.province as company_province" + //所在省
|
|
|
" ,c.city as company_city" + //所在市
|
|
" ,c.city as company_city" + //所在市
|
|
|
" ,c.district as company_district" + //所在区
|
|
" ,c.district as company_district" + //所在区
|
|
|
|
|
+ " ,p.logo as company_logo" + //所在区
|
|
|
// sql.append(" ,c.sortName as company_sortName"); //机构简称
|
|
// sql.append(" ,c.sortName as company_sortName"); //机构简称
|
|
|
// sql.append(" ,c.domain as company_domain"); //机构域名
|
|
// sql.append(" ,c.domain as company_domain"); //机构域名
|
|
|
" ,c.appNo as company_appNo" + //APP权限
|
|
" ,c.appNo as company_appNo" + //APP权限
|
|
|
|
|
|
|
|
" from t_user u left join t_org c on u.companyId = c.id" +
|
|
" from t_user u left join t_org c on u.companyId = c.id" +
|
|
|
|
|
+ " left join t_poweruser p on p.orgId = c.id" +
|
|
|
" where u.id = ? and u.virtualAble = " + SystemConstant.DISABLE;
|
|
" where u.id = ? and u.virtualAble = " + SystemConstant.DISABLE;
|
|
|
// sql.append(" where u.id = ? and u.roleId = r.id and (u.companyId = p.id or u.userInGov = c.id)");
|
|
// sql.append(" where u.id = ? and u.roleId = r.id and (u.companyId = p.id or u.userInGov = c.id)");
|
|
|
Map<String, Object> result = jdbc.queryForMap(sql, id);
|
|
Map<String, Object> result = jdbc.queryForMap(sql, id);
|