Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
DuibaTestToolV2.1
Project
Project
Details
Activity
Releases
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
赵然
DuibaTestToolV2.1
Commits
ed887bac
Commit
ed887bac
authored
Apr 10, 2020
by
赵然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'zr'
parent
b6786341
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
379 additions
and
67 deletions
+379
-67
Maven__commons_logging_commons_logging_1_2.xml
.../libraries/Maven__commons_logging_commons_logging_1_2.xml
+0
-13
CreatUrlModule.java
src/main/com/atguigu/springmvc/handlers/CreatUrlModule.java
+2
-3
RankModule.java
src/main/com/atguigu/springmvc/handlers/RankModule.java
+375
-50
SqlService.java
src/main/com/atguigu/springmvc/service/SqlService.java
+2
-1
No files found.
.idea/libraries/Maven__commons_logging_commons_logging_1_2.xml
deleted
100644 → 0
View file @
b6786341
<component
name=
"libraryTable"
>
<library
name=
"Maven: commons-logging:commons-logging:1.2"
>
<CLASSES>
<root
url=
"jar://$MAVEN_REPOSITORY$/commons-logging/commons-logging/1.2/commons-logging-1.2.jar!/"
/>
</CLASSES>
<JAVADOC>
<root
url=
"jar://$MAVEN_REPOSITORY$/commons-logging/commons-logging/1.2/commons-logging-1.2-javadoc.jar!/"
/>
</JAVADOC>
<SOURCES>
<root
url=
"jar://$MAVEN_REPOSITORY$/commons-logging/commons-logging/1.2/commons-logging-1.2-sources.jar!/"
/>
</SOURCES>
</library>
</component>
\ No newline at end of file
src/main/com/atguigu/springmvc/handlers/CreatUrlModule.java
View file @
ed887bac
...
@@ -7,11 +7,9 @@ import org.springframework.stereotype.Controller;
...
@@ -7,11 +7,9 @@ import org.springframework.stereotype.Controller;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.servlet.ModelAndView
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
java.net.URLEncoder
;
import
java.net.URLEncoder
;
import
java.util.Base64
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -65,13 +63,14 @@ public class CreatUrlModule {
...
@@ -65,13 +63,14 @@ public class CreatUrlModule {
System
.
out
.
println
(
"userId为:"
+
userId
);
System
.
out
.
println
(
"userId为:"
+
userId
);
System
.
out
.
println
(
"credits为:"
+
credits
);
System
.
out
.
println
(
"credits为:"
+
credits
);
System
.
out
.
println
(
"dcustom为:"
+
dcustom
);
System
.
out
.
println
(
"dcustom为:"
+
dcustom
);
System
.
out
.
println
(
"type为:"
+
type
);
CreditTool
tool
=
new
CreditTool
(
appkey
,
appsecret
);
CreditTool
tool
=
new
CreditTool
(
appkey
,
appsecret
);
Map
<
String
,
String
>
params
=
new
HashMap
<
String
,
String
>();
Map
<
String
,
String
>
params
=
new
HashMap
<
String
,
String
>();
params
.
put
(
"uid"
,
userId
);
params
.
put
(
"uid"
,
userId
);
params
.
put
(
"credits"
,
credits
);
params
.
put
(
"credits"
,
credits
);
if
(
dcustom
!=
null
&&
dcustom
!=
""
&&
dcustom
!=
"null"
)
{
if
(
dcustom
!=
null
&&
dcustom
!=
""
&&
dcustom
!=
"null"
)
{
if
(
type
.
equals
(
"1"
)||
type
==
null
)
{
if
(
type
==
null
||
type
.
equals
(
"1"
)
)
{
params
.
put
(
"dcustom"
,
dcustom
);
params
.
put
(
"dcustom"
,
dcustom
);
}
else
{
}
else
{
params
.
put
(
"dcustom"
,
URLEncoder
.
encode
(
dcustom
,
"UTF-8"
));
params
.
put
(
"dcustom"
,
URLEncoder
.
encode
(
dcustom
,
"UTF-8"
));
...
...
src/main/com/atguigu/springmvc/handlers/RankModule.java
View file @
ed887bac
This diff is collapsed.
Click to expand it.
src/main/com/atguigu/springmvc/service/SqlService.java
View file @
ed887bac
...
@@ -17,7 +17,7 @@ public class SqlService {
...
@@ -17,7 +17,7 @@ public class SqlService {
private
String
pass
=
"qwe123"
;
private
String
pass
=
"qwe123"
;
private
String
aliyun
=
"false"
;
private
String
aliyun
=
"false"
;
//只查一条结果
public
Response
findSimpleResult
(
String
sql
)
throws
Exception
{
public
Response
findSimpleResult
(
String
sql
)
throws
Exception
{
Map
<
String
,
String
>
map
=
new
HashMap
<>();
Map
<
String
,
String
>
map
=
new
HashMap
<>();
...
@@ -31,6 +31,7 @@ public class SqlService {
...
@@ -31,6 +31,7 @@ public class SqlService {
}
}
//查询一组结果
public
Response
findModeResult
(
String
sql
)
throws
Exception
{
public
Response
findModeResult
(
String
sql
)
throws
Exception
{
Map
<
String
,
String
>
map
=
new
HashMap
<>();
Map
<
String
,
String
>
map
=
new
HashMap
<>();
...
...
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