| | |
| | | package com.yeshi.fanli.service.impl.order;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | | import org.springframework.stereotype.Service;
|
| | |
| | | import com.yeshi.fanli.dao.mybatis.order.HongBaoOrderMapper;
|
| | | import com.yeshi.fanli.entity.order.HongBaoOrder;
|
| | | import com.yeshi.fanli.service.inter.order.HongBaoOrderService;
|
| | |
|
| | | import com.yeshi.fanli.util.Constant;
|
| | |
|
| | | @Service
|
| | | public class HongBaoOrderServiceImpl implements HongBaoOrderService {
|
| | | |
| | |
|
| | | @Resource
|
| | | private HongBaoOrderMapper hongBaoOrderMapper;
|
| | |
|
| | |
|
| | | @Override
|
| | | public int insert(HongBaoOrder record) {
|
| | |
| | | return hongBaoOrderMapper.selectByPrimaryKey(id);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public List<HongBaoOrder> listFanLiOrder(Long uid, int page, int pageSize) {
|
| | | return hongBaoOrderMapper.listFanLiOrder(uid, (page - 1) * pageSize, pageSize);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public long countFanLiOrder(Long uid) {
|
| | | Long count = hongBaoOrderMapper.countFanLiOrder(uid);
|
| | | return count == null ? 0 : count;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public long countByOrderNoAndHongBaoType(String orderNo, int type) {
|
| | | return hongBaoOrderMapper.countByOrderNoAndHongBaoType(orderNo, type, Constant.SOURCE_TYPE_TAOBAO);
|
| | | }
|
| | |
|
| | | }
|