|
|
|
@ -143,11 +143,16 @@ public class ProRouteServiceImpl implements IProRouteService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//更新版本V.1->递增
|
|
|
|
|
String nowRouteVersion = proRoute.getRouteVersion().replace("V", "")
|
|
|
|
|
.replace(".", "");
|
|
|
|
|
int nowRouteVersionNum = Integer.parseInt(nowRouteVersion);
|
|
|
|
|
String newRouteVersionNum = "V." + (++nowRouteVersionNum);
|
|
|
|
|
proRoute.setRouteVersion(newRouteVersionNum);
|
|
|
|
|
if(StringUtils.isNotEmpty(proRoute.getRouteVersion())){
|
|
|
|
|
String nowRouteVersion = proRoute.getRouteVersion().replace("V", "")
|
|
|
|
|
.replace(".", "");
|
|
|
|
|
int nowRouteVersionNum = Integer.parseInt(nowRouteVersion);
|
|
|
|
|
String newRouteVersionNum = "V." + (++nowRouteVersionNum);
|
|
|
|
|
proRoute.setRouteVersion(newRouteVersionNum);
|
|
|
|
|
}else{
|
|
|
|
|
proRoute.setRouteVersion("V.2");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return proRouteMapper.updateProRoute(proRoute);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|