Commit 3c5bc526 authored by 刘林's avatar 刘林

fix(JG):车用气瓶-监管码功能开发

parent 6d9ce520
...@@ -40,7 +40,7 @@ public enum VehicleApanageEnum { ...@@ -40,7 +40,7 @@ public enum VehicleApanageEnum {
*/ */
public static String of(String code){ public static String of(String code){
for(VehicleApanageEnum e : VehicleApanageEnum.values()){ for(VehicleApanageEnum e : VehicleApanageEnum.values()){
if(e.getCity().equals(code)){ if(e.getCode().equals(code)){
return e.getCity(); return e.getCity();
} }
} }
......
...@@ -615,7 +615,7 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform ...@@ -615,7 +615,7 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
jgVehicleInformation.setNextExecuteUserIds(""); jgVehicleInformation.setNextExecuteUserIds("");
// 生成使用登记证编号 // 生成使用登记证编号
String code = this.getCode(jgVehicleInformation.getVehicleApanage()); String code = this.getUseRegistrationCode(jgVehicleInformation.getVehicleApanage());
jgVehicleInformation.setUseRegistrationCode(code); jgVehicleInformation.setUseRegistrationCode(code);
jgVehicleInformation.setAuditPassDate(new Date()); jgVehicleInformation.setAuditPassDate(new Date());
...@@ -862,7 +862,7 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform ...@@ -862,7 +862,7 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
* @return String * @return String
* @deprecated 根据车辆属地生成使用登记证 * @deprecated 根据车辆属地生成使用登记证
*/ */
public String getCode(String vehicleApa) { public String getUseRegistrationCode(String vehicleApa) {
StringBuilder useRegistration = new StringBuilder("容3T"); StringBuilder useRegistration = new StringBuilder("容3T");
if (!ObjectUtils.isEmpty(vehicleApa)) { if (!ObjectUtils.isEmpty(vehicleApa)) {
ResponseModel<String> stringResponseModel = tzsServiceFeignClient.useRegistrationCode(useRegistration.append(VehicleApanageEnum.of(vehicleApa)) + ""); ResponseModel<String> stringResponseModel = tzsServiceFeignClient.useRegistrationCode(useRegistration.append(VehicleApanageEnum.of(vehicleApa)) + "");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment