Merge remote-tracking branch 'origin/main'

This commit is contained in:
2025-10-31 11:27:29 +08:00
7 changed files with 10 additions and 41 deletions

View File

@@ -105,7 +105,6 @@ public class DateUtils extends PropertyEditorSupport {
*/
public static Calendar getCalendar(long millis) {
Calendar cal = Calendar.getInstance();
// --------------------cal.setTimeInMillis(millis);
cal.setTime(new Date(millis));
return cal;
}

View File

@@ -118,9 +118,4 @@ public class DySmsHelper {
}
// public static void main(String[] args) throws ClientException, InterruptedException {
// JSONObject obj = new JSONObject();
// obj.put("code", "1234");
// sendSms("13800138000", obj, DySmsEnum.FORGET_PASSWORD_TEMPLATE_CODE);
// }
}

View File

@@ -78,19 +78,5 @@ public class DySmsLimit {
ipRequestCount.put(ip, 0);
ipLastRequestTime.put(ip, currentTime);
}
// public static void main(String[] args) {
// String ip = "192.168.1.1";
// for (int i = 1; i < 50; i++) {
// if (canSendSms(ip)) {
// System.out.println("Send SMS successfully");
// } else {
// //System.out.println("Exceed SMS limit for IP " + ip);
// }
// }
//
// System.out.println(ipLastRequestTime);
// System.out.println(ipRequestCount);
// System.out.println(ipBlacklist);
// }
}

View File

@@ -27,8 +27,6 @@ public class AESUtil {
*/
private static final String AES_GCM_NOPADDING = "AES/GCM/NoPadding";
// private static final int GCM_IV_LENGTH = 12;
// private static final int GCM_TAG_LENGTH = 16;
/**
* 加密字符串

View File

@@ -145,16 +145,14 @@ public class ApprovePostProcessor implements Callable<String> {
default -> {
}
}
if (status == 3 || status == 4) {
if (status == 3) {
//清理该评审相关的通知
// 1项目指派通知 2学科指派通知 3loadcase指派通知 4评审指派通知 5评审完成通知 6评审撤销通知 7评审发布通知
// 8新建学科通知 9删除项目通知 10删除学科通知 11阶段更新通知 12删除学科负责人通知
systemMapper.delSystemNoticeByTargetId(4, approveId);
systemMapper.delSystemNoticeByTargetId(5, approveId);
systemMapper.delSystemNoticeByTargetId(6, approveId);
systemMapper.delSystemNoticeByTargetId(7, approveId);
}
if (status == 3) {
//清理该评审相关的通知
// 1项目指派通知 2学科指派通知 3loadcase指派通知 4评审指派通知 5评审完成通知 6评审撤销通知 7评审发布通知
// 8新建学科通知 9删除项目通知 10删除学科通知 11阶段更新通知 12删除学科负责人通知
systemMapper.delSystemNoticeByTargetId(4, approveId);
systemMapper.delSystemNoticeByTargetId(5, approveId);
systemMapper.delSystemNoticeByTargetId(6, approveId);
systemMapper.delSystemNoticeByTargetId(7, approveId);
}
return result;
}

View File

@@ -116,12 +116,6 @@ public class HttpUtil {
.build();
//返回连接
// return HttpClients.custom()
// .setConnectionManager(connManager)
// .setConnectionManagerShared(true)
// .setDefaultRequestConfig(defaultRequestConfig)
// .setSSLSocketFactory(sslsf)
// .build();
return HttpClients.custom()
.setConnectionManager(connManager)
.setConnectionManagerShared(true)
@@ -146,7 +140,6 @@ public class HttpUtil {
try {
HttpGet httpGet = new HttpGet(url);
//设置header
// httpGet.setHeader("Content-Type", "application/json");
if (headers.size() > 0) {
for (String key : headers.keySet()) {
httpGet.addHeader(key, headers.get(key));

View File

@@ -116,7 +116,7 @@ public class LockService {
while (redisTemplate.hasKey(lock.getKey()));
} catch (InterruptedException e) {
log.error(e.getMessage());
return false;
Thread.currentThread().interrupt();
}
return false;
}