| | |
| | | @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.runErr("车牌号已存在"); |
| | | } |
| | | |
| | | 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.runErr("车牌号已存在"); |
| | | } |
| | | |
| | | if (1 == roleType){ //平台 |
| | | tCar.setAudit(1); |
| | | if (2 == companyType.intValue()){ |
| | |
| | | |
| | | <#input id="phone" name="*登录账号【手机号】" value="${item.phone}"/> |
| | | <#input id="password" name="*密码" type="password" /> |
| | | <#input id="rePassword" name="*确认密码" type="password" /> |
| | | <#input id="rePassword" name="确认密码" type="password" /> |
| | | |
| | | <#input id="driverNationality" name="国籍" value="${item.driverNationality}"/> |
| | | <#input id="driverNation" name="民族" value="${item.driverNation}"/> |
| | |
| | | }, |
| | | rePassword: { |
| | | validators: { |
| | | notEmpty: { |
| | | message: '密码不能为空' |
| | | }, |
| | | regexp:{ |
| | | regexp: /^.{6,18}$/, |
| | | message: '密码长度为6-18' |
| | |
| | | if(!this.validate()){ |
| | | return ; |
| | | } |
| | | |
| | | // 判断密码 |
| | | if ($('#rePassword').val() == "" || $('#rePassword').val() == null){ |
| | | Feng.info("密码不能为空"); |
| | | return; |
| | | } |
| | | |
| | | // 遍历this.tCarInfoData 如果有值为空字符串或者是undefined 将这个字段剔除 |
| | | for (var key in this.yesDriverInfoData) { |
| | | if (this.yesDriverInfoData[key] == "" || this.yesDriverInfoData[key] == undefined) { |