Commit 8fa9acee authored by qk's avatar qk

Update:参数对比待解决问题无法导出全部

parent 5c1bd727
...@@ -29,8 +29,8 @@ public class DynamicClcpZk { ...@@ -29,8 +29,8 @@ public class DynamicClcpZk {
@SneakyThrows @SneakyThrows
@Scheduled(cron = "0 0 2 * * ?") @Scheduled(cron = "0 0 2 * * ?")
// @Scheduled(cron = "0/5 * * * * ?") // @Scheduled(cron = "0/5 * * * * ?") /5秒执行一次
// @Scheduled(cron = "0 */10 * * * ?") // @Scheduled(cron = "0 0/5 * * * ?") /5分钟执行一次
public void DynamicCertificateMainInfo() { public void DynamicCertificateMainInfo() {
iCheckCertificateMainInfoService.insertCertificateMainInfo(); iCheckCertificateMainInfoService.insertCertificateMainInfo();
} }
......
...@@ -3769,7 +3769,7 @@ public class CheckCertificateMainInfoServiceImpl ...@@ -3769,7 +3769,7 @@ public class CheckCertificateMainInfoServiceImpl
certificate.setVersion("1"); certificate.setVersion("1");
} }
} }
this.saveBatch(clcpZk); this.saveOrUpdateBatch(clcpZk);
} }
return Result.success("200","同步成功"); return Result.success("200","同步成功");
} }
......
...@@ -22,14 +22,19 @@ public class UserUtil { ...@@ -22,14 +22,19 @@ public class UserUtil {
} }
public static String getCurrentUserId() { public static String getCurrentUserId() {
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
String id = null; String id = null;
try {
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
if (null != request) { if (null != request) {
Map<String, Object> usermap = (Map<String, Object>) request.getSession().getAttribute("usermap"); Map<String, Object> usermap = (Map<String, Object>) request.getSession().getAttribute("usermap");
if (null != usermap) { if (null != usermap) {
id = usermap.get("ID").toString(); id = usermap.get("ID").toString();
} }
} }
}catch (Exception e){
}
return id; return id;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment