|
@@ -78,12 +78,16 @@ public class JsonChangeUtils implements ApplicationContextAware{
|
|
|
|
|
|
}
|
|
|
}
|
|
|
- String customerDemandDate = sf.format(map.get("customerDemandDate"));
|
|
|
- jf.put("customerDemandDate",customerDemandDate+" 00:00:00");
|
|
|
- String publishDate = sf.format(map.get("publishDate"));
|
|
|
- jf.put("publishDate",publishDate+" 00:00:00");
|
|
|
-
|
|
|
-
|
|
|
+ if(oConvertUtils.isNotEmpty(map.get("customerDemandDate"))){
|
|
|
+ String customerDemandDate = sf.format(map.get("customerDemandDate"));
|
|
|
+ jf.put("customerDemandDate",customerDemandDate+" 00:00:00");
|
|
|
+ }
|
|
|
+ if(oConvertUtils.isNotEmpty(map.get("publishDate"))){
|
|
|
+ String publishDate = sf.format(map.get("publishDate"));
|
|
|
+ jf.put("publishDate",publishDate+" 00:00:00");
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
if(map.get("pkorg").equals("one")){
|
|
|
BigDecimal totalAmount = BigDecimal.ZERO;
|
|
@@ -202,10 +206,15 @@ public class JsonChangeUtils implements ApplicationContextAware{
|
|
|
jf.put(key, map.get(key));
|
|
|
}
|
|
|
}
|
|
|
- String customerDemandDate = sf.format(map.get("customerDemandDate"));
|
|
|
- jf.put("customerDemandDate",customerDemandDate+" 00:00:00");
|
|
|
- String publishDate = sf.format(map.get("publishDate"));
|
|
|
- jf.put("publishDate",publishDate+" 00:00:00");
|
|
|
+ if(oConvertUtils.isNotEmpty(map.get("customerDemandDate"))){
|
|
|
+ String customerDemandDate = sf.format(map.get("customerDemandDate"));
|
|
|
+ jf.put("customerDemandDate",customerDemandDate+" 00:00:00");
|
|
|
+ }
|
|
|
+ if(oConvertUtils.isNotEmpty(map.get("publishDate"))){
|
|
|
+ String publishDate = sf.format(map.get("publishDate"));
|
|
|
+ jf.put("publishDate",publishDate+" 00:00:00");
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
@@ -317,10 +326,15 @@ public class JsonChangeUtils implements ApplicationContextAware{
|
|
|
jf.put(key, map.get(key));
|
|
|
}
|
|
|
}
|
|
|
- String customerDemandDate = sf.format(map.get("customerDemandDate"));
|
|
|
- jf.put("customerDemandDate",customerDemandDate+" 00:00:00");
|
|
|
- String publishDate = sf.format(map.get("publishDate"));
|
|
|
- jf.put("publishDate",publishDate+" 00:00:00");
|
|
|
+ if(oConvertUtils.isNotEmpty(map.get("customerDemandDate"))){
|
|
|
+ String customerDemandDate = sf.format(map.get("customerDemandDate"));
|
|
|
+ jf.put("customerDemandDate",customerDemandDate+" 00:00:00");
|
|
|
+ }
|
|
|
+ if(oConvertUtils.isNotEmpty(map.get("publishDate"))){
|
|
|
+ String publishDate = sf.format(map.get("publishDate"));
|
|
|
+ jf.put("publishDate",publishDate+" 00:00:00");
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
if(map.get("accId").equals("903")){
|
|
|
String sql = "select '903' as cAccId,'' as '发货单号',AutoID as '发货单行ID',ID as '发货单ID', irowno as '发货单行号'," +
|
|
@@ -383,8 +397,11 @@ public class JsonChangeUtils implements ApplicationContextAware{
|
|
|
jf.put(key, map.get(key));
|
|
|
}
|
|
|
}
|
|
|
- String customerDemandDate = sf.format(map.get("customerDemandDate"));
|
|
|
- jf.put("customerDemandDate",customerDemandDate+" 00:00:00");
|
|
|
+ if(oConvertUtils.isNotEmpty(map.get("customerDemandDate"))){
|
|
|
+ String customerDemandDate = sf.format(map.get("customerDemandDate"));
|
|
|
+ jf.put("customerDemandDate",customerDemandDate+" 00:00:00");
|
|
|
+ }
|
|
|
+
|
|
|
if(oConvertUtils.isNotEmpty(map.get("lineAttributeDatetime1"))){
|
|
|
String lineAttributeDatetime1 = sf.format(map.get("lineAttributeDatetime1"));
|
|
|
jf.put("lineAttributeDatetime1",lineAttributeDatetime1+" 00:00:00");
|
|
@@ -456,8 +473,10 @@ public class JsonChangeUtils implements ApplicationContextAware{
|
|
|
jf.put(key, map.get(key));
|
|
|
}
|
|
|
}
|
|
|
- String customerDemandDate = sf.format(map.get("customerDemandDate"));
|
|
|
- jf.put("customerDemandDate",customerDemandDate+" 00:00:00");
|
|
|
+ if(oConvertUtils.isNotEmpty(map.get("customerDemandDate"))){
|
|
|
+ String customerDemandDate = sf.format(map.get("customerDemandDate"));
|
|
|
+ jf.put("customerDemandDate",customerDemandDate+" 00:00:00");
|
|
|
+ }
|
|
|
if(oConvertUtils.isNotEmpty(map.get("lineAttributeDatetime1"))){
|
|
|
String lineAttributeDatetime1 = sf.format(map.get("lineAttributeDatetime1"));
|
|
|
jf.put("lineAttributeDatetime1",lineAttributeDatetime1+" 00:00:00");
|