1、时间便宜改为30分钟
This commit is contained in:
parent
65d08f671f
commit
e1e59e6553
|
@ -114,7 +114,7 @@ public class OA_plugin_acceptance_income_declaration extends PluginBaseEntity {
|
|||
// 获取当前日期和时间,时间偏移10分钟
|
||||
LocalDateTime now = LocalDateTime.now();
|
||||
String end = now.format(formatter);
|
||||
String start = now.minusMinutes(10L).format(formatter);
|
||||
String start = now.minusMinutes(30L).format(formatter);
|
||||
logger.info("自动同步==> 验收收入申报单 时间区间:[{}]-[{}]",start,end);
|
||||
try {
|
||||
|
||||
|
|
|
@ -110,7 +110,7 @@ public class OA_plugin_audit_declaration_form extends PluginBaseEntity {
|
|||
// 获取当前日期和时间,时间偏移10分钟
|
||||
LocalDateTime now = LocalDateTime.now();
|
||||
String end = now.format(formatter);
|
||||
String start = now.minusMinutes(10L).format(formatter);
|
||||
String start = now.minusMinutes(30L).format(formatter);
|
||||
logger.info("自动同步==> 审计申报单同步 时间区间:[{}]-[{}]", start, end);
|
||||
|
||||
//查询数据
|
||||
|
@ -191,10 +191,15 @@ public class OA_plugin_audit_declaration_form extends PluginBaseEntity {
|
|||
entity.setId(UUID.randomUUID().toString()); // 生成 UUID 并转为字符串
|
||||
});
|
||||
|
||||
for (GmoaAuditDeclarationFormEntity gmoaAuditDeclarationFormEntity : oaListSave) {
|
||||
auditDeclarationFormDao.save(gmoaAuditDeclarationFormEntity);
|
||||
// for (GmoaAuditDeclarationFormEntity gmoaAuditDeclarationFormEntity : oaListSave) {
|
||||
// auditDeclarationFormDao.save(gmoaAuditDeclarationFormEntity);
|
||||
// }
|
||||
List<List<GmoaAuditDeclarationFormEntity>> partition = Lists.partition(oaListSave, 500);
|
||||
for (List<GmoaAuditDeclarationFormEntity> gmoaAuditDeclarationFormEntityList : partition) {
|
||||
auditDeclarationFormDao.saveList(gmoaAuditDeclarationFormEntityList);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -110,7 +110,7 @@ public class OA_plugin_contract_payment_receipt extends PluginBaseEntity {
|
|||
// 获取当前日期和时间,时间偏移10分钟
|
||||
LocalDateTime now = LocalDateTime.now();
|
||||
String end = now.format(formatter);
|
||||
String start = now.minusMinutes(10L).format(formatter);
|
||||
String start = now.minusMinutes(30L).format(formatter);
|
||||
logger.info("自动同步==> 合同收款单同步 时间区间:[{}]-[{}]", start, end);
|
||||
|
||||
//查询数据
|
||||
|
|
|
@ -111,7 +111,7 @@ public class OA_plugin_cost_adjustment_audit extends PluginBaseEntity {
|
|||
// 获取当前日期和时间,时间偏移10分钟
|
||||
LocalDateTime now = LocalDateTime.now();
|
||||
String end = now.format(formatter);
|
||||
String start = now.minusMinutes(10L).format(formatter);
|
||||
String start = now.minusMinutes(30L).format(formatter);
|
||||
logger.info("自动同步==> 成本调整单同步 时间区间:[{}]-[{}]", start, end);
|
||||
|
||||
//查询数据
|
||||
|
|
Loading…
Reference in New Issue