Browse Source

bug修改

dev
wangfukang 2 years ago
parent
commit
469b9c5bef
  1. 8
      hiver-admin/src/main/resources/application.yml
  2. 18
      hiver-admin/test-output/test-report.html
  3. 4
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/serviceimpl/mybatis/ProductServiceImpl.java
  4. 2
      hiver-modules/hiver-mall/src/main/resources/mapper/ProductCategoryMapper.xml

8
hiver-admin/src/main/resources/application.yml

@ -25,8 +25,8 @@ spring:
timeout-per-shutdown-phase: 10S
# 数据源
datasource:
# url: jdbc:mysql://154.8.162.157:3306/hiver_shop?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true&allowMultiQueries=true
url: jdbc:mysql://8.140.198.243:3306/hiver_shop?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true&allowMultiQueries=true
url: jdbc:mysql://154.8.162.157:3306/hiver_shop?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true&allowMultiQueries=true
# url: jdbc:mysql://8.140.198.243:3306/hiver_shop?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true&allowMultiQueries=true
username: reddoor
# Jasypt加密 可到common-utils中找到JasyptUtil加解密工具类生成加密结果 格式为ENC(加密结果) 以下解密结果为123456
password: ENC(Zla4U4+yRLPhicvuX2TmiEgxEpzP4dk8BHzFDEtiEhwLQIIaftZrrEUJZce6efoe)
@ -67,8 +67,8 @@ spring:
ddl-auto: update
# Redis 若设有密码自行添加配置password
redis:
# host: 154.8.162.157
host: 8.140.198.243
host: 154.8.162.157
# host: 8.140.198.243
password: reddoor168
# 数据库索引 默认0
database: 1

18
hiver-admin/test-output/test-report.html

@ -5,7 +5,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Hiver测试报告</title>
<title>Hiver测试报告</title>
<link rel="apple-touch-icon" href="spark/logo.png">
<link rel="shortcut icon" href="spark/logo.png">
<link rel="stylesheet" href="spark/spark-style.css">
@ -35,7 +35,7 @@
<a href="#"><span class="badge badge-primary">Hiver</span></a>
</li>
<li class="m-r-10">
<a href="#"><span class="badge badge-primary">九月 26, 2024 22:44:51</span></a>
<a href="#"><span class="badge badge-primary">九月 27, 2024 09:25:36</span></a>
</li>
</ul>
</div>
@ -84,7 +84,7 @@
<div class="test-detail">
<span class="meta text-white badge badge-sm"></span>
<p class="name">passTest</p>
<p class="text-sm"><span>22:44:52 下</span> / <span>0.012 secs</span></p>
<p class="text-sm"><span>09:25:36 上</span> / <span>0.016 secs</span></p>
</div>
<div class="test-contents d-none">
<div class="detail-head">
@ -92,9 +92,9 @@
<div class="info">
<div class='float-right'><span class='badge badge-default'>#test-id=1</span></div>
<h5 class="test-status text-pass">passTest</h5>
<span class='badge badge-success'>09.26.2024 22:44:52</span>
<span class='badge badge-danger'>09.26.2024 22:44:52</span>
<span class='badge badge-default'>0.012 secs</span>
<span class='badge badge-success'>09.27.2024 09:25:36</span>
<span class='badge badge-danger'>09.27.2024 09:25:36</span>
<span class='badge badge-default'>0.016 secs</span>
</div>
<div class="m-t-10 m-l-5"></div>
</div>
@ -104,7 +104,7 @@
<tbody>
<tr class="event-row">
<td><span class="badge log pass-bg">Pass</span></td>
<td>22:44:52</td>
<td>9:25:36</td>
<td>
Test passed
</td>
@ -128,13 +128,13 @@
<div class="col-md-3">
<div class="card"><div class="card-body">
<p class="m-b-0">Started</p>
<h3>九月 26, 2024 22:44:51</h3>
<h3>九月 27, 2024 09:25:36</h3>
</div></div>
</div>
<div class="col-md-3">
<div class="card"><div class="card-body">
<p class="m-b-0">Ended</p>
<h3>九月 26, 2024 22:44:52</h3>
<h3>九月 27, 2024 09:25:36</h3>
</div></div>
</div>
<div class="col-md-3">

4
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/serviceimpl/mybatis/ProductServiceImpl.java

@ -168,10 +168,12 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
}
for (Product product : byProductSn) {
product.setBuyCount(buyCountMap.getOrDefault(product.getId(), 0));
}
}
for (Product product : byProductSn) {
final List<Stock> stockList = stockService.getProductStock(product.getId());
product.setStockList(stockList);
}
}
return byProductSn;
}

2
hiver-modules/hiver-mall/src/main/resources/mapper/ProductCategoryMapper.xml

@ -285,7 +285,7 @@
<select id="getCategoryListByShopId" parameterType="java.lang.String" resultType="cc.hiver.mall.pojo.vo.ProductCategoryVo2">
SELECT
sum( count ) AS count,
sum( stockCount ) AS stock_count,
sum( stock_count ) AS stock_count,
sum( minus_stock_count ) AS minus_stock_count,
dd.id,
dd.category_name,

Loading…
Cancel
Save