| | |
| | | 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.CustomerContentMapper;
|
| | | import com.yeshi.fanli.entity.system.CustomerContent;
|
| | | import com.yeshi.fanli.service.inter.config.CustomerContentService;
|
| | | import com.yeshi.fanli.util.Constant;
|
| | |
|
| | | @Service
|
| | | public class CustomerContentServiceImpl implements CustomerContentService {
|
| | |
|
| | | @Resource
|
| | | private CustomerContentMapper customerContentMapper;
|
| | | |
| | | |
| | | @Override
|
| | | public List<CustomerContent> getSecondProblemList(int index, String key, long id) {
|
| | | return customerContentMapper.listByCnidAndTitle(index * Constant.PAGE_SIZE, Constant.PAGE_SIZE, id, key);
|
| | | }
|
| | | |
| | | @Override
|
| | | public CustomerContent getCustomerContent(long id) {
|
| | | return customerContentMapper.selectByPrimaryKey(id);
|
| | | }
|
| | |
|
| | |
|
| | | @Override
|
| | | public List<CustomerContent> contactCustomerService(String title) {
|
| | | return customerContentMapper.contactCustomerService(title);
|
| | | }
|
| | |
|
| | | }
|
| | | 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.CustomerContentMapper; |
| | | import com.yeshi.fanli.entity.system.CustomerContent; |
| | | import com.yeshi.fanli.service.inter.config.CustomerContentService; |
| | | import com.yeshi.fanli.util.Constant; |
| | | |
| | | @Service |
| | | public class CustomerContentServiceImpl implements CustomerContentService { |
| | | |
| | | @Resource |
| | | private CustomerContentMapper customerContentMapper; |
| | | |
| | | |
| | | @Override |
| | | public List<CustomerContent> getSecondProblemList(int index, String key, long id) { |
| | | return customerContentMapper.listByCnidAndTitle(index * Constant.PAGE_SIZE, Constant.PAGE_SIZE, id, key); |
| | | } |
| | | |
| | | @Override |
| | | public CustomerContent getCustomerContent(long id) { |
| | | return customerContentMapper.selectByPrimaryKey(id); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public List<CustomerContent> contactCustomerService(String title) { |
| | | return customerContentMapper.contactCustomerService(title); |
| | | } |
| | | |
| | | } |