| | |
| | | package com.taoke.autopay; |
| | | |
| | | import com.taoke.autopay.dao.agent.ChannelAgentMapper; |
| | | import com.taoke.autopay.dao.agent.ChannelAgentSettleDetailMapper; |
| | | import com.taoke.autopay.dao.agent.ChannelAgentSettleRecordMapper; |
| | | import com.taoke.autopay.dao.agent.ChannelAgentSharingRatioMapper; |
| | | import com.taoke.autopay.entity.OrderChannelEnum; |
| | | import com.taoke.autopay.entity.agent.ChannelAgent; |
| | | import com.taoke.autopay.entity.agent.ChannelAgentSettleRecord; |
| | | import com.taoke.autopay.entity.agent.ChannelAgentSharingRatio; |
| | | import com.taoke.autopay.exception.ChannelAgentException; |
| | | import com.taoke.autopay.exception.ChannelAgentSettleException; |
| | | import com.taoke.autopay.service.agent.ChannelAgentService; |
| | | import com.taoke.autopay.service.agent.ChannelAgentSettleService; |
| | | import org.junit.jupiter.api.Test; |
| | | import org.springframework.boot.test.context.SpringBootTest; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author hxh |
| | |
| | | |
| | | @Resource |
| | | private ChannelAgentSharingRatioMapper channelAgentSharingRatioMapper; |
| | | @Resource |
| | | private ChannelAgentSettleService channelAgentSettleService; |
| | | |
| | | @Resource |
| | | private ChannelAgentSettleRecordMapper channelAgentSettleRecordMapper; |
| | | |
| | | |
| | | @Resource |
| | | private ChannelAgentSettleDetailMapper channelAgentSettleDetailMapper; |
| | | |
| | | |
| | | @Test |
| | |
| | | // ChannelAgentSharingRatio |
| | | } |
| | | |
| | | @Test |
| | | public void testSettle() throws ChannelAgentSettleException { |
| | | |
| | | channelAgentSettleService.startSettle("2024-07-28"); |
| | | |
| | | } |
| | | |
| | | @Test |
| | | public void testGetSettle() throws ChannelAgentSettleException { |
| | | // channelAgentSettleDetailMapper.listBySettleId(1L); |
| | | // channelAgentSettleRecordMapper.selectByPrimaryKey(1L); |
| | | |
| | | ChannelAgentSettleRecordMapper.DaoQuery daoQuery= new ChannelAgentSettleRecordMapper.DaoQuery(); |
| | | daoQuery.count=100; |
| | | // |
| | | List<ChannelAgentSettleRecord> records = channelAgentSettleService.list(daoQuery); |
| | | System.out.println(records); |
| | | |
| | | } |
| | | |
| | | } |