BUGFIX:1.标签允许不同用户创建相同的标签2.删除指定人员试用名单通知邮箱
This commit is contained in:
@@ -9,7 +9,7 @@ import org.apache.ibatis.annotations.Update;
|
||||
import java.util.List;
|
||||
|
||||
public interface CollectionSortMapper extends CommonMapper<CollectionSort> {
|
||||
@Update("UPDATE collection_sort SET sort = sort + 1 " +
|
||||
/*@Update("UPDATE collection_sort SET sort = sort + 1 " +
|
||||
"WHERE parent_id = #{parentId} " +
|
||||
"AND relation_type != 'Design' " +
|
||||
"AND sort > #{originalSort}")
|
||||
@@ -17,6 +17,15 @@ public interface CollectionSortMapper extends CommonMapper<CollectionSort> {
|
||||
@Param("parentId") Long parentId,
|
||||
@Param("relationType") String relationType,
|
||||
@Param("originalSort") int originalSort
|
||||
);*/
|
||||
@Update("UPDATE collection_sort SET sort = sort + 1 " +
|
||||
"WHERE parent_id = #{parentId} " +
|
||||
"AND relation_type != 'Design' " +
|
||||
"AND sort > #{originalSort} " +
|
||||
"ORDER BY sort DESC") // 关键:按排序号倒序更新
|
||||
void increaseGenerateSortAbove(
|
||||
@Param("parentId") Long parentId,
|
||||
@Param("originalSort") int originalSort
|
||||
);
|
||||
|
||||
@Select("SELECT * FROM collection_sort WHERE parent_id IN (SELECT id FROM collection_sort WHERE relation_id = #{relationId})")
|
||||
|
||||
Reference in New Issue
Block a user