Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sap-service
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
曲欣亮
sap-service
Commits
56b439aa
Commit
56b439aa
authored
Jul 30, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
ed5d0351
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
32 additions
and
13 deletions
+32
-13
ConfirmQuotationServiceImpl.java
...rvices/confirm_quotation/ConfirmQuotationServiceImpl.java
+6
-3
DNDeletionServiceImpl.java
...egolm/sso/services/dn_deletion/DNDeletionServiceImpl.java
+5
-2
MaterialMasterServiceImpl.java
...o/services/material_master/MaterialMasterServiceImpl.java
+5
-2
PrformaInvoiceServiceImpl.java
...o/services/prforma_invoice/PrformaInvoiceServiceImpl.java
+5
-2
PriceListServiceImpl.java
...m/egolm/sso/services/price_list/PriceListServiceImpl.java
+5
-2
ShippingNotificationServiceImpl.java
...hipping_notfirmation/ShippingNotificationServiceImpl.java
+5
-2
application.yml
src/main/resources/application.yml
+1
-0
No files found.
src/main/java/com/egolm/sso/services/confirm_quotation/ConfirmQuotationServiceImpl.java
View file @
56b439aa
...
@@ -42,6 +42,9 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService {
...
@@ -42,6 +42,9 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService {
@Value
(
"${xmlRoot}"
)
@Value
(
"${xmlRoot}"
)
private
String
xmlRoot
;
private
String
xmlRoot
;
@Value
(
"${systemId}"
)
private
String
systemId
;
@Override
@Override
@Transactional
@Transactional
public
void
execute
(
Z_MT_SD_008_SO_CONFIRM_QUOTATION
Z_MT_SD_008_SO_CONFIRM_QUOTATION
)
{
public
void
execute
(
Z_MT_SD_008_SO_CONFIRM_QUOTATION
Z_MT_SD_008_SO_CONFIRM_QUOTATION
)
{
...
@@ -93,7 +96,7 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService {
...
@@ -93,7 +96,7 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService {
}
}
header
.
put
(
"BATCH"
,
dateString
+
"-"
+
common
.
getNextval
(
"T_SO_CONFIRMACTION_HEADER_BATCH_"
+
KUNNR
));
header
.
put
(
"BATCH"
,
dateString
+
"-"
+
common
.
getNextval
(
"T_SO_CONFIRMACTION_HEADER_BATCH_"
+
KUNNR
));
header
.
put
(
"CREATED"
,
now
);
header
.
put
(
"CREATED"
,
now
);
header
.
put
(
"CREATEBY"
,
"system"
);
header
.
put
(
"CREATEBY"
,
systemId
);
String
idIndex
=
StringUtil
.
format
(
common
.
getNextval
(
"T_SO_CONFIRMATION_HEADER_ID_"
+
dateString
),
"00000"
);
String
idIndex
=
StringUtil
.
format
(
common
.
getNextval
(
"T_SO_CONFIRMATION_HEADER_ID_"
+
dateString
),
"00000"
);
Long
hID
=
Long
.
valueOf
(
time
+
idIndex
);
Long
hID
=
Long
.
valueOf
(
time
+
idIndex
);
header
.
put
(
"ID"
,
hID
);
header
.
put
(
"ID"
,
hID
);
...
@@ -128,7 +131,7 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService {
...
@@ -128,7 +131,7 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService {
itemData
.
put
(
"POSTL_CODE1_I"
,
id
.
getPOSTL_COD1_I
());
itemData
.
put
(
"POSTL_CODE1_I"
,
id
.
getPOSTL_COD1_I
());
itemData
.
put
(
"CITY1_I"
,
id
.
getCITY1_I
());
itemData
.
put
(
"CITY1_I"
,
id
.
getCITY1_I
());
itemData
.
put
(
"CREATED"
,
now
);
itemData
.
put
(
"CREATED"
,
now
);
itemData
.
put
(
"CREATEBY"
,
"system"
);
itemData
.
put
(
"CREATEBY"
,
systemId
);
String
iidIndex
=
StringUtil
.
format
(
common
.
getNextval
(
"T_SO_CONFIRMATION_ITEM_DATA_ID_"
+
dateString
),
"00000"
);
String
iidIndex
=
StringUtil
.
format
(
common
.
getNextval
(
"T_SO_CONFIRMATION_ITEM_DATA_ID_"
+
dateString
),
"00000"
);
Long
iID
=
Long
.
valueOf
(
time
+
iidIndex
);
Long
iID
=
Long
.
valueOf
(
time
+
iidIndex
);
itemData
.
put
(
"ID"
,
iID
);
itemData
.
put
(
"ID"
,
iID
);
...
@@ -151,7 +154,7 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService {
...
@@ -151,7 +154,7 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService {
itemPricing
.
put
(
"KBETR"
,
StringUtil
.
toDouble
(
ip
.
getKBETR
()));
itemPricing
.
put
(
"KBETR"
,
StringUtil
.
toDouble
(
ip
.
getKBETR
()));
itemPricing
.
put
(
"KWERT"
,
StringUtil
.
toDouble
(
ip
.
getKWERT
()));
itemPricing
.
put
(
"KWERT"
,
StringUtil
.
toDouble
(
ip
.
getKWERT
()));
itemPricing
.
put
(
"CREATED"
,
now
);
itemPricing
.
put
(
"CREATED"
,
now
);
itemPricing
.
put
(
"CREATEBY"
,
"system"
);
itemPricing
.
put
(
"CREATEBY"
,
systemId
);
String
itemPricingID
=
StringUtil
.
format
(
common
.
getNextval
(
"T_SO_CONFIRMATION_ITEM_PRICING_ID_"
+
dateString
),
"00000"
);
String
itemPricingID
=
StringUtil
.
format
(
common
.
getNextval
(
"T_SO_CONFIRMATION_ITEM_PRICING_ID_"
+
dateString
),
"00000"
);
itemPricing
.
put
(
"ID"
,
Long
.
valueOf
(
time
+
itemPricingID
));
itemPricing
.
put
(
"ID"
,
Long
.
valueOf
(
time
+
itemPricingID
));
insertTo
(
itemPricing
,
"t_so_confirmation_item_pricing"
);
insertTo
(
itemPricing
,
"t_so_confirmation_item_pricing"
);
...
...
src/main/java/com/egolm/sso/services/dn_deletion/DNDeletionServiceImpl.java
View file @
56b439aa
...
@@ -36,6 +36,9 @@ public class DNDeletionServiceImpl implements DNDeletionService {
...
@@ -36,6 +36,9 @@ public class DNDeletionServiceImpl implements DNDeletionService {
@Value
(
"${xmlRoot}"
)
@Value
(
"${xmlRoot}"
)
private
String
xmlRoot
;
private
String
xmlRoot
;
@Value
(
"${systemId}"
)
private
String
systemId
;
@Override
@Override
@Transactional
@Transactional
public
void
execute
(
DELETED_DOCUMENTS
DELETED_DOCUMENTS
)
{
public
void
execute
(
DELETED_DOCUMENTS
DELETED_DOCUMENTS
)
{
...
@@ -62,9 +65,9 @@ public class DNDeletionServiceImpl implements DNDeletionService {
...
@@ -62,9 +65,9 @@ public class DNDeletionServiceImpl implements DNDeletionService {
map
.
put
(
"TRACE_NO"
,
"sapsodndeletion"
+
DateUtil
.
formatDate
(
now
,
DateUtil
.
FMT_DATETIME
));
map
.
put
(
"TRACE_NO"
,
"sapsodndeletion"
+
DateUtil
.
formatDate
(
now
,
DateUtil
.
FMT_DATETIME
));
map
.
put
(
"SEND_STATUS"
,
"N"
);
map
.
put
(
"SEND_STATUS"
,
"N"
);
map
.
put
(
"CREATED"
,
now
);
map
.
put
(
"CREATED"
,
now
);
map
.
put
(
"CREATEBY"
,
"system"
);
map
.
put
(
"CREATEBY"
,
systemId
);
map
.
put
(
"UPDATED"
,
now
);
map
.
put
(
"UPDATED"
,
now
);
map
.
put
(
"UPDATEBY"
,
"system"
);
map
.
put
(
"UPDATEBY"
,
systemId
);
Sql
headerSql
=
SqlUtil
.
insertSql
(
"t_so_dn_deletion"
,
map
);
Sql
headerSql
=
SqlUtil
.
insertSql
(
"t_so_dn_deletion"
,
map
);
jdbcTemplate
.
update
(
headerSql
.
getSql
(),
headerSql
.
getArgs
());
jdbcTemplate
.
update
(
headerSql
.
getSql
(),
headerSql
.
getArgs
());
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
src/main/java/com/egolm/sso/services/material_master/MaterialMasterServiceImpl.java
View file @
56b439aa
...
@@ -40,6 +40,9 @@ public class MaterialMasterServiceImpl implements MaterialMasterService {
...
@@ -40,6 +40,9 @@ public class MaterialMasterServiceImpl implements MaterialMasterService {
@Value
(
"${xmlRoot}"
)
@Value
(
"${xmlRoot}"
)
private
String
xmlRoot
;
private
String
xmlRoot
;
@Value
(
"${systemId}"
)
private
String
systemId
;
@Override
@Override
@Transactional
@Transactional
public
void
execute
(
Z_MT_SD_001_MATERIAL_MASTER
Z_MT_SD_001_MATERIAL_MASTER
)
{
public
void
execute
(
Z_MT_SD_001_MATERIAL_MASTER
Z_MT_SD_001_MATERIAL_MASTER
)
{
...
@@ -137,7 +140,7 @@ public class MaterialMasterServiceImpl implements MaterialMasterService {
...
@@ -137,7 +140,7 @@ public class MaterialMasterServiceImpl implements MaterialMasterService {
private
void
updateGoods
(
Map
<
String
,
Object
>
goods
)
{
private
void
updateGoods
(
Map
<
String
,
Object
>
goods
)
{
goods
.
put
(
"UPDATED"
,
new
Date
());
goods
.
put
(
"UPDATED"
,
new
Date
());
goods
.
put
(
"UPDATEBY"
,
"system"
);
goods
.
put
(
"UPDATEBY"
,
systemId
);
String
sql
=
"update t_ven_goods set "
;
String
sql
=
"update t_ven_goods set "
;
List
<
Object
>
args
=
new
ArrayList
<>();
List
<
Object
>
args
=
new
ArrayList
<>();
...
@@ -163,7 +166,7 @@ public class MaterialMasterServiceImpl implements MaterialMasterService {
...
@@ -163,7 +166,7 @@ public class MaterialMasterServiceImpl implements MaterialMasterService {
Long
ID
=
Long
.
valueOf
(
time
+
idIndex
);
Long
ID
=
Long
.
valueOf
(
time
+
idIndex
);
goods
.
put
(
"ID"
,
ID
);
goods
.
put
(
"ID"
,
ID
);
goods
.
put
(
"CREATED"
,
DateUtil
.
formatDate
(
now
,
DateUtil
.
FMT_DATE_TIME
)
/* datetimef.format(new Date()) */
);
goods
.
put
(
"CREATED"
,
DateUtil
.
formatDate
(
now
,
DateUtil
.
FMT_DATE_TIME
)
/* datetimef.format(new Date()) */
);
goods
.
put
(
"CREATEBY"
,
"system"
);
goods
.
put
(
"CREATEBY"
,
systemId
);
String
insertSql
=
"insert into t_ven_goods "
;
String
insertSql
=
"insert into t_ven_goods "
;
String
fieldSql
=
"("
;
String
fieldSql
=
"("
;
...
...
src/main/java/com/egolm/sso/services/prforma_invoice/PrformaInvoiceServiceImpl.java
View file @
56b439aa
...
@@ -51,6 +51,9 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
...
@@ -51,6 +51,9 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
@Value
(
"${xmlRoot}"
)
@Value
(
"${xmlRoot}"
)
private
String
xmlRoot
;
private
String
xmlRoot
;
@Value
(
"${systemId}"
)
private
String
systemId
;
@Override
@Override
@Transactional
@Transactional
public
void
execute
(
Z_MT_SD_005_PERFORM_INVOICE
Z_MT_SD_005_PERFORM_INVOICE
)
{
public
void
execute
(
Z_MT_SD_005_PERFORM_INVOICE
Z_MT_SD_005_PERFORM_INVOICE
)
{
...
@@ -157,7 +160,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
...
@@ -157,7 +160,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
headMap
.
put
(
"BATCH"
,
dateString
+
"-"
+
common
.
getNextval
(
"T_PERFORM_INVOICE_HEADER_BATCH_"
+
BATCH_CODE
));
headMap
.
put
(
"BATCH"
,
dateString
+
"-"
+
common
.
getNextval
(
"T_PERFORM_INVOICE_HEADER_BATCH_"
+
BATCH_CODE
));
headMap
.
put
(
"TRACE_NO"
,
"sapproformainvoice"
+
DateUtil
.
formatDate
(
now
,
DateUtil
.
FMT_DATETIME
));
headMap
.
put
(
"TRACE_NO"
,
"sapproformainvoice"
+
DateUtil
.
formatDate
(
now
,
DateUtil
.
FMT_DATETIME
));
headMap
.
put
(
"CREATED"
,
now
);
headMap
.
put
(
"CREATED"
,
now
);
headMap
.
put
(
"CREATEBY"
,
"system"
);
headMap
.
put
(
"CREATEBY"
,
systemId
);
List
<
Map
<
String
,
Object
>>
itemDatas
=
new
ArrayList
<
Map
<
String
,
Object
>>();
List
<
Map
<
String
,
Object
>>
itemDatas
=
new
ArrayList
<
Map
<
String
,
Object
>>();
if
(
itemList
!=
null
)
{
if
(
itemList
!=
null
)
{
...
@@ -239,7 +242,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
...
@@ -239,7 +242,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
}
}
}
}
itemDataMap
.
put
(
"CREATED"
,
now
);
itemDataMap
.
put
(
"CREATED"
,
now
);
itemDataMap
.
put
(
"CREATEBY"
,
"system"
);
itemDataMap
.
put
(
"CREATEBY"
,
systemId
);
itemDatas
.
add
(
itemDataMap
);
itemDatas
.
add
(
itemDataMap
);
}
}
}
}
...
...
src/main/java/com/egolm/sso/services/price_list/PriceListServiceImpl.java
View file @
56b439aa
...
@@ -40,6 +40,9 @@ public class PriceListServiceImpl implements PriceListService {
...
@@ -40,6 +40,9 @@ public class PriceListServiceImpl implements PriceListService {
@Value
(
"${xmlRoot}"
)
@Value
(
"${xmlRoot}"
)
private
String
xmlRoot
;
private
String
xmlRoot
;
@Value
(
"${systemId}"
)
private
String
systemId
;
@Override
@Override
@Transactional
@Transactional
public
void
execute
(
Z_MT_SD_002_PRICE_LIST
Z_MT_SD_002_PRICE_LIST
)
{
public
void
execute
(
Z_MT_SD_002_PRICE_LIST
Z_MT_SD_002_PRICE_LIST
)
{
...
@@ -122,7 +125,7 @@ public class PriceListServiceImpl implements PriceListService {
...
@@ -122,7 +125,7 @@ public class PriceListServiceImpl implements PriceListService {
}
}
private
void
updatePriceObj
(
Map
<
String
,
Object
>
priceObj
)
{
private
void
updatePriceObj
(
Map
<
String
,
Object
>
priceObj
)
{
priceObj
.
put
(
"UPDATEBY"
,
"system"
);
priceObj
.
put
(
"UPDATEBY"
,
systemId
);
priceObj
.
put
(
"UPDATED"
,
new
Date
());
priceObj
.
put
(
"UPDATED"
,
new
Date
());
String
sql
=
"update t_price_list set "
;
String
sql
=
"update t_price_list set "
;
...
@@ -149,7 +152,7 @@ public class PriceListServiceImpl implements PriceListService {
...
@@ -149,7 +152,7 @@ public class PriceListServiceImpl implements PriceListService {
Long
ID
=
Long
.
valueOf
(
time
+
idIndex
);
Long
ID
=
Long
.
valueOf
(
time
+
idIndex
);
priceObj
.
put
(
"ID"
,
ID
);
priceObj
.
put
(
"ID"
,
ID
);
priceObj
.
put
(
"CREATED"
,
now
);
priceObj
.
put
(
"CREATED"
,
now
);
priceObj
.
put
(
"CREATEBY"
,
"system"
);
priceObj
.
put
(
"CREATEBY"
,
systemId
);
String
insertSql
=
"insert into t_price_list "
;
String
insertSql
=
"insert into t_price_list "
;
String
fieldSql
=
"("
;
String
fieldSql
=
"("
;
...
...
src/main/java/com/egolm/sso/services/shipping_notfirmation/ShippingNotificationServiceImpl.java
View file @
56b439aa
...
@@ -46,6 +46,9 @@ public class ShippingNotificationServiceImpl implements ShippingNotificationServ
...
@@ -46,6 +46,9 @@ public class ShippingNotificationServiceImpl implements ShippingNotificationServ
@Value
(
"${xmlRoot}"
)
@Value
(
"${xmlRoot}"
)
private
String
xmlRoot
;
private
String
xmlRoot
;
@Value
(
"${systemId}"
)
private
String
systemId
;
@Override
@Override
@Transactional
@Transactional
public
void
execute
(
Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE
Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE
)
{
public
void
execute
(
Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE
Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE
)
{
...
@@ -112,7 +115,7 @@ public class ShippingNotificationServiceImpl implements ShippingNotificationServ
...
@@ -112,7 +115,7 @@ public class ShippingNotificationServiceImpl implements ShippingNotificationServ
header
.
put
(
"SEND_STATUS"
,
"N"
);
header
.
put
(
"SEND_STATUS"
,
"N"
);
header
.
put
(
"TRACE_NO"
,
"sapshippingnotification"
+
DateUtil
.
formatDate
(
now
,
DateUtil
.
FMT_DATETIME
));
header
.
put
(
"TRACE_NO"
,
"sapshippingnotification"
+
DateUtil
.
formatDate
(
now
,
DateUtil
.
FMT_DATETIME
));
header
.
put
(
"CREATED"
,
now
);
header
.
put
(
"CREATED"
,
now
);
header
.
put
(
"CREATEBY"
,
"system"
);
header
.
put
(
"CREATEBY"
,
systemId
);
Long
hID
=
Long
.
valueOf
(
time
+
StringUtil
.
format
(
common
.
getNextval
(
"T_SHIPPING_NOTIFICATION_HEADER_ID_"
+
dateString
),
"00000"
));
Long
hID
=
Long
.
valueOf
(
time
+
StringUtil
.
format
(
common
.
getNextval
(
"T_SHIPPING_NOTIFICATION_HEADER_ID_"
+
dateString
),
"00000"
));
header
.
put
(
"ID"
,
hID
);
header
.
put
(
"ID"
,
hID
);
insertTo
(
header
,
"t_shipping_notification_header"
);
insertTo
(
header
,
"t_shipping_notification_header"
);
...
@@ -160,7 +163,7 @@ public class ShippingNotificationServiceImpl implements ShippingNotificationServ
...
@@ -160,7 +163,7 @@ public class ShippingNotificationServiceImpl implements ShippingNotificationServ
}
}
}
}
item
.
put
(
"CREATED"
,
now
);
item
.
put
(
"CREATED"
,
now
);
item
.
put
(
"CREATEBY"
,
"system"
);
item
.
put
(
"CREATEBY"
,
systemId
);
insertTo
(
item
,
"t_shipping_notification_item"
);
insertTo
(
item
,
"t_shipping_notification_item"
);
}
}
}
}
...
...
src/main/resources/application.yml
View file @
56b439aa
xmlRoot
:
xml
xmlRoot
:
xml
systemId
:
system
server
:
server
:
port
:
8080
port
:
8080
spring
:
spring
:
...
...
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