kongdeqiang
2024-09-26 1d42efe4cbd6b1028a28ff7f3ef2b3d721051c2f
src/main/java/com/boying/controller/phone/NoticeController.java
@@ -7,6 +7,8 @@
import com.boying.entity.Park;
import com.boying.service.EnterParkService;
import com.boying.service.ParkService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -17,6 +19,7 @@
@RestController
@RequestMapping("ffzf/notice")
@RequiredArgsConstructor
@Tag(description = "ffzf/notice" , name = "违法通知接口" )
public class NoticeController {
    private final EnterParkService enterParkService;
@@ -24,6 +27,7 @@
    //停车场内有违法的车辆
    @PostMapping("/illegalCar")
    @Operation(summary = "根据id查询停车场内所有违法车辆" , description = "根据id查询停车场内所有违法车辆" )
    public Object illegalCar(Long parkId){
        QueryWrapper<EnterPark> wrapper = new QueryWrapper<>();
        wrapper.lambda()
@@ -35,6 +39,7 @@
    //停车场内有违法的车辆
    @PostMapping("/illegalCar2")
    @Operation(summary = "查询所有停车场内所有违法车辆" , description = "查询所有停车场内所有违法车辆" )
    public Object illegalCar2(){
        QueryWrapper<EnterPark> wrapper = new QueryWrapper<>();
        wrapper.lambda()
@@ -48,8 +53,8 @@
        return R.ok(all);
    }
    //停车场内的车辆 根据状态查询
    @PostMapping("/enterPark")
    @Operation(summary = "停车场内的车辆 根据状态查询" , description = "停车场内的车辆 根据状态查询" )
    public Object enterPark(Integer status, Page page){
        if(status==null){
            Page page1 = enterParkService.page(page);