Example #1
0
 public List<WebUserInfoDamain> querySonWebUserInfoById(WebUserInfoDamain webUserInfoDamain) {
   List<WebUserInfoDamain> list = new ArrayList<WebUserInfoDamain>();
   Map<String, Object> queryMap = new HashMap<String, Object>();
   if (webUserInfoDamain != null) {
     if (StringUtils.isNotEmpty(webUserInfoDamain.getUserType())) {
       queryMap.put("userType", webUserInfoDamain.getUserType());
     }
     if (StringUtils.isNotEmpty(webUserInfoDamain.getParentId())) {
       queryMap.put("parentId", webUserInfoDamain.getParentId());
     }
     if (StringUtils.isNotEmpty(webUserInfoDamain.getId())) {
       queryMap.put("id", webUserInfoDamain.getId());
     }
     list = webUserInfoDao.querySonWebUserInfoList(queryMap);
   }
   return list;
 }
Example #2
0
 public List<WebUserInfoDamain> querySonWebUserInfoPage(WebUserInfoDamain webUserInfoDamain) {
   List<WebUserInfoDamain> list = new ArrayList<WebUserInfoDamain>();
   Map<String, Object> queryMap = new HashMap<String, Object>();
   if (webUserInfoDamain != null) {
     if (StringUtils.isNotEmpty(webUserInfoDamain.getUserType())) {
       queryMap.put("userType", webUserInfoDamain.getUserType());
     }
     if (StringUtils.isNotEmpty(webUserInfoDamain.getParentId())) {
       queryMap.put("parentId", webUserInfoDamain.getParentId());
     }
     if (StringUtils.isNotEmpty(webUserInfoDamain.getCompanyName())) {
       queryMap.put("companyName", webUserInfoDamain.getCompanyName());
     }
     if (StringUtils.isNotEmpty(webUserInfoDamain.getCreateTimeStart())) {
       queryMap.put("createTimeStart", webUserInfoDamain.getCreateTimeStart());
     }
     if (StringUtils.isNotEmpty(webUserInfoDamain.getCreateTimeEnd())) {
       queryMap.put("createTimeEnd", webUserInfoDamain.getCreateTimeEnd());
     }
     if (StringUtils.isNotEmpty(webUserInfoDamain.getDeletedFlag())) {
       queryMap.put("deletedFlag", webUserInfoDamain.getDeletedFlag());
     }
     if (StringUtils.isNotEmpty(webUserInfoDamain.getCompanyProvince())) {
       queryMap.put("companyProvince", webUserInfoDamain.getCompanyProvince());
     }
     if (StringUtils.isNotEmpty(webUserInfoDamain.getCompanyCity())) {
       queryMap.put("companyCity", webUserInfoDamain.getCompanyCity());
     }
     if (StringUtils.isNotEmpty(webUserInfoDamain.getCompanyCounty())) {
       queryMap.put("companyCounty", webUserInfoDamain.getCompanyCounty());
     }
     if (webUserInfoDamain.getPageInfo() != null) {
       webUserInfoDamain
           .getPageInfo()
           .setTotalRecords(webUserInfoDao.querySonWebUserInfoPageCount(queryMap));
       queryMap.put("pageSize", webUserInfoDamain.getPageInfo().getPageSize());
       queryMap.put("curPage", webUserInfoDamain.getPageInfo().getCurPage());
       list = webUserInfoDao.querySonWebUserInfoPage(queryMap);
     } else {
       list = webUserInfoDao.querySonWebUserInfoList(queryMap);
     }
   }
   return list;
 }