mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-14 21:52:07 +08:00
禅道bug#1721修复
This commit is contained in:
+7
-2
@@ -1743,14 +1743,19 @@ public class WebCadOrderImportAsyncFactory {
|
|||||||
private String getPartsSpec(String value) {
|
private String getPartsSpec(String value) {
|
||||||
value = StringUtils.defaultString(value);
|
value = StringUtils.defaultString(value);
|
||||||
|
|
||||||
|
// 特殊规格:规格|材质|颜色
|
||||||
|
if (StringUtils.countMatches(value, "|") >= 2) {
|
||||||
int idx = value.indexOf('|');
|
int idx = value.indexOf('|');
|
||||||
|
|
||||||
return StringUtils.defaultIfEmpty(
|
return StringUtils.defaultIfEmpty(
|
||||||
idx >= 0 ? value.substring(0, idx) : value,
|
value.substring(0, idx),
|
||||||
EMPTY_STRING
|
EMPTY_STRING
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 普通规格直接返回
|
||||||
|
return StringUtils.defaultIfEmpty(value, EMPTY_STRING);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 保留三位小数展示
|
* 保留三位小数展示
|
||||||
*
|
*
|
||||||
|
|||||||
+7
-2
@@ -1930,14 +1930,19 @@ public class WebCadOrderImportFactory {
|
|||||||
private String getPartsSpec(String value) {
|
private String getPartsSpec(String value) {
|
||||||
value = StringUtils.defaultString(value);
|
value = StringUtils.defaultString(value);
|
||||||
|
|
||||||
|
// 特殊规格:规格|材质|颜色
|
||||||
|
if (StringUtils.countMatches(value, "|") >= 2) {
|
||||||
int idx = value.indexOf('|');
|
int idx = value.indexOf('|');
|
||||||
|
|
||||||
return StringUtils.defaultIfEmpty(
|
return StringUtils.defaultIfEmpty(
|
||||||
idx >= 0 ? value.substring(0, idx) : value,
|
value.substring(0, idx),
|
||||||
EMPTY_STRING
|
EMPTY_STRING
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 普通规格直接返回
|
||||||
|
return StringUtils.defaultIfEmpty(value, EMPTY_STRING);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 保留三位小数展示
|
* 保留三位小数展示
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user