feat: 资料中心排序字段改为double
This commit is contained in:
@@ -216,3 +216,7 @@ INSERT INTO sys_sms_template (id, template_code, template_name, template_content
|
||||
-- 2024-08-23 岗位
|
||||
ALTER TABLE laws_working_group_user
|
||||
ADD COLUMN `job` varchar(500) NULL COMMENT '岗位' AFTER `del_flag`;
|
||||
|
||||
-- 2024-08-23 资料中心排序字段改为double
|
||||
ALTER TABLE `laws_data_center_folder`
|
||||
MODIFY COLUMN `sort` double NULL DEFAULT NULL COMMENT '文件夹顺序' AFTER `auth_view_ids`;
|
||||
|
||||
+1
-1
@@ -13,6 +13,6 @@ public class TreeNodeComparator implements Comparator<LawsDataCenterFolder> {
|
||||
@Override
|
||||
public int compare(LawsDataCenterFolder o1, LawsDataCenterFolder o2) {
|
||||
// 升序排序
|
||||
return Integer.compare(o1.getSort(), o2.getSort());
|
||||
return Double.compare(o1.getSort(), o2.getSort());
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -122,7 +122,7 @@ public class LawsDataCenterFolder implements Serializable {
|
||||
@NotNull(message = "文件夹顺序不能为空")
|
||||
@Max(value = 999999999, message = "文件夹顺序超出最大限度")
|
||||
@Min(value = 0, message = "文件夹顺序不能小于0")
|
||||
private java.lang.Integer sort;
|
||||
private java.lang.Double sort;
|
||||
/**
|
||||
* 父id
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user