| | |
| | | import com.example.springboot.common.Result; |
| | | import com.example.springboot.component.Plchome; |
| | | import com.example.springboot.component.S7control; |
| | | import com.example.springboot.entity.Flowcard; |
| | | import com.example.springboot.entity.FlowCard; |
| | | import com.example.springboot.entity.GlassInfo; |
| | | import com.example.springboot.entity.Queue; |
| | | import com.example.springboot.entity.StorageCage; |
| | |
| | | }else{ |
| | | UpdateStroageCageByCell(Integer.parseInt(storageTask.getShelfRack()),0);//清除格内信息 |
| | | } |
| | | homeMapper.AddGlassNo(storageTask.getFlowcard(),storageTask.getMateid(),storageTask.geTier());//添加出片完成数量 |
| | | } |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("message", "200"); |
| | |
| | | return Result.success(map); |
| | | } |
| | | |
| | | public List<Flowcard> SelectOrderTask() { |
| | | List<Flowcard> OrderTask=homeMapper.SelectOrderTask(); |
| | | for (Flowcard flowcard : OrderTask) { |
| | | //查询订单任务 |
| | | public List<FlowCard> SelectOrderTask() { |
| | | List<FlowCard> OrderTask=homeMapper.SelectOrderTask(); |
| | | for (FlowCard flowcard : OrderTask) { |
| | | flowcard.setglassinfo(homeMapper.SelectOrderView(flowcard.getFlowcard())); |
| | | } |
| | | return OrderTask; |
| | | } |
| | | |
| | | //开始任务 |
| | | public Result ClaimTasks(String flowcard, Integer state) { |
| | | if(state==1){ |
| | | homeMapper.ClaimTasks(flowcard,0); |
| | |
| | | return Result.success(map); |
| | | } |
| | | |
| | | //任务模式修改 |
| | | public Result ModeChange(String flowcard, Integer method) { |
| | | if(method==1){ |
| | | homeMapper.ModeChange(flowcard,0); |
| | |
| | | return Result.success(map); |
| | | } |
| | | |
| | | //修改测量信息 |
| | | public Result UpdateQueue(GlassInfo glassInfo) { |
| | | homeMapper.UpdateQueue(glassInfo.getFlowcard(),glassInfo.getWidth(),glassInfo.getHeight(),glassInfo.getGlasstype()); |
| | | Map<String, Object> map = new HashMap<>(); |