| | |
| | | package com.yeshi.fanli.service.impl.hongbao;
|
| | |
|
| | | import java.util.Date;
|
| | | import java.util.List;
|
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | | import org.springframework.stereotype.Service;
|
| | | import org.springframework.transaction.annotation.Transactional;
|
| | |
|
| | | import com.yeshi.fanli.dao.mybatis.hongbao.HongBaoV2SettleTempMapper;
|
| | | import com.yeshi.fanli.entity.order.HongBaoV2SettleTemp;
|
| | | import com.yeshi.fanli.service.inter.hongbao.HongBaoV2SettleTempService;
|
| | |
|
| | | @Service
|
| | | public class HongBaoV2SettleTempServiceImpl implements HongBaoV2SettleTempService {
|
| | |
|
| | | @Resource
|
| | | private HongBaoV2SettleTempMapper hongBaoV2SettleTempMapper;
|
| | |
|
| | | @Transactional
|
| | | @Override
|
| | | public void addTemp(List<Long> hongBaoIdList, String taskKey) {
|
| | | for (Long hbId : hongBaoIdList) {
|
| | | HongBaoV2SettleTemp temp = new HongBaoV2SettleTemp();
|
| | | temp.setCreateTime(new Date());
|
| | | temp.setHongBaoId(hbId);
|
| | | temp.setTaskKey(taskKey);
|
| | | hongBaoV2SettleTempMapper.insertSelective(temp);
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | @Override
|
| | | public List<HongBaoV2SettleTemp> listByKey(String key) {
|
| | | return hongBaoV2SettleTempMapper.listByKey(key);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public long countByKey(String key) {
|
| | | return hongBaoV2SettleTempMapper.countByKey(key);
|
| | | }
|
| | |
|
| | | }
|
| | | package com.yeshi.fanli.service.impl.hongbao; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import com.yeshi.fanli.dao.mybatis.hongbao.HongBaoV2SettleTempMapper; |
| | | import com.yeshi.fanli.entity.order.HongBaoV2SettleTemp; |
| | | import com.yeshi.fanli.service.inter.hongbao.HongBaoV2SettleTempService; |
| | | |
| | | @Service |
| | | public class HongBaoV2SettleTempServiceImpl implements HongBaoV2SettleTempService { |
| | | |
| | | @Resource |
| | | private HongBaoV2SettleTempMapper hongBaoV2SettleTempMapper; |
| | | |
| | | @Transactional |
| | | @Override |
| | | public void addTemp(List<Long> hongBaoIdList, String taskKey) { |
| | | for (Long hbId : hongBaoIdList) { |
| | | HongBaoV2SettleTemp temp = new HongBaoV2SettleTemp(); |
| | | temp.setCreateTime(new Date()); |
| | | temp.setHongBaoId(hbId); |
| | | temp.setTaskKey(taskKey); |
| | | hongBaoV2SettleTempMapper.insertSelective(temp); |
| | | } |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public List<HongBaoV2SettleTemp> listByKey(String key) { |
| | | return hongBaoV2SettleTempMapper.listByKey(key); |
| | | } |
| | | |
| | | @Override |
| | | public long countByKey(String key) { |
| | | return hongBaoV2SettleTempMapper.countByKey(key); |
| | | } |
| | | |
| | | } |