| | |
| | | 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.Assert; |
| | | import com.java110.utils.constant.ResponseConstant; |
| | | import com.java110.utils.exception.DAOException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.core.base.dao.BaseServiceDao; |
| | | import com.java110.entity.user.BoCust; |
| | | import com.java110.entity.user.BoCustAttr; |
| | |
| | | throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "修改用户Instance数据失败:" + JSONObject.toJSONString(businessUserCredentials)); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public int getStaffCount(Map businessUser) throws DAOException { |
| | | logger.debug("查询组织数据 入参 info : {}",businessUser); |
| | | |
| | | List<Map> businessStaffInfos = sqlSessionTemplate.selectList("userServiceDaoImpl.getStaffCount", businessUser); |
| | | if (businessStaffInfos.size() < 1) { |
| | | return 0; |
| | | } |
| | | |
| | | return Integer.parseInt(businessStaffInfos.get(0).get("count").toString()); |
| | | } |
| | | |
| | | @Override |
| | | public List<Map> getStaffs(Map info) throws DAOException { |
| | | logger.debug("查询组织信息 入参 info : {}",info); |
| | | |
| | | List<Map> businessStaffs = sqlSessionTemplate.selectList("userServiceDaoImpl.getStaffs",info); |
| | | |
| | | return businessStaffs; |
| | | } |
| | | |
| | | @Override |
| | | public int getUserCount(Map businessUser) throws DAOException { |
| | | logger.debug("查询组织数据 入参 info : {}",businessUser); |
| | | |
| | | List<Map> businessStaffInfos = sqlSessionTemplate.selectList("userServiceDaoImpl.getUserCount", businessUser); |
| | | if (businessStaffInfos.size() < 1) { |
| | | return 0; |
| | | } |
| | | |
| | | return Integer.parseInt(businessStaffInfos.get(0).get("count").toString()); |
| | | } |
| | | |
| | | @Override |
| | | public List<Map> getUsers(Map info) throws DAOException { |
| | | logger.debug("查询组织信息 入参 info : {}",info); |
| | | |
| | | List<Map> businessStaffs = sqlSessionTemplate.selectList("userServiceDaoImpl.getUsers",info); |
| | | |
| | | return businessStaffs; |
| | | } |
| | | } |