DictionaryServiceImpl.java 595 Bytes
Newer Older
frank.xa.zhang's avatar
frank.xa.zhang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
package pwc.taxtech.atms.service.impl;

import org.springframework.stereotype.Service;
import pwc.taxtech.atms.entity.Dictionary;
import pwc.taxtech.atms.entity.DictionaryExample;

import java.util.List;

@Service
public class DictionaryServiceImpl extends AbstractService {

    public List<Dictionary> getDictionaryByCode(String code) {
        DictionaryExample example = new DictionaryExample();
        example.createCriteria().andCodeEqualTo(code).andIsActiveEqualTo(true);
        example.setOrderByClause("OrderIndex");
        return dictionaryMapper.selectByExample(example);
    }

}