记得上下班打卡 | 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
b9c6aa89
Commit
b9c6aa89
authored
Jun 30, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into test
parents
21a4ace3
70c4ca5a
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
60 additions
and
34 deletions
+60
-34
application-dev.yml
liquidnet-bus-config/liquidnet-config/application-dev.yml
+3
-1
application-test.yml
liquidnet-bus-config/liquidnet-config/application-test.yml
+3
-1
liquidnet-service-executor-main-dev.yml
.../liquidnet-config/liquidnet-service-executor-main-dev.yml
+2
-0
liquidnet-service-executor-main-test.yml
...liquidnet-config/liquidnet-service-executor-main-test.yml
+2
-0
FeignPlatformTaskClient.java
...net/service/feign/kylin/task/FeignPlatformTaskClient.java
+1
-0
KylinTaskHandler.java
...idnet/service/executor/main/handler/KylinTaskHandler.java
+1
-0
pom.xml
...uidnet-service-kylin/liquidnet-service-kylin-impl/pom.xml
+2
-3
ServiceKylinApplication.java
...n/java/com/liquidnet/service/ServiceKylinApplication.java
+4
-10
KylinOrderTicketsServiceImpl.java
...vice/kylin/service/impl/KylinOrderTicketsServiceImpl.java
+2
-2
pom.xml
...uidnet-service-order/liquidnet-service-order-impl/pom.xml
+15
-8
ServiceOrderApplication.java
...n/java/com/liquidnet/service/ServiceOrderApplication.java
+6
-9
OrderWebMvcConfig.java
...com/liquidnet/service/order/config/OrderWebMvcConfig.java
+19
-0
No files found.
liquidnet-bus-config/liquidnet-config/application-dev.yml
View file @
b9c6aa89
...
@@ -53,6 +53,8 @@ liquidnet:
...
@@ -53,6 +53,8 @@ liquidnet:
localUrl
:
http://devorder.zhengzai.tv/order/order/syncOrder
localUrl
:
http://devorder.zhengzai.tv/order/order/syncOrder
url-service
:
url-service
:
url
:
http://testservice.zhengzai.tv/
url
:
http://testservice.zhengzai.tv/
platform
:
url
:
http://devplatform.zhengzai.tv
executor-main
:
executor-main
:
xxl
:
xxl
:
admin
:
admin
:
...
@@ -72,4 +74,4 @@ liquidnet:
...
@@ -72,4 +74,4 @@ liquidnet:
sk
:
21e9a70f677a2bf29dfa2b3bead4f018
sk
:
21e9a70f677a2bf29dfa2b3bead4f018
appid
:
557104628450889728
appid
:
557104628450889728
custid
:
7551234567
custid
:
7551234567
#application-dev-end
#application-dev-end
\ No newline at end of file
liquidnet-bus-config/liquidnet-config/application-test.yml
View file @
b9c6aa89
...
@@ -50,6 +50,8 @@ liquidnet:
...
@@ -50,6 +50,8 @@ liquidnet:
localUrl
:
http://testkylin.zhengzai.tv/kylin/order/syncOrder
localUrl
:
http://testkylin.zhengzai.tv/kylin/order/syncOrder
url-service
:
url-service
:
url
:
http://testservice.zhengzai.tv/
url
:
http://testservice.zhengzai.tv/
platform
:
url
:
http://testplatform.zhengzai.tv
executor-main
:
executor-main
:
xxl
:
xxl
:
admin
:
admin
:
...
@@ -68,4 +70,4 @@ liquidnet:
...
@@ -68,4 +70,4 @@ liquidnet:
url
:
"
https://butler-dev-ms.sf-express.com"
url
:
"
https://butler-dev-ms.sf-express.com"
sk
:
21e9a70f677a2bf29dfa2b3bead4f018
sk
:
21e9a70f677a2bf29dfa2b3bead4f018
appid
:
557104628450889728
appid
:
557104628450889728
custid
:
7551234567
custid
:
7551234567
\ No newline at end of file
liquidnet-bus-config/liquidnet-config/liquidnet-service-executor-main-dev.yml
View file @
b9c6aa89
...
@@ -21,3 +21,5 @@ liquidnet:
...
@@ -21,3 +21,5 @@ liquidnet:
appname
:
liquidnet-service-executor
appname
:
liquidnet-service-executor
# Job执行器运行日志,注意目录读写权限
# Job执行器运行日志,注意目录读写权限
logpath
:
/data/logs/job
logpath
:
/data/logs/job
url
:
paltform
:
${liquidnet.service.platform.url}
liquidnet-bus-config/liquidnet-config/liquidnet-service-executor-main-test.yml
View file @
b9c6aa89
...
@@ -21,3 +21,5 @@ liquidnet:
...
@@ -21,3 +21,5 @@ liquidnet:
appname
:
liquidnet-service-executor
appname
:
liquidnet-service-executor
# Job执行器运行日志,注意目录读写权限
# Job执行器运行日志,注意目录读写权限
logpath
:
/data/logs/job
logpath
:
/data/logs/job
url
:
paltform
:
${liquidnet.service.platform.url}
liquidnet-bus-feign/liquidnet-api-feign-kylin/src/main/java/com/liquidnet/service/feign/kylin/task/FeignPlatformTaskClient.java
View file @
b9c6aa89
...
@@ -9,6 +9,7 @@ import org.springframework.web.bind.annotation.PostMapping;
...
@@ -9,6 +9,7 @@ import org.springframework.web.bind.annotation.PostMapping;
@Component
@Component
@FeignClient
(
name
=
"liquidnet-service-platform"
,
@FeignClient
(
name
=
"liquidnet-service-platform"
,
contextId
=
"FeignPlatformTaskClient"
,
path
=
""
,
contextId
=
"FeignPlatformTaskClient"
,
path
=
""
,
url
=
"${liquidnet.url.platform}"
,
fallback
=
FallbackFactory
.
Default
.
class
)
fallback
=
FallbackFactory
.
Default
.
class
)
public
interface
FeignPlatformTaskClient
{
public
interface
FeignPlatformTaskClient
{
...
...
liquidnet-bus-service/liquidnet-service-executor-all/liquidnet-service-executor-main/src/main/java/com/liquidnet/service/executor/main/handler/KylinTaskHandler.java
View file @
b9c6aa89
package
com
.
liquidnet
.
service
.
executor
.
main
.
handler
;
package
com
.
liquidnet
.
service
.
executor
.
main
.
handler
;
import
com.liquidnet.commons.lang.util.HttpUtil
;
import
com.liquidnet.service.feign.kylin.task.FeignPlatformTaskClient
;
import
com.liquidnet.service.feign.kylin.task.FeignPlatformTaskClient
;
import
com.xxl.job.core.biz.model.ReturnT
;
import
com.xxl.job.core.biz.model.ReturnT
;
import
com.xxl.job.core.handler.annotation.XxlJob
;
import
com.xxl.job.core.handler.annotation.XxlJob
;
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/pom.xml
View file @
b9c6aa89
...
@@ -35,8 +35,6 @@
...
@@ -35,8 +35,6 @@
<version>
1.0-SNAPSHOT
</version>
<version>
1.0-SNAPSHOT
</version>
<scope>
compile
</scope>
<scope>
compile
</scope>
</dependency>
</dependency>
<!-- other -->
<dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-data-mongodb
</artifactId>
<artifactId>
spring-boot-starter-data-mongodb
</artifactId>
...
@@ -46,8 +44,9 @@
...
@@ -46,8 +44,9 @@
<groupId>
com.liquidnet
</groupId>
<groupId>
com.liquidnet
</groupId>
<artifactId>
liquidnet-api-feign-adam
</artifactId>
<artifactId>
liquidnet-api-feign-adam
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<version>
1.0-SNAPSHOT
</version>
<scope>
compile
</scope>
</dependency>
</dependency>
<!-- other -->
<dependency>
<dependency>
<groupId>
taobao-sdk-impl
</groupId>
<groupId>
taobao-sdk-impl
</groupId>
<artifactId>
taobao-sdk-impl
</artifactId>
<artifactId>
taobao-sdk-impl
</artifactId>
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/ServiceKylinApplication.java
View file @
b9c6aa89
package
com
.
liquidnet
.
service
;
package
com
.
liquidnet
.
service
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.mybatis.spring.annotation.MapperScan
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.CommandLineRunner
;
import
org.springframework.boot.CommandLineRunner
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.core.env.Environment
;
import
org.springframework.core.env.Environment
;
import
org.springframework.data.mongodb.MongoDbFactory
;
import
org.springframework.data.mongodb.MongoTransactionManager
;
import
java.net.InetAddress
;
import
java.net.InetAddress
;
import
java.net.UnknownHostException
;
import
java.util.Arrays
;
import
java.util.Arrays
;
@Slf4j
@Slf4j
...
@@ -29,20 +23,20 @@ public class ServiceKylinApplication implements CommandLineRunner {
...
@@ -29,20 +23,20 @@ public class ServiceKylinApplication implements CommandLineRunner {
}
}
@Override
@Override
public
void
run
(
String
...
strings
)
throws
Exception
{
public
void
run
(
String
...
strings
)
{
try
{
try
{
log
.
info
(
"\n----------------------------------------------------------\n\t"
+
log
.
info
(
"\n----------------------------------------------------------\n\t"
+
"Application '{}' is running! Access URLs:\n\t"
+
"Application '{}' is running! Access URLs:\n\t"
+
"Local: \t\thttp://127.0.0.1:{}\n\t"
+
"Local: \t\thttp://127.0.0.1:{}\n\t"
+
"External: \thttp://{}:{}\n\t"
+
"External: \thttp://{}:{}
{}/doc.html
\n\t"
+
"Profile(s): \t{}\n----------------------------------------------------------"
,
"Profile(s): \t{}\n----------------------------------------------------------"
,
environment
.
getProperty
(
"spring.application.name"
),
environment
.
getProperty
(
"spring.application.name"
),
environment
.
getProperty
(
"server.port"
),
environment
.
getProperty
(
"server.port"
),
InetAddress
.
getLocalHost
().
getHostAddress
(),
InetAddress
.
getLocalHost
().
getHostAddress
(),
environment
.
getProperty
(
"server.port"
),
environment
.
getProperty
(
"server.port"
),
environment
.
getProperty
(
"server.servlet.context-path"
),
Arrays
.
toString
(
environment
.
getActiveProfiles
()));
Arrays
.
toString
(
environment
.
getActiveProfiles
()));
}
catch
(
UnknownHost
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
}
}
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/service/impl/KylinOrderTicketsServiceImpl.java
View file @
b9c6aa89
...
@@ -996,14 +996,14 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
...
@@ -996,14 +996,14 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
}
}
List
<
KylinOrderRefundsOrderCodeVo
>
orderRefundsVoBaseList
=
new
ArrayList
<>();
List
<
KylinOrderRefundsOrderCodeVo
>
orderRefundsVoBaseList
=
new
ArrayList
<>();
for
(
KylinOrderRefundsVo
item
:
dataUtils
.
getOrderRefundVoByOrderId
(
orderId
))
{
List
<
KylinOrderRefundsVo
>
orderRefundsVoList
=
dataUtils
.
getOrderRefundVoByOrderId
(
orderId
);
for
(
KylinOrderRefundsVo
item
:
orderRefundsVoList
)
{
KylinOrderRefundsOrderCodeVo
data
=
new
KylinOrderRefundsOrderCodeVo
();
KylinOrderRefundsOrderCodeVo
data
=
new
KylinOrderRefundsOrderCodeVo
();
data
.
setOrderRefundsId
(
item
.
getOrderRefundsId
());
data
.
setOrderRefundsId
(
item
.
getOrderRefundsId
());
data
.
setOrderRefundCode
(
item
.
getOrderRefundCode
());
data
.
setOrderRefundCode
(
item
.
getOrderRefundCode
());
data
.
setStatus
(
item
.
getStatus
());
data
.
setStatus
(
item
.
getStatus
());
}
}
List
<
KylinOrderRefundsVo
>
orderRefundsVoList
=
dataUtils
.
getOrderRefundVoByOrderId
(
orderId
);
List
<
OrderRefundListVo
>
orderRefundListVos
=
new
ArrayList
<>();
List
<
OrderRefundListVo
>
orderRefundListVos
=
new
ArrayList
<>();
for
(
KylinOrderRefundsVo
item
:
orderRefundsVoList
)
{
for
(
KylinOrderRefundsVo
item
:
orderRefundsVoList
)
{
OrderRefundListVo
data
=
new
OrderRefundListVo
();
OrderRefundListVo
data
=
new
OrderRefundListVo
();
...
...
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/pom.xml
View file @
b9c6aa89
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
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"
>
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<parent>
<artifactId>
liquidnet-
bus-service
</artifactId>
<artifactId>
liquidnet-
service-order
</artifactId>
<groupId>
com.liquidnet
</groupId>
<groupId>
com.liquidnet
</groupId>
<version>
1.0-SNAPSHOT
</version>
<version>
1.0-SNAPSHOT
</version>
</parent>
</parent>
...
@@ -26,7 +26,10 @@
...
@@ -26,7 +26,10 @@
<groupId>
com.liquidnet
</groupId>
<groupId>
com.liquidnet
</groupId>
<artifactId>
liquidnet-common-cache-redisson
</artifactId>
<artifactId>
liquidnet-common-cache-redisson
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<version>
1.0-SNAPSHOT
</version>
<scope>
compile
</scope>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-data-mongodb
</artifactId>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.liquidnet
</groupId>
<groupId>
com.liquidnet
</groupId>
...
@@ -38,6 +41,8 @@
...
@@ -38,6 +41,8 @@
<artifactId>
liquidnet-service-adam-api
</artifactId>
<artifactId>
liquidnet-service-adam-api
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<version>
1.0-SNAPSHOT
</version>
</dependency>
</dependency>
<!-- other -->
<dependency>
<dependency>
<groupId>
taobao-sdk2-impl
</groupId>
<groupId>
taobao-sdk2-impl
</groupId>
<artifactId>
taobao-sdk2-impl
</artifactId>
<artifactId>
taobao-sdk2-impl
</artifactId>
...
@@ -46,12 +51,14 @@
...
@@ -46,12 +51,14 @@
<scope>
system
</scope>
<scope>
system
</scope>
<systemPath>
${basedir}/lib/taobao-sdk-java-auto_1600401599540-20210607-impl.jar
</systemPath>
<systemPath>
${basedir}/lib/taobao-sdk-java-auto_1600401599540-20210607-impl.jar
</systemPath>
</dependency>
</dependency>
<!-- other -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-data-mongodb
</artifactId>
</dependency>
</dependencies>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
</plugin>
</plugins>
</build>
</project>
</project>
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/Service
Kylin
Application.java
→
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/Service
Order
Application.java
View file @
b9c6aa89
...
@@ -5,39 +5,36 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -5,39 +5,36 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.boot.CommandLineRunner
;
import
org.springframework.boot.CommandLineRunner
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
import
org.springframework.core.env.Environment
;
import
org.springframework.core.env.Environment
;
import
java.net.InetAddress
;
import
java.net.InetAddress
;
import
java.net.UnknownHostException
;
import
java.util.Arrays
;
import
java.util.Arrays
;
@Slf4j
@Slf4j
@EnableFeignClients
@SpringBootApplication
(
scanBasePackages
=
{
"com.liquidnet"
})
@SpringBootApplication
(
scanBasePackages
=
{
"com.liquidnet"
})
public
class
Service
Kylin
Application
implements
CommandLineRunner
{
public
class
Service
Order
Application
implements
CommandLineRunner
{
@Autowired
@Autowired
private
Environment
environment
;
private
Environment
environment
;
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
Service
Kylin
Application
.
class
,
args
);
SpringApplication
.
run
(
Service
Order
Application
.
class
,
args
);
}
}
@Override
@Override
public
void
run
(
String
...
strings
)
throws
Exception
{
public
void
run
(
String
...
strings
)
{
try
{
try
{
log
.
info
(
"\n----------------------------------------------------------\n\t"
+
log
.
info
(
"\n----------------------------------------------------------\n\t"
+
"Application '{}' is running! Access URLs:\n\t"
+
"Application '{}' is running! Access URLs:\n\t"
+
"Local: \t\thttp://127.0.0.1:{}\n\t"
+
"Local: \t\thttp://127.0.0.1:{}\n\t"
+
"External: \thttp://{}:{}\n\t"
+
"External: \thttp://{}:{}
{}/doc.html
\n\t"
+
"Profile(s): \t{}\n----------------------------------------------------------"
,
"Profile(s): \t{}\n----------------------------------------------------------"
,
environment
.
getProperty
(
"spring.application.name"
),
environment
.
getProperty
(
"spring.application.name"
),
environment
.
getProperty
(
"server.port"
),
environment
.
getProperty
(
"server.port"
),
InetAddress
.
getLocalHost
().
getHostAddress
(),
InetAddress
.
getLocalHost
().
getHostAddress
(),
environment
.
getProperty
(
"server.port"
),
environment
.
getProperty
(
"server.port"
),
environment
.
getProperty
(
"server.servlet.context-path"
),
Arrays
.
toString
(
environment
.
getActiveProfiles
()));
Arrays
.
toString
(
environment
.
getActiveProfiles
()));
}
catch
(
UnknownHost
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
}
}
...
...
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/order/config/OrderWebMvcConfig.java
0 → 100644
View file @
b9c6aa89
package
com
.
liquidnet
.
service
.
order
.
config
;
import
com.liquidnet.common.web.config.WebMvcConfig
;
import
com.liquidnet.common.web.filter.GlobalAuthorityInterceptor
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.web.servlet.config.annotation.InterceptorRegistry
;
@Configuration
public
class
OrderWebMvcConfig
extends
WebMvcConfig
{
@Autowired
GlobalAuthorityInterceptor
globalAuthorityInterceptor
;
@Override
protected
void
addInterceptors
(
InterceptorRegistry
registry
)
{
registry
.
addInterceptor
(
globalAuthorityInterceptor
).
addPathPatterns
(
"/**"
);
super
.
addInterceptors
(
registry
);
}
}
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