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
f621dafd
Commit
f621dafd
authored
Aug 01, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
a7770b31
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
4 deletions
+18
-4
ConfirmQuotationServiceImpl.java
...rvices/confirm_quotation/ConfirmQuotationServiceImpl.java
+1
-1
MaterialMasterServiceImpl.java
...o/services/material_master/MaterialMasterServiceImpl.java
+1
-1
PriceListServiceImpl.java
...m/egolm/sso/services/price_list/PriceListServiceImpl.java
+1
-1
DateUtil.java
src/main/java/com/egolm/sso/util/DateUtil.java
+15
-1
No files found.
src/main/java/com/egolm/sso/services/confirm_quotation/ConfirmQuotationServiceImpl.java
View file @
f621dafd
...
@@ -73,7 +73,7 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService {
...
@@ -73,7 +73,7 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService {
header
.
put
(
"SPART"
,
h
.
getSPART
());
header
.
put
(
"SPART"
,
h
.
getSPART
());
header
.
put
(
"ERNAM"
,
h
.
getERNAM
());
header
.
put
(
"ERNAM"
,
h
.
getERNAM
());
header
.
put
(
"BSTDK"
,
DateUtil
.
parseDate
(
h
.
getBSTDK
(),
DateUtil
.
FMT_DATE
));
header
.
put
(
"BSTDK"
,
DateUtil
.
parseDate
(
h
.
getBSTDK
(),
DateUtil
.
FMT_DATE
));
header
.
put
(
"ERZET"
,
DateUtil
.
parse
Date
(
h
.
getERZET
(),
DateUtil
.
FMT_TIME
));
header
.
put
(
"ERZET"
,
DateUtil
.
parse
Time_HHmmss
(
h
.
getERZET
()
));
header
.
put
(
"ERDAT"
,
DateUtil
.
parseDate
(
h
.
getERDAT
(),
DateUtil
.
FMT_DATE
));
header
.
put
(
"ERDAT"
,
DateUtil
.
parseDate
(
h
.
getERDAT
(),
DateUtil
.
FMT_DATE
));
header
.
put
(
"KUNNR"
,
KUNNR
);
header
.
put
(
"KUNNR"
,
KUNNR
);
header
.
put
(
"KGNNR"
,
h
.
getKGNNR
());
header
.
put
(
"KGNNR"
,
h
.
getKGNNR
());
...
...
src/main/java/com/egolm/sso/services/material_master/MaterialMasterServiceImpl.java
View file @
f621dafd
...
@@ -79,7 +79,7 @@ public class MaterialMasterServiceImpl implements MaterialMasterService {
...
@@ -79,7 +79,7 @@ public class MaterialMasterServiceImpl implements MaterialMasterService {
}
}
goods
.
put
(
"DIS_CODE"
,
DIS_CODE
);
goods
.
put
(
"DIS_CODE"
,
DIS_CODE
);
goods
.
put
(
"DATUM"
,
DateUtil
.
parseDate
(
DATUM
,
DateUtil
.
FMT_DATE
));
goods
.
put
(
"DATUM"
,
DateUtil
.
parseDate
(
DATUM
,
DateUtil
.
FMT_DATE
));
goods
.
put
(
"UZEIT"
,
DateUtil
.
parse
Date
(
UZEIT
,
DateUtil
.
FMT_TIME
));
goods
.
put
(
"UZEIT"
,
DateUtil
.
parse
Time_HHmmss
(
UZEIT
));
goods
.
put
(
"GOODS_CODE"
,
GOODS_CODE
);
goods
.
put
(
"GOODS_CODE"
,
GOODS_CODE
);
goods
.
put
(
"ROUGH_WEIGHT"
,
Double
.
valueOf
(
item
.
getBRGEW
()));
goods
.
put
(
"ROUGH_WEIGHT"
,
Double
.
valueOf
(
item
.
getBRGEW
()));
goods
.
put
(
"NET_WEIGHT"
,
Double
.
valueOf
(
item
.
getNTGEW
()));
goods
.
put
(
"NET_WEIGHT"
,
Double
.
valueOf
(
item
.
getNTGEW
()));
...
...
src/main/java/com/egolm/sso/services/price_list/PriceListServiceImpl.java
View file @
f621dafd
...
@@ -78,7 +78,7 @@ public class PriceListServiceImpl implements PriceListService {
...
@@ -78,7 +78,7 @@ public class PriceListServiceImpl implements PriceListService {
}
}
priceObj
.
put
(
"KUNNR"
,
KUNNR
);
priceObj
.
put
(
"KUNNR"
,
KUNNR
);
priceObj
.
put
(
"DATUM"
,
DateUtil
.
parseDate
(
DATUM
,
DateUtil
.
FMT_DATE
));
priceObj
.
put
(
"DATUM"
,
DateUtil
.
parseDate
(
DATUM
,
DateUtil
.
FMT_DATE
));
priceObj
.
put
(
"UZEIT"
,
DateUtil
.
parse
Date
(
UZEIT
,
DateUtil
.
FMT_TIME
));
priceObj
.
put
(
"UZEIT"
,
DateUtil
.
parse
Time_HHmmss
(
UZEIT
));
priceObj
.
put
(
"MATNR"
,
MATNR
);
priceObj
.
put
(
"MATNR"
,
MATNR
);
priceObj
.
put
(
"KBETR"
,
StringUtil
.
toDouble
(
item
.
getKBETR
()));
priceObj
.
put
(
"KBETR"
,
StringUtil
.
toDouble
(
item
.
getKBETR
()));
priceObj
.
put
(
"KONWA"
,
item
.
getKONWA
());
priceObj
.
put
(
"KONWA"
,
item
.
getKONWA
());
...
...
src/main/java/com/egolm/sso/util/DateUtil.java
View file @
f621dafd
package
com
.
egolm
.
sso
.
util
;
package
com
.
egolm
.
sso
.
util
;
import
java.text.DateFormat
;
import
java.text.DateFormat
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -9,7 +10,6 @@ import com.egolm.sso.config.XRException;
...
@@ -9,7 +10,6 @@ import com.egolm.sso.config.XRException;
public
class
DateUtil
{
public
class
DateUtil
{
public
static
final
String
FMT_DATE
=
"yyyyMMdd"
;
public
static
final
String
FMT_DATE
=
"yyyyMMdd"
;
public
static
final
String
FMT_TIME
=
"HHmmss"
;
public
static
final
String
FMT_DATE_TIME
=
"yyyy-MM-dd HH:mm:ss"
;
public
static
final
String
FMT_DATE_TIME
=
"yyyy-MM-dd HH:mm:ss"
;
public
static
final
String
FMT_DATETIME
=
"yyyyMMddHHmmss"
;
public
static
final
String
FMT_DATETIME
=
"yyyyMMddHHmmss"
;
...
@@ -32,5 +32,19 @@ public class DateUtil {
...
@@ -32,5 +32,19 @@ public class DateUtil {
}
}
}
}
}
}
public
static
final
DateFormat
format_HHmmss
=
new
SimpleDateFormat
(
"HHmmss"
);
public
static
Date
parseTime_HHmmss
(
String
timeString
)
{
try
{
return
format_HHmmss
.
parse
(
timeString
);
}
catch
(
ParseException
e
)
{
throw
new
XRException
(
"Error time value "
+
timeString
,
e
);
}
}
public
static
void
main
(
String
[]
args
)
{
String
timeString
=
"121212"
;
System
.
out
.
println
(
DateUtil
.
parseTime_HHmmss
(
timeString
));
}
}
}
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