|
@@ -47,11 +47,7 @@ public class CmBrandAuthProductService extends CrudService<CmBrandAuthProductDao
|
|
if (displaySnCode.length() > 6) {
|
|
if (displaySnCode.length() > 6) {
|
|
String prefixStr = displaySnCode.substring(0, 2);
|
|
String prefixStr = displaySnCode.substring(0, 2);
|
|
String suffixStr = displaySnCode.substring(displaySnCode.length() - 4);
|
|
String suffixStr = displaySnCode.substring(displaySnCode.length() - 4);
|
|
- displaySnCode = prefixStr;
|
|
|
|
- for (int i = 0; i < product.getSnCode().length() - 6; i++) {
|
|
|
|
- displaySnCode += "*";
|
|
|
|
- }
|
|
|
|
- displaySnCode += suffixStr;
|
|
|
|
|
|
+ displaySnCode = prefixStr + "******" + suffixStr;
|
|
}
|
|
}
|
|
product.setDisplaySnCode(displaySnCode);
|
|
product.setDisplaySnCode(displaySnCode);
|
|
});
|
|
});
|