用户功能优化

yun-zuoyi
wei.peng 7 years ago
parent 06927ff370
commit cab08786f3

@ -113,6 +113,10 @@ public class SysUserInfo extends BaseBean {
@ApiParam(value ="登录次数",example = "0") @ApiParam(value ="登录次数",example = "0")
private Integer userLoginNum; private Integer userLoginNum;
@Column(name="USER_NUM")
@ApiParam(value ="用户账号数",example = "0")
private Integer userNum;
@Transient @Transient
@ApiParam(value ="用户所有部门信息") @ApiParam(value ="用户所有部门信息")
private List<SysDepartment> departmentList; private List<SysDepartment> departmentList;

@ -5,6 +5,8 @@ import cn.estsh.i3plus.pojo.base.tool.HqlPack;
import cn.estsh.i3plus.pojo.platform.bean.*; import cn.estsh.i3plus.pojo.platform.bean.*;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import java.util.List;
/** /**
* @Description : * @Description :
* @Reference : * @Reference :
@ -113,6 +115,16 @@ public class CoreHqlPack {
return result.toString(); return result.toString();
} }
public static String packHqlSysOrganize(Long[] ids, Integer typeId){
StringBuffer result = new StringBuffer();
// 查询参数封装
HqlPack.getInPack(StringUtils.join(ids,","),"id",result);
HqlPack.getNumEqualPack(typeId,"organizeType",result);
return result.toString();
}
/** /**
* *
* @param department * @param department

Loading…
Cancel
Save