package com.hzya.frame.plugin.lets.plugin.sales;

import com.hzya.frame.WebappApplication;
import com.hzya.frame.plugin.lets.ofsvo.QueryOfsSoSaleOutVo;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import static org.junit.Assert.*;

/**
 * @Author：liuyang
 * @Package：com.hzya.frame.plugin.lets.plugin.sales
 * @Project：kangarooDataCenterV3
 * @name：SoSaleReturnPluginInitializerToBTest
 * @Date：2024/8/16 13:56
 * @Filename：SoSaleReturnPluginInitializerToBTest
 */
@RunWith(SpringRunner.class)
@SpringBootTest(classes = WebappApplication.class)
public class SoSaleReturnPluginInitializerToBTest {

    @Autowired
    private SoSaleReturnPluginInitializerToB soSaleReturnPluginInitializerToB;

    @Test
    public void startImplement() {
        try {
//            soSaleReturnPluginInitializerToB.startImplement(null, null);
//            soSaleReturnPluginInitializerToB.startImplementByCode("LETS-RE2024083000000001");
            //测试TOB退货

            //测试TOB退货-确认收入
//            soSaleReturnPluginInitializerToB.startImplementByTradeTime("2024-08-30 15:54:41", "2024-08-30 15:54:43");


            soSaleReturnPluginInitializerToB.startImplementByCode("LETS-RE2024091400000001", "tran");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

//    @Test
//    public void startImplement2() {
//        try {
//            QueryOfsSoSaleOutVo queryOfsSoSaleOutVo = new QueryOfsSoSaleOutVo();
//            queryOfsSoSaleOutVo.setClientCode("LETS");
//            soSaleReturnPluginInitializerToB.getOfsRertunOrder(queryOfsSoSaleOutVo);
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
//    }
}