工艺bug修改

highway
zhaoxiaolin 1 year ago
parent 3db83041e8
commit 297748addc

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

Loading…
Cancel
Save