Browse Source

分布式本地缓存

master
陈裕财 3 years ago
parent
commit
900c703cc1
  1. 6
      xm-core/src/main/java/com/xm/core/ctrl/XmMenuController.java
  2. 8
      xm-core/src/main/java/com/xm/core/ctrl/XmQuestionController.java

6
xm-core/src/main/java/com/xm/core/ctrl/XmMenuController.java

@ -512,6 +512,12 @@ public class XmMenuController {
} }
if(canOper.size()>0){ if(canOper.size()>0){
String status= (String) xmMenuMap.get("status");
if(status!=null){
if("3".equals(status)||"2".equals(status)){//关闭缺陷就把结束时间定死
xmMenuMap.put("endTime",new Date());
}
}
xmMenuMap.put("ltime",new Date()); xmMenuMap.put("ltime",new Date());
xmMenuMap.put("ids",canOper.stream().map(k->k.getMenuId()).collect(Collectors.toList())); xmMenuMap.put("ids",canOper.stream().map(k->k.getMenuId()).collect(Collectors.toList()));
xmMenuService.editSomeFields(xmMenuMap); xmMenuService.editSomeFields(xmMenuMap);

8
xm-core/src/main/java/com/xm/core/ctrl/XmQuestionController.java

@ -392,11 +392,17 @@ public class XmQuestionController {
} }
} }
} }
String bugStatus= (String) xmQuestionMap.get("bugStatus");
if(bugStatus!=null){
if("8".equals(bugStatus)){//关闭缺陷就把结束时间定死
xmQuestionMap.put("endTime",new Date());
}
}
xmQuestionService.editSomeFields(xmQuestionMap); xmQuestionService.editSomeFields(xmQuestionMap);
String remarks= (String) xmQuestionMap.get("remarks"); String remarks= (String) xmQuestionMap.get("remarks");
String description= (String) xmQuestionMap.get("description"); String description= (String) xmQuestionMap.get("description");
String handlerUsername= (String) xmQuestionMap.get("handlerUsername"); String handlerUsername= (String) xmQuestionMap.get("handlerUsername");
String bugStatus= (String) xmQuestionMap.get("bugStatus");
List<XmQuestionHandle> handles=new ArrayList<>(); List<XmQuestionHandle> handles=new ArrayList<>();
Map<String,Object> map=new HashMap<>(); Map<String,Object> map=new HashMap<>();

Loading…
Cancel
Save