md
This commit is contained in:
parent
a1fb50188b
commit
b3f10225f3
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
package com.xdadan.erp.web.emis;
|
package com.xdadan.erp.web.emis;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONArray;
|
import com.alibaba.fastjson.JSONArray;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.alibaba.fastjson.serializer.SerializerFeature;
|
import com.alibaba.fastjson.serializer.SerializerFeature;
|
||||||
@ -249,7 +250,7 @@ public class EmisCommonController extends BaseController
|
|||||||
|
|
||||||
if(order!=null) {
|
if(order!=null) {
|
||||||
// 将对象中为空的字段 不忽略,value从null转换为""
|
// 将对象中为空的字段 不忽略,value从null转换为""
|
||||||
String billDetail=JSONObject.toJSONString(order, SerializerFeature.PrettyFormat, SerializerFeature.WriteNullStringAsEmpty);
|
String billDetail = JSON.toJSONString(order,SerializerFeature.WriteNullStringAsEmpty);
|
||||||
logger.debug("==>PrintBillDetail"+billDetail);
|
logger.debug("==>PrintBillDetail"+billDetail);
|
||||||
printItem.put("billDetail", Base64.getEncoder().encodeToString(billDetail.getBytes(Charset.forName("UTF-8"))));
|
printItem.put("billDetail", Base64.getEncoder().encodeToString(billDetail.getBytes(Charset.forName("UTF-8"))));
|
||||||
printItem.put("isEncrpt",false);
|
printItem.put("isEncrpt",false);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user