|
|
@@ -33,7 +33,7 @@ public class ClientUserInfo extends UserInfo {
|
|
|
|
|
|
public Row getEnterpriseRow() throws YosException {
|
|
|
if (enterpriseRow == null) {
|
|
|
- Rows enterpriseRows = controller.dbConnect.runSqlQuery("select * from sys_enterprise where siteid='" + getSiteId() + "' and exists(select *from sys_enterprise_hr where siteid='" + getSiteId() + "' and userid=" + getUserId() + ")");
|
|
|
+ Rows enterpriseRows = controller.dbConnect.runSqlQuery("select * from sys_enterprise t1 where t1.siteid='" + getSiteId() + "' and exists(select *from sys_enterprise_hr where siteid='" + getSiteId() + "' and userid=" + getUserId() + " and t1.sys_enterpriseid=sys_enterpriseid)");
|
|
|
if (enterpriseRows.isNotEmpty()) {
|
|
|
enterpriseRow = enterpriseRows.getRow(0);
|
|
|
}
|