diff --git a/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisCommonController.java b/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisCommonController.java index 3a194c840..542737258 100644 --- a/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisCommonController.java +++ b/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisCommonController.java @@ -11,6 +11,7 @@ package com.xdadan.erp.web.emis; +import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.serializer.SerializerFeature; @@ -249,7 +250,7 @@ public class EmisCommonController extends BaseController if(order!=null) { // 将对象中为空的字段 不忽略,value从null转换为"" - String billDetail=JSONObject.toJSONString(order, SerializerFeature.PrettyFormat, SerializerFeature.WriteNullStringAsEmpty); + String billDetail = JSON.toJSONString(order,SerializerFeature.WriteNullStringAsEmpty); logger.debug("==>PrintBillDetail"+billDetail); printItem.put("billDetail", Base64.getEncoder().encodeToString(billDetail.getBytes(Charset.forName("UTF-8")))); printItem.put("isEncrpt",false);