|
@@ -539,9 +539,11 @@ public class DbStockController extends AbstractController {
|
|
|
BeanUtils.copyProperties(r, vo);
|
|
BeanUtils.copyProperties(r, vo);
|
|
|
if (r.getBeaconTag() != null) {
|
|
if (r.getBeaconTag() != null) {
|
|
|
//查看redis是否有值
|
|
//查看redis是否有值
|
|
|
- String redisStr = redisService.getCacheObject(BaseConstants.BEACON_MATE_DET + "~" + r.getBeaconTag() + "~" + r.getSubjectId() + "~" + r.getGasName());
|
|
|
|
|
- log.info("气瓶是否在redis存在:"+redisStr);
|
|
|
|
|
- if (redisStr != null && redisStr != "") {
|
|
|
|
|
|
|
+ String key= BaseConstants.BEACON_MATE_DET + "~" + r.getBeaconTag() + "~" + r.getSubjectId() + "~";
|
|
|
|
|
+ Collection <String> cllKey = redisService.keys(key+"*");
|
|
|
|
|
+ log.info("气瓶缓存key:"+key);
|
|
|
|
|
+ log.info("气瓶是否在redis存在:"+cllKey.size());
|
|
|
|
|
+ if (cllKey.size()>0) {
|
|
|
//在位
|
|
//在位
|
|
|
vo.setLocationState(1);
|
|
vo.setLocationState(1);
|
|
|
} else {
|
|
} else {
|