admin
2024-07-26 c0fa314702c6bb19b0c8975dfaee8e39d1896844
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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
    }
 
}