修改亚克力设计费
This commit is contained in:
@@ -4260,6 +4260,11 @@ public class ProductService {
|
|||||||
}
|
}
|
||||||
product.setWeight(df.format(0.28 * width * length * product.getCount() / 10000 * number));
|
product.setWeight(df.format(0.28 * width * length * product.getCount() / 10000 * number));
|
||||||
}
|
}
|
||||||
|
if (width < 50 || length < 50) {
|
||||||
|
if (role.contains("1053")) {
|
||||||
|
product.setPrice(Math.ceil(product.getPrice() + number * 5));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return chucklePrice(role, priceList);
|
return chucklePrice(role, priceList);
|
||||||
case "29"://慕斯垫
|
case "29"://慕斯垫
|
||||||
@@ -4592,7 +4597,7 @@ public class ProductService {
|
|||||||
|
|
||||||
ShengDaPriceResultVo result = ShengDaPriceUtils.getPrice(params);
|
ShengDaPriceResultVo result = ShengDaPriceUtils.getPrice(params);
|
||||||
double price = Math.ceil(result.getData().getPrice() / (1 - 0.65));
|
double price = Math.ceil(result.getData().getPrice() / (1 - 0.65));
|
||||||
double designPrice = number * 5;
|
double designPrice = number * 8;
|
||||||
|
|
||||||
Product product = new Product();
|
Product product = new Product();
|
||||||
product.setPrice(Math.ceil(Math.max(price, 30) + designPrice));
|
product.setPrice(Math.ceil(Math.max(price, 30) + designPrice));
|
||||||
@@ -5291,7 +5296,7 @@ public class ProductService {
|
|||||||
if (craft_list.contains("防风绳")) {
|
if (craft_list.contains("防风绳")) {
|
||||||
product.setPrice(Math.floor(product.getPrice() + dto.getPcount() * 2));
|
product.setPrice(Math.floor(product.getPrice() + dto.getPcount() * 2));
|
||||||
}
|
}
|
||||||
product.setWeight(String.valueOf(area * 0.18 + dto.getShuliang() * 3.3));
|
product.setWeight(String.valueOf(area * count * number * 0.08 + dto.getShuliang() * 3.3));
|
||||||
}
|
}
|
||||||
|
|
||||||
return priceList;
|
return priceList;
|
||||||
@@ -8550,7 +8555,7 @@ public class ProductService {
|
|||||||
|
|
||||||
public List<Product> chucklePrice(String role, List<Product> list) {
|
public List<Product> chucklePrice(String role, List<Product> list) {
|
||||||
//
|
//
|
||||||
List<String> roleList = Arrays.asList("1045", "1061", "1029", "1054", "1053");
|
List<String> roleList = Arrays.asList("1045", "1061", "1029", "1054", "1053", "1055");
|
||||||
boolean isIn = false;
|
boolean isIn = false;
|
||||||
for (String s : roleList) {
|
for (String s : roleList) {
|
||||||
if (role.indexOf(s) > -1) {
|
if (role.indexOf(s) > -1) {
|
||||||
|
|||||||
@@ -306,14 +306,10 @@ public class PosterPrice {
|
|||||||
price = area * 380 > 380 + 15 ? area * 380 : 380 + 15;
|
price = area * 380 > 380 + 15 ? area * 380 : 380 + 15;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (!"24".equals(kind2)) {
|
Product pro = new Product();
|
||||||
double area_jis = area;
|
List<Product> list = new ArrayList<Product>();
|
||||||
if (width * length < 40 * 50) {
|
pro.setCount(count);
|
||||||
area_jis = area_jis * number;
|
if ("15".equals(kind2)) {
|
||||||
}
|
|
||||||
// if ("8".equals(kind2) && width * length < 40 * 50) {
|
|
||||||
// price = new PriceUtils().getTestPrice(length, width, count, number, areas, prices, min_price, last_price);
|
|
||||||
// } else {
|
|
||||||
danjia = last_price;
|
danjia = last_price;
|
||||||
for (int i = 0; i < areas.length; i++) {
|
for (int i = 0; i < areas.length; i++) {
|
||||||
if (area <= areas[i]) {
|
if (area <= areas[i]) {
|
||||||
@@ -321,19 +317,44 @@ public class PosterPrice {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
price = Math.max(area_jis * danjia, min_price);
|
price = Math.max(area * danjia, min_price) * number;
|
||||||
// }
|
if (area < areas[0]) {
|
||||||
|
area = area * number;
|
||||||
|
for (int i = 0; i < areas.length; i++) {
|
||||||
|
if (area <= areas[i]) {
|
||||||
|
danjia = prices[i];
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
price = Math.max(min_price, area * danjia) + 25 + 15 * (number - 1);
|
||||||
|
}
|
||||||
|
pro.setPrice(Math.ceil(price));
|
||||||
|
} else {
|
||||||
|
|
||||||
|
if (!"24".equals(kind2)) {
|
||||||
|
double area_jis = area;
|
||||||
|
|
||||||
|
if (width * length < 40 * 50) {
|
||||||
|
area_jis = area_jis * number;
|
||||||
|
}
|
||||||
|
|
||||||
|
danjia = last_price;
|
||||||
|
for (int i = 0; i < areas.length; i++) {
|
||||||
|
if (area <= areas[i]) {
|
||||||
|
danjia = prices[i];
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
price = Math.max(area_jis * danjia, min_price);
|
||||||
|
}
|
||||||
|
// 价格 = 面积 * 单价 + (款数-1) * 40
|
||||||
|
if (number > 1 && width * length >= 40 * 50) {
|
||||||
|
pro.setPrice(Math.ceil(price * number));
|
||||||
|
} else {
|
||||||
|
pro.setPrice(Math.ceil(price));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Product pro = new Product();
|
|
||||||
List<Product> list = new ArrayList<Product>();
|
|
||||||
pro.setCount(count);
|
|
||||||
// 价格 = 面积 * 单价 + (款数-1) * 40
|
|
||||||
if (number > 1 && width * length >= 40 * 50) {
|
|
||||||
pro.setPrice(Math.ceil(price * number));
|
|
||||||
} else {
|
|
||||||
pro.setPrice(Math.ceil(price));
|
|
||||||
}
|
|
||||||
pro.setWeight(weight);
|
pro.setWeight(weight);
|
||||||
list.add(pro);
|
list.add(pro);
|
||||||
return list;
|
return list;
|
||||||
|
|||||||
Reference in New Issue
Block a user