TypeService.java

张创琦

  1. package com.zcq.service;
  2. import com.zcq.dao.TypeMapper;
  3. import com.zcq.entity.BillType;
  4. import org.springframework.beans.factory.annotation.Autowired;
  5. import org.springframework.stereotype.Service;
  6. import javax.annotation.Resource;
  7. import java.util.List;
  8. @Service
  9. public class TypeService {
  10. // 查一下这个注解写什么
  11. @Resource
  12. private TypeMapper typeMapper;
  13. public List<BillType> list() {
  14. return typeMapper.selectAll();
  15. }
  16. }