修改拼多多话说

This commit is contained in:
2026-06-24 15:10:16 +08:00
parent 396656bd66
commit 88d097f630
6 changed files with 24 additions and 11 deletions
@@ -815,7 +815,7 @@ public class ProductService {
carft_price += Math.ceil((danjia * product.getCount())); carft_price += Math.ceil((danjia * product.getCount()));
} }
} }
carft_price = Math.ceil(carft_price * number); carft_price = Math.ceil(carft_price * dto.getNumber());
//腰封的模切费单独计算 //腰封的模切费单独计算
product.setPrice(Math.ceil((product.getPrice() + carft_price))); product.setPrice(Math.ceil((product.getPrice() + carft_price)));
product.setWeight(df.format(number * length / 100 * width / 100 * product.getCount() * 0.3 * 0.86)); product.setWeight(df.format(number * length / 100 * width / 100 * product.getCount() * 0.3 * 0.86));
@@ -287,13 +287,15 @@ public class QuoteLogService {
List<String> remarkJudgeData = quoteDataMapper.getQuoteDataByMinutes(user.getUsername()); List<String> remarkJudgeData = quoteDataMapper.getQuoteDataByMinutes(user.getUsername());
endTime2 = System.currentTimeMillis(); endTime2 = System.currentTimeMillis();
System.out.println("【getQuoteDataByMinutes】使用的时间:" + (endTime2 - startTime2)); System.out.println("【getQuoteDataByMinutes】使用的时间:" + (endTime2 - startTime2));
if (remarkJudgeData != null && remarkJudgeData.size() > 0) {
for (String remarkJudge : remarkJudgeData) { for (String remarkJudge : remarkJudgeData) {
if (remarkJudge.equals(remark_judge)) { if (remarkJudge != null && remarkJudge.equals(remark_judge)) {
// 如果3分钟内报过相同数据 // 如果3分钟内报过相同数据
flag = true; flag = true;
break; break;
} }
} }
}
// 插入数据(给客服数据新增用的) // 插入数据(给客服数据新增用的)
String role = user.getRole(); String role = user.getRole();
// 客服报的且3分钟内没有同一个客户报的数据才插入 // 客服报的且3分钟内没有同一个客户报的数据才插入
@@ -302,6 +304,7 @@ public class QuoteLogService {
quoteData.setUsername(user.getUsername()); quoteData.setUsername(user.getUsername());
quoteData.setRealname(user.getRealname()); quoteData.setRealname(user.getRealname());
quoteData.setPrice((double) 0); quoteData.setPrice((double) 0);
quoteData.setProTypeLabel("");
quoteData.setRole(user.getRole()); quoteData.setRole(user.getRole());
// 默认都是没选择店铺 // 默认都是没选择店铺
quoteData.setIsSelect("0"); quoteData.setIsSelect("0");
@@ -162,7 +162,7 @@
<!-- 查询3分钟内的数据 --> <!-- 查询3分钟内的数据 -->
<select id="getQuoteDataByMinutes" parameterType="String" resultType="String"> <select id="getQuoteDataByMinutes" parameterType="String" resultType="String">
SELECT SELECT
remarkJudge remark
FROM FROM
tbl_quote_data tbl_quote_data
WHERE id > WHERE id >
+4
View File
@@ -594,11 +594,15 @@
let role_list = [${sessionScope.USER_SESSION.role}]; let role_list = [${sessionScope.USER_SESSION.role}];
var system_isPdd = false; var system_isPdd = false;
var system_isGai = false; var system_isGai = false;
var system_isPddPrice = false;
shop_list.forEach(shop_id => { shop_list.forEach(shop_id => {
if (role_list.includes(shop_id)) { if (role_list.includes(shop_id)) {
system_isPdd = true; system_isPdd = true;
} }
}) })
if (role_list.includes(1045)) {
system_isPddPrice = true;
}
// shop_list_gai.forEach(shop_id => { // shop_list_gai.forEach(shop_id => {
// if (role_list.includes(shop_id)) { // if (role_list.includes(shop_id)) {
// system_isGai = false; // system_isGai = false;
+3
View File
@@ -446,6 +446,9 @@
if (window.parent.system_isGai) { if (window.parent.system_isGai) {
span_result += "\n\n亲 现在下单可以参加淘宝活动8.5折折扣哦!" span_result += "\n\n亲 现在下单可以参加淘宝活动8.5折折扣哦!"
} }
if (window.parent.system_isPddPrice) {
span_result += "\n\n周年庆专属福利:亲亲 当天下单立享9折优惠 加购其他产品可享85折优惠"
}
addLog(span_result); addLog(span_result);
$("#span_result").val(span_result); $("#span_result").val(span_result);
+4 -1
View File
@@ -4137,7 +4137,6 @@
data[i].number = number; data[i].number = number;
} }
} }
;
if (kind == "2") { if (kind == "2") {
span_result += '配送吊绳\n' span_result += '配送吊绳\n'
} }
@@ -4147,6 +4146,10 @@
span_result += "\n\n亲 现在下单可以参加淘宝活动8.5折折扣哦!" span_result += "\n\n亲 现在下单可以参加淘宝活动8.5折折扣哦!"
} }
if (window.parent.system_isPddPrice) {
span_result = span_result.replace("种子纸", "会发芽的纸");
}
addLog(span_result); addLog(span_result);
$("#span_result").val(span_result); $("#span_result").val(span_result);