| | |
| | | } |
| | | |
| | | @Override |
| | | public List<BasJarMast> getJarMastByJarIdAndStatusListB(Integer jarId,List<Integer> statusList) { |
| | | return this.baseMapper.getJarMastByJarIdAndStatusListB(jarId,statusList); |
| | | } |
| | | |
| | | @Override |
| | | public List<BasJarMast> getJarMastByJarIdAndStatusListCharge(Integer jarId,List<Integer> statusList) { |
| | | return this.baseMapper.getJarMastByJarIdAndStatusListCharge(jarId,statusList); |
| | | } |
| | | |
| | | @Override |
| | | public List<BasJarMast> getJarMastByJarIdAndStatusList(Integer jarId,Integer type) { |
| | | ArrayList<Integer> statusList = new ArrayList<>(); |
| | | switch (type){ |
| | |
| | | if (type!=6){ |
| | | statusList.add(12);//冷却完成 |
| | | } |
| | | statusList.add(13);//冷却完成调小车任务 |
| | | |
| | | statusList.add(13);//冷却完成等待小车 |
| | | if (type!=7){ |
| | | statusList.add(14);//小车到达冷却槽 |
| | | } |
| | | case 3://关进料门任务 //生成初始任务 |
| | | statusList.add(4);//入硫化罐完成 |
| | | |
| | |
| | | statusList.add(1);//开进料门中 |
| | | statusList.add(3);//入硫化罐中 |
| | | |
| | | statusList.add(5);//硫化中《===》关门完成 |
| | | |
| | | if (type!=5){ |
| | | if (type!=6){ |
| | | statusList.add(5);//硫化中《===》关门完成 |
| | | } |
| | | if (type!=5 && type!=6){ |
| | | statusList.add(6);//硫化完成 |
| | | } |
| | | |
| | | statusList.add(7);//开出料门中 |
| | | |
| | | if (type!=4){ |
| | | if (type!=4 && type!=6){ |
| | | statusList.add(8);//出料门打开 |
| | | } |
| | | |
| | |
| | | |
| | | statusList.add(15);//出冷却槽中 |
| | | statusList.add(16);//出冷却槽完成 |
| | | if (type!=7){ |
| | | statusList.add(14);//小车到达冷却槽 |
| | | } |
| | | |
| | | } |
| | | return this.baseMapper.getJarMastByJarIdAndStatusList(jarId,statusList); |
| | | } |
| | |
| | | return this.baseMapper.getJarMastByJarIdMax(jarId,statusList); |
| | | } |
| | | |
| | | @Override |
| | | public BasJarMast getJarMastByJarIdMaxB(Integer jarId,Integer statusStart,Integer statusEnd) { |
| | | ArrayList<Integer> statusList = new ArrayList<>(); |
| | | for (Integer i = statusStart;i<=statusEnd;i++){ |
| | | statusList.add(i); |
| | | } |
| | | return this.baseMapper.getJarMastByJarIdMaxB(jarId,statusList); |
| | | } |
| | | |
| | | |
| | | /* |
| | | * 获取jarLocDigit最小的BasJarMast |
| | | * */ |
| | |
| | | statusList.add(i); |
| | | } |
| | | return this.baseMapper.getJarMastByJarIdMin(jarId,statusList); |
| | | } |
| | | |
| | | /* |
| | | * 获取jarLocDigit最小的BasJarMast |
| | | * */ |
| | | @Override |
| | | public BasJarMast getJarMastByJarIdMinB(Integer jarId,Integer statusStart,Integer statusEnd) { |
| | | List<Integer> statusList = new ArrayList<>(); |
| | | for (Integer i = statusStart;i<=statusEnd;i++){ |
| | | statusList.add(i); |
| | | } |
| | | return this.baseMapper.getJarMastByJarIdMinB(jarId,statusList); |
| | | } |
| | | |
| | | @Override |
| | |
| | | statusList.add(14);//小车到达冷却槽 |
| | | } |
| | | case 3://关进料门任务 //生成初始任务 |
| | | statusList.add(4);//入硫化罐完成 |
| | | |
| | | if (type!=6){ |
| | | statusList.add(4);//入硫化罐完成 |
| | | } |
| | | case 2://关进料门任务 //生成初始任务 |
| | | statusList.add(0);//初始 |
| | | |
| | |
| | | statusList.add(1);//开进料门中 |
| | | statusList.add(3);//入硫化罐中 |
| | | |
| | | statusList.add(5);//硫化中《===》关门完成 |
| | | |
| | | if (type!=5){ |
| | | if (type!=6 && type!=3){ |
| | | statusList.add(5);//硫化中《===》关门完成 |
| | | } |
| | | if (type!=5 && type!=6){ |
| | | statusList.add(6);//硫化完成 |
| | | } |
| | | |
| | | statusList.add(7);//开出料门中 |
| | | |
| | | if (type!=4){ |
| | | if (type!=4 && type!=6){ |
| | | statusList.add(8);//出料门打开 |
| | | } |
| | | |
| | |
| | | return this.baseMapper.selectJarMastOperationByStatusList(jarId,statusList); |
| | | } |
| | | |
| | | @Override |
| | | public Integer updateStatus(Integer jarId,Integer status,Integer statusUpdate) { |
| | | return this.baseMapper.updateStatus(jarId,status,statusUpdate); |
| | | } |
| | | |
| | | } |