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
a7770b31
Commit
a7770b31
authored
Aug 01, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
72998005
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
ShippingNotificationServiceImpl.java
...hipping_notfirmation/ShippingNotificationServiceImpl.java
+1
-1
DateUtil.java
src/main/java/com/egolm/sso/util/DateUtil.java
+1
-2
StringUtil.java
src/main/java/com/egolm/sso/util/StringUtil.java
+4
-0
No files found.
src/main/java/com/egolm/sso/services/shipping_notfirmation/ShippingNotificationServiceImpl.java
View file @
a7770b31
...
...
@@ -124,7 +124,7 @@ public class ShippingNotificationServiceImpl implements ShippingNotificationServ
if
(
ITEMs
!=
null
)
{
for
(
ITEM
ITEM
:
ITEMs
)
{
Map
<
String
,
Object
>
item
=
new
HashMap
<>();
Long
iID
=
Long
.
valueOf
(
time
+
StringUtil
.
format
(
common
.
getNextval
(
"T_SHIPPING_NOTIFICATION_ITEM_ID_"
+
dateString
),
"00000"
));
Long
iID
=
Long
.
valueOf
(
time
+
StringUtil
.
format
(
common
.
getNextval
(
"T_SHIPPING_NOTIFICATION_ITEM_ID_"
+
dateString
),
"00000"
));
item
.
put
(
"ID"
,
iID
);
item
.
put
(
"HEADER_ID"
,
hID
);
item
.
put
(
"POSNR"
,
ITEM
.
getPOSNR
());
...
...
src/main/java/com/egolm/sso/util/DateUtil.java
View file @
a7770b31
package
com
.
egolm
.
sso
.
util
;
import
java.text.DateFormat
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
...
...
@@ -28,7 +27,7 @@ public class DateUtil {
try
{
DateFormat
df
=
new
SimpleDateFormat
(
fmt
);
return
df
.
parse
(
dateString
);
}
catch
(
Parse
Exception
e
)
{
}
catch
(
Exception
e
)
{
throw
new
XRException
(
"Error date value "
+
dateString
,
e
);
}
}
...
...
src/main/java/com/egolm/sso/util/StringUtil.java
View file @
a7770b31
...
...
@@ -104,4 +104,8 @@ public class StringUtil {
br
.
close
();
}
}
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
Long
.
valueOf
(
""
));
}
}
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