package com.malk.jinlun;

import com.alibaba.fastjson.JSONObject;
import com.malk.jinlun.service.CpClient;
import com.malk.jinlun.service.JinlunService;
import com.malk.server.common.McR;
import com.malk.utils.UtilMap;
import lombok.extern.slf4j.Slf4j;
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 java.util.Map;

@Slf4j
@SpringBootTest
@RunWith(SpringRunner.class)
public class YsTest {
    @Autowired
    private CpClient cpClient;
    @Autowired
    private JinlunService jinlunService;


    @Test
    public void test(){
       // McR result = jinlunService.queryFromData(UtilMap.map("schemaCode, propertyCode, propertyValue","KHDA","ShortText1758195840127","K02219"));
//        Map result=cpClient.getCpBoList("KHDA", UtilMap.map("queryFilterType, propertyCode, propertyValue", "Eq", "ShortText1758195840127", "K02219"), null, 0, 1, null);
        //System.out.println(JSONObject.toJSONString(result));
    }
}
