记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
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
董敬伟
liquidnet-bus-v1
Commits
6a43f2d0
Commit
6a43f2d0
authored
Jul 20, 2021
by
anjiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dragon-do生成
parent
8d566eeb
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
104 additions
and
3 deletions
+104
-3
pom.xml
liquidnet-bus-feign/liquidnet-api-feign-dragon/pom.xml
+27
-0
FeignDragonTaskClient.java
...dnet/service/feign/dragon/task/FeignDragonTaskClient.java
+19
-0
pom.xml
liquidnet-bus-feign/pom.xml
+1
-0
DataUtils.java
...in/java/com/liquidnet/service/dragon/utils/DataUtils.java
+5
-3
pom.xml
...vice-executor-all/liquidnet-service-executor-main/pom.xml
+5
-0
DragonTaskHandler.java
...dnet/service/executor/main/handler/DragonTaskHandler.java
+20
-0
pom.xml
...-service-platform/liquidnet-service-platform-impl/pom.xml
+5
-0
DragonPayController.java
...rvice/platform/controller/dragon/DragonPayController.java
+22
-0
No files found.
liquidnet-bus-feign/liquidnet-api-feign-dragon/pom.xml
0 → 100644
View file @
6a43f2d0
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
liquidnet-bus-feign
</artifactId>
<groupId>
com.liquidnet
</groupId>
<version>
1.0-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
liquidnet-api-feign-dragon
</artifactId>
<properties>
<maven.compiler.source>
8
</maven.compiler.source>
<maven.compiler.target>
8
</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>
com.liquidnet
</groupId>
<artifactId>
liquidnet-service-dragon-api
</artifactId>
<version>
1.0-SNAPSHOT
</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
liquidnet-bus-feign/liquidnet-api-feign-dragon/src/main/java/com/liquidnet/service/feign/dragon/task/FeignDragonTaskClient.java
0 → 100644
View file @
6a43f2d0
package
com
.
liquidnet
.
service
.
feign
.
dragon
.
task
;
import
com.liquidnet.service.base.ResponseDto
;
import
feign.hystrix.FallbackFactory
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.stereotype.Component
;
import
org.springframework.web.bind.annotation.PostMapping
;
@Component
@FeignClient
(
name
=
"liquidnet-service-dragon"
,
contextId
=
"FeignDragonTaskClient"
,
path
=
""
,
url
=
"${liquidnet.url.platform}"
,
// url = "",
fallback
=
FallbackFactory
.
Default
.
class
)
public
interface
FeignDragonTaskClient
{
@PostMapping
(
"platform/dragon/handleNotifyFail"
)
ResponseDto
<
Boolean
>
handleNotifyFail
();
}
liquidnet-bus-feign/pom.xml
View file @
6a43f2d0
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
<modules>
<modules>
<module>
liquidnet-api-feign-adam
</module>
<module>
liquidnet-api-feign-adam
</module>
<module>
liquidnet-api-feign-kylin
</module>
<module>
liquidnet-api-feign-kylin
</module>
<module>
liquidnet-api-feign-dragon
</module>
<!-- <module>liquidnet-api-feign-sequence</module>-->
<!-- <module>liquidnet-api-feign-sequence</module>-->
<!-- <module>liquidnet-api-feign-example</module>-->
<!-- <module>liquidnet-api-feign-example</module>-->
<!-- <module>liquidnet-api-feign-account</module>-->
<!-- <module>liquidnet-api-feign-account</module>-->
...
...
liquidnet-bus-service/liquidnet-service-dragon/liquidnet-service-dragon-impl/src/main/java/com/liquidnet/service/dragon/utils/DataUtils.java
View file @
6a43f2d0
...
@@ -11,9 +11,11 @@ public class DataUtils {
...
@@ -11,9 +11,11 @@ public class DataUtils {
@Autowired
@Autowired
private
RedisUtil
redisUtil
;
private
RedisUtil
redisUtil
;
private
long
keyExpireTime
=
3600
*
24
*
7
;
public
void
createPayOrder
(
String
code
,
DragonOrdersDto
ordersDto
)
{
public
void
createPayOrder
(
String
code
,
DragonOrdersDto
ordersDto
)
{
if
(!
redisUtil
.
hasKey
(
DragonConstant
.
REDIS_KET_PAY_CODE
+
code
))
{
if
(!
redisUtil
.
hasKey
(
DragonConstant
.
REDIS_KET_PAY_CODE
+
code
))
{
redisUtil
.
set
(
DragonConstant
.
REDIS_KET_PAY_CODE
+
code
,
ordersDto
);
redisUtil
.
set
(
DragonConstant
.
REDIS_KET_PAY_CODE
+
code
,
ordersDto
,
keyExpireTime
);
}
}
}
}
...
@@ -25,11 +27,11 @@ public class DataUtils {
...
@@ -25,11 +27,11 @@ public class DataUtils {
}
}
public
void
updateOrderStatus
(
String
code
,
DragonOrdersDto
dragonOrdersDto
)
{
public
void
updateOrderStatus
(
String
code
,
DragonOrdersDto
dragonOrdersDto
)
{
redisUtil
.
set
(
DragonConstant
.
REDIS_KET_PAY_CODE
+
code
,
dragonOrdersDto
);
redisUtil
.
set
(
DragonConstant
.
REDIS_KET_PAY_CODE
+
code
,
dragonOrdersDto
,
keyExpireTime
);
}
}
public
void
setRefundNotifyUrl
(
String
code
,
String
notifyUrl
)
{
public
void
setRefundNotifyUrl
(
String
code
,
String
notifyUrl
)
{
redisUtil
.
set
(
DragonConstant
.
REFUND_REDIS_KET
+
code
,
notifyUrl
);
redisUtil
.
set
(
DragonConstant
.
REFUND_REDIS_KET
+
code
,
notifyUrl
,
keyExpireTime
);
}
}
public
String
getRefundNotifyUrl
(
String
code
)
{
public
String
getRefundNotifyUrl
(
String
code
)
{
...
...
liquidnet-bus-service/liquidnet-service-executor-all/liquidnet-service-executor-main/pom.xml
View file @
6a43f2d0
...
@@ -21,6 +21,11 @@
...
@@ -21,6 +21,11 @@
<artifactId>
liquidnet-api-feign-kylin
</artifactId>
<artifactId>
liquidnet-api-feign-kylin
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<version>
1.0-SNAPSHOT
</version>
</dependency>
</dependency>
<dependency>
<groupId>
com.liquidnet
</groupId>
<artifactId>
liquidnet-api-feign-dragon
</artifactId>
<version>
1.0-SNAPSHOT
</version>
</dependency>
</dependencies>
</dependencies>
...
...
liquidnet-bus-service/liquidnet-service-executor-all/liquidnet-service-executor-main/src/main/java/com/liquidnet/service/executor/main/handler/DragonTaskHandler.java
0 → 100644
View file @
6a43f2d0
package
com
.
liquidnet
.
service
.
executor
.
main
.
handler
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Component
;
/**
* @author AnJiabin <anjiabin@zhengzai.tv>
* @version V1.0
* @Description: TODO
* @class: DragonTaskHandler
* @Package com.liquidnet.service.executor.main.handler
* @Copyright: LightNet @ Copyright (c) 2021
* @date 2021/7/20 14:02
*/
@Slf4j
@Component
public
class
DragonTaskHandler
{
// @Autowired
// private FeignDragonTaskClient feignDragonTaskClient;
}
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/pom.xml
View file @
6a43f2d0
...
@@ -72,6 +72,11 @@
...
@@ -72,6 +72,11 @@
<artifactId>
liquidnet-service-adam-api
</artifactId>
<artifactId>
liquidnet-service-adam-api
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<version>
1.0-SNAPSHOT
</version>
</dependency>
</dependency>
<dependency>
<groupId>
com.liquidnet
</groupId>
<artifactId>
liquidnet-service-dragon-api
</artifactId>
<version>
1.0-SNAPSHOT
</version>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/controller/dragon/DragonPayController.java
0 → 100644
View file @
6a43f2d0
package
com
.
liquidnet
.
service
.
platform
.
controller
.
dragon
;
import
io.swagger.annotations.Api
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* @author AnJiabin <anjiabin@zhengzai.tv>
* @version V1.0
* @Description: TODO
* @class: DragonPayController
* @Package com.liquidnet.service.platform.controller.dragon
* @Copyright: LightNet @ Copyright (c) 2021
* @date 2021/7/20 14:11
*/
@Api
(
tags
=
"前端-订单相关"
)
@RestController
@RequestMapping
(
"dragon"
)
@Validated
public
class
DragonPayController
{
}
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