use of cn.exrick.manager.pojo.TbMember in project xmall by Exrick.
the class MemberServiceImpl method getRemoveMemberList.
@Override
public DataTablesResult getRemoveMemberList(int draw, int start, int length, String search, String minDate, String maxDate, String orderCol, String orderDir) {
DataTablesResult result = new DataTablesResult();
try {
// 分页执行查询返回结果
PageHelper.startPage(start / length + 1, length);
List<TbMember> list = tbMemberMapper.selectByRemoveMemberInfo("%" + search + "%", minDate, maxDate, orderCol, orderDir);
PageInfo<TbMember> pageInfo = new PageInfo<>(list);
for (TbMember tbMember : list) {
tbMember.setPassword("");
}
result.setRecordsFiltered((int) pageInfo.getTotal());
result.setRecordsTotal(getRemoveMemberCount().getRecordsTotal());
result.setDraw(draw);
result.setData(list);
} catch (Exception e) {
throw new XmallException("加载删除用户列表失败");
}
return result;
}
use of cn.exrick.manager.pojo.TbMember in project xmall by Exrick.
the class MemberServiceImpl method getMemberByEditEmail.
@Override
public TbMember getMemberByEditEmail(Long id, String email) {
TbMember tbMember = getMemberById(id);
TbMember newTbMember = null;
if (tbMember.getEmail() == null || !tbMember.getEmail().equals(email)) {
newTbMember = getMemberByEmail(email);
}
newTbMember.setPassword("");
return newTbMember;
}
Aggregations