Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
shop
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
shop
Commits
87469c5d
Commit
87469c5d
authored
Nov 15, 2018
by
zhangyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
898a8ccf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
SolrConfig.java
src/main/java/com/egolm/shop/config/SolrConfig.java
+2
-1
GoodsServiceImpl.java
...in/java/com/egolm/shop/service/impl/GoodsServiceImpl.java
+1
-1
No files found.
src/main/java/com/egolm/shop/config/SolrConfig.java
View file @
87469c5d
...
@@ -8,11 +8,12 @@ import org.springframework.context.annotation.Configuration;
...
@@ -8,11 +8,12 @@ import org.springframework.context.annotation.Configuration;
@Configuration
@Configuration
public
class
SolrConfig
{
public
class
SolrConfig
{
@Value
(
"
solr.baseURL
"
)
@Value
(
"
${solr.baseURL}
"
)
private
String
baseURL
;
private
String
baseURL
;
@Bean
@Bean
public
HttpSolrClient
httpSolrClient
()
{
public
HttpSolrClient
httpSolrClient
()
{
System
.
out
.
println
(
baseURL
);
return
new
HttpSolrClient
(
baseURL
);
return
new
HttpSolrClient
(
baseURL
);
}
}
...
...
src/main/java/com/egolm/shop/service/impl/GoodsServiceImpl.java
View file @
87469c5d
...
@@ -193,7 +193,7 @@ public class GoodsServiceImpl implements GoodsService {
...
@@ -193,7 +193,7 @@ public class GoodsServiceImpl implements GoodsService {
Page
page
=
new
Page
();
Page
page
=
new
Page
();
page
.
setIndex
(
Util
.
objTo
(
map
.
get
(
"index"
),
Long
.
class
));
page
.
setIndex
(
Util
.
objTo
(
map
.
get
(
"index"
),
Long
.
class
));
page
.
setLimit
(
Util
.
objTo
(
map
.
get
(
"limit"
),
Long
.
class
));
page
.
setLimit
(
Util
.
objTo
(
map
.
get
(
"limit"
),
Long
.
class
));
page
.
setLimitKey
(
"
nGoodsID
"
);
page
.
setLimitKey
(
"
nGoodsID desc
"
);
//分类
//分类
if
(
StringUtil
.
isNotBlank
(
map
.
get
(
"categoryID"
))){
if
(
StringUtil
.
isNotBlank
(
map
.
get
(
"categoryID"
))){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment