KKSU
2024-07-31 e7f0478c431a0da554040501fe000e4f31bdf0e2
后台
2 files modified
124 ■■■■ changed files
src/test/java/cc/mrbird/febs/AgentTest.java 24 ●●●● patch | view | raw | blame | history
src/test/java/cc/mrbird/febs/ProfitTest.java 100 ●●●● patch | view | raw | blame | history
src/test/java/cc/mrbird/febs/AgentTest.java
@@ -18,16 +18,16 @@
    @Autowired
    private GameService gameService;
    /**
     * 房主操作
     */
    //创建房间
    @Test
    public void createRoom() {
        ApiCreateRoomDto apiCreateRoomDto = new ApiCreateRoomDto();
        apiCreateRoomDto.setRoomType(1);
        apiCreateRoomDto.setGameTime(10);
        gameService.createRoom(apiCreateRoomDto);
    }
//    /**
//     * 房主操作
//     */
//    //创建房间
//    @Test
//    public void createRoom() {
//
//        ApiCreateRoomDto apiCreateRoomDto = new ApiCreateRoomDto();
//        apiCreateRoomDto.setRoomType(1);
//        apiCreateRoomDto.setGameTime(10);
//        gameService.createRoom(apiCreateRoomDto);
//    }
}
src/test/java/cc/mrbird/febs/ProfitTest.java
@@ -16,14 +16,14 @@
@SpringBootTest
public class ProfitTest {
    @Autowired
    private IAgentService agentService;
    @Autowired
    private MallMemberMapper memberMapper;
    @Autowired
    private DataDictionaryCustomMapper dataDictionaryCustomMapper;
    @Autowired
    private MallProductBuyMapper mallProductBuyMapper;
//    @Autowired
//    private IAgentService agentService;
//    @Autowired
//    private MallMemberMapper memberMapper;
//    @Autowired
//    private DataDictionaryCustomMapper dataDictionaryCustomMapper;
//    @Autowired
//    private MallProductBuyMapper mallProductBuyMapper;
//    @Test
//    public void dynamicProfit(){
//
@@ -145,50 +145,50 @@
//    }
    @Autowired
    private LaKaLaService laKaLaService;
    @Autowired
    ResourceLoader resourceLoader;
    @Autowired
    private NBYHService nbyhService;
    @Autowired
    private IAdminMallMemberService mallMemberService;
    @Autowired
    private MallProductNftMapper mallProductNftMapper;
    @Test
    public void agentProfitTrade() {
        boolean flag = true;
        Integer i = 0;
//        while (flag){
////            agentService.BuyToSellV2();
//            DateTime dateTime = DateUtil.offsetDay(new DateTime(), i);
//            agentService.BuyToSellV3(dateTime);
//            i = i+1;
//            List<MallProductBuy> mallProductBuys = mallProductBuyMapper.selectListByStateAndMateState(
//                    ProductEnum.PRODUCT_BUY_SUCCESS.getValue(),
//                    ProductEnum.PRODUCT_BUY_MATE_STATE_FAIL.getValue());
//            if(CollUtil.isEmpty(mallProductBuys)){
//                flag = false;
//    @Autowired
//    private LaKaLaService laKaLaService;
//    @Autowired
//    ResourceLoader resourceLoader;
//    @Autowired
//    private NBYHService nbyhService;
//    @Autowired
//    private IAdminMallMemberService mallMemberService;
//    @Autowired
//    private MallProductNftMapper mallProductNftMapper;
//
//    @Test
//    public void agentProfitTrade() {
//        boolean flag = true;
//        Integer i = 0;
////        while (flag){
//////            agentService.BuyToSellV2();
////            DateTime dateTime = DateUtil.offsetDay(new DateTime(), i);
////            agentService.BuyToSellV3(dateTime);
////            i = i+1;
////            List<MallProductBuy> mallProductBuys = mallProductBuyMapper.selectListByStateAndMateState(
////                    ProductEnum.PRODUCT_BUY_SUCCESS.getValue(),
////                    ProductEnum.PRODUCT_BUY_MATE_STATE_FAIL.getValue());
////            if(CollUtil.isEmpty(mallProductBuys)){
////                flag = false;
////            }
////        }
//        System.out.println(i);
//            }
//    @Test
//    public void agentProfit() {
////        try {
////            System.out.println(resourceLoader.getResource("classpath:lkl/api_private_key.pem").getInputStream());
////        } catch (IOException e) {
////            e.printStackTrace();
////        }
////        LaKaLaCreateOrderReqDate laKaLaCreateOrderReqDate = new LaKaLaCreateOrderReqDate();
////        //订单编号
////        laKaLaCreateOrderReqDate.setOut_order_no("2023041918302032901");
////        //订单金额,分计
////        laKaLaCreateOrderReqDate.setTotal_amount(new BigDecimal(1).longValue());
////        laKaLaCreateOrderReqDate.setOrder_info("礼品一");
////        laKaLaService.verifyCreateOrder(laKaLaCreateOrderReqDate);
//        }
        System.out.println(i);
    }
    @Test
    public void agentProfit() {
//        try {
//            System.out.println(resourceLoader.getResource("classpath:lkl/api_private_key.pem").getInputStream());
//        } catch (IOException e) {
//            e.printStackTrace();
//        }
//        LaKaLaCreateOrderReqDate laKaLaCreateOrderReqDate = new LaKaLaCreateOrderReqDate();
//        //订单编号
//        laKaLaCreateOrderReqDate.setOut_order_no("2023041918302032901");
//        //订单金额,分计
//        laKaLaCreateOrderReqDate.setTotal_amount(new BigDecimal(1).longValue());
//        laKaLaCreateOrderReqDate.setOrder_info("礼品一");
//        laKaLaService.verifyCreateOrder(laKaLaCreateOrderReqDate);
    }
//
//
////    @Test