Commit a007a4eb by 周晓航

服务上报之后 删除对应的数据

parent fa3703ca
......@@ -15,6 +15,7 @@ import org.springframework.util.CollectionUtils;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.concurrent.TimeUnit;
/**
* @author : xh.Z
......@@ -57,7 +58,7 @@ public class OrderReportJobHandler {
BaseResponse baseResponse = storeBackstageClient.pushOrderStore(pushOrderStoreDto);
LogUtil.info("上报门店支付情况", JSON.toJSONString(pushOrderStoreDto), JSON.toJSONString(baseResponse));
// 数据推送之后的 redis 缓存数据 清理
redisCache.delete(key);
redisCache.updateTTL(key, 1, TimeUnit.DAYS);
} catch (Exception e) {
LogUtil.error("上报门店支付情况 error", null, JSON.toJSONString(e));
}
......
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