新增电线胶材质
This commit is contained in:
@@ -4818,7 +4818,11 @@ public class ProductService {
|
|||||||
};
|
};
|
||||||
int[] counts = {500, 1000, 2000, 3000, 5000, 10000, 20000};
|
int[] counts = {500, 1000, 2000, 3000, 5000, 10000, 20000};
|
||||||
priceList = getAreaCenterPrice(counts, count, width * length, prices, areas, number);
|
priceList = getAreaCenterPrice(counts, count, width * length, prices, areas, number);
|
||||||
|
|
||||||
for (Product product : priceList) {
|
for (Product product : priceList) {
|
||||||
|
if("2".equals(dto.getKind())){
|
||||||
|
product.setPrice(Math.ceil(product.getPrice() * 1.1));
|
||||||
|
}
|
||||||
product.setWeight(df.format(number * length / 100 * width / 100 * product.getCount() * 0.3));
|
product.setWeight(df.format(number * length / 100 * width / 100 * product.getCount() * 0.3));
|
||||||
}
|
}
|
||||||
return priceList;
|
return priceList;
|
||||||
|
|||||||
@@ -26,6 +26,7 @@
|
|||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
<select name="kind" class="select" lay-search>
|
<select name="kind" class="select" lay-search>
|
||||||
<option value="1">PP合成</option>
|
<option value="1">PP合成</option>
|
||||||
|
<option value="2">PET哑银</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
Reference in New Issue
Block a user