Commit a27a0fce authored by 王淑君's avatar 王淑君

Merge remote-tracking branch 'origin/meiteng' into meiteng

parents 56cb86f4 4986a091
...@@ -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;
} }
...@@ -27,11 +27,11 @@ public interface SysRoleRepository extends BaseMapper<SysRole> { ...@@ -27,11 +27,11 @@ public interface SysRoleRepository extends BaseMapper<SysRole> {
* @param * @param
* @return * @return
*/ */
@Select("<script>select * from tm_admin_role " + @Select("<script>select * from tm_admin_role " +
"where r_status = 1 " + " where r_status = 1 " +
"and r_name not in ('主管理员') " + " and r_type not in (1,0) " +
"and corp_id = #{corpId} " + " and corp_id = #{corpId} " +
" order by r_name desc </script>") " order by r_type desc , r_createdate asc</script>")
@ResultMap(value = "SelectAllAndUserNum") @ResultMap(value = "SelectAllAndUserNum")
List<SysRole> queryRoles(@Param("corpId") String corpId); List<SysRole> queryRoles(@Param("corpId") String corpId);
......
...@@ -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);
......
...@@ -195,6 +195,8 @@ public interface SysUserMapper extends BaseMapper<SysUser> { ...@@ -195,6 +195,8 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
"WHERE " + "WHERE " +
"su.del_flag != 1 " + "su.del_flag != 1 " +
"AND su.flag = 1 " + "AND su.flag = 1 " +
"and sm.del_flag != 1 " +
"and sm.flag = 1 " +
"AND su.corp_id = #{corpId} " + "AND su.corp_id = #{corpId} " +
"AND su.business_id = #{businessId} " + "AND su.business_id = #{businessId} " +
"AND sm.MODEL_ID = #{modelId} " + "AND sm.MODEL_ID = #{modelId} " +
......
...@@ -74,14 +74,15 @@ public class SysUserServiceImpl implements SysUserService { ...@@ -74,14 +74,15 @@ public class SysUserServiceImpl implements SysUserService {
public List<SysUser> qusers(QuerySysUserDTO dto) { public List<SysUser> qusers(QuerySysUserDTO dto) {
//step1:调用外部接口 查询出 该部门下所有人(取id) //step1:调用外部接口 查询出 该部门下所有人(取id)
if(dto.getDept()!=null){ if(dto.getDept()!=null){
List<Long> deptIds = new ArrayList<>(); List<String> deptIds = new ArrayList<>();
StringBuffer stringBuffer = new StringBuffer(); StringBuffer stringBuffer = new StringBuffer();
String ids = ""; String ids = "";
deptIds.add(Long.parseLong(dto.getDept())); deptIds.add(dto.getDept());
List<MTGetUserByDeptIdsRspDTO> data = mtCotactApiRequestClient.userGetUserByDeptIds(dto.getCorpId(), deptIds); Set<String> deptSets = new HashSet<String>(deptIds);
List<String> data = mtCotactApiRequestClient.getSubUserIdsByDeptIds(dto.getCorpId(), deptSets);
if(data != null ){ if(data != null ){
for (MTGetUserByDeptIdsRspDTO uid : data) { for (String uid : data) {
stringBuffer.append(uid.getId()+","); stringBuffer.append(uid+",");
} }
if (!stringBuffer.toString().equals("")) { if (!stringBuffer.toString().equals("")) {
ids = stringBuffer.toString().substring(0, stringBuffer.toString().length() - 1); ids = stringBuffer.toString().substring(0, stringBuffer.toString().length() - 1);
......
...@@ -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