java110
2020-06-13 5699320dbcf388cdce17d00b91a68ea711273bca
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.java110.code.dao.impl;
 
import com.java110.code.dao.IPrimaryKeyServiceDao;
import com.java110.utils.log.LoggerEngine;
import com.java110.core.base.dao.BaseServiceDao;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
 
import java.util.Map;
 
/**
 * 用户服务 与数据库交互
 * Created by wuxw on 2017/4/5.
 */
 
/**
 * 用户信息实现工程
 * Created by wuxw on 2016/12/27.
 */
@Service("primaryKeyServiceDaoImpl")
@Transactional
public class PrimaryKeyServiceDaoImpl extends BaseServiceDao implements IPrimaryKeyServiceDao {
 
    protected final static Logger logger = LoggerFactory.getLogger(PrimaryKeyServiceDaoImpl.class);
 
    /**
     * 根据主键name查询主键生成ID
     *
     * @param primaryKey 主键name信息
     * @return
     */
    @Override
    public Map queryPrimaryKey(Map primaryKey) {
 
        LoggerEngine.debug("----【PrimaryKeyServiceDaoImpl.queryPrimaryKey】入参 : " + primaryKey);
        return sqlSessionTemplate.selectOne("primaryKeyServiceDaoImpl.queryPrimaryKey", primaryKey);
    }
}