Commit 4986a091 authored by luzhuang's avatar luzhuang

栏目配置加排序

parent 2e395cd1
...@@ -27,7 +27,8 @@ public interface BDictionaryRepository extends BaseMapper<BDictionary> { ...@@ -27,7 +27,8 @@ public interface BDictionaryRepository extends BaseMapper<BDictionary> {
" and corp_id = #{curUser.corpId} "+ " and corp_id = #{curUser.corpId} "+
" <if test=\"configList != null and configList.size()>0 \">and type in " + " <if test=\"configList != null and configList.size()>0 \">and type in " +
" <foreach item='item' index='index' collection='configList' open='(' separator=',' close=')'> #{item} </foreach> " + " <foreach item='item' index='index' collection='configList' open='(' separator=',' close=')'> #{item} </foreach> " +
" </if>"+ " </if> " +
" order by sort"+
" </script>") " </script>")
@ResultMap(value = "BaseResultMap" ) @ResultMap(value = "BaseResultMap" )
List<BDictionary> findAllColumnConfig(@Param("curUser") CurUser curUser, @Param("configList") List<String> configList); List<BDictionary> findAllColumnConfig(@Param("curUser") CurUser curUser, @Param("configList") List<String> configList);
......
...@@ -30,6 +30,8 @@ public class BDictionary extends IdEntity<BDictionary> { ...@@ -30,6 +30,8 @@ public class BDictionary extends IdEntity<BDictionary> {
private String value; private String value;
private int sort;
} }
...@@ -291,16 +291,19 @@ public class SysRoleServiceImpl implements SysRoleService { ...@@ -291,16 +291,19 @@ public class SysRoleServiceImpl implements SysRoleService {
bDictionary1.setName("关注人数"); bDictionary1.setName("关注人数");
bDictionary1.setType("GZRS"); bDictionary1.setType("GZRS");
bDictionary1.setValue("5"); bDictionary1.setValue("5");
bDictionary1.setSort(1);
UserUtil.setCurrentPersistOperation(bDictionary1); UserUtil.setCurrentPersistOperation(bDictionary1);
BDictionary bDictionary2 = new BDictionary(); BDictionary bDictionary2 = new BDictionary();
bDictionary2.setName("在学人数"); bDictionary2.setName("在学人数");
bDictionary2.setType("ZXRS"); bDictionary2.setType("ZXRS");
bDictionary2.setValue("7"); bDictionary2.setValue("7");
bDictionary2.setSort(2);
UserUtil.setCurrentPersistOperation(bDictionary2); UserUtil.setCurrentPersistOperation(bDictionary2);
BDictionary bDictionary3 = new BDictionary(); BDictionary bDictionary3 = new BDictionary();
bDictionary3.setName("总裁读书会"); bDictionary3.setName("总裁读书会");
bDictionary3.setType("DSH"); bDictionary3.setType("DSH");
bDictionary3.setValue("http://www.winnerbook.com.cn/mobile/index.php?m=site"); bDictionary3.setValue("http://www.winnerbook.com.cn/mobile/index.php?m=site");
bDictionary3.setSort(3);
UserUtil.setCurrentPersistOperation(bDictionary3); UserUtil.setCurrentPersistOperation(bDictionary3);
dictionaryList.add(bDictionary1); dictionaryList.add(bDictionary1);
......
...@@ -13,6 +13,8 @@ ...@@ -13,6 +13,8 @@
<result column="UPDATE_DATE" jdbcType="TIMESTAMP" property="updateDate"/> <result column="UPDATE_DATE" jdbcType="TIMESTAMP" property="updateDate"/>
<result column="DEL_FLAG" jdbcType="VARCHAR" property="delFlag"/> <result column="DEL_FLAG" jdbcType="VARCHAR" property="delFlag"/>
<result column="FLAG" jdbcType="CHAR" property="flag"/> <result column="FLAG" jdbcType="CHAR" property="flag"/>
<result column="corp_id" jdbcType="CHAR" property="corpId"/>
<result column="sort" jdbcType="VARCHAR" property="sort"/>
<result column="REMARKS" jdbcType="VARCHAR" property="remarks"/> <result column="REMARKS" jdbcType="VARCHAR" property="remarks"/>
</resultMap> </resultMap>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment