ZengTao
2023-09-11 d8156c25a0af7841a91a6fe6ea5d114680672245
springboot-vue3/src/main/java/com/example/springboot/controller/HomeController.java
@@ -8,6 +8,7 @@
import com.example.springboot.mapper.HomeMapper;
import com.example.springboot.service.HomeService;
import com.example.springboot.service.SpianService;
import com.example.springboot.common.Result;
import com.example.springboot.entity.StorageCage;
import com.example.springboot.entity.alarmmg;
@@ -22,6 +23,9 @@
    @Autowired
    HomeService storageRackService;
    @Autowired
    SpianService spianService;
    @GetMapping("/load")    
    public Result selectAll(){
@@ -69,7 +73,7 @@
    }
    @GetMapping("/Addglassid")
    public Result Addglassid(Integer glassid){
    public Result Addglassid(short glassid){
        Map<String, Object> map = new HashMap<>();
        short taskno=homeMapper.SelectOutTask();
        if(taskno>0){
@@ -77,7 +81,7 @@
        }else{
            map.put("message2","200");
            //调用伍上片函数
            spianService.selectAll(glassid);
        }
        return Result.success(map);
    }