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