fix: 体系支持小数排序
This commit is contained in:
@@ -1,22 +1,17 @@
|
||||
package com.jero.modules.laws.standard.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import com.jero.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
/**
|
||||
@@ -80,5 +75,5 @@ public class LawsTreeNode implements Serializable {
|
||||
private java.lang.Integer nodeType;
|
||||
/**排序*/
|
||||
@ApiModelProperty(value = "排序")
|
||||
private java.lang.Integer nodeOrder;
|
||||
private java.lang.String nodeOrder;
|
||||
}
|
||||
|
||||
+1
-1
@@ -236,7 +236,7 @@ public class LawsTreeNodeServiceImpl extends ServiceImpl<LawsTreeNodeMapper, Law
|
||||
for (LawsTreeNode node : list) {
|
||||
String nodeCode = node.getNodeCode();
|
||||
String order = nodeCode.substring(nodeCode.length() - 1);
|
||||
node.setNodeOrder(Integer.valueOf(order));
|
||||
node.setNodeOrder(order);
|
||||
this.updateById(node);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user