|
|
@@ -1956,12 +1956,16 @@ public class ProductServiceImpl implements ProductService {
|
|
|
code = (String) resultMap.getData();
|
|
|
}
|
|
|
}
|
|
|
- ResultMap kindResultMap = StringUtilB2C.validateKind(kind);
|
|
|
- if (kindResultMap.getCode() != CodeType.OK.code()) {
|
|
|
- return kindResultMap;
|
|
|
- } else {
|
|
|
- productPrivate.setKind((String) kindResultMap.getData());
|
|
|
+ if (!StringUtilB2C.equals(productPrivate.getKind(), product.getKind())) {
|
|
|
+ kind = product.getKind();
|
|
|
+ ResultMap kindResultMap = StringUtilB2C.validateKind(kind);
|
|
|
+ if (kindResultMap.getCode() != CodeType.OK.code()) {
|
|
|
+ return kindResultMap;
|
|
|
+ } else {
|
|
|
+ productPrivate.setKind((String) kindResultMap.getData());
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
//如果修改了品牌、或者型号,需要匹配看,是否为标准
|
|
|
if (!StringUtils.isEmpty(brand) || !StringUtils.isEmpty(code)) {
|
|
|
if (StringUtils.isEmpty(code)) {
|