TemplateGroupDao.java 661 Bytes
Newer Older
1
package pwc.taxtech.atms.dao;
eddie.woo's avatar
eddie.woo committed
2 3 4

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
5 6
import pwc.taxtech.atms.entity.TemplateGroup;
import pwc.taxtech.atms.entity.TemplateGroupExample;
eddie.woo's avatar
eddie.woo committed
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22

import java.util.List;

@Service
public class TemplateGroupDao {
    @Autowired
    private TemplateGroupMapper mapper;

    public List<TemplateGroup> getByGroupName(String name) {
        TemplateGroupExample example = new TemplateGroupExample();
        TemplateGroupExample.Criteria criteria = example.createCriteria();
        criteria.andNameEqualTo(name);
        return mapper.selectByExample(example);
    }

}