Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ufo
/
yohoufo-fore
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
mali
6 years ago
Commit
5df95dfedbae862ad2bea63f5faa5bb31389dab3
1 parent
1b323d4b
test
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletions
product/src/main/java/com/yohoufo/product/controller/test/TestSynDbController.java
product/src/main/java/com/yohoufo/product/controller/test/TestSynDbController.java
View file @
5df95df
...
...
@@ -5,25 +5,41 @@ import com.yohoufo.common.ApiResponse;
import
com.yohoufo.common.annotation.IgnoreSession
;
import
com.yohoufo.common.annotation.IgnoreSignature
;
import
com.yohoufo.dal.order.SellerWalletMapper
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.concurrent.atomic.AtomicInteger
;
/**
* Created by li.ma on 2018/11/21.
*/
@RestController
public
class
TestSynDbController
{
private
final
Logger
LOG
=
LoggerFactory
.
getLogger
(
TestSynDbController
.
class
);
@Autowired
private
SellerWalletMapper
sellerWalletMapperl
;
private
AtomicInteger
count
=
new
AtomicInteger
(
0
);
@ApiOperation
(
name
=
"ufo.product.testSynDb"
,
desc
=
"测试"
)
@IgnoreSignature
@IgnoreSession
@RequestMapping
(
params
=
"method=ufo.product.testSynDb"
)
public
ApiResponse
testSynDb
()
{
sellerWalletMapperl
.
updateMoneyForTest
();
count
.
addAndGet
(
1
);
try
{
sellerWalletMapperl
.
updateMoneyForTest
();
count
.
addAndGet
(
1
);
}
catch
(
Throwable
e
)
{
LOG
.
error
(
"1999922222222344"
);
}
LOG
.
info
(
"testSynDb count is {}"
,
count
.
get
());
return
new
ApiResponse
.
ApiResponseBuilder
().
code
(
200
).
message
(
"热搜词列表"
).
build
();
}
}
...
...
Please
register
or
login
to post a comment