Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
store-system
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
luoyangfei
store-system
Commits
02533198
Commit
02533198
authored
Nov 12, 2018
by
wangyihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 过滤条件, 删除不用的controller
parent
380fd545
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
25 deletions
+15
-25
IndexController.java
...main/java/cn/com/fqy/controller/mapi/IndexController.java
+15
-8
hello.java
...ystem/src/main/java/cn/com/fqy/controller/mapi/hello.java
+0
-17
No files found.
2code/server/store-system/src/main/java/cn/com/fqy/controller/mapi/IndexController.java
View file @
02533198
...
...
@@ -136,19 +136,26 @@ public class IndexController {
store
.
setIsDeleted
(
0
);
// 未删除
store
.
setIsAvailable
(
1
);
// 店铺启用状态
store
.
setIsShopping
(
1
);
// 店铺展示状态
String
str
=
store
.
getConsumeInterval
();
String
[]
arrStr
=
str
.
split
(
"-"
);
int
firstNumber
=
Integer
.
valueOf
(
arrStr
[
0
]);
int
lastNUmber
=
Integer
.
valueOf
(
arrStr
[
1
]);
store
.
setConsumeInterval
(
null
);
int
firstNumber
=
0
;
int
lastNUmber
=
0
;
if
(
store
.
getConsumeInterval
()
!=
null
&&
!
""
.
equals
(
store
.
getConsumeInterval
()))
{
String
str
=
store
.
getConsumeInterval
();
String
[]
arrStr
=
str
.
split
(
"-"
);
firstNumber
=
Integer
.
valueOf
(
arrStr
[
0
]);
lastNUmber
=
Integer
.
valueOf
(
arrStr
[
1
]);
store
.
setConsumeInterval
(
null
);
}
List
<
Store
>
storelist
=
storeService
.
getStoreList
(
new
Query
(
store
));
if
(
storelist
.
size
()
>
0
&&
storelist
!=
null
)
{
for
(
Store
list
:
storelist
)
{
String
[]
strQuery
=
list
.
getConsumeInterval
().
split
(
"-"
);
int
firstNumber1
=
Integer
.
valueOf
(
strQuery
[
0
]);
int
lastNUmber1
=
Integer
.
valueOf
(
strQuery
[
1
]);
if
(
lastNUmber1
<
firstNumber
||
firstNumber1
>
lastNUmber
)
{
continue
;
if
(
firstNumber
!=
0
||
lastNUmber
!=
0
)
{
if
(
lastNUmber1
<
firstNumber
||
firstNumber1
>
lastNUmber
)
{
continue
;
}
}
listQuery
.
add
(
list
);
}
...
...
@@ -204,7 +211,7 @@ public class IndexController {
if
(
workerlist
.
size
()
>
0
&&
workerlist
!=
null
)
{
for
(
Worker
list
:
workerlist
)
{
int
hegit
=
Integer
.
valueOf
(
list
.
getWorkerHeight
());
if
(
firstNumber
!=
0
&&
lastNUmber
!=
0
)
{
if
(
firstNumber
!=
0
||
lastNUmber
!=
0
)
{
if
(
hegit
<
firstNumber
||
hegit
>
lastNUmber
)
{
continue
;
}
...
...
2code/server/store-system/src/main/java/cn/com/fqy/controller/mapi/hello.java
deleted
100644 → 0
View file @
380fd545
package
cn
.
com
.
fqy
.
controller
.
mapi
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
@Controller
@RequestMapping
(
"hello"
)
public
class
hello
{
@RequestMapping
(
"fqy"
)
@ResponseBody
public
String
fqy
(){
return
"fqy"
;
}
}
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