工艺bug修改

highway
zhaoxiaolin 1 year ago
parent 3db83041e8
commit 297748addc

@ -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);
}

Loading…
Cancel
Save