REQ-3581: 备份

This commit is contained in:
yanglin 2025-02-13 14:26:08 +08:00
parent 41fdf526f6
commit 0ef69d891b

View File

@ -22,6 +22,7 @@ import lombok.AccessLevel;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.math.NumberUtils;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.support.TransactionTemplate;
@ -122,7 +123,7 @@ class CallbackController implements EssCallbackApi, InitializingBean {
})
.collect(toList());
EssContract contract = essContractDao.find(changes.getFlowId()).orElse(null);
if (contract == null)
if (contract == null && NumberUtils.isDigits(changes.getCustomerData()))
contract = essContractDao.getById(Long.parseLong(changes.getCustomerData()));
if (contract != null)
contractManager.updateContractState(contract, state, details);