【泛微接口】数字判空

This commit is contained in:
tanfengling@x-ri.com 2025-11-14 14:06:06 +08:00
parent 35c86b2338
commit 44513afb5a
1 changed files with 8 additions and 8 deletions

View File

@ -1269,13 +1269,13 @@ public class FWImpl {
e4.put("fieldValue", jldw); e4.put("fieldValue", jldw);
JSONObject e5 = new JSONObject(); JSONObject e5 = new JSONObject();
e5.put("fieldName", "sl"); e5.put("fieldName", "sl");
e5.put("fieldValue", sl); e5.put("fieldValue", sl!=null&&sl.compareTo(BigDecimal.ZERO)!=0?sl:0);
JSONObject e6 = new JSONObject(); JSONObject e6 = new JSONObject();
e6.put("fieldName", "bhsdj"); e6.put("fieldName", "bhsdj");
e6.put("fieldValue", bhsdj); e6.put("fieldValue", bhsdj!=null&&bhsdj.compareTo(BigDecimal.ZERO)!=0?bhsdj:0);
JSONObject e7 = new JSONObject(); JSONObject e7 = new JSONObject();
e7.put("fieldName", "je"); e7.put("fieldName", "je");
e7.put("fieldValue", je); e7.put("fieldValue", je!=null&&je.compareTo(BigDecimal.ZERO)!=0?je:0);
JSONObject e15 = new JSONObject(); JSONObject e15 = new JSONObject();
e15.put("fieldName", "sfzp"); e15.put("fieldName", "sfzp");
e15.put("fieldValue", sfzp); e15.put("fieldValue", sfzp);
@ -1346,7 +1346,7 @@ public class FWImpl {
m16.put("fieldValue", sqyybz); m16.put("fieldValue", sqyybz);
JSONObject m17 = new JSONObject(); JSONObject m17 = new JSONObject();
m17.put("fieldName", "hzje"); m17.put("fieldName", "hzje");
m17.put("fieldValue", hzje); m17.put("fieldValue", hzje!=null&&hzje.compareTo(BigDecimal.ZERO)!=0?hzje:0);
JSONObject m18 = new JSONObject(); JSONObject m18 = new JSONObject();
m18.put("fieldName", "shdh"); m18.put("fieldName", "shdh");
m18.put("fieldValue", shdh); m18.put("fieldValue", shdh);
@ -1595,10 +1595,10 @@ public class FWImpl {
e5.put("fieldValue", sl); e5.put("fieldValue", sl);
JSONObject e6 = new JSONObject(); JSONObject e6 = new JSONObject();
e6.put("fieldName", "bhsdj"); e6.put("fieldName", "bhsdj");
e6.put("fieldValue", bhsdj); e6.put("fieldValue", bhsdj!=null&&bhsdj.compareTo(BigDecimal.ZERO)!=0?bhsdj:0);
JSONObject e7 = new JSONObject(); JSONObject e7 = new JSONObject();
e7.put("fieldName", "je"); e7.put("fieldName", "je");
e7.put("fieldValue", je); e7.put("fieldValue", je!=null&&je.compareTo(BigDecimal.ZERO)!=0?je:0);
JSONObject e8 = new JSONObject(); JSONObject e8 = new JSONObject();
e8.put("fieldName", "scrq"); e8.put("fieldName", "scrq");
e8.put("fieldValue", scrq); e8.put("fieldValue", scrq);
@ -1686,7 +1686,7 @@ public class FWImpl {
m16.put("fieldValue", sqyybz); m16.put("fieldValue", sqyybz);
JSONObject m17 = new JSONObject(); JSONObject m17 = new JSONObject();
m17.put("fieldName", "hzje"); m17.put("fieldName", "hzje");
m17.put("fieldValue", hzje); m17.put("fieldValue", hzje!=null&&hzje.compareTo(BigDecimal.ZERO)!=0?hzje:0);
JSONObject m18 = new JSONObject(); JSONObject m18 = new JSONObject();
m18.put("fieldName", "shdh"); m18.put("fieldName", "shdh");
m18.put("fieldValue", shdh); m18.put("fieldValue", shdh);
@ -5138,7 +5138,7 @@ public class FWImpl {
m43.put("fieldValue", sxrq); m43.put("fieldValue", sxrq);
JSONObject m44 = new JSONObject(); JSONObject m44 = new JSONObject();
m44.put("fieldName", "zczb"); m44.put("fieldName", "zczb");
m44.put("fieldValue", zczb); m44.put("fieldValue", StringUtils.isNotBlank(zczb)?zczb:0);
JSONObject m45 = new JSONObject(); JSONObject m45 = new JSONObject();
m45.put("fieldName", "zs"); m45.put("fieldName", "zs");
m45.put("fieldValue", zs); m45.put("fieldValue", zs);