This commit is contained in:
@@ -42,6 +42,7 @@
|
|||||||
<mysql-connector-java.version>8.0.29</mysql-connector-java.version>
|
<mysql-connector-java.version>8.0.29</mysql-connector-java.version>
|
||||||
<mybatis-plus.version>3.5.5</mybatis-plus.version>
|
<mybatis-plus.version>3.5.5</mybatis-plus.version>
|
||||||
<druid.version>1.2.21</druid.version>
|
<druid.version>1.2.21</druid.version>
|
||||||
|
<flatten-maven-plugin.version>1.5.0</flatten-maven-plugin.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<!-- 统一依赖管理 -->
|
<!-- 统一依赖管理 -->
|
||||||
@@ -169,6 +170,33 @@
|
|||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</pluginManagement>
|
</pluginManagement>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>flatten-maven-plugin</artifactId>
|
||||||
|
<version>${flatten-maven-plugin.version}</version>
|
||||||
|
<configuration>
|
||||||
|
<flattenMode>resolveCiFriendliesOnly</flattenMode>
|
||||||
|
<updatePomFile>true</updatePomFile>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>flatten</id>
|
||||||
|
<phase>process-resources</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>flatten</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>flatten.clean</id>
|
||||||
|
<phase>clean</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>clean</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
|||||||
@@ -42,6 +42,8 @@ class XiaoyiAuthApplicationTests {
|
|||||||
void queryTest() {
|
void queryTest() {
|
||||||
LambdaQueryWrapper<UserEntity> queryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<UserEntity> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
queryWrapper.eq(UserEntity::getUsername, "刑加一");
|
queryWrapper.eq(UserEntity::getUsername, "刑加一");
|
||||||
|
queryWrapper.orderByDesc(UserEntity::getCreateTime);
|
||||||
|
queryWrapper.last("limit 1");
|
||||||
UserEntity user = userMapper.selectOne(queryWrapper);
|
UserEntity user = userMapper.selectOne(queryWrapper);
|
||||||
log.info("查询结果:{}", user);
|
log.info("查询结果:{}", user);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user