Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
优化:给sku菜单的列表增加一列”库存数量“,查询的sql独立出来成文件。
- Loading branch information
Showing
8 changed files
with
30 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* sku.list */ | ||
select t1.id as 'g.id', t1.cate_code as 'g.cate_code', t1.gname as 'g.gname' | ||
, t.id as 'sc.id', t.sid as 'sc.sid', t.model as 'sc.model', t.img as 'sc.img', t.pprice as 'sc.pprice', t1.id as 'sc.goods_id' | ||
, sum(t2.count) as 'sc.count' | ||
from t_sku t | ||
inner join t_goods t1 on t1.id = t.goods_id | ||
inner join t_sku_more t2 on t2.sku_id = t.id | ||
where t.state = @t_state and t1.state = @t1_state | ||
and t1.cate_code like @cate_code | ||
and (t.sid like @qcond or t1.gname like @qcond) | ||
group by t.id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,4 @@ | ||
db.driver=com.mysql.jdbc.Driver | ||
db.url=jdbc:mysql://localhost:3306/mz-g?characterEncoding=utf-8 | ||
db.username=root | ||
db.password=000000 | ||
|
||
db.testWhileIdle=true | ||
db.validationQuery=select 1 | ||
db.maxActive=2 | ||
db.filters=mergeStat | ||
db.connectionProperties=druid.stat.slowSqlMillis=2000 | ||
db.password=000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters