修复四车间问题

yun-zuoyi
钮海涛 4 years ago
parent 4ffff9e3df
commit 98cfaf0db2

@ -25,7 +25,7 @@ public class BeanRelation {
private static Map<Long, BeanRelation> relations = new ConcurrentHashMap<>(); private static Map<Long, BeanRelation> relations = new ConcurrentHashMap<>();
private static BeanRelation get() { private static BeanRelation get() {
Long userId = 0l; Long userId = 0L;
BeanRelation relation = relations.get(userId); BeanRelation relation = relations.get(userId);
if (relation == null) { if (relation == null) {
synchronized (BeanRelation.class) { synchronized (BeanRelation.class) {
@ -383,6 +383,14 @@ public class BeanRelation {
} }
/** /**
*
* @param bean
*/
public static void erase(BaseBean bean) {
get().caches.get(bean.getClass()).remove(bean.getId());
}
/**
* lambdalambdafalse退 * lambdalambdafalse退
* @param bean * @param bean
* @param fun * @param fun

@ -3,6 +3,7 @@ package cn.estsh.i3plus.pojo.aps.model;
import cn.estsh.i3plus.pojo.aps.bean.FurnacePlan; import cn.estsh.i3plus.pojo.aps.bean.FurnacePlan;
import cn.estsh.i3plus.pojo.aps.bean.Resource; import cn.estsh.i3plus.pojo.aps.bean.Resource;
import cn.estsh.i3plus.pojo.aps.bean.WorkPlan; import cn.estsh.i3plus.pojo.aps.bean.WorkPlan;
import cn.estsh.i3plus.pojo.aps.bean.WorkResource;
import lombok.Data; import lombok.Data;
/** /**
@ -23,6 +24,10 @@ public class PlanRecord {
*/ */
private Resource resource; private Resource resource;
/** /**
*
*/
private WorkResource workResource;
/**
* *
*/ */
private WorkPlan postPlan; private WorkPlan postPlan;

Loading…
Cancel
Save