|
@@ -6,11 +6,13 @@ import java.util.concurrent.TimeUnit;
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
|
|
|
|
+import com.lc.ibps.base.framework.table.ICommonDao;
|
|
|
import com.lc.ibps.cloud.oauth.exception.*;
|
|
import com.lc.ibps.cloud.oauth.exception.*;
|
|
|
import com.lc.ibps.cloud.oauth.server.util.LicUtil;
|
|
import com.lc.ibps.cloud.oauth.server.util.LicUtil;
|
|
|
import com.lc.ibps.org.auth.persistence.entity.LoginLogPo;
|
|
import com.lc.ibps.org.auth.persistence.entity.LoginLogPo;
|
|
|
import com.lc.ibps.org.auth.persistence.entity.LoginLogTbl;
|
|
import com.lc.ibps.org.auth.persistence.entity.LoginLogTbl;
|
|
|
import com.lc.ibps.org.auth.repository.LoginLogRepository;
|
|
import com.lc.ibps.org.auth.repository.LoginLogRepository;
|
|
|
|
|
+import com.lc.ibps.org.party.repository.*;
|
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -52,15 +54,6 @@ import com.lc.ibps.org.auth.persistence.entity.UserSecurityPo;
|
|
|
import com.lc.ibps.org.auth.repository.UserSecurityRepository;
|
|
import com.lc.ibps.org.auth.repository.UserSecurityRepository;
|
|
|
import com.lc.ibps.org.party.persistence.entity.DefaultPartyUserPo;
|
|
import com.lc.ibps.org.party.persistence.entity.DefaultPartyUserPo;
|
|
|
import com.lc.ibps.org.party.persistence.entity.PartyUserPo;
|
|
import com.lc.ibps.org.party.persistence.entity.PartyUserPo;
|
|
|
-import com.lc.ibps.org.party.repository.DefaultPartyRoleRepository;
|
|
|
|
|
-import com.lc.ibps.org.party.repository.DefaultPartyUserRepository;
|
|
|
|
|
-import com.lc.ibps.org.party.repository.PartyEmployeeRepository;
|
|
|
|
|
-import com.lc.ibps.org.party.repository.PartyGroupRepository;
|
|
|
|
|
-import com.lc.ibps.org.party.repository.PartyOrgRepository;
|
|
|
|
|
-import com.lc.ibps.org.party.repository.PartyPositionRepository;
|
|
|
|
|
-import com.lc.ibps.org.party.repository.PartyUserGroupRepository;
|
|
|
|
|
-import com.lc.ibps.org.party.repository.PartyUserLimitRepository;
|
|
|
|
|
-import com.lc.ibps.org.party.repository.PartyUserRepository;
|
|
|
|
|
import com.lc.ibps.org.spi.SpiUserService;
|
|
import com.lc.ibps.org.spi.SpiUserService;
|
|
|
import com.lc.ibps.org.spi.SpiUserServiceUtil;
|
|
import com.lc.ibps.org.spi.SpiUserServiceUtil;
|
|
|
import com.lc.ibps.register.constants.RegDBConstants;
|
|
import com.lc.ibps.register.constants.RegDBConstants;
|
|
@@ -88,6 +81,8 @@ public class BaseProvider extends GenericProvider {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
protected PartyEmployeeRepository partyEmployeeRepository;
|
|
protected PartyEmployeeRepository partyEmployeeRepository;
|
|
|
@Autowired
|
|
@Autowired
|
|
|
|
|
+ protected PartyEntityRepository partyEntityRepository;
|
|
|
|
|
+ @Autowired
|
|
|
protected AuthClientRepository authClientRepository;
|
|
protected AuthClientRepository authClientRepository;
|
|
|
@Autowired
|
|
@Autowired
|
|
|
protected PartyUserLimitRepository partyUserLimitRepository;
|
|
protected PartyUserLimitRepository partyUserLimitRepository;
|
|
@@ -110,6 +105,9 @@ public class BaseProvider extends GenericProvider {
|
|
|
protected RegDataRepository regDataRepository;
|
|
protected RegDataRepository regDataRepository;
|
|
|
@Resource
|
|
@Resource
|
|
|
protected ITenantQueryService tenantQueryService;
|
|
protected ITenantQueryService tenantQueryService;
|
|
|
|
|
+
|
|
|
|
|
+ @Resource
|
|
|
|
|
+ protected ICommonDao<?> commonDao;
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
protected TokenConfig tokenConfig;
|
|
protected TokenConfig tokenConfig;
|
|
@@ -540,8 +538,7 @@ public class BaseProvider extends GenericProvider {
|
|
|
RedisUtil.redisTemplateString.delete(key);
|
|
RedisUtil.redisTemplateString.delete(key);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- protected String checkLicense() {
|
|
|
|
|
- String licText = "XnRn48Yl78WS0OWZ0100t2IjyMx0E5Yx0tDz3M1FuubuD25X5aOEKkpWYpYI7p7Md364I7yM2kFIO4c2PYRefWoV06Bypu41QAdKHjEYnS7ml9KPit73JlQ0Zm1OrbADaJF8ezDURnIrFjyr9bMyxaTcfm0THWBHhhnRBZxCmfF0WdMrSmDj76rSqLkZHl3tlSKjwKmjlxcIuSZGZIWiET7+kzLB8FiGMoxw00YWhXBjIpuNkv63CFbU6iOCPN7e7jfUl2medTSj7oyX3vABRFmbCtgBVT7CjWq+Mzb+3B+lJ9R5s0ax+o1rWWL13wbY0+/lylhtKPhIQMMPukx38d80eU8q8bkGoAuOfXjCkLU2QqU28orGQQtxJlJRmStodmqotPD8ETqU4MFq8qIikK3foed+1tOcMw5epFjMuE4v/0Cps8wWARO543quzy8=";
|
|
|
|
|
|
|
+ protected String checkLicense(String licText) {
|
|
|
String licJson = null;
|
|
String licJson = null;
|
|
|
try {
|
|
try {
|
|
|
licJson = LicUtil.checkLic(licText, pubKey);
|
|
licJson = LicUtil.checkLic(licText, pubKey);
|