Commit 72998005 authored by Quxl's avatar Quxl

x

parent 6e72be6d
...@@ -52,14 +52,14 @@ public class MaterialMasterServiceImpl implements MaterialMasterService { ...@@ -52,14 +52,14 @@ public class MaterialMasterServiceImpl implements MaterialMasterService {
String dateString = DateUtil.formatDate(now, DateUtil.FMT_DATE); String dateString = DateUtil.formatDate(now, DateUtil.FMT_DATE);
try { try {
RECORD RECORD = Z_MT_SD_001_MATERIAL_MASTER.getRECORD(); RECORD RECORD = Z_MT_SD_001_MATERIAL_MASTER.getRECORD();
HEADER_SENDING h = RECORD.getHEADER_SENDING(); HEADER_SENDING HEADER_SENDING = RECORD.getHEADER_SENDING();
String DIS_CODE = null; String DIS_CODE = null;
String DATUM = null; String DATUM = null;
String UZEIT = null; String UZEIT = null;
if(h != null) { if(HEADER_SENDING != null) {
DIS_CODE = h.getKUNNR(); DIS_CODE = HEADER_SENDING.getKUNNR();
DATUM = h.getDATUM(); DATUM = HEADER_SENDING.getDATUM();
UZEIT = h.getUZEIT(); UZEIT = HEADER_SENDING.getUZEIT();
} }
List<ITEM> items = RECORD.getITEM(); List<ITEM> items = RECORD.getITEM();
......
...@@ -16,11 +16,7 @@ public class DateUtil { ...@@ -16,11 +16,7 @@ public class DateUtil {
public static String formatDate(Date date, String fmt) { public static String formatDate(Date date, String fmt) {
DateFormat df = new SimpleDateFormat(fmt); DateFormat df = new SimpleDateFormat(fmt);
return formatDate(date, df); return df.format(date);
}
public static String formatDate(Date date, DateFormat fmt) {
return fmt.format(date);
} }
public static Object parseDate(String dateString, String fmt) { public static Object parseDate(String dateString, String fmt) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment