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
c9304f77
Commit
c9304f77
authored
Jul 30, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
65a35955
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
8 deletions
+8
-8
ConfirmQuotationServiceImpl.java
...rvices/confirm_quotation/ConfirmQuotationServiceImpl.java
+1
-1
DNDeletionServiceImpl.java
...egolm/sso/services/dn_deletion/DNDeletionServiceImpl.java
+1
-1
MaterialMasterServiceImpl.java
...o/services/material_master/MaterialMasterServiceImpl.java
+3
-3
PrformaInvoiceServiceImpl.java
...o/services/prforma_invoice/PrformaInvoiceServiceImpl.java
+1
-1
PriceListServiceImpl.java
...m/egolm/sso/services/price_list/PriceListServiceImpl.java
+1
-1
ShippingNotificationServiceImpl.java
...hipping_notfirmation/ShippingNotificationServiceImpl.java
+1
-1
No files found.
src/main/java/com/egolm/sso/services/confirm_quotation/ConfirmQuotationServiceImpl.java
View file @
c9304f77
...
@@ -92,7 +92,7 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService {
...
@@ -92,7 +92,7 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService {
if
(
KUNNR
==
null
||
KUNNR
.
trim
().
isEmpty
())
{
if
(
KUNNR
==
null
||
KUNNR
.
trim
().
isEmpty
())
{
throw
new
XRException
(
"Unable to generate batch number,
Distributor number
cannot be empty"
);
throw
new
XRException
(
"Unable to generate batch number,
[KUNNR]
cannot be empty"
);
}
}
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
);
...
...
src/main/java/com/egolm/sso/services/dn_deletion/DNDeletionServiceImpl.java
View file @
c9304f77
...
@@ -59,7 +59,7 @@ public class DNDeletionServiceImpl implements DNDeletionService {
...
@@ -59,7 +59,7 @@ public class DNDeletionServiceImpl implements DNDeletionService {
map
.
put
(
"SOLD_TO"
,
SOLD_TO
);
map
.
put
(
"SOLD_TO"
,
SOLD_TO
);
if
(
SOLD_TO
==
null
||
SOLD_TO
.
trim
().
isEmpty
())
{
if
(
SOLD_TO
==
null
||
SOLD_TO
.
trim
().
isEmpty
())
{
throw
new
XRException
(
"Unable to generate batch number,
Distributor number
cannot be empty"
);
throw
new
XRException
(
"Unable to generate batch number,
[SOLD_TO]
cannot be empty"
);
}
}
map
.
put
(
"BATCH"
,
dateString
+
"-"
+
common
.
getNextval
(
"T_SO_DN_DELETION_BATCH_"
+
SOLD_TO
));
map
.
put
(
"BATCH"
,
dateString
+
"-"
+
common
.
getNextval
(
"T_SO_DN_DELETION_BATCH_"
+
SOLD_TO
));
map
.
put
(
"TRACE_NO"
,
"sapsodndeletion"
+
DateUtil
.
formatDate
(
now
,
DateUtil
.
FMT_DATETIME
));
map
.
put
(
"TRACE_NO"
,
"sapsodndeletion"
+
DateUtil
.
formatDate
(
now
,
DateUtil
.
FMT_DATETIME
));
...
...
src/main/java/com/egolm/sso/services/material_master/MaterialMasterServiceImpl.java
View file @
c9304f77
...
@@ -63,6 +63,9 @@ public class MaterialMasterServiceImpl implements MaterialMasterService {
...
@@ -63,6 +63,9 @@ public class MaterialMasterServiceImpl implements MaterialMasterService {
}
}
List
<
ITEM
>
items
=
RECORD
.
getITEM
();
List
<
ITEM
>
items
=
RECORD
.
getITEM
();
if
(
DIS_CODE
==
null
||
DIS_CODE
.
trim
().
isEmpty
())
{
throw
new
XRException
(
"Unable to generate batch number, [KUNNR] cannot be empty"
);
}
Long
BATCHID
=
common
.
getNextval
(
dateString
+
"T_VEN_GOODS_BATCH_"
+
DIS_CODE
);
Long
BATCHID
=
common
.
getNextval
(
dateString
+
"T_VEN_GOODS_BATCH_"
+
DIS_CODE
);
String
BATCH
=
dateString
+
"-"
+
BATCHID
;
String
BATCH
=
dateString
+
"-"
+
BATCHID
;
...
@@ -106,9 +109,6 @@ public class MaterialMasterServiceImpl implements MaterialMasterService {
...
@@ -106,9 +109,6 @@ public class MaterialMasterServiceImpl implements MaterialMasterService {
goods
.
put
(
"MEABM_B"
,
item
.
getMEABM_B
());
goods
.
put
(
"MEABM_B"
,
item
.
getMEABM_B
());
goods
.
put
(
"PUBLIC"
,
item
.
getPUBLIC
());
goods
.
put
(
"PUBLIC"
,
item
.
getPUBLIC
());
goods
.
put
(
"INTERNET"
,
item
.
getINTERNET
());
goods
.
put
(
"INTERNET"
,
item
.
getINTERNET
());
if
(
DIS_CODE
==
null
||
DIS_CODE
.
trim
().
isEmpty
())
{
throw
new
XRException
(
"Unable to generate batch number, Distributor number cannot be empty"
);
}
goods
.
put
(
"TRACE_NO"
,
"sapmaterialmaster"
+
DateUtil
.
formatDate
(
now
,
DateUtil
.
FMT_DATETIME
));
goods
.
put
(
"TRACE_NO"
,
"sapmaterialmaster"
+
DateUtil
.
formatDate
(
now
,
DateUtil
.
FMT_DATETIME
));
goods
.
put
(
"BATCH"
,
BATCH
);
goods
.
put
(
"BATCH"
,
BATCH
);
goods
.
put
(
"SEND_STATUS"
,
"N"
);
goods
.
put
(
"SEND_STATUS"
,
"N"
);
...
...
src/main/java/com/egolm/sso/services/prforma_invoice/PrformaInvoiceServiceImpl.java
View file @
c9304f77
...
@@ -150,7 +150,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
...
@@ -150,7 +150,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
}
}
}
}
if
(
BATCH_CODE
==
null
||
BATCH_CODE
.
trim
().
isEmpty
())
{
if
(
BATCH_CODE
==
null
||
BATCH_CODE
.
trim
().
isEmpty
())
{
throw
new
XRException
(
"Unable to generate batch number,
Distributor number
cannot be empty"
);
throw
new
XRException
(
"Unable to generate batch number,
[PARTN]
cannot be empty"
);
}
}
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
));
...
...
src/main/java/com/egolm/sso/services/price_list/PriceListServiceImpl.java
View file @
c9304f77
...
@@ -65,7 +65,7 @@ public class PriceListServiceImpl implements PriceListService {
...
@@ -65,7 +65,7 @@ public class PriceListServiceImpl implements PriceListService {
UZEIT
=
h
.
getUZEIT
();
UZEIT
=
h
.
getUZEIT
();
}
}
if
(
KUNNR
==
null
||
KUNNR
.
trim
().
isEmpty
())
{
if
(
KUNNR
==
null
||
KUNNR
.
trim
().
isEmpty
())
{
throw
new
XRException
(
"Unable to generate batch number,
Distributor number
cannot be empty"
);
throw
new
XRException
(
"Unable to generate batch number,
[KUNNR]
cannot be empty"
);
}
}
String
BATCH
=
dateString
+
"-"
+
common
.
getNextval
(
"T_PRICE_LIST_BATCH_"
+
KUNNR
);
String
BATCH
=
dateString
+
"-"
+
common
.
getNextval
(
"T_PRICE_LIST_BATCH_"
+
KUNNR
);
if
(
items
!=
null
)
{
if
(
items
!=
null
)
{
...
...
src/main/java/com/egolm/sso/services/shipping_notfirmation/ShippingNotificationServiceImpl.java
View file @
c9304f77
...
@@ -109,7 +109,7 @@ public class ShippingNotificationServiceImpl implements ShippingNotificationServ
...
@@ -109,7 +109,7 @@ public class ShippingNotificationServiceImpl implements ShippingNotificationServ
header
.
put
(
"NTEND"
,
HEADER_DATE
.
getNTEND
());
header
.
put
(
"NTEND"
,
HEADER_DATE
.
getNTEND
());
}
}
if
(
BATCH_CODE
==
null
||
BATCH_CODE
.
trim
().
isEmpty
())
{
if
(
BATCH_CODE
==
null
||
BATCH_CODE
.
trim
().
isEmpty
())
{
throw
new
XRException
(
"Unable to generate batch number,
Distributor number
cannot be empty"
);
throw
new
XRException
(
"Unable to generate batch number,
[PARTNER_ID]
cannot be empty"
);
}
}
header
.
put
(
"BATCH"
,
dateString
+
"-"
+
common
.
getNextval
(
"T_SHIPPING_NOTIFICATION_HEADER_BATCH_"
+
BATCH_CODE
));
header
.
put
(
"BATCH"
,
dateString
+
"-"
+
common
.
getNextval
(
"T_SHIPPING_NOTIFICATION_HEADER_BATCH_"
+
BATCH_CODE
));
header
.
put
(
"SEND_STATUS"
,
"N"
);
header
.
put
(
"SEND_STATUS"
,
"N"
);
...
...
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