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