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