移除企通学配置文件 标准配置文件增加enable
This commit is contained in:
parent
b9c00d1e66
commit
4d4827a2c4
|
|
@ -48,7 +48,7 @@ public class ConfigServiceImpl extends Service implements ConfigService {
|
|||
public String ssoLogin(QTXConfigParam qtx) throws UnsupportedEncodingException {
|
||||
String hkUrl;
|
||||
BaseBean bb = new BaseBean();
|
||||
String enable = bb.getPropValue("qtx_sso_login", "enable");
|
||||
String enable = bb.getPropValue("hrmOrganization", "enable");
|
||||
String userAgent = qtx.getUserAgent();
|
||||
boolean termianal = MobileTerminalEnum.containsEnumValue(userAgent);
|
||||
if (VALUE_ONE.equals(enable)) {
|
||||
|
|
@ -83,7 +83,7 @@ public class ConfigServiceImpl extends Service implements ConfigService {
|
|||
if (Objects.nonNull(qtxConfigPO)) {
|
||||
BeanUtils.copyProperties(datas, qtxConfigPO);
|
||||
}
|
||||
map.put("isopenconfig",bb.getPropValue("qtx_sso_login","enable"));
|
||||
map.put("isopenconfig",bb.getPropValue("hrmOrganization","enable"));
|
||||
map.put("columns",columns);
|
||||
map.put("datas", Collections.singletonList(datas));
|
||||
return map;
|
||||
|
|
@ -93,7 +93,7 @@ public class ConfigServiceImpl extends Service implements ConfigService {
|
|||
@Override
|
||||
public int saveConfigInfo(QTXConfigPO qtxConfigPO, String isopenconfig) {
|
||||
ConfigOperator ConfigOperator = new ConfigOperator();
|
||||
ConfigOperator.setProp("qtx_sso_login.properties", "enable", isopenconfig);
|
||||
ConfigOperator.setProp("hrmOrganization.properties", "enable", isopenconfig);
|
||||
qtxConfigPO.setCreator(user.getUID());
|
||||
qtxConfigPO.setCreateDate(OrganizationDateUtil.getFormatLocalDate(LocalDate.now()));
|
||||
getConfigMapper().deleteAll();
|
||||
|
|
|
|||
Loading…
Reference in New Issue