1.修改配置列表查询缺省排序根据是否审核与有效标识字段,生效的配置排在前面;
2.修改黑名单选项只有在block动作时显示,其他动作不显示该属性
This commit is contained in:
@@ -346,10 +346,10 @@
|
||||
</trim>
|
||||
<choose>
|
||||
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
||||
ORDER BY ${page.orderBy}
|
||||
ORDER BY ${page.orderBy},r.is_valid desc, r.is_audit,r.cfg_id desc
|
||||
</when>
|
||||
<otherwise>
|
||||
ORDER BY CFG_ID desc
|
||||
ORDER BY r.is_valid desc, r.is_audit,r.cfg_id desc
|
||||
</otherwise>
|
||||
</choose>
|
||||
</select>
|
||||
@@ -363,7 +363,7 @@
|
||||
<include refid="BaseStringCfg_Column_List_with_id"/>
|
||||
</otherwise>
|
||||
</choose>
|
||||
from ${tableName}
|
||||
from ${tableName} r
|
||||
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
||||
<if test="page !=null and page.where != null and page.where != ''">
|
||||
AND ${page.where}
|
||||
@@ -371,10 +371,10 @@
|
||||
</trim>
|
||||
<choose>
|
||||
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
||||
ORDER BY ${page.orderBy}
|
||||
ORDER BY ${page.orderBy},r.is_valid desc, r.is_audit,r.cfg_id desc
|
||||
</when>
|
||||
<otherwise>
|
||||
ORDER BY CFG_ID desc
|
||||
ORDER BY r.is_valid desc, r.is_audit,r.cfg_id desc
|
||||
</otherwise>
|
||||
</choose>
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user