|
@@ -23,6 +23,8 @@ public class MrFacade extends MrServiceImpl {
|
|
|
@Autowired
|
|
|
VisibleIdCreater visibleIdCreater;
|
|
|
|
|
|
+ private static final String MSGMR = "msgMr::";
|
|
|
+
|
|
|
/**
|
|
|
* 创建提醒类结果
|
|
|
*
|
|
@@ -30,8 +32,8 @@ public class MrFacade extends MrServiceImpl {
|
|
|
* @return
|
|
|
*/
|
|
|
public String createIndicationMr(IndicationDTO indicationDTO) {
|
|
|
- String mrId = "msgMr::" + visibleIdCreater.getNextId(9).toString();
|
|
|
- redisUtil.setEx(mrId, indicationDTO, 15, TimeUnit.MINUTES);
|
|
|
+ String mrId = visibleIdCreater.getNextId(9).toString();
|
|
|
+ redisUtil.setEx(MSGMR + mrId, indicationDTO, 15, TimeUnit.MINUTES);
|
|
|
return mrId;
|
|
|
}
|
|
|
|
|
@@ -42,6 +44,7 @@ public class MrFacade extends MrServiceImpl {
|
|
|
* @return
|
|
|
*/
|
|
|
public IndicationDTO getIndicationMr(MrVO mrVO) {
|
|
|
- return redisUtil.get(mrVO.getMrId());
|
|
|
+ String mrId = MSGMR + mrVO.getMrId();
|
|
|
+ return redisUtil.get(mrId);
|
|
|
}
|
|
|
}
|