Blame view

사용법.md 2.28 KB
d3e8a8a9   함상기   2024-04-01
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  0. 필요시 application.proeprties파일을 수정한다.

  1. Run.bat를 실행하여 서버를 뛰운다.

  2. http://localhost:8080/swagger-ui/index.html로 들어가서 테스트 가능

  3. 파리미터

  

  #원본데이타를 가져와 생성

  http://localhost:8080/api/job/create (post)

  {

    "sysSe": "AI_ALL",

    "accnutYm": "202311"

  }	

  

  .\curl\bin\curl -d '{"sysSe":"AI_ALL", "accnutYm":"202311"}' `

  -H "Content-Type: application/json" `

  -X POST http://localhost:8080/api/job/create

  

  #자동매칭

  http://localhost:8080/api/job/matching

  {

    "jobType": "ALL",

    "sysSe": "AI_ALL",

    "accnutYm": "202311",

30bbef42   함상기   ai sub Matching 추가
23
24
    "cpr_code": "O01100",          

    "partn_cpr": "Z01100"

d3e8a8a9   함상기   2024-04-01
25
26
27
28
29
30
31
32
33
34
35
  }

  

  .\curl\bin\curl -d '{"jobType": "ALL", "sysSe":"AI_ALL", "accnutYm":"202311", "searchCond":"mtch_ty is null"}' `

  -H "Content-Type: application/json" `

  -X POST http://localhost:8080/api/job/matching

  

  

  #EX 매칭 (조합)

  http://localhost:8080/api/job/extramatching

  {

    "sysSe": "LS_ALL",

30bbef42   함상기   ai sub Matching 추가
36
37
38
    "accnutYm": "202311",

    "cpr_code": "O01100",          

    "partn_cpr": "Z01100"

d3e8a8a9   함상기   2024-04-01
39
40
41
42
43
44
45
46
47
48
49
50
  }

  

  .\curl\bin\curl -d '{"sysSe":"AI_ALL", "accnutYm":"202311"}' `

  -H "Content-Type: application/json" `

  -X POST http://localhost:8080/api/job/extramatching

  

  

  #AI 매칭

  http://localhost:8080/api/job/aimatching

  {

    "sysSe": "LS_ALL",

    "accnutYm": "202310",

30bbef42   함상기   ai sub Matching 추가
51
52
53
    "cpr_code": "O01100",          

    "partn_cpr": "Z01100",

    "error_range": "0"            

d3e8a8a9   함상기   2024-04-01
54
55
  }

  

30bbef42   함상기   ai sub Matching 추가
56
57
  파이썬에 파라미터 넘기는 내용

  {PythonPrg, PythonAiTarget, ThreadName, SysSe, AccnutYm, CprCode, PartCpr, DelngCrncy, ErrorRange}

d3e8a8a9   함상기   2024-04-01
58
59
60
61
62
  

  .\curl\bin\curl -d '{"sysSe":"AI_ALL", "accnutYm":"202311"}' `

  -H "Content-Type: application/json" `

  -X POST http://localhost:8080/api/job/aimatching

  

30bbef42   함상기   ai sub Matching 추가
63
64
65
66
67
68
69
70
71
72
73
  #AI SUB 매칭 (조합)

  http://localhost:8080/api/job/aisubmatching

  {

    "sysSe": "LS_ALL",

    "accnutYm": "202311",

    "mtch_ty": "AI_SLT",

    "cpr_code": "O01100",          

    "partn_cpr": "Z01100",

    "error_range": "0"            

  }

  

d3e8a8a9   함상기   2024-04-01
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
  

  #매칭결과 리턴시

  http://localhost:8080/api/job/return

  {

    "sysSe": "LS_ALL",

    "accnutYm": "202312"

  }

  

  .\curl\bin\curl -d '{"sysSe":"AI_ALL", "accnutYm":"202311"}' `

  -H "Content-Type: application/json" `

  -X POST http://localhost:8080/api/job/return

  

  

  #작업진행결과

  http://localhost:8080/api/job/userJobInfo/JOB그룹id