ZengTao
2023-09-21 d0e719bd6bb8d2a840211d60efbb46b83d77455d
springboot-vue3/src/main/java/com/example/springboot/controller/HomeController.java
@@ -13,6 +13,7 @@
import com.example.springboot.common.Result;
import com.example.springboot.component.S7control;
import com.example.springboot.entity.CarPosition;
import com.example.springboot.entity.Glass;
import com.example.springboot.entity.StorageCage;
import com.example.springboot.entity.alarmmg;
@@ -80,7 +81,7 @@
    @GetMapping("/Addglassid")
    public Result Addglassid(short glassid) {
        Map<String, Object> map = new HashMap<>();
        short taskno = homeMapper.SelectOutTask();
        short taskno = homeMapper.SelectInTask();
        if (taskno > 0) {
            map.put("message2", "500");
        } else {
@@ -173,5 +174,11 @@
        return Result.success(map);
    }
    
    @GetMapping("/SelectGlassByGlassID")
    public Result SelectGlassByGlassID(String glassid) {
        Glass Glass = homeMapper.SelectGlassByGlassID(glassid);
        Map<String, Object> map = new HashMap<>();
        map.put("form", Glass);
        return Result.success(map);
    }
}