提交 ac2ff261 authored 作者: zhoushaopan's avatar zhoushaopan

fix(配套设备库): 修改生成序列号规则

修改生成序列号规则
上级 27048ace
......@@ -655,18 +655,19 @@ public class MatchingDeviceController {
}
String type = "02";
String style = createSeqVo.getStyle();
if (style.length()<2){
style = "0"+style;
}
StringBuilder stringBuilder = new StringBuilder();
String modelTypeStyle ;
if (style == null){
modelTypeStyle= idString+type;
}else {
modelTypeStyle = idString+type;
if (style.length()<2){
style = "0"+style;
}
modelTypeStyle = idString+type+style;
}
StringBuilder stringBuilder = new StringBuilder();
if (num == 1){
stringBuilder
.append(modelTypeStyle)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论