记得上下班打卡 | git大法好,push需谨慎

Commit b9c6aa89 authored by 胡佳晨's avatar 胡佳晨

Merge branch 'dev' into test

parents 21a4ace3 70c4ca5a
...@@ -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
...@@ -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
...@@ -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}
...@@ -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}
...@@ -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 {
......
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;
......
...@@ -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>
......
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 (UnknownHostException e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
} }
......
...@@ -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();
......
...@@ -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>
...@@ -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 ServiceKylinApplication implements CommandLineRunner { public class ServiceOrderApplication implements CommandLineRunner {
@Autowired @Autowired
private Environment environment; private Environment environment;
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(ServiceKylinApplication.class, args); SpringApplication.run(ServiceOrderApplication.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 (UnknownHostException e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
} }
......
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);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment