package com.taoke.autopay;
|
|
import com.taoke.autopay.dao.agent.ChannelAgentMapper;
|
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.ChannelAgentSharingRatio;
|
import com.taoke.autopay.exception.ChannelAgentException;
|
import com.taoke.autopay.service.agent.ChannelAgentService;
|
import org.junit.jupiter.api.Test;
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
import javax.annotation.Resource;
|
import java.math.BigDecimal;
|
|
/**
|
* @author hxh
|
* @title: AgentTest
|
* @description: TODO
|
* @date 2024/7/26 0:07
|
*/
|
@SpringBootTest
|
public class AgentTest {
|
|
@Resource
|
private ChannelAgentService channelAgentService;
|
|
@Resource
|
private ChannelAgentSharingRatioMapper channelAgentSharingRatioMapper;
|
|
|
@Test
|
public void test1() throws ChannelAgentException {
|
channelAgentService.addChannelAgent(ChannelAgent.builder().account("test123").pwd("123123").name("测试1").build());
|
}
|
|
@Test
|
public void test2(){
|
// ChannelAgentSharingRatio
|
}
|
|
}
|