|
@@ -28,6 +28,8 @@
|
|
m.is_frame as isFrame,
|
|
m.is_frame as isFrame,
|
|
m.is_cache as isCache,
|
|
m.is_cache as isCache,
|
|
h.id as categoryId,
|
|
h.id as categoryId,
|
|
|
|
+ h.category_name as categoryName,
|
|
|
|
+ h.sortindex as sortindex,
|
|
h.imagePath as imagePath,
|
|
h.imagePath as imagePath,
|
|
h.createdate as createdate,
|
|
h.createdate as createdate,
|
|
h.modifydate as modifydate,
|
|
h.modifydate as modifydate,
|
|
@@ -40,12 +42,12 @@
|
|
and m.visible = 0
|
|
and m.visible = 0
|
|
and m.status = 0
|
|
and m.status = 0
|
|
<if test="categoryName != null">
|
|
<if test="categoryName != null">
|
|
- and m.menu_name = #{categoryName}
|
|
|
|
|
|
+ and h.category_name = #{categoryName}
|
|
</if>
|
|
</if>
|
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
|
and h.createdate between #{startTime} and #{endTime}
|
|
and h.createdate between #{startTime} and #{endTime}
|
|
</if>
|
|
</if>
|
|
- order by m.parent_id, m.order_num
|
|
|
|
|
|
+ order by m.parent_id, h.sortindex
|
|
</select>
|
|
</select>
|
|
<select id="selectMenuTreeByUserId" resultType="com.usky.system.service.vo.HceCategoryListVO">
|
|
<select id="selectMenuTreeByUserId" resultType="com.usky.system.service.vo.HceCategoryListVO">
|
|
select distinct m.menu_id as menuId,
|
|
select distinct m.menu_id as menuId,
|
|
@@ -56,6 +58,8 @@
|
|
m.is_frame as isFrame,
|
|
m.is_frame as isFrame,
|
|
m.is_cache as isCache,
|
|
m.is_cache as isCache,
|
|
h.id as categoryId,
|
|
h.id as categoryId,
|
|
|
|
+ h.category_name as categoryName,
|
|
|
|
+ h.sortindex as sortindex,
|
|
h.imagePath as imagePath,
|
|
h.imagePath as imagePath,
|
|
h.createdate as createdate,
|
|
h.createdate as createdate,
|
|
h.modifydate as modifydate,
|
|
h.modifydate as modifydate,
|
|
@@ -73,12 +77,12 @@
|
|
and m.status = 0
|
|
and m.status = 0
|
|
AND ro.status = 0
|
|
AND ro.status = 0
|
|
<if test="categoryName != null">
|
|
<if test="categoryName != null">
|
|
- and m.menu_name = #{categoryName}
|
|
|
|
|
|
+ and h.category_name = #{categoryName}
|
|
</if>
|
|
</if>
|
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
|
and h.createdate between #{startTime} and #{endTime}
|
|
and h.createdate between #{startTime} and #{endTime}
|
|
</if>
|
|
</if>
|
|
- order by m.parent_id, m.order_num
|
|
|
|
|
|
+ order by m.parent_id, h.sortindex
|
|
</select>
|
|
</select>
|
|
<select id="selectMenuTreeByUserIdOne" resultType="com.usky.system.service.vo.HceCategoryListVO">
|
|
<select id="selectMenuTreeByUserIdOne" resultType="com.usky.system.service.vo.HceCategoryListVO">
|
|
SELECT
|
|
SELECT
|
|
@@ -90,6 +94,8 @@
|
|
m.is_frame as isFrame,
|
|
m.is_frame as isFrame,
|
|
m.is_cache as isCache,
|
|
m.is_cache as isCache,
|
|
h.id as categoryId,
|
|
h.id as categoryId,
|
|
|
|
+ h.category_name as categoryName,
|
|
|
|
+ h.sortindex as sortindex,
|
|
h.imagePath as imagePath,
|
|
h.imagePath as imagePath,
|
|
h.createdate as createdate,
|
|
h.createdate as createdate,
|
|
h.modifydate as modifydate,
|
|
h.modifydate as modifydate,
|
|
@@ -104,12 +110,12 @@
|
|
and m.status = 0
|
|
and m.status = 0
|
|
AND t.tenant_id=#{tenantId}
|
|
AND t.tenant_id=#{tenantId}
|
|
<if test="categoryName != null">
|
|
<if test="categoryName != null">
|
|
- and m.menu_name = #{categoryName}
|
|
|
|
|
|
+ and h.category_name = #{categoryName}
|
|
</if>
|
|
</if>
|
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
|
and h.createdate between #{startTime} and #{endTime}
|
|
and h.createdate between #{startTime} and #{endTime}
|
|
</if>
|
|
</if>
|
|
- ORDER BY m.parent_id, m.order_num
|
|
|
|
|
|
+ ORDER BY m.parent_id, h.sortindex
|
|
</select>
|
|
</select>
|
|
<select id="getMenuNameList" resultType="com.usky.system.domain.HceCategory">
|
|
<select id="getMenuNameList" resultType="com.usky.system.domain.HceCategory">
|
|
SELECT
|
|
SELECT
|
|
@@ -120,6 +126,7 @@
|
|
m.is_frame as isFrame,
|
|
m.is_frame as isFrame,
|
|
m.is_cache as isCache,
|
|
m.is_cache as isCache,
|
|
h.id as id,
|
|
h.id as id,
|
|
|
|
+ h.category_name as categoryName,
|
|
h.imagePath as imagePath,
|
|
h.imagePath as imagePath,
|
|
h.createdate as createdate,
|
|
h.createdate as createdate,
|
|
h.modifydate as modifydate,
|
|
h.modifydate as modifydate,
|