Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sso
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
sso
Commits
148edb3c
Commit
148edb3c
authored
Jul 09, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
e77030b9
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
532 additions
and
9 deletions
+532
-9
pom.xml
pom.xml
+4
-0
Z_DT_SD_005_PERFORM_INVOICE.java
.../java/com/egolm/sso/bean/Z_DT_SD_005_PERFORM_INVOICE.java
+478
-0
ProFormaInvoiceServiceImpl.java
...om/egolm/sso/service/impl/ProFormaInvoiceServiceImpl.java
+43
-2
ZMISD009SOCREATIONTask.java
...ava/com/schneider_distributor/ZMISD009SOCREATIONTask.java
+1
-1
application-dev.yml
src/main/resources/application-dev.yml
+3
-3
application-pro.yml
src/main/resources/application-pro.yml
+3
-3
No files found.
pom.xml
View file @
148edb3c
...
...
@@ -99,6 +99,10 @@
<groupId>
com.google.code.gson
</groupId>
<artifactId>
gson
</artifactId>
</dependency>
<dependency>
<groupId>
com.thoughtworks.xstream
</groupId>
<artifactId>
xstream
</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
...
...
src/main/java/com/egolm/sso/bean/Z_DT_SD_005_PERFORM_INVOICE.java
0 → 100644
View file @
148edb3c
package
com
.
egolm
.
sso
.
bean
;
import
java.util.List
;
public
class
Z_DT_SD_005_PERFORM_INVOICE
{
Z_DT_SD_005_PERFORM_INVOICE2
Z_DT_SD_005_PERFORM_INVOICE
;
public
static
class
Z_DT_SD_005_PERFORM_INVOICE2
{
HEADER_GENERAL_DATA
HEADER_GENERAL_DATA
;
List
<
HEADER_PARTNER_DATA
>
HEADER_PARTNER_DATA
;
HEADER_DOCU_DATE
HEADER_DOCU_DATE
;
HEADER_REFERENCE_DATA
HEADER_REFERENCE_DATA
;
HEADER_BANK_DATA
HEADER_BANK_DATA
;
HEADER_ORGANIZATIONAL_DATA
HEADER_ORGANIZATIONAL_DATA
;
ITEM_DATA
ITEM_DATA
;
List
<
SUMMARY_GENERAL
>
SUMMARY_GENERAL
;
public
HEADER_GENERAL_DATA
getHEADER_GENERAL_DATA
()
{
return
HEADER_GENERAL_DATA
;
}
public
void
setHEADER_GENERAL_DATA
(
HEADER_GENERAL_DATA
hEADER_GENERAL_DATA
)
{
HEADER_GENERAL_DATA
=
hEADER_GENERAL_DATA
;
}
public
List
<
HEADER_PARTNER_DATA
>
getHEADER_PARTNER_DATA
()
{
return
HEADER_PARTNER_DATA
;
}
public
void
setHEADER_PARTNER_DATA
(
List
<
HEADER_PARTNER_DATA
>
hEADER_PARTNER_DATA
)
{
HEADER_PARTNER_DATA
=
hEADER_PARTNER_DATA
;
}
public
HEADER_DOCU_DATE
getHEADER_DOCU_DATE
()
{
return
HEADER_DOCU_DATE
;
}
public
void
setHEADER_DOCU_DATE
(
HEADER_DOCU_DATE
hEADER_DOCU_DATE
)
{
HEADER_DOCU_DATE
=
hEADER_DOCU_DATE
;
}
public
HEADER_REFERENCE_DATA
getHEADER_REFERENCE_DATA
()
{
return
HEADER_REFERENCE_DATA
;
}
public
void
setHEADER_REFERENCE_DATA
(
HEADER_REFERENCE_DATA
hEADER_REFERENCE_DATA
)
{
HEADER_REFERENCE_DATA
=
hEADER_REFERENCE_DATA
;
}
public
HEADER_BANK_DATA
getHEADER_BANK_DATA
()
{
return
HEADER_BANK_DATA
;
}
public
void
setHEADER_BANK_DATA
(
HEADER_BANK_DATA
hEADER_BANK_DATA
)
{
HEADER_BANK_DATA
=
hEADER_BANK_DATA
;
}
public
HEADER_ORGANIZATIONAL_DATA
getHEADER_ORGANIZATIONAL_DATA
()
{
return
HEADER_ORGANIZATIONAL_DATA
;
}
public
void
setHEADER_ORGANIZATIONAL_DATA
(
HEADER_ORGANIZATIONAL_DATA
hEADER_ORGANIZATIONAL_DATA
)
{
HEADER_ORGANIZATIONAL_DATA
=
hEADER_ORGANIZATIONAL_DATA
;
}
public
ITEM_DATA
getITEM_DATA
()
{
return
ITEM_DATA
;
}
public
void
setITEM_DATA
(
ITEM_DATA
iTEM_DATA
)
{
ITEM_DATA
=
iTEM_DATA
;
}
public
List
<
SUMMARY_GENERAL
>
getSUMMARY_GENERAL
()
{
return
SUMMARY_GENERAL
;
}
public
void
setSUMMARY_GENERAL
(
List
<
SUMMARY_GENERAL
>
sUMMARY_GENERAL
)
{
SUMMARY_GENERAL
=
sUMMARY_GENERAL
;
}
}
public
static
class
HEADER_GENERAL_DATA
{
String
BELNR
;
String
ZTERM
;
public
String
getBELNR
()
{
return
BELNR
;
}
public
void
setBELNR
(
String
bELNR
)
{
BELNR
=
bELNR
;
}
public
String
getZTERM
()
{
return
ZTERM
;
}
public
void
setZTERM
(
String
zTERM
)
{
ZTERM
=
zTERM
;
}
}
public
static
class
HEADER_PARTNER_DATA
{
String
PARVW
;
String
PARTN
;
public
String
getPARVW
()
{
return
PARVW
;
}
public
void
setPARVW
(
String
pARVW
)
{
PARVW
=
pARVW
;
}
public
String
getPARTN
()
{
return
PARTN
;
}
public
void
setPARTN
(
String
pARTN
)
{
PARTN
=
pARTN
;
}
}
public
static
class
HEADER_DOCU_DATE
{
String
IDDAT
;
String
DATUM
;
public
String
getIDDAT
()
{
return
IDDAT
;
}
public
void
setIDDAT
(
String
iDDAT
)
{
IDDAT
=
iDDAT
;
}
public
String
getDATUM
()
{
return
DATUM
;
}
public
void
setDATUM
(
String
dATUM
)
{
DATUM
=
dATUM
;
}
}
public
static
class
HEADER_REFERENCE_DATA
{
String
QUALF
;
String
BELNR
;
String
DATUM
;
public
String
getQUALF
()
{
return
QUALF
;
}
public
void
setQUALF
(
String
qUALF
)
{
QUALF
=
qUALF
;
}
public
String
getBELNR
()
{
return
BELNR
;
}
public
void
setBELNR
(
String
bELNR
)
{
BELNR
=
bELNR
;
}
public
String
getDATUM
()
{
return
DATUM
;
}
public
void
setDATUM
(
String
dATUM
)
{
DATUM
=
dATUM
;
}
}
public
static
class
HEADER_BANK_DATA
{
String
ACNUM
;
public
String
getACNUM
()
{
return
ACNUM
;
}
public
void
setACNUM
(
String
aCNUM
)
{
ACNUM
=
aCNUM
;
}
}
public
static
class
HEADER_ORGANIZATIONAL_DATA
{
String
QUALF
;
String
ORGID
;
public
String
getQUALF
()
{
return
QUALF
;
}
public
void
setQUALF
(
String
qUALF
)
{
QUALF
=
qUALF
;
}
public
String
getORGID
()
{
return
ORGID
;
}
public
void
setORGID
(
String
oRGID
)
{
ORGID
=
oRGID
;
}
}
public
static
class
SUMMARY_GENERAL
{
String
SUMID
;
String
SUMME
;
String
WAERQ
;
public
String
getSUMID
()
{
return
SUMID
;
}
public
void
setSUMID
(
String
sUMID
)
{
SUMID
=
sUMID
;
}
public
String
getSUMME
()
{
return
SUMME
;
}
public
void
setSUMME
(
String
sUMME
)
{
SUMME
=
sUMME
;
}
public
String
getWAERQ
()
{
return
WAERQ
;
}
public
void
setWAERQ
(
String
wAERQ
)
{
WAERQ
=
wAERQ
;
}
}
public
static
class
ITEM_DATA
{
ITEM_REFERENCE_DATA
ITEM_REFERENCE_DATA
;
ITEM_MATERIAL_DATA
ITEM_MATERIAL_DATA
;
List
<
ITEM_AMOUNT_DATA
>
ITEM_AMOUNT_DATA
;
ITEM_VAT_DATA
ITEM_VAT_DATA
;
List
<
ITEM_REFERENCE_PO_TYPE
>
ITEM_REFERENCE_PO_TYPE
;
String
POSEX
;
String
MENGE
;
String
MENEE
;
String
WERKS
;
public
ITEM_REFERENCE_DATA
getITEM_REFERENCE_DATA
()
{
return
ITEM_REFERENCE_DATA
;
}
public
void
setITEM_REFERENCE_DATA
(
ITEM_REFERENCE_DATA
iTEM_REFERENCE_DATA
)
{
ITEM_REFERENCE_DATA
=
iTEM_REFERENCE_DATA
;
}
public
ITEM_MATERIAL_DATA
getITEM_MATERIAL_DATA
()
{
return
ITEM_MATERIAL_DATA
;
}
public
void
setITEM_MATERIAL_DATA
(
ITEM_MATERIAL_DATA
iTEM_MATERIAL_DATA
)
{
ITEM_MATERIAL_DATA
=
iTEM_MATERIAL_DATA
;
}
public
List
<
ITEM_AMOUNT_DATA
>
getITEM_AMOUNT_DATA
()
{
return
ITEM_AMOUNT_DATA
;
}
public
void
setITEM_AMOUNT_DATA
(
List
<
ITEM_AMOUNT_DATA
>
iTEM_AMOUNT_DATA
)
{
ITEM_AMOUNT_DATA
=
iTEM_AMOUNT_DATA
;
}
public
ITEM_VAT_DATA
getITEM_VAT_DATA
()
{
return
ITEM_VAT_DATA
;
}
public
void
setITEM_VAT_DATA
(
ITEM_VAT_DATA
iTEM_VAT_DATA
)
{
ITEM_VAT_DATA
=
iTEM_VAT_DATA
;
}
public
List
<
ITEM_REFERENCE_PO_TYPE
>
getITEM_REFERENCE_PO_TYPE
()
{
return
ITEM_REFERENCE_PO_TYPE
;
}
public
void
setITEM_REFERENCE_PO_TYPE
(
List
<
ITEM_REFERENCE_PO_TYPE
>
iTEM_REFERENCE_PO_TYPE
)
{
ITEM_REFERENCE_PO_TYPE
=
iTEM_REFERENCE_PO_TYPE
;
}
public
String
getPOSEX
()
{
return
POSEX
;
}
public
void
setPOSEX
(
String
pOSEX
)
{
POSEX
=
pOSEX
;
}
public
String
getMENGE
()
{
return
MENGE
;
}
public
void
setMENGE
(
String
mENGE
)
{
MENGE
=
mENGE
;
}
public
String
getMENEE
()
{
return
MENEE
;
}
public
void
setMENEE
(
String
mENEE
)
{
MENEE
=
mENEE
;
}
public
String
getWERKS
()
{
return
WERKS
;
}
public
void
setWERKS
(
String
wERKS
)
{
WERKS
=
wERKS
;
}
}
public
static
class
ITEM_REFERENCE_DATA
{
String
QUALF
;
String
BELNR
;
String
ZEILE
;
String
QUALF_DN
;
String
BELNR_DN
;
String
ZEILE_DN
;
public
String
getQUALF
()
{
return
QUALF
;
}
public
void
setQUALF
(
String
qUALF
)
{
QUALF
=
qUALF
;
}
public
String
getBELNR
()
{
return
BELNR
;
}
public
void
setBELNR
(
String
bELNR
)
{
BELNR
=
bELNR
;
}
public
String
getZEILE
()
{
return
ZEILE
;
}
public
void
setZEILE
(
String
zEILE
)
{
ZEILE
=
zEILE
;
}
public
String
getQUALF_DN
()
{
return
QUALF_DN
;
}
public
void
setQUALF_DN
(
String
qUALF_DN
)
{
QUALF_DN
=
qUALF_DN
;
}
public
String
getBELNR_DN
()
{
return
BELNR_DN
;
}
public
void
setBELNR_DN
(
String
bELNR_DN
)
{
BELNR_DN
=
bELNR_DN
;
}
public
String
getZEILE_DN
()
{
return
ZEILE_DN
;
}
public
void
setZEILE_DN
(
String
zEILE_DN
)
{
ZEILE_DN
=
zEILE_DN
;
}
}
public
static
class
ITEM_MATERIAL_DATA
{
String
QUALF
;
String
IDTNR
;
public
String
getQUALF
()
{
return
QUALF
;
}
public
void
setQUALF
(
String
qUALF
)
{
QUALF
=
qUALF
;
}
public
String
getIDTNR
()
{
return
IDTNR
;
}
public
void
setIDTNR
(
String
iDTNR
)
{
IDTNR
=
iDTNR
;
}
}
public
static
class
ITEM_AMOUNT_DATA
{
String
QUALF
;
String
BETRG
;
public
String
getQUALF
()
{
return
QUALF
;
}
public
void
setQUALF
(
String
qUALF
)
{
QUALF
=
qUALF
;
}
public
String
getBETRG
()
{
return
BETRG
;
}
public
void
setBETRG
(
String
bETRG
)
{
BETRG
=
bETRG
;
}
}
public
static
class
ITEM_VAT_DATA
{
String
MWSKZ
;
String
MWSBT
;
public
String
getMWSKZ
()
{
return
MWSKZ
;
}
public
void
setMWSKZ
(
String
mWSKZ
)
{
MWSKZ
=
mWSKZ
;
}
public
String
getMWSBT
()
{
return
MWSBT
;
}
public
void
setMWSBT
(
String
mWSBT
)
{
MWSBT
=
mWSBT
;
}
}
public
static
class
ITEM_REFERENCE_PO_TYPE
{
ITEM_REFERENCE_PO_DATA
ITEM_REFERENCE_PO_DATA
;
String
TDID
;
public
ITEM_REFERENCE_PO_DATA
getITEM_REFERENCE_PO_DATA
()
{
return
ITEM_REFERENCE_PO_DATA
;
}
public
void
setITEM_REFERENCE_PO_DATA
(
ITEM_REFERENCE_PO_DATA
iTEM_REFERENCE_PO_DATA
)
{
ITEM_REFERENCE_PO_DATA
=
iTEM_REFERENCE_PO_DATA
;
}
public
String
getTDID
()
{
return
TDID
;
}
public
void
setTDID
(
String
tDID
)
{
TDID
=
tDID
;
}
}
public
static
class
ITEM_REFERENCE_PO_DATA
{
String
TDLINE
;
public
String
getTDLINE
()
{
return
TDLINE
;
}
public
void
setTDLINE
(
String
tDLINE
)
{
TDLINE
=
tDLINE
;
}
}
}
src/main/java/com/egolm/sso/service/impl/ProFormaInvoiceServiceImpl.java
View file @
148edb3c
...
...
@@ -6,8 +6,26 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.jdbc.core.JdbcTemplate
;
import
org.springframework.stereotype.Component
;
import
com.egolm.sso.bean.Z_DT_SD_005_PERFORM_INVOICE
;
import
com.egolm.sso.bean.Z_DT_SD_005_PERFORM_INVOICE.HEADER_BANK_DATA
;
import
com.egolm.sso.bean.Z_DT_SD_005_PERFORM_INVOICE.HEADER_DOCU_DATE
;
import
com.egolm.sso.bean.Z_DT_SD_005_PERFORM_INVOICE.HEADER_GENERAL_DATA
;
import
com.egolm.sso.bean.Z_DT_SD_005_PERFORM_INVOICE.HEADER_ORGANIZATIONAL_DATA
;
import
com.egolm.sso.bean.Z_DT_SD_005_PERFORM_INVOICE.HEADER_PARTNER_DATA
;
import
com.egolm.sso.bean.Z_DT_SD_005_PERFORM_INVOICE.HEADER_REFERENCE_DATA
;
import
com.egolm.sso.bean.Z_DT_SD_005_PERFORM_INVOICE.ITEM_AMOUNT_DATA
;
import
com.egolm.sso.bean.Z_DT_SD_005_PERFORM_INVOICE.ITEM_DATA
;
import
com.egolm.sso.bean.Z_DT_SD_005_PERFORM_INVOICE.ITEM_MATERIAL_DATA
;
import
com.egolm.sso.bean.Z_DT_SD_005_PERFORM_INVOICE.ITEM_REFERENCE_DATA
;
import
com.egolm.sso.bean.Z_DT_SD_005_PERFORM_INVOICE.ITEM_REFERENCE_PO_DATA
;
import
com.egolm.sso.bean.Z_DT_SD_005_PERFORM_INVOICE.ITEM_REFERENCE_PO_TYPE
;
import
com.egolm.sso.bean.Z_DT_SD_005_PERFORM_INVOICE.ITEM_VAT_DATA
;
import
com.egolm.sso.bean.Z_DT_SD_005_PERFORM_INVOICE.SUMMARY_GENERAL
;
import
com.egolm.sso.bean.Z_DT_SD_005_PERFORM_INVOICE.Z_DT_SD_005_PERFORM_INVOICE2
;
import
com.egolm.sso.service.CommonService
;
import
com.egolm.sso.service.ProFormaInvoiceService
;
import
com.google.gson.Gson
;
import
com.thoughtworks.xstream.XStream
;
@Component
@WebService
(
serviceName
=
"ProFormaInvoiceService"
,
targetNamespace
=
"http://pro_forma_invoice.sso.egolm.com"
,
endpointInterface
=
"com.egolm.sso.service.ProFormaInvoiceService"
)
...
...
@@ -21,6 +39,29 @@ public class ProFormaInvoiceServiceImpl implements ProFormaInvoiceService {
@Override
public
void
execute
(
String
xml
)
{
XStream
xStream
=
new
XStream
();
xStream
.
alias
(
"Z_DT_SD_005_PERFORM_INVOICE"
,
Z_DT_SD_005_PERFORM_INVOICE2
.
class
);
xStream
.
alias
(
"HEADER_GENERAL_DATA"
,
HEADER_GENERAL_DATA
.
class
);
xStream
.
alias
(
"HEADER_PARTNER_DATA"
,
HEADER_PARTNER_DATA
.
class
);
xStream
.
alias
(
"HEADER_DOCU_DATE"
,
HEADER_DOCU_DATE
.
class
);
xStream
.
alias
(
"HEADER_REFERENCE_DATA"
,
HEADER_REFERENCE_DATA
.
class
);
xStream
.
alias
(
"HEADER_BANK_DATA"
,
HEADER_BANK_DATA
.
class
);
xStream
.
alias
(
"HEADER_ORGANIZATIONAL_DATA"
,
HEADER_ORGANIZATIONAL_DATA
.
class
);
xStream
.
alias
(
"SUMMARY_GENERAL"
,
SUMMARY_GENERAL
.
class
);
xStream
.
alias
(
"ITEM_DATA"
,
ITEM_DATA
.
class
);
xStream
.
alias
(
"ITEM_REFERENCE_DATA"
,
ITEM_REFERENCE_DATA
.
class
);
xStream
.
alias
(
"ITEM_MATERIAL_DATA"
,
ITEM_MATERIAL_DATA
.
class
);
xStream
.
alias
(
"ITEM_AMOUNT_DATA"
,
ITEM_AMOUNT_DATA
.
class
);
xStream
.
alias
(
"ITEM_VAT_DATA"
,
ITEM_VAT_DATA
.
class
);
xStream
.
alias
(
"ITEM_REFERENCE_PO_TYPE"
,
ITEM_REFERENCE_PO_TYPE
.
class
);
xStream
.
alias
(
"ITEM_REFERENCE_PO_DATA"
,
ITEM_REFERENCE_PO_DATA
.
class
);
Z_DT_SD_005_PERFORM_INVOICE
Z_DT_SD_005_PERFORM_INVOICE
=
(
Z_DT_SD_005_PERFORM_INVOICE
)
xStream
.
fromXML
(
xml
);
System
.
out
.
println
(
new
Gson
().
toJson
(
Z_DT_SD_005_PERFORM_INVOICE
));
}
...
...
src/main/java/com/schneider_distributor/ZMISD009SOCREATIONTask.java
View file @
148edb3c
...
...
@@ -25,7 +25,7 @@ public class ZMISD009SOCREATIONTask {
@Value
(
"${SAP.NO009.WSDL}"
)
private
String
wsdlLocaltion
;
@Scheduled
(
cron
=
"${SAP.NO009.
WSDL
}"
)
@Scheduled
(
cron
=
"${SAP.NO009.
CRON
}"
)
public
void
execute
()
throws
Exception
{
this
.
runTask
();
}
...
...
src/main/resources/application-dev.yml
View file @
148edb3c
...
...
@@ -3,14 +3,14 @@ wsPassword: 78258c537d6e4d5fb210a57d05619fb6
SAP
:
NO009
:
WSDL
:
http://schneider-distributor.com/Z_MI_SD_009_SO_CREATION.wsdl
CRON
:
'
0
0
0
*
*
?'
CRON
:
0 0 0 * * ?
spring
:
datasource
:
type
:
com.alibaba.druid.pool.DruidDataSource
driverClassName
:
com.mysql.cj.jdbc.Driver
url
:
'
jdbc:mysql://10.10.0.111:3306/sso?useSSL=false&useUnicode=true&characterEncoding=utf8'
url
:
jdbc:mysql://10.10.0.111:3306/sso?useSSL=false&useUnicode=true&characterEncoding=utf8
username
:
root
password
:
'
egolm#2018'
password
:
egolm#2018
maxActive
:
20
initialSize
:
1
maxWait
:
60000
...
...
src/main/resources/application-pro.yml
View file @
148edb3c
...
...
@@ -3,14 +3,14 @@ wsPassword: f14d4a80f823438a875b1924384c944c
SAP
:
NO009
:
WSDL
:
http://schneider-distributor.com/Z_MI_SD_009_SO_CREATION.wsdl
CRON
:
'
0
0
0
*
*
?'
CRON
:
0 0 0 * * ?
spring
:
datasource
:
type
:
com.alibaba.druid.pool.DruidDataSource
driverClassName
:
com.mysql.cj.jdbc.Driver
url
:
'
jdbc:mysql://10.10.0.111:3306/sso?useSSL=false&useUnicode=true&characterEncoding=utf8'
url
:
jdbc:mysql://10.10.0.111:3306/sso?useSSL=false&useUnicode=true&characterEncoding=utf8
username
:
root
password
:
'
egolm#2018'
password
:
egolm#2018
maxActive
:
20
initialSize
:
1
maxWait
:
60000
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment