| | |
| | | */ |
| | | package com.java110.user.dao.impl; |
| | | |
| | | import com.java110.dto.importData.OwnerCollectionDto; |
| | | import com.java110.utils.exception.DAOException; |
| | | import com.java110.core.base.dao.BaseServiceDao; |
| | | import com.java110.user.dao.IOwnerV1ServiceDao; |
| | |
| | | public int saveOwnerInfo(Map info) throws DAOException { |
| | | logger.debug("保存 saveOwnerInfo 入参 info : {}",info); |
| | | |
| | | if (info.get("sex") == null || info.get("sex").equals("")) { |
| | | info.put("sex", "未知"); |
| | | } |
| | | int saveFlag = sqlSessionTemplate.insert("ownerV1ServiceDaoImpl.saveOwnerInfo",info); |
| | | |
| | | return saveFlag; |
| | |
| | | public List<Map> getOwnerInfo(Map info) throws DAOException { |
| | | logger.debug("查询 getOwnerInfo 入参 info : {}",info); |
| | | |
| | | List<Map> businessOwnerInfos = sqlSessionTemplate.selectList("ownerV1ServiceDaoImpl.getOwnerInfo",info); |
| | | List<Map> infos = sqlSessionTemplate.selectList("ownerV1ServiceDaoImpl.getOwnerInfo",info); |
| | | |
| | | return businessOwnerInfos; |
| | | return infos; |
| | | } |
| | | |
| | | |
| | |
| | | return result; |
| | | } |
| | | |
| | | @Override |
| | | public int saveOwnerCollection(Map info) { |
| | | logger.debug("保存 saveOwnerCollection 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.insert("ownerV1ServiceDaoImpl.saveOwnerCollection",info); |
| | | |
| | | return saveFlag; |
| | | } |
| | | |
| | | |
| | | } |