1、修改apilog状态判断问题

2、mybatisplus版本升级到3.5.1
3、新建尚融宝服务及子服务
pull/254/head
xjs 4 years ago
parent d6a058720c
commit 8347a75272

@ -45,7 +45,7 @@
<!--xjs加的--> <!--xjs加的-->
<knife4j.version>3.0.3</knife4j.version> <knife4j.version>3.0.3</knife4j.version>
<hutool.version>5.7.17</hutool.version> <hutool.version>5.7.17</hutool.version>
<mybatisplus.version>3.4.3.4</mybatisplus.version> <mybatisplus.version>3.5.1</mybatisplus.version>
<commonsNet.version>3.6</commonsNet.version> <commonsNet.version>3.6</commonsNet.version>
<aliyunoss.version>3.14.0</aliyunoss.version> <aliyunoss.version>3.14.0</aliyunoss.version>
<bean-searcher.version>3.5.1</bean-searcher.version> <bean-searcher.version>3.5.1</bean-searcher.version>
@ -85,6 +85,12 @@
<artifactId>mybatis-plus-boot-starter</artifactId> <artifactId>mybatis-plus-boot-starter</artifactId>
<version>${mybatisplus.version}</version> <version>${mybatisplus.version}</version>
</dependency> </dependency>
<!--mp代码生成器-->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-generator</artifactId>
<version>${mybatisplus.version}</version>
</dependency>
<!--工具类--> <!--工具类-->
<dependency> <dependency>

@ -24,6 +24,7 @@
<module>xjs-business-statistics</module> <module>xjs-business-statistics</module>
<module>xjs-business-webmagic</module> <module>xjs-business-webmagic</module>
<module>xjs-business-blog</module> <module>xjs-business-blog</module>
<module>xjs-business-srb</module>
</modules> </modules>
<properties> <properties>

@ -149,6 +149,7 @@ public class ApiLogAspect {
} }
} }
entity.setMethod(apiLog.method()); entity.setMethod(apiLog.method());
entity.setIsSuccess(SUCCESS);
String response = null; String response = null;
if (Objects.nonNull(jsonResult)) { if (Objects.nonNull(jsonResult)) {
response = jsonResult.toString(); response = jsonResult.toString();
@ -161,8 +162,6 @@ public class ApiLogAspect {
} }
if (e != null || StringUtils.isEmpty(response)) { if (e != null || StringUtils.isEmpty(response)) {
entity.setIsSuccess(ReqConst.ERROR); entity.setIsSuccess(ReqConst.ERROR);
} else {
entity.setIsSuccess(SUCCESS);
} }
remoteLogFeign.saveApiLog(entity); remoteLogFeign.saveApiLog(entity);
} }

@ -0,0 +1,32 @@
<?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>xjs-business</artifactId>
<groupId>com.xjs</groupId>
<version>3.3.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<name>金融模块-尚融宝</name>
<modules>
<module>srb-service-base</module>
<module>srb-service-core</module>
</modules>
<packaging>pom</packaging>
<artifactId>xjs-business-srb</artifactId>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>com.xjs</groupId>
<artifactId>xjs-business-common</artifactId>
</dependency>
</dependencies>
</project>

@ -0,0 +1,20 @@
<?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>xjs-business-srb</artifactId>
<groupId>com.xjs</groupId>
<version>3.3.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<name>尚融宝-基础服务</name>
<artifactId>srb-service-base</artifactId>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
</project>

@ -0,0 +1,34 @@
<?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>xjs-business-srb</artifactId>
<groupId>com.xjs</groupId>
<version>3.3.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<name>尚融宝-核心服务</name>
<artifactId>srb-service-core</artifactId>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
<dependencies>
<!--mp代码生成器-->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-generator</artifactId>
</dependency>
<!--代码生成器模板-->
<dependency>
<groupId>org.apache.velocity</groupId>
<artifactId>velocity-engine-core</artifactId>
</dependency>
</dependencies>
</project>
Loading…
Cancel
Save