KKSU
2024-08-22 c536bc3f76cb830695a557b1853e1d8fdea2db32
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;
//            }
//        }
        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);
    }
//    @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);
//    }
//
//
////    @Test