package com.dk.mdm.service.sys;

import com.dk.common.mapper.BaseMapper;
import com.dk.common.service.BaseService;
import com.dk.mdm.mapper.sys.DictionaryItemMapper;
import com.dk.mdm.model.pojo.sys.DictionaryItem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author : 姜宏超
 * @desc : 数据字典业务实现类
 * @date : 2022/3/17 14:46
 */
@Service
public class DictionaryItemService extends BaseService<DictionaryItem> {

    /**
     * @desc : mapper对象
     * @author : 姜宏超
     * @date : 2022/3/17 14:48
     */
    @Override
    public BaseMapper<DictionaryItem> getRepository() {
        return dictionaryItemMapper;
    }

    /**
     * @desc : 注入数据字典mapper
     * @author : 姜宏超
     * @date : 2022/3/17 14:47
     */
    @Autowired
    private DictionaryItemMapper dictionaryItemMapper;

    /**
     * @desc : 重写主键
     * @author : 姜宏超
     * @date : 2022/5/7 16:07
     */
    @Override
    public String getPrimaryKey() {
        return "item_code";
    }

}
