| | |
| | | package com.yeshi.fanli.service.impl.push;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | | import org.springframework.stereotype.Service;
|
| | |
|
| | | import com.yeshi.fanli.dao.mybatis.push.PushGoodsRecordMapper;
|
| | | import com.yeshi.fanli.entity.push.PushGoodsRecord;
|
| | | import com.yeshi.fanli.exception.push.PushGoodsRecordException;
|
| | | import com.yeshi.fanli.service.inter.push.PushGoodsRecordService;
|
| | |
|
| | | @Service
|
| | | public class PushGoodsRecordServiceImpl implements PushGoodsRecordService {
|
| | | |
| | | @Resource
|
| | | private PushGoodsRecordMapper pushGoodsRecordMapper;
|
| | | |
| | |
|
| | | @Override
|
| | | public int deleteByPrimaryKey(Long id) throws PushGoodsRecordException {
|
| | | return pushGoodsRecordMapper.deleteByPrimaryKey(id);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public int insert(PushGoodsRecord record) throws PushGoodsRecordException {
|
| | | return pushGoodsRecordMapper.insert(record);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public int insertSelective(PushGoodsRecord record) throws PushGoodsRecordException {
|
| | | return pushGoodsRecordMapper.insertSelective(record);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public PushGoodsRecord selectByPrimaryKey(Long id) throws PushGoodsRecordException {
|
| | | return pushGoodsRecordMapper.selectByPrimaryKey(id);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public int updateByPrimaryKeySelective(PushGoodsRecord record) throws PushGoodsRecordException {
|
| | | return pushGoodsRecordMapper.updateByPrimaryKeySelective(record);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public int updateByPrimaryKey(PushGoodsRecord record) throws PushGoodsRecordException {
|
| | | return pushGoodsRecordMapper.updateByPrimaryKey(record);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public List<PushGoodsRecord> listByPushIdAndDeviceId(Long pushId, Long deviceId) throws PushGoodsRecordException {
|
| | | return pushGoodsRecordMapper.listByPushIdAndDeviceId(pushId, deviceId);
|
| | | }
|
| | | |
| | | |
| | | }
|
| | | package com.yeshi.fanli.service.impl.push; |
| | | |
| | | import java.util.List; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.yeshi.fanli.dao.mybatis.push.PushGoodsRecordMapper; |
| | | import com.yeshi.fanli.entity.push.PushGoodsRecord; |
| | | import com.yeshi.fanli.exception.push.PushGoodsRecordException; |
| | | import com.yeshi.fanli.service.inter.push.PushGoodsRecordService; |
| | | |
| | | @Service |
| | | public class PushGoodsRecordServiceImpl implements PushGoodsRecordService { |
| | | |
| | | @Resource |
| | | private PushGoodsRecordMapper pushGoodsRecordMapper; |
| | | |
| | | |
| | | @Override |
| | | public int deleteByPrimaryKey(Long id) throws PushGoodsRecordException { |
| | | return pushGoodsRecordMapper.deleteByPrimaryKey(id); |
| | | } |
| | | |
| | | @Override |
| | | public int insert(PushGoodsRecord record) throws PushGoodsRecordException { |
| | | return pushGoodsRecordMapper.insert(record); |
| | | } |
| | | |
| | | @Override |
| | | public int insertSelective(PushGoodsRecord record) throws PushGoodsRecordException { |
| | | return pushGoodsRecordMapper.insertSelective(record); |
| | | } |
| | | |
| | | @Override |
| | | public PushGoodsRecord selectByPrimaryKey(Long id) throws PushGoodsRecordException { |
| | | return pushGoodsRecordMapper.selectByPrimaryKey(id); |
| | | } |
| | | |
| | | @Override |
| | | public int updateByPrimaryKeySelective(PushGoodsRecord record) throws PushGoodsRecordException { |
| | | return pushGoodsRecordMapper.updateByPrimaryKeySelective(record); |
| | | } |
| | | |
| | | @Override |
| | | public int updateByPrimaryKey(PushGoodsRecord record) throws PushGoodsRecordException { |
| | | return pushGoodsRecordMapper.updateByPrimaryKey(record); |
| | | } |
| | | |
| | | @Override |
| | | public List<PushGoodsRecord> listByPushIdAndDeviceId(Long pushId, Long deviceId) throws PushGoodsRecordException { |
| | | return pushGoodsRecordMapper.listByPushIdAndDeviceId(pushId, deviceId); |
| | | } |
| | | |
| | | |
| | | } |