修改页面推荐语
This commit is contained in:
@@ -8398,8 +8398,16 @@ public class ProductService {
|
||||
}
|
||||
|
||||
public List<Product> chucklePrice(String role, List<Product> list) {
|
||||
//
|
||||
List<String> roleList = Arrays.asList("1045", "1061", "1029", "1054", "1053");
|
||||
boolean isIn = false;
|
||||
for (String s : roleList) {
|
||||
if (role.indexOf(s) > -1) {
|
||||
isIn = true;
|
||||
}
|
||||
}
|
||||
//淘系的价格全部按照目前的价格乘以1.15
|
||||
if (role.indexOf("1045") == -1 && role.indexOf("1061") == -1) {
|
||||
if (!isIn) {
|
||||
for (Product product : list) {
|
||||
product.setPrice(Math.ceil(product.getPrice() * 1.15));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user