Commit 27a35219 authored by 曲欣红's avatar 曲欣红

1

parent 99f2fee2
...@@ -115,7 +115,7 @@ public class MaterialMasterServiceImpl implements MaterialMasterService { ...@@ -115,7 +115,7 @@ public class MaterialMasterServiceImpl implements MaterialMasterService {
} }
BATCH = newDate+"-"+v; BATCH = newDate+"-"+v;
} }
goods.put("TRACE_NO", "sapmaterialmaster"+DateUtil.formatDate(new Date(), DateUtil.FMT_DATETIME));
goods.put("BATCH", BATCH); goods.put("BATCH", BATCH);
goods.put("SEND_STATUS", "N"); goods.put("SEND_STATUS", "N");
goods.put("UPDATED", DateUtil.formatDate(new Date(), DateUtil.FMT_DATE_TIME)/*datetimef.format(new Date())*/); goods.put("UPDATED", DateUtil.formatDate(new Date(), DateUtil.FMT_DATE_TIME)/*datetimef.format(new Date())*/);
......
...@@ -92,7 +92,7 @@ public class PriceListServiceImpl implements PriceListService { ...@@ -92,7 +92,7 @@ public class PriceListServiceImpl implements PriceListService {
} }
BATCH = newDate+"-"+v; BATCH = newDate+"-"+v;
} }
priceObj.put("TRACE_NO", "sappricelist"+DateUtil.formatDate(new Date(), DateUtil.FMT_DATETIME));
priceObj.put("BATCH", BATCH); priceObj.put("BATCH", BATCH);
priceObj.put("UPDATED", DateUtil.formatDate(new Date(), DateUtil.FMT_DATE_TIME)); priceObj.put("UPDATED", DateUtil.formatDate(new Date(), DateUtil.FMT_DATE_TIME));
if(priceObj.get("ID")!=null) { if(priceObj.get("ID")!=null) {
......
...@@ -14,6 +14,7 @@ public class DateUtil { ...@@ -14,6 +14,7 @@ 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_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 String formatDate(Date d, String fmt) { public static String formatDate(Date d, 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