From a6a7d92277bb9b1899ea849eb80a89b94a880de9 Mon Sep 17 00:00:00 2001 From: ZZ Date: Sat, 7 May 2022 15:06:42 +0800 Subject: [PATCH] manual config time n rate model altered --- .../src/main/java/com/xhpc/pp/controller/PileController.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/controller/PileController.java b/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/controller/PileController.java index 05a204e4..554a1a15 100644 --- a/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/controller/PileController.java +++ b/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/controller/PileController.java @@ -124,15 +124,14 @@ public class PileController { try { handler.sendClientBinary(HexUtils.toBytes(rsmsg)); log.info("pile[{}] rate model[{}] sent ⚪ {}", pileNo, rateModelIdStation, rsmsg); - String configRmReply = pk.concat(".configRmReply"); + String configRmReply = pk.concat(".configRateReply"); REDIS.setCacheObject(configRmReply, "已下发", 30L, TimeUnit.MINUTES); String skey = pk.concat(".seqhex"); Thread.sleep(500); Date date = Calendar.getInstance().getTime(); String timebin = getTimeBin(seqHex(skey), pileNo, date); handler.sendClientBinary(HexUtils.toBytes(timebin)); - REDIS.setCacheMapValue(pk, "manConfTime", DateUtil.format(date, - NORM_DATETIME_FORMAT)); + REDIS.setCacheMapValue(pk, "manConfTime", DateUtil.format(date, NORM_DATETIME_FORMAT)); String configTimeReply = pk.concat(".configTimeReply"); REDIS.setCacheObject(configTimeReply, "已下发", 30L, TimeUnit.MINUTES); r = R.fail("校时校费下发成功.");