|
@@ -11,6 +11,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="style" column="style" />
|
|
|
<result property="url" column="url" />
|
|
|
<result property="compCode" column="comp_code" />
|
|
|
+ <result property="sort" column="sort" />
|
|
|
+ <result property="showFlag" column="show_flag" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="createBy" column="create_by" />
|
|
@@ -18,7 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectCpsGlbViewCfgVo">
|
|
|
- select id, icon_uri, label_txt, style, url, comp_code, update_time, create_time, create_by, update_by from cps_glb_view_cfg
|
|
|
+ select id, icon_uri, label_txt, style, url, comp_code,sort, show_flag, update_time, create_time, create_by, update_by from cps_glb_view_cfg
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectCpsGlbViewCfgList" parameterType="com.ruoyi.system.domain.CpsGlbViewCfg" resultMap="CpsGlbViewCfgResult">
|
|
@@ -29,9 +31,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="style != null and style != ''"> and style = #{style}</if>
|
|
|
<if test="url != null and url != ''"> and url = #{url}</if>
|
|
|
<if test="compCode != null and compCode != ''"> and comp_code = #{compCode}</if>
|
|
|
+ <if test="sort != null "> and sort = #{sort}</if>
|
|
|
+ <if test="showFlag != null and showFlag != ''"> and show_flag = #{showFlag}</if>
|
|
|
<if test="updateTime != null "> and update_time = #{updateTime}</if>
|
|
|
<if test="createTime != null "> and create_time = #{createTime}</if>
|
|
|
</where>
|
|
|
+ order by comp_code desc,sort asc,show_flag desc
|
|
|
</select>
|
|
|
|
|
|
<select id="selectCpsGlbViewCfgById" parameterType="Long" resultMap="CpsGlbViewCfgResult">
|
|
@@ -47,6 +52,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="style != null">style,</if>
|
|
|
<if test="url != null">url,</if>
|
|
|
<if test="compCode != null">comp_code,</if>
|
|
|
+ <if test="sort != null">sort,</if>
|
|
|
+ <if test="showFlag != null">show_flag,</if>
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="createBy != null">create_by,</if>
|
|
@@ -58,6 +65,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="style != null">#{style},</if>
|
|
|
<if test="url != null">#{url},</if>
|
|
|
<if test="compCode != null">#{compCode},</if>
|
|
|
+ <if test="sort != null">#{sort},</if>
|
|
|
+ <if test="showFlag != null">#{showFlag},</if>
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
@@ -73,6 +82,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="style != null">style = #{style},</if>
|
|
|
<if test="url != null">url = #{url},</if>
|
|
|
<if test="compCode != null">comp_code = #{compCode},</if>
|
|
|
+ <if test="sort != null">sort = #{sort},</if>
|
|
|
+ <if test="showFlag != null">show_flag = #{showFlag},</if>
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|