运动世界项目bug处理

store项目

问题:一直出现403图片,证明权限不足

解决方法:添加语句<meta name="referrer" content="no-referrer">
发现该文件是引入了别的地址的JSP<c:import url="${htmlPath}/header.html" charEncoding="utf-8"/>,找到<c:set var="htmlPath" value="${redis:getSysConfig('in_path_html_store')}"/>值为https: //shangjia.xiongyutiaotiao.com/html修改redis中key为systemConfig_in_path_html_store的val。设置为/WEB-INF/html,引用项目本身的header.html,成功运行

问题:商品无法发货

1
insert into shop_shipping (shippingId, ordersId, shippingSn, deliveryCorpName, deliverySn, createDate, deliveryUrl, code, state, expressInfo, isTrace)values (null, 6869, '19111210180012484220962', '百世快递', 'YT2020572422120', '2019-11-12 10:18:00.124', 'http://www.800bestex.com/', 'huitongkuaidi', null, null, 1)

发现数据库中没有isTrace字段,所以删除

问题:商品规格中需要添加市场价格,销售价格,进货价格,商品库存,将基本信息中的取消

解决:

首先在specification.JSP中添加

1
2
3
4
5
selectedSpecificationValuesHtmlStr += "<td><input type='text'  id='marketPrice' name='marketPrice' placeholder='请输入市场价格'></td>";
selectedSpecificationValuesHtmlStr += "<td><input type='text' oninput='profitCalculation(this)' id='salesPrice' name='salesPrice' placeholder='请输入销售价格'></td>";
selectedSpecificationValuesHtmlStr += "<td><input type='text' oninput='profitCalculation(this)' id='costPrice' name='costPrice' placeholder='请输入进货价格'></td>";
selectedSpecificationValuesHtmlStr += "<td><input type='text' id='storeNumber' name='storeNumber' placeholder='请输入商品库存'></td>";
selectedSpecificationValuesHtmlStr += "<td class='toleft_td'><span id='profit'></span></td>";

再在ShopProductInfoService类saveShopProductSpecificationValue方法中 添加

1
2
3
4
5
6
7
8
9
10
11
12
i++;
if (i > 2) {
String[] thirdSplit = ss.split("=");
if ("marketPrice".equals(thirdSplit[0])) {
productInfo.setMarketPrice(new BigDecimal(thirdSplit[1]));
} else if ("salesPrice".equals(thirdSplit[0])) {
productInfo.setSalesPrice(new BigDecimal(thirdSplit[1]));
} else if ("costPrice".equals(thirdSplit[0])) {
productInfo.setCostPrice(new BigDecimal(thirdSplit[1]));
} else if ("storeNumber".equals(thirdSplit[0])) {
productInfo.setStoreNumber(Integer.parseInt(thirdSplit[1]));
}

问题:要求不同规格有各自的毛利率显示,要求id不变,能够取到对应的值

1
2
3
4
5
6
7
8
9
10
11
12
13
selectedSpecificationValuesHtmlStr += "<td><input type='text' oninput='profitCalculation(this)' id='salesPrice' name='salesPrice' placeholder='请输入销售价格'></td>";
selectedSpecificationValuesHtmlStr += "<td><input type='text' oninput='profitCalculation(this)' id='costPrice' name='costPrice' placeholder='请输入进货价格'></td>";
selectedSpecificationValuesHtmlStr += "<td><input type='text' id='storeNumber' name='storeNumber' placeholder='请输入商品库存'></td>";
selectedSpecificationValuesHtmlStr += "<td><span id='profit'></span></td>";

function profitCalculation(e) {
// 寻找点击对象的父类tr标签
var parent = $(e).parents('tr');
// 去寻找对应的值
var salesPrice = parseFloat(parent.find("#salesPrice").val());
var costPrice = parseFloat(parent.find("#costPrice").val());
parent.find("#profit").html((salesPrice - costPrice) / salesPrice);
}

问题:添加左侧运费模板

注意:需要联动basic_purview和basic_actor_purview和basic_actor三张表,前两表的purviewId需要相同,后两表的actorId需相同

赏个🍗吧
0%