springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java
@@ -4,7 +4,9 @@ import java.util.List; import com.example.springboot.service.*; import org.springframework.beans.factory.annotation.Autowired; import com.example.springboot.entity.Flowcard; import com.example.springboot.entity.FlowCard; import com.example.springboot.entity.FlowCard; import com.example.springboot.entity.GlassInfo; import com.example.springboot.entity.MeasureSetting; import com.example.springboot.entity.Out_slice; @@ -159,7 +161,7 @@ jsonObject.append("StoragTaskeTaskOut", StoragTaskeTaskOut); //查询当前订单任务 List<Flowcard> OrderTask = storageCageService.SelectOrderTask(); List<FlowCard> OrderTask = storageCageService.SelectOrderTask(); jsonObject.append("OrderTask", OrderTask); } catch (InterruptedException e) { springboot-vue3/src/main/java/com/example/springboot/config/AppRunnerConfig.java
@@ -18,10 +18,10 @@ System.out.println("启动完成"); // new PlcHold().start(); new PlcHoldNew().start(); // new PlcHoldNew().start(); // new PLCAutoMes().start(); //new Plchome().start(); new Plchome().start(); // new PlcLayout().start(); // new Plcalarm().start(); springboot-vue3/src/main/java/com/example/springboot/entity/FlowCard.java
@@ -5,12 +5,11 @@ import com.baomidou.mybatisplus.annotation.TableName; import cn.hutool.core.date.DateTime; import lombok.Data; @Data @TableName("`flowcard`") public class Flowcard { public class FlowCard { private Integer id;// 自增id private String flowcard;// 流程卡id private Integer number;// 玻璃数量 springboot-vue3/src/main/java/com/example/springboot/entity/flowcard.java
@@ -5,12 +5,11 @@ import com.baomidou.mybatisplus.annotation.TableName; import cn.hutool.core.date.DateTime; import lombok.Data; @Data @TableName("`flowcard`") public class Flowcard { public class FlowCard { private Integer id;// 自增id private String flowcard;// 流程卡id private Integer number;// 玻璃数量 springboot-vue3/src/main/java/com/example/springboot/mapper/HomeMapper.java
@@ -3,7 +3,7 @@ import org.apache.ibatis.annotations.*; import com.example.springboot.entity.CarPosition; import com.example.springboot.entity.Flowcard; import com.example.springboot.entity.FlowCard; import com.example.springboot.entity.GlassInfo; import com.example.springboot.entity.StorageCage; import com.example.springboot.entity.StorageTask; @@ -269,7 +269,7 @@ void StorageCageAddGlass(String cell, GlassInfo glassInfo); @Select("select * from flowcard where state!=2") List<Flowcard> SelectOrderTask(); List<FlowCard> SelectOrderTask(); @Select("select * from glassinfo where flowcard=#{flowcard} order by mateid,tier") List<GlassInfo> SelectOrderView(String flowcard); 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; @@ -273,14 +273,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 +294,7 @@ return Result.success(map); } //任务模式修改 public Result ModeChange(String flowcard, Integer method) { if(method==1){ homeMapper.ModeChange(flowcard,0); @@ -303,6 +306,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<>();