区分栏目管理以及排序栏目树结构列表

master
rong.liu 2 years ago
parent 2310168913
commit 86516e793b
  1. 17
      src/main/java/com/huoran/iasf/mapper/xml/SysColumnMapper.xml
  2. 3
      src/main/java/com/huoran/iasf/vo/req/PaginationColumnReqVO.java

@ -41,10 +41,19 @@
<if test="vo.columnName != '' and vo.columnName!= null">
and column_name LIKE CONCAT('%',#{vo.columnName},'%')
</if>
<if test="vo.isSort== 1">
ORDER BY
s.father_id,
s.sort ASC,
s.create_time desc
</if>
<if test="vo.isSort== 0">
ORDER BY
s.create_time asc
</if>
</select>
@ -59,9 +68,8 @@
ORDER BY c.create_time asc
</select>
<select id="getParentInformationBasedOnChild" resultType="com.huoran.iasf.vo.FatherContentRespVO">
SELECT
T2.id,
T2.column_name ,
SELECT T2.id,
T2.column_name,
T2.father_id,
T2.level,
T2.sort
@ -77,7 +85,8 @@
) T1
JOIN sys_column T2 ON T1._id = T2.id
WHERE
deleted = 1 and id != #{id}
deleted = 1
and id != #{id}
ORDER BY
T1.lvl DESC
</select>

@ -31,4 +31,7 @@ public class PaginationColumnReqVO extends PageReqVO {
@NotNull(message = "站点id不能为空!")
private Integer siteId;
@ApiModelProperty(value = "判断是否为排序接口调用(1为排序接口调用 0我栏目管理列表调用)")
private Integer isSort;
}

Loading…
Cancel
Save