| | |
| | | |
| | | import com.stylefeng.guns.modular.crossCity.server.ILineService; |
| | | import com.stylefeng.guns.modular.crossCity.warpper.LineWarpper; |
| | | import com.stylefeng.guns.modular.system.dao.CarMapper; |
| | | import com.stylefeng.guns.modular.system.model.Car; |
| | | import com.stylefeng.guns.modular.system.model.Company; |
| | | import com.stylefeng.guns.modular.system.service.ICompanyService; |
| | | import com.stylefeng.guns.modular.system.util.ResultUtil; |
| | | import com.stylefeng.guns.modular.system.warpper.BaseWarpper; |
| | | import io.swagger.annotations.Api; |
| | |
| | | @Autowired |
| | | private ILineService lineService; |
| | | |
| | | @Autowired |
| | | private CarMapper carMapper; |
| | | |
| | | @Autowired |
| | | private ICompanyService companyService; |
| | | |
| | | |
| | | |
| | | @ResponseBody |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/base/line/confirm", method = RequestMethod.POST) |
| | | @ApiOperation(value = "判断当前是否需要摆渡车", tags = {"用户端-跨城"}, notes = "") |
| | | public ResultUtil confirm(Integer carId){ |
| | | Car car = carMapper.selectById(carId); |
| | | Company company = companyService.selectById(car.getCompanyId()); |
| | | return ResultUtil.success(company.getIsNeedFerry()); |
| | | } |
| | | |
| | | |
| | | // @ResponseBody |
| | | // @RequestMapping(value = "/base/line/scanCodeQueryLines", method = RequestMethod.POST) |
| | | // @ApiOperation(value = "扫码获取线路信息", tags = {"用户端-跨城"}, notes = "") |