Browse Source

分布式本地缓存

master
陈裕财 3 years ago
parent
commit
79679a3a2c
  1. 3
      xm-core/src/main/java/com/xm/core/ctrl/XmProductController.java
  2. 3
      xm-core/src/main/java/com/xm/core/ctrl/XmProjectController.java
  3. 2
      xm-core/src/main/java/com/xm/core/service/XmProjectService.java

3
xm-core/src/main/java/com/xm/core/ctrl/XmProductController.java

@ -6,7 +6,6 @@ import com.mdp.core.err.BizException;
import com.mdp.core.utils.RequestUtils; import com.mdp.core.utils.RequestUtils;
import com.mdp.msg.client.PushNotifyMsgService; import com.mdp.msg.client.PushNotifyMsgService;
import com.mdp.mybatis.PageUtils; import com.mdp.mybatis.PageUtils;
import com.mdp.qx.HasQx;
import com.mdp.safe.client.entity.User; import com.mdp.safe.client.entity.User;
import com.mdp.safe.client.utils.LoginUtils; import com.mdp.safe.client.utils.LoginUtils;
import com.mdp.sensitive.SensitiveWordService; import com.mdp.sensitive.SensitiveWordService;
@ -502,7 +501,7 @@ public class XmProductController {
} }
} }
xmProductService.editSomeFields(xmProductMap); xmProductService.editSomeFields(xmProductMap);
xmProductService.clearCache(xmProductDb.getId());
if(StringUtils.hasText(xmProduct.getPmUserid()) && !xmProduct.getPmUserid().equals(xmProductDb.getPmUserid())){ if(StringUtils.hasText(xmProduct.getPmUserid()) && !xmProduct.getPmUserid().equals(xmProductDb.getPmUserid())){
notifyMsgService.pushMsg(user,xmProduct.getPmUserid(),xmProduct.getPmUsername(),"3",xmProductDb.getId(),xmProductDb.getId(),"您成为产品【"+xmProductDb.getProductName()+"】的产品经理,请及时跟进。"); notifyMsgService.pushMsg(user,xmProduct.getPmUserid(),xmProduct.getPmUsername(),"3",xmProductDb.getId(),xmProductDb.getId(),"您成为产品【"+xmProductDb.getProductName()+"】的产品经理,请及时跟进。");

3
xm-core/src/main/java/com/xm/core/ctrl/XmProjectController.java

@ -9,7 +9,6 @@ import com.mdp.core.utils.BaseUtils;
import com.mdp.core.utils.RequestUtils; import com.mdp.core.utils.RequestUtils;
import com.mdp.msg.client.PushNotifyMsgService; import com.mdp.msg.client.PushNotifyMsgService;
import com.mdp.mybatis.PageUtils; import com.mdp.mybatis.PageUtils;
import com.mdp.qx.HasQx;
import com.mdp.safe.client.entity.User; import com.mdp.safe.client.entity.User;
import com.mdp.safe.client.utils.LoginUtils; import com.mdp.safe.client.utils.LoginUtils;
import com.mdp.sensitive.SensitiveWordService; import com.mdp.sensitive.SensitiveWordService;
@ -198,7 +197,7 @@ public class XmProjectController {
} }
} }
this.xmProjectService.editSomeFields(xmProjectMap); this.xmProjectService.editSomeFields(xmProjectMap);
this.xmProjectService.clearProject(xmProjectDb.getId());
if(StringUtils.hasText(xmProject.getPmUserid()) && !xmProject.getPmUserid().equals(xmProjectDb.getPmUserid())){ if(StringUtils.hasText(xmProject.getPmUserid()) && !xmProject.getPmUserid().equals(xmProjectDb.getPmUserid())){
notifyMsgService.pushMsg(user,xmProject.getPmUserid(),xmProject.getPmUsername(),"1",xmProjectDb.getId(),xmProjectDb.getId(),"您成为项目【"+xmProjectDb.getName()+"】的项目经理,请及时跟进。"); notifyMsgService.pushMsg(user,xmProject.getPmUserid(),xmProject.getPmUsername(),"1",xmProjectDb.getId(),xmProjectDb.getId(),"您成为项目【"+xmProjectDb.getName()+"】的项目经理,请及时跟进。");

2
xm-core/src/main/java/com/xm/core/service/XmProjectService.java

@ -229,7 +229,7 @@ public class XmProjectService extends BaseService {
} }
public void clearProject(String projectId) { public void clearProject(String projectId) {
xmProjectCacheService.putProject(projectId, null);
xmProjectCacheService.clear(projectId);
} }
/** 请在此类添加自定义函数 */ /** 请在此类添加自定义函数 */

Loading…
Cancel
Save