| | |
| | | user.setDelFlag("0"); |
| | | user.setRoleId(partner.getRoleId().longValue()); |
| | | user.setRoleType(2); |
| | | user.setObjectId(partner.getId()); |
| | | //添加新数据 |
| | | this.save(partner); |
| | | user.setObjectId(partner.getId()); |
| | | R r = sysUserClient.addSysUser(user); |
| | | if(200 != r.getCode()){ |
| | | throw new RuntimeException(r.getMsg()); |
| | |
| | | if(StringUtils.isEmpty(site.getAddress())){ |
| | | return AjaxResult.error("详细地址不能为空"); |
| | | } |
| | | if(StringUtils.isEmpty(site.getLon()) || StringUtils.isEmpty(site.getLat())){ |
| | | return AjaxResult.error("地图位置不能为空"); |
| | | } |
| | | // if(StringUtils.isEmpty(site.getLon()) || StringUtils.isEmpty(site.getLat())){ |
| | | // return AjaxResult.error("地图位置不能为空"); |
| | | // } |
| | | if(StringUtils.isEmpty(site.getPhone())){ |
| | | return AjaxResult.error("站点电话不能为空"); |
| | | } |
| | |
| | | AND tpr.code LIKE concat('%',#{query.code},'%') |
| | | </if> |
| | | <if test="query.licensePlate != null and query.licensePlate != ''"> |
| | | AND tpr.licensePlate LIKE concat('%',#{query.licensePlate},'%') |
| | | AND tpr.license_plate LIKE concat('%',#{query.licensePlate},'%') |
| | | </if> |
| | | <if test="query.lotIds != null and query.lotIds.size()>0"> |
| | | AND tpr.parking_lot_id IN |
| | |
| | | dto.setUserIds(carIds); |
| | | } |
| | | } |
| | | if (StringUtils.hasLength(dto.getPhone())){ |
| | | if (StringUtils.hasLength(dto.getLicensePlate())){ |
| | | List<Long> data = appUserCarClient.getAppUserCarByLicensePlates(dto.getLicensePlate()).getData(); |
| | | if(data!=null){ |
| | | if (!data.isEmpty()){ |