|
|
|
@@ -40,6 +40,15 @@ public class ParkHelper { |
|
|
|
@Autowired |
|
|
|
WxCreditHistoryService wxCreditHistoryService; |
|
|
|
|
|
|
|
public WxCUserCar getOne(WxPark park, Long cuUserId,String carNumber,EnumCarVendor carVendor) { |
|
|
|
WxCUserCar userCar = new WxCUserCar(); |
|
|
|
userCar.updateTenantInfo(park); |
|
|
|
userCar.setCUserId(cuUserId); |
|
|
|
userCar.setCarNumber(carNumber); |
|
|
|
userCar.setVendorType(carVendor.getCode()); |
|
|
|
return wxCUserCarService.getOne(userCar); |
|
|
|
} |
|
|
|
|
|
|
|
public ResultData bindCar(Map<String, String> paramMap, WxPark park, Long cuUserId,String vendorPersonId) { |
|
|
|
String carNumber = paramMap.get("carNumber"); |
|
|
|
if (StringUtils.isBlank(carNumber)) { |
|
|
|
@@ -53,7 +62,7 @@ public class ParkHelper { |
|
|
|
} catch (Exception e) { |
|
|
|
return new ResultData(500, e.getMessage()); |
|
|
|
} |
|
|
|
return new ResultData(); |
|
|
|
return new ResultData(vendorPersonId); |
|
|
|
} |
|
|
|
|
|
|
|
public void addCarInfoToDB(String carNumber, EnumCarVendor carVendor, WxPark park, Long cuUserId,String vendorPersonId) { |
|
|
|
|