/** * @Title: loginTotalMessageNotic @Description: TODO(登录之后获取改会员的信息通知条数) * * @param @return设定文件 * @return int 返回类型 * @throws */ public int loginTotalMessageNotic(String memberId) { // 设置查询DTO收信人的id MemberMessageNoticeQueryDTO memberMessageNoticeQueryDTO = new MemberMessageNoticeQueryDTO(); memberMessageNoticeQueryDTO.setAddressee(memberId); memberMessageNoticeQueryDTO.setLetterstatus("unread"); JqPager pager = new JqPager(); // 获取信息通知列表 JqGridReturn returnResult = (JqGridReturn) memberMessageNoticeService.listAsGridWebsite(memberMessageNoticeQueryDTO, pager, 1); return returnResult.getTotal(); }
public Object listAsGrid(JqPager pemail) { JqGridReturn returnResult = new JqGridReturn(); MessageNoteExample messageNoteExample = new MessageNoteExample(); if (null != pemail.getPage() && null != pemail.getRows()) { // 设置排序信息 messageNoteExample.setLimitStart((pemail.getPage() - 1) * pemail.getRows()); messageNoteExample.setLimitEnd(pemail.getRows()); } if (StringUtils.isNotBlank(pemail.getSort()) && StringUtils.isNotBlank(pemail.getOrder())) { // 设置排序信息 messageNoteExample.setOrderByClause(pemail.getOrderBy("temp_message_note_")); } List<MessageNote> messageNotes = messageNoteMapper.selectByExample(messageNoteExample); // 查询所有广告列表 int total = messageNoteMapper.countByExample(messageNoteExample); // 查询总页数 returnResult.setRows(messageNotes); returnResult.setTotal(total); return returnResult; // 返回ExtGrid表 }
/** * @Title: listAsGrid @Description: TODO(获取所有货物档案信息) * * @param @param pager * @param @return 设定文件 * @return Object 返回类型 * @throws */ public Object listAsGrid(JqPager jqPager, GoodsListQueryDTO goodsListQueryDTO) { JqGridReturn returnResult = new JqGridReturn(); GoodsListExample goodsListExample = new GoodsListExample(); Criteria queryCriteria = goodsListExample.createCriteria(); goodsListQueryDTO.setQueryCondition(queryCriteria); if (null != jqPager.getPage() && null != jqPager.getRows()) { // 设置排序信息 goodsListExample.setLimitStart((jqPager.getPage() - 1) * jqPager.getRows()); goodsListExample.setLimitEnd(jqPager.getRows()); } if (StringUtils.isNotBlank(jqPager.getSort()) && StringUtils.isNotBlank(jqPager.getOrder())) { // 设置排序信息 goodsListExample.setOrderByClause(jqPager.getOrderBy("temp_goods_list_")); } List<GoodsList> goodsList = goodsListMapper.selectByExample(goodsListExample); // 查询所有会员列表 int total = goodsListMapper.countByExample(goodsListExample); // 查询总页数 returnResult.setRows(goodsList); returnResult.setTotal(total); return returnResult; // 返回ExtGrid表 }
/** * @Title: listAsGrid @Description: TODO(获取所有客户等级信息) * * @param @param jqPager ParClientLevelQueryDTO clientLevelQueryDTO * @param @return 设定文件 * @return Object 返回类型 * @throws */ public Object listAsGrid(JqPager jqPager, ParClientLevelQueryDTO clientLevelQueryDTO) { JqGridReturn returnResult = new JqGridReturn(); ParClientLevelExample parClientLevelExample = new ParClientLevelExample(); Criteria queryCriteria = parClientLevelExample.createCriteria(); clientLevelQueryDTO.setQueryCondition(queryCriteria); if (null != jqPager.getPage() && null != jqPager.getRows()) { // 设置排序信息 parClientLevelExample.setLimitStart((jqPager.getPage() - 1) * jqPager.getRows()); parClientLevelExample.setLimitEnd(jqPager.getRows()); } if (StringUtils.isNotBlank(jqPager.getSort()) && StringUtils.isNotBlank(jqPager.getOrder())) { // 设置排序信息 parClientLevelExample.setOrderByClause(jqPager.getOrderBy("temp_par_client_level_")); } List<ParClientLevel> parClientLevelList = parClientLevelMapper.selectByExample(parClientLevelExample); // 查询所有客户等级列表 int total = parClientLevelMapper.countByExample(parClientLevelExample); // 查询总页数 returnResult.setRows(parClientLevelList); returnResult.setTotal(total); return returnResult; // 返回ExtGrid表 }
/** * @Title: listAsGrid @Description: TODO(获取所有供应商来源信息信息) * * @param @param optgroupId * @param @param pager * @param @return 设定文件 * @return Object 返回类型 * @throws */ public Object listAsGrid(JqPager jqPager, ParSuppliersSourceQueryDTO suppliersQueryDTO) { JqGridReturn returnResult = new JqGridReturn(); ParSuppliersSourceExample suppliersSourceExample = new ParSuppliersSourceExample(); Criteria queryCriteria = suppliersSourceExample.createCriteria(); suppliersQueryDTO.setQueryCondition(queryCriteria); if (null != jqPager.getPage() && null != jqPager.getRows()) { // 设置排序信息 suppliersSourceExample.setLimitStart((jqPager.getPage() - 1) * jqPager.getRows()); suppliersSourceExample.setLimitEnd(jqPager.getRows()); } if (StringUtils.isNotBlank(jqPager.getSort()) && StringUtils.isNotBlank(jqPager.getOrder())) { // 设置排序信息 suppliersSourceExample.setOrderByClause(jqPager.getOrderBy("temp_par_suppliers_source_")); } List<ParSuppliersSource> carrierCarTypeList = suppliersSourceMapper.selectByExample(suppliersSourceExample); // 查询所有列表 int total = suppliersSourceMapper.countByExample(suppliersSourceExample); // 查询总页数 returnResult.setRows(carrierCarTypeList); returnResult.setTotal(total); return returnResult; // 返回ExtGrid表 }