新增数码插旗

このコミットが含まれているのは:
2026-03-25 14:31:40 +08:00
コミット 88c810f37f
4個のファイルの変更250行の追加1548行の削除
+20 -3
ファイルの表示
@@ -324,7 +324,12 @@ public class ProductService {
width = Math.ceil(width); width = Math.ceil(width);
area = length * width / 10000; area = length * width / 10000;
} }
if ("常规".equals(dto.getKind2Value())) {
priceList = normalSticker(dto, "0", number, area, width, length, count, oldKind, priceList); priceList = normalSticker(dto, "0", number, area, width, length, count, oldKind, priceList);
}
if ("数码".equals(dto.getKind2Value())) {
priceList = lessSticker(dto, "0", number, width, length, count, priceList, role);
}
if (priceList.size() >= 3) { if (priceList.size() >= 3) {
priceList = priceList.subList(0, 3); priceList = priceList.subList(0, 3);
@@ -338,7 +343,12 @@ public class ProductService {
width = Math.ceil(width); width = Math.ceil(width);
area = length * width / 10000; area = length * width / 10000;
} }
if ("常规".equals(dto.getKind2Value())) {
priceList = normalSticker(dto, "1", number, area, width, length, count, oldKind, priceList); priceList = normalSticker(dto, "1", number, area, width, length, count, oldKind, priceList);
}
if ("数码".equals(dto.getKind2Value())) {
priceList = lessSticker(dto, "1", number, width, length, count, priceList, role);
}
if (priceList.size() >= 3) { if (priceList.size() >= 3) {
priceList = priceList.subList(0, 3); priceList = priceList.subList(0, 3);
} }
@@ -497,6 +507,7 @@ public class ProductService {
for (Product product : priceList) { for (Product product : priceList) {
double basePrice = 0; double basePrice = 0;
if ("粘牙签".equals(dto.getCraftShua())) { if ("粘牙签".equals(dto.getCraftShua())) {
if ("常规".equals(dto.getKind2Value())) {
if (product.getCount() <= 500) { if (product.getCount() <= 500) {
basePrice = 0.108; basePrice = 0.108;
} else if (product.getCount() <= 1000) { } else if (product.getCount() <= 1000) {
@@ -511,6 +522,11 @@ public class ProductService {
basePrice = 0.086; basePrice = 0.086;
} }
} }
if ("数码".equals(dto.getKind2Value())) {
basePrice = 0.5;
}
}
if ("配牙签".equals(dto.getCraftShua())) { if ("配牙签".equals(dto.getCraftShua())) {
if (product.getCount() <= 500) { if (product.getCount() <= 500) {
basePrice = 0.032; basePrice = 0.032;
@@ -532,10 +548,11 @@ public class ProductService {
if ("12".equals(dto.getToothpick_size())) { if ("12".equals(dto.getToothpick_size())) {
basePrice = basePrice + 0.02; basePrice = basePrice + 0.02;
} }
if ("0".equals(dto.getKindValue())) { if ("0".equals(dto.getKindValue())) {
product.setPrice(product.getPrice() + Math.ceil(product.getCount() * basePrice)); product.setPrice(product.getPrice() + Math.max(Math.ceil(product.getCount() * basePrice), 5));
} else { } else {
product.setPrice(product.getPrice() + Math.ceil(product.getCount() * basePrice * number)); product.setPrice(product.getPrice() + Math.max(Math.ceil(product.getCount() * basePrice), 5) * number);
} }
if ("配牙签".equals(dto.getCraftShua()) && "6.5".equals(dto.getToothpick_size()) && ((width == 9 && length == 2.5) || length == 9 && width == 2.5)) { if ("配牙签".equals(dto.getCraftShua()) && "6.5".equals(dto.getToothpick_size()) && ((width == 9 && length == 2.5) || length == 9 && width == 2.5)) {
if (product.getCount() == 500) { if (product.getCount() == 500) {
@@ -6569,7 +6586,7 @@ public class ProductService {
product.setPrice(product.getPrice() + ((dto.getN_mq_num()) * base_price)); product.setPrice(product.getPrice() + ((dto.getN_mq_num()) * base_price));
} }
} }
if (number > 1) { if (number > 1 && dto.getP() != null) {
double desFee = 0; double desFee = 0;
if (!role.contains("1045") && !role.contains("1054") && !role.contains("1029")) { if (!role.contains("1045") && !role.contains("1054") && !role.contains("1029")) {
if (dto.getP() == 1) { if (dto.getP() == 1) {
+2 -2
ファイルの表示
@@ -362,9 +362,9 @@ public class PosterPrice {
// 户外写真白胶(国产) // 户外写真白胶(国产)
case "0": case "0":
areas = new double[]{2, 5, 7, 8, 10, 20, 50}; areas = new double[]{2, 5, 7, 8, 10, 20, 50};
prices = new double[]{55, 45, 40, 37, 31, 29, 27}; prices = new double[]{50, 40, 35, 32, 26, 24, 22};
last_price = 26; last_price = 26;
min_price += 50 + 15; min_price += 50 -5;
// 根据面积得到单价 // 根据面积得到单价
weight = String.valueOf(DecimalFormat.format(area * 0.24 * number)); weight = String.valueOf(DecimalFormat.format(area * 0.24 * number));
break; break;
ファイル差分が大きすぎるため省略します 差分を読み込み
+1 -1
ファイルの表示
@@ -40,7 +40,7 @@
<option value="30*50">30*50</option> <option value="30*50">30*50</option>
<option value="50*80">50*80</option> <option value="50*80">50*80</option>
<option value="60*100">60*100</option> <option value="60*100">60*100</option>
<option value="80*120">80*120</option> <%-- <option value="80*120">80*120</option>--%>
</select> </select>
</div> </div>
<div class="layui-form-item" style="display: none"> <div class="layui-form-item" style="display: none">