| | |
| | | package com.yeshi.fanli.service.impl.config;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | | import org.springframework.stereotype.Service;
|
| | |
|
| | | import com.yeshi.fanli.dao.mybatis.CustomerNameMapper;
|
| | | import com.yeshi.fanli.entity.system.CustomerName;
|
| | | import com.yeshi.fanli.service.inter.config.CustomerNameService;
|
| | | import com.yeshi.fanli.util.Constant;
|
| | |
|
| | | @Service
|
| | | public class CustomerNameServiceImpl implements CustomerNameService {
|
| | |
|
| | | @Resource
|
| | | private CustomerNameMapper customerNameMapper;
|
| | | |
| | | @Override
|
| | | public List<CustomerName> customerNameList(int page, String key, int type) {
|
| | | return customerNameMapper.listByTypeAndName(page * Constant.PAGE_SIZE, Constant.PAGE_SIZE, type, key);
|
| | | }
|
| | | |
| | | }
|
| | | package com.yeshi.fanli.service.impl.config; |
| | | |
| | | import java.util.List; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.yeshi.fanli.dao.mybatis.CustomerNameMapper; |
| | | import com.yeshi.fanli.entity.system.CustomerName; |
| | | import com.yeshi.fanli.service.inter.config.CustomerNameService; |
| | | import com.yeshi.fanli.util.Constant; |
| | | |
| | | @Service |
| | | public class CustomerNameServiceImpl implements CustomerNameService { |
| | | |
| | | @Resource |
| | | private CustomerNameMapper customerNameMapper; |
| | | |
| | | @Override |
| | | public List<CustomerName> customerNameList(int page, String key, int type) { |
| | | return customerNameMapper.listByTypeAndName(page * Constant.PAGE_SIZE, Constant.PAGE_SIZE, type, key); |
| | | } |
| | | |
| | | } |