ERPTurbo_Server/erp-turbo-admin/pom.xml
shenyifei 2ac7654203 feat(admin): 新增费用项目拖拽排序功能
- 在 CostItemController 中新增 dragCostItem 接口,支持 PATCH 和 PUT 方法
- 引入 CostItemDragCmd 参数校验和权限注解
- 实现费用项目的拖拽排序逻辑,更新 sort 字段
- 优化查询逻辑,按 sort 升序和 createdAt 降序排列
- 添加事务管理确保排序操作的原子性
- 提供计算新排序值及重置排序的方法
- 支持插入到开头、中间、末尾三种场景
- 增加间隙耗尽时的批量重置排序机制
2025-11-10 16:45:29 +08:00

133 lines
3.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.xunhong</groupId>
<artifactId>ERPTurbo</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>erp-turbo-admin</artifactId>
<version>1.0.0-SNAPSHOT</version>
<properties>
<application.name>erp-turbo-admin</application.name>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>com.xunhong</groupId>
<artifactId>erp-turbo-base</artifactId>
</dependency>
<dependency>
<groupId>com.xunhong</groupId>
<artifactId>erp-turbo-config</artifactId>
</dependency>
<dependency>
<groupId>com.xunhong</groupId>
<artifactId>erp-turbo-file</artifactId>
</dependency>
<dependency>
<groupId>com.xunhong</groupId>
<artifactId>erp-turbo-api</artifactId>
</dependency>
<dependency>
<groupId>com.xunhong</groupId>
<artifactId>erp-turbo-rpc</artifactId>
</dependency>
<dependency>
<groupId>com.xunhong</groupId>
<artifactId>erp-turbo-web</artifactId>
</dependency>
<dependency>
<groupId>com.xunhong</groupId>
<artifactId>erp-turbo-sa-token</artifactId>
</dependency>
<dependency>
<groupId>com.xunhong</groupId>
<artifactId>erp-turbo-apm</artifactId>
</dependency>
<dependency>
<groupId>com.xunhong</groupId>
<artifactId>erp-turbo-logback</artifactId>
</dependency>
<!-- TEST -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<!-- h2内存数据库-->
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>1.4.200</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-mate-annotation</artifactId>
<version>1.3.4</version>
</dependency>
</dependencies>
<build>
<finalName>${application.name}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
<mainClass>
com.xunhong.erp.turbo.admin.ErpTurboAdminApplication
</mainClass>
<layers>
<enabled>true</enabled>
<configuration>
../layers/layers.xml
</configuration>
</layers>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>