| | |
| | | @PostMapping(value = "/add") |
| | | @ResponseBody |
| | | public Object add(TCar tCar, String serverBox,Integer roleType,Integer companyType,Integer oneId,Integer twoId,Integer franchiseeId) { |
| | | |
| | | // 判断车牌号是否存在 |
| | | if (tCarService.selectCount(new EntityWrapper<TCar>().eq("carLicensePlate", tCar.getCarLicensePlate())) > 0){ |
| | | return ResultUtil.error("车牌号已存在"); |
| | | } |
| | | |
| | | if (1 == roleType){ //平台 |
| | | tCar.setAudit(1); |
| | | if (2 == companyType.intValue()){ |
| | |
| | | @RequestMapping(value = "/update") |
| | | @ResponseBody |
| | | public Object update(TCar tCar,@RequestParam String serverBox,Integer roleType,Integer companyType,Integer oneId,Integer twoId,Integer franchiseeId,String zcModel,String kcModel) { |
| | | |
| | | // 判断车牌号是否存在 |
| | | if (tCarService.selectCount(new EntityWrapper<TCar>().eq("carLicensePlate", tCar.getCarLicensePlate()) |
| | | .ne("id", tCar.getId())) > 0){ |
| | | return ResultUtil.error("车牌号已存在"); |
| | | } |
| | | |
| | | if (1 == roleType){ //平台 |
| | | tCar.setAudit(1); |
| | | if (2 == companyType.intValue()){ |
| | |
| | | shellList.add("服务模式:包车[是/否]"); |
| | | shellList.add("车辆品牌"); |
| | | shellList.add("车辆类型"); |
| | | shellList.add("车辆颜色[蓝白色/绿色]"); |
| | | shellList.add("车辆颜色[蓝白色/绿色/黄色]"); |
| | | shellList.add("车牌号"); |
| | | dataList.add(shellList); |
| | | |
| | |
| | | return new ErrorTip(500, "服务模式【包车】内容不正确"); |
| | | } |
| | | //判断车辆颜色 |
| | | if (!eleven.equals("蓝白色") && !eleven.equals("绿色") ){ |
| | | if (!eleven.equals("蓝白色") && !eleven.equals("绿色") && !eleven.equals("黄色") ){ |
| | | return new ErrorTip(500, "车辆颜色内容不正确"); |
| | | } |
| | | //判断年检到期时间格式是否正确 |