项目框架
parent
9bec6f9072
commit
242746813a
|
@ -0,0 +1,35 @@
|
|||
package com.bwie.stopCar.controller;
|
||||
|
||||
import com.bwie.common.result.Result;
|
||||
import com.bwie.stopCar.service.StopCarService;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
/**
|
||||
* @author FangShiBa
|
||||
* @date 2023/12/12
|
||||
* @apiNote
|
||||
*/
|
||||
@Log4j2
|
||||
@RestController
|
||||
@RequestMapping("/stopCar")
|
||||
public class StopCarController {
|
||||
@Autowired
|
||||
private HttpServletRequest request;
|
||||
@Autowired
|
||||
private StopCarService service;
|
||||
|
||||
//扫码停车(扫码后跳转等车界面,输入车牌)点击确认后修改状态并记录时间判断是否为固定车辆(数据库登记)
|
||||
//如果是,信息入库而后开闸,不是,添加信息,而后开闸
|
||||
@PostMapping("/stopCar")
|
||||
public Result stopCar(@RequestBody VOCar )
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue