manual config time n rate model altered
This commit is contained in:
parent
64a54222a3
commit
a6a7d92277
@ -124,15 +124,14 @@ public class PileController {
|
|||||||
try {
|
try {
|
||||||
handler.sendClientBinary(HexUtils.toBytes(rsmsg));
|
handler.sendClientBinary(HexUtils.toBytes(rsmsg));
|
||||||
log.info("pile[{}] rate model[{}] sent ⚪ {}", pileNo, rateModelIdStation, 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);
|
REDIS.setCacheObject(configRmReply, "已下发", 30L, TimeUnit.MINUTES);
|
||||||
String skey = pk.concat(".seqhex");
|
String skey = pk.concat(".seqhex");
|
||||||
Thread.sleep(500);
|
Thread.sleep(500);
|
||||||
Date date = Calendar.getInstance().getTime();
|
Date date = Calendar.getInstance().getTime();
|
||||||
String timebin = getTimeBin(seqHex(skey), pileNo, date);
|
String timebin = getTimeBin(seqHex(skey), pileNo, date);
|
||||||
handler.sendClientBinary(HexUtils.toBytes(timebin));
|
handler.sendClientBinary(HexUtils.toBytes(timebin));
|
||||||
REDIS.setCacheMapValue(pk, "manConfTime", DateUtil.format(date,
|
REDIS.setCacheMapValue(pk, "manConfTime", DateUtil.format(date, NORM_DATETIME_FORMAT));
|
||||||
NORM_DATETIME_FORMAT));
|
|
||||||
String configTimeReply = pk.concat(".configTimeReply");
|
String configTimeReply = pk.concat(".configTimeReply");
|
||||||
REDIS.setCacheObject(configTimeReply, "已下发", 30L, TimeUnit.MINUTES);
|
REDIS.setCacheObject(configTimeReply, "已下发", 30L, TimeUnit.MINUTES);
|
||||||
r = R.fail("校时校费下发成功.");
|
r = R.fail("校时校费下发成功.");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user