| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- import cn.hutool.http.HttpUtil;
- import com.alibaba.fastjson.JSONObject;
- import com.malk.aosk.AoskApplication;
- import com.malk.delegate.DDEvent;
- 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;
- @Slf4j
- @SpringBootTest(classes = AoskApplication.class)
- @RunWith(SpringRunner.class)
- public class test {
- @Autowired
- private DDEvent ddEvent;
- // @Test
- // public void test() {
- // try {
- // ddEvent.executeEvent_Instance_Start("amFZ4pIMQ-2RCLF61fp-ZA03891750755509", "PROC-A4CDBB64-FD25-44AB-A4DE-5906597A555A");
- // Thread.sleep(30000);
- // }catch (Exception e){
- // e.printStackTrace();
- // }
- // }
- @Test
- public void test1() {
- // 184297024169
- //184297048969
- //184297048973
- String result=HttpUtil.post("http://61.177.207.68:9002/api/oa/file/save", JSONObject.toJSONString(
- UtilMap.map("pid, form, fileId, oano","amFZ4pIMQ-2RCLF61fp-ZA03891750755509","服务类采购合同","184297048973","202506241658000296641")));
- System.out.println(result);
- }
- }
|