20250507 更新
1.取消定时推送
This commit is contained in:
@@ -84,7 +84,7 @@ public class PushDataToLabsCareServiceImpl implements PushDataToLabsCareService
|
|||||||
* 做一个定时推送,对于推送失败的委托进行重新推送, 每天凌晨3点推送
|
* 做一个定时推送,对于推送失败的委托进行重新推送, 每天凌晨3点推送
|
||||||
*/
|
*/
|
||||||
// @Scheduled(cron = "30 * * * * ?") // 测试
|
// @Scheduled(cron = "30 * * * * ?") // 测试
|
||||||
@Scheduled(cron = "0 0 3 * * ?") // 每天凌晨 3 点执行
|
// @Scheduled(cron = "0 0 3 * * ?") // 每天凌晨 3 点执行
|
||||||
public void timingPushDataToLabsCare() {
|
public void timingPushDataToLabsCare() {
|
||||||
log.info("定时推送数据到LabsCare......");
|
log.info("定时推送数据到LabsCare......");
|
||||||
// 查询检验鉴定推送失败的委托
|
// 查询检验鉴定推送失败的委托
|
||||||
@@ -105,13 +105,13 @@ public class PushDataToLabsCareServiceImpl implements PushDataToLabsCareService
|
|||||||
for (Entrustment entrustment : entrustList) {
|
for (Entrustment entrustment : entrustList) {
|
||||||
String pushFlag = entrustment.getPushFlag();
|
String pushFlag = entrustment.getPushFlag();
|
||||||
if (StrUtil.isBlank(pushFlag)) {
|
if (StrUtil.isBlank(pushFlag)) {
|
||||||
pushAppraisalReportApprovalFormData(entrustment.getId());
|
// pushAppraisalReportApprovalFormData(entrustment.getId());
|
||||||
pushQualitativeReportData(entrustment.getId());
|
pushQualitativeReportData(entrustment.getId());
|
||||||
} else {
|
} else {
|
||||||
List<String> flagList = StrUtil.split(pushFlag, StrUtil.COMMA).stream().filter(str -> str.contains("false")).collect(Collectors.toList());
|
List<String> flagList = StrUtil.split(pushFlag, StrUtil.COMMA).stream().filter(str -> str.contains("false")).collect(Collectors.toList());
|
||||||
for (String flag : flagList) {
|
for (String flag : flagList) {
|
||||||
if (flag.contains(APPRAISAL_REPORT_APPROVAL_FORM)) {
|
if (flag.contains(APPRAISAL_REPORT_APPROVAL_FORM)) {
|
||||||
pushAppraisalReportApprovalFormData(entrustment.getId());
|
// pushAppraisalReportApprovalFormData(entrustment.getId());
|
||||||
} else {
|
} else {
|
||||||
pushQualitativeReportData(entrustment.getId());
|
pushQualitativeReportData(entrustment.getId());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user