| | |
| | | package com.java110.user.dao.impl; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.common.constant.ResponseConstant; |
| | | import com.java110.common.exception.DAOException; |
| | | import com.java110.common.util.DateUtil; |
| | | import com.java110.utils.constant.ResponseConstant; |
| | | import com.java110.utils.exception.DAOException; |
| | | import com.java110.utils.util.DateUtil; |
| | | import com.java110.core.base.dao.BaseServiceDao; |
| | | import com.java110.user.dao.IOwnerServiceDao; |
| | | import org.slf4j.Logger; |
| | |
| | | return businessOwnerInfos; |
| | | } |
| | | |
| | | /** |
| | | * 查询业主信息(instance) |
| | | * |
| | | * @param info bId 信息 |
| | | * @return List<Map> |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public int getOwnerInfoCount(Map info) throws DAOException { |
| | | logger.debug("查询业主信息 入参 info : {}", info); |
| | | List<Map> businessOwnerInfos = sqlSessionTemplate.selectList("ownerServiceDaoImpl.getOwnerInfoCount", info); |
| | | if (businessOwnerInfos.size() < 1) { |
| | | return 0; |
| | | } |
| | | |
| | | return Integer.parseInt(businessOwnerInfos.get(0).get("count").toString()); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 修改业主信息 |
| | |
| | | return Integer.parseInt(businessOwnerInfos.get(0).get("count").toString()); |
| | | } |
| | | |
| | | /** |
| | | * 查询业主数量 |
| | | * |
| | | * @param info 业主信息 |
| | | * @return 业主数量 |
| | | */ |
| | | @Override |
| | | public int queryOwnersCountByCondition(Map info) { |
| | | logger.debug("查询业主数据 入参 info : {}", info); |
| | | |
| | | List<Map> businessOwnerInfos = sqlSessionTemplate.selectList("ownerServiceDaoImpl.queryOwnersCountByCondition", info); |
| | | if (businessOwnerInfos.size() < 1) { |
| | | return 0; |
| | | } |
| | | |
| | | return Integer.parseInt(businessOwnerInfos.get(0).get("count").toString()); |
| | | } |
| | | |
| | | /** |
| | | * 查询业主信息(instance) |
| | | * |
| | | * @param info bId 信息 |
| | | * @return List<Map> |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public List<Map> getOwnerInfoByCondition(Map info) throws DAOException { |
| | | logger.debug("查询业主信息 入参 info : {}", info); |
| | | |
| | | List<Map> businessOwnerInfos = sqlSessionTemplate.selectList("ownerServiceDaoImpl.getOwnerInfoByCondition", info); |
| | | |
| | | return businessOwnerInfos; |
| | | } |
| | | |
| | | @Override |
| | | public int queryNoEnterRoomOwnerCount(Map info) { |
| | | logger.debug("查询业主数据 入参 info : {}", info); |
| | | |
| | | List<Map> businessOwnerInfos = sqlSessionTemplate.selectList("ownerServiceDaoImpl.queryNoEnterRoomOwnerCount", info); |
| | | if (businessOwnerInfos.size() < 1) { |
| | | return 0; |
| | | } |
| | | |
| | | return Integer.parseInt(businessOwnerInfos.get(0).get("count").toString()); |
| | | } |
| | | |
| | | @Override |
| | | public List<Map> queryOwnersByRoom(Map info) throws DAOException { |
| | | logger.debug("queryOwnersByRoom 入参 info : {}", info); |
| | | |
| | | List<Map> businessOwnerInfos = sqlSessionTemplate.selectList("ownerServiceDaoImpl.queryOwnersByRoom", info); |
| | | |
| | | return businessOwnerInfos; |
| | | } |
| | | |
| | | @Override |
| | | public List<Map> queryOwnersByParkingSpace(Map info) throws DAOException { |
| | | logger.debug("queryOwnersByParkingSpace 入参 info : {}", info); |
| | | |
| | | List<Map> businessOwnerInfos = sqlSessionTemplate.selectList("ownerServiceDaoImpl.queryOwnersByParkingSpace", info); |
| | | |
| | | return businessOwnerInfos; } |
| | | |
| | | |
| | | } |