wu
2023-12-01 8a0ae6d19d78d2295a10b1cc97bfe17e651234ea
springboot-vue3/src/main/java/com/example/springboot/controller/SpianController.java
New file
@@ -0,0 +1,46 @@
package com.example.springboot.controller;
import com.example.springboot.mapper.SpianMapper;
import com.example.springboot.service.SpianService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/spian")
public class SpianController {
    @Autowired
    SpianMapper spianMapper;
    @Autowired
    SpianService spianservice;
    //出片任务
@GetMapping("/all2")
    public void selectdd(String orderid){
       SpianService service=new SpianService();
       service.selectout(orderid);
}
   @GetMapping("/all")
   //进片任务,传订单id
   //按订单优先进片
    public void selectAll(Short glassid){
       SpianService service=new SpianService();
       service.selectAll(Short.toString(glassid));
    }
}