Pu Zhibing
3 天以前 b219589d73f46bd98995bceb4caf16dadb56b869
UserQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/crossCity/controller/LineController.java
@@ -3,6 +3,10 @@
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;
@@ -29,6 +33,12 @@
    @Autowired
    private ILineService lineService;
    @Autowired
    private CarMapper carMapper;
    @Autowired
    private ICompanyService companyService;
    @ResponseBody
@@ -49,6 +59,17 @@
        }
    }
    @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 = "")