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> {
" and corp_id = #{curUser.corpId} "+
" <if test=\"configList != null and configList.size()>0 \">and type in " +
" <foreach item='item' index='index' collection='configList' open='(' separator=',' close=')'> #{item} </foreach> " +
" </if>"+
" </if> " +
" order by sort"+
" </script>")
@ResultMap(value = "BaseResultMap" )
List<BDictionary> findAllColumnConfig(@Param("curUser") CurUser curUser, @Param("configList") List<String> configList);
......
......@@ -30,6 +30,8 @@ public class BDictionary extends IdEntity<BDictionary> {
private String value;
private int sort;
}
......@@ -28,10 +28,10 @@ public interface SysRoleRepository extends BaseMapper<SysRole> {
* @return
*/
@Select("<script>select * from tm_admin_role " +
"where r_status = 1 " +
"and r_name not in ('主管理员') " +
"and corp_id = #{corpId} " +
" order by r_name desc </script>")
" where r_status = 1 " +
" and r_type not in (1,0) " +
" and corp_id = #{corpId} " +
" order by r_type desc , r_createdate asc</script>")
@ResultMap(value = "SelectAllAndUserNum")
List<SysRole> queryRoles(@Param("corpId") String corpId);
......
......@@ -291,16 +291,19 @@ public class SysRoleServiceImpl implements SysRoleService {
bDictionary1.setName("关注人数");
bDictionary1.setType("GZRS");
bDictionary1.setValue("5");
bDictionary1.setSort(1);
UserUtil.setCurrentPersistOperation(bDictionary1);
BDictionary bDictionary2 = new BDictionary();
bDictionary2.setName("在学人数");
bDictionary2.setType("ZXRS");
bDictionary2.setValue("7");
bDictionary2.setSort(2);
UserUtil.setCurrentPersistOperation(bDictionary2);
BDictionary bDictionary3 = new BDictionary();
bDictionary3.setName("总裁读书会");
bDictionary3.setType("DSH");
bDictionary3.setValue("http://www.winnerbook.com.cn/mobile/index.php?m=site");
bDictionary3.setSort(3);
UserUtil.setCurrentPersistOperation(bDictionary3);
dictionaryList.add(bDictionary1);
......
......@@ -195,6 +195,8 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
"WHERE " +
"su.del_flag != 1 " +
"AND su.flag = 1 " +
"and sm.del_flag != 1 " +
"and sm.flag = 1 " +
"AND su.corp_id = #{corpId} " +
"AND su.business_id = #{businessId} " +
"AND sm.MODEL_ID = #{modelId} " +
......
......@@ -74,14 +74,15 @@ public class SysUserServiceImpl implements SysUserService {
public List<SysUser> qusers(QuerySysUserDTO dto) {
//step1:调用外部接口 查询出 该部门下所有人(取id)
if(dto.getDept()!=null){
List<Long> deptIds = new ArrayList<>();
List<String> deptIds = new ArrayList<>();
StringBuffer stringBuffer = new StringBuffer();
String ids = "";
deptIds.add(Long.parseLong(dto.getDept()));
List<MTGetUserByDeptIdsRspDTO> data = mtCotactApiRequestClient.userGetUserByDeptIds(dto.getCorpId(), deptIds);
deptIds.add(dto.getDept());
Set<String> deptSets = new HashSet<String>(deptIds);
List<String> data = mtCotactApiRequestClient.getSubUserIdsByDeptIds(dto.getCorpId(), deptSets);
if(data != null ){
for (MTGetUserByDeptIdsRspDTO uid : data) {
stringBuffer.append(uid.getId()+",");
for (String uid : data) {
stringBuffer.append(uid+",");
}
if (!stringBuffer.toString().equals("")) {
ids = stringBuffer.toString().substring(0, stringBuffer.toString().length() - 1);
......
......@@ -13,6 +13,8 @@
<result column="UPDATE_DATE" jdbcType="TIMESTAMP" property="updateDate"/>
<result column="DEL_FLAG" jdbcType="VARCHAR" property="delFlag"/>
<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"/>
</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