严智鑫
2024-03-18 6f01df95aaf3c4143069bb9a0fc814e092684723
springboot-vue3/src/main/java/com/example/springboot/service/StorageCageService.java
@@ -12,7 +12,7 @@
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;
@@ -249,6 +249,7 @@
            }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");
@@ -273,14 +274,16 @@
        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);
@@ -292,6 +295,7 @@
        return Result.success(map);
    }
    //任务模式修改
    public Result ModeChange(String flowcard, Integer method) {
        if(method==1){
            homeMapper.ModeChange(flowcard,0);
@@ -303,6 +307,7 @@
        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<>();