| | |
| | | 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; |
| | |
| | | @RestController |
| | | @RequestMapping("ffzf/notice") |
| | | @RequiredArgsConstructor |
| | | @Tag(description = "ffzf/notice" , name = "违法通知接口" ) |
| | | public class NoticeController { |
| | | |
| | | private final EnterParkService enterParkService; |
| | |
| | | |
| | | //停车场内有违法的车辆 |
| | | @PostMapping("/illegalCar") |
| | | @Operation(summary = "根据id查询停车场内所有违法车辆" , description = "根据id查询停车场内所有违法车辆" ) |
| | | public Object illegalCar(Long parkId){ |
| | | QueryWrapper<EnterPark> wrapper = new QueryWrapper<>(); |
| | | wrapper.lambda() |
| | |
| | | |
| | | //停车场内有违法的车辆 |
| | | @PostMapping("/illegalCar2") |
| | | @Operation(summary = "查询所有停车场内所有违法车辆" , description = "查询所有停车场内所有违法车辆" ) |
| | | public Object illegalCar2(){ |
| | | QueryWrapper<EnterPark> wrapper = new QueryWrapper<>(); |
| | | wrapper.lambda() |
| | |
| | | return R.ok(all); |
| | | } |
| | | |
| | | //停车场内的车辆 根据状态查询 |
| | | @PostMapping("/enterPark") |
| | | @Operation(summary = "停车场内的车辆 根据状态查询" , description = "停车场内的车辆 根据状态查询" ) |
| | | public Object enterPark(Integer status, Page page){ |
| | | if(status==null){ |
| | | Page page1 = enterParkService.page(page); |