薪资档案加密设置
This commit is contained in:
parent
5c3fe06b62
commit
1910a77ce1
|
|
@ -313,11 +313,11 @@ public class SalarySysConfServiceImpl extends Service implements SalarySysConfSe
|
|||
String isOpenEncrypt = param.getIsOpenEncrypt();
|
||||
if (StringUtils.isNotEmpty(isOpenEncrypt)) {
|
||||
if (isOpenEncrypt.equals(OpenEnum.OPEN.getValue())) {
|
||||
saveSettingByType(isOpenEncrypt, OPEN_APPLICATION_ENCRYPT, "开启加密设置", "app");
|
||||
//对数据库数据加解密
|
||||
ThreadPoolUtil.fixedPoolExecute(ModulePoolEnum.erkai, "saveEncryptSetting", new LocalRunnable() {
|
||||
@Override
|
||||
public void execute() {
|
||||
saveSettingByType(isOpenEncrypt, OPEN_APPLICATION_ENCRYPT, "开启加密设置", "app");
|
||||
Boolean aBoolean = encryptOrDecryptDbWithAsync(isOpenEncrypt, progressId);
|
||||
}
|
||||
});
|
||||
|
|
@ -326,10 +326,10 @@ public class SalarySysConfServiceImpl extends Service implements SalarySysConfSe
|
|||
@Override
|
||||
public void execute() {
|
||||
Boolean aBoolean = encryptOrDecryptDbWithAsync(isOpenEncrypt, progressId);
|
||||
saveSettingByType(isOpenEncrypt, OPEN_APPLICATION_ENCRYPT, "开启加密设置", "app");
|
||||
}
|
||||
});
|
||||
//不要调换方法的位置
|
||||
saveSettingByType(isOpenEncrypt, OPEN_APPLICATION_ENCRYPT, "开启加密设置", "app");
|
||||
}
|
||||
}
|
||||
Util_DataCache.clearVal(AES_ENCRYPT_IN_PROGRESS);
|
||||
|
|
|
|||
Loading…
Reference in New Issue