md
This commit is contained in:
parent
9d88e63151
commit
a3dd1311b1
@ -13,6 +13,7 @@ package com.xdadan.erp.emis.service;
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import cn.hutool.core.lang.Snowflake;
|
||||
import cn.hutool.core.util.IdUtil;
|
||||
import cn.hutool.db.DbUtil;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.alibaba.fastjson.serializer.PropertyFilter;
|
||||
@ -550,10 +551,10 @@ public class EmisBaseService {
|
||||
order.put("package3dm", package3dm);
|
||||
|
||||
// 如果是子单收件人信息需要加密
|
||||
String address=waybill.getReceiveAddress();
|
||||
String company=waybill.getReceiveCompany();
|
||||
String mobile=waybill.getReceiveMobile();
|
||||
String consignee=waybill.getReceiveName();
|
||||
String address= WaybillHelper.removeUnSeeChar(waybill.getReceiveAddress());
|
||||
String company=WaybillHelper.removeUnSeeChar(waybill.getReceiveCompany());
|
||||
String mobile=WaybillHelper.removeUnSeeChar(waybill.getReceiveMobile());
|
||||
String consignee=WaybillHelper.removeUnSeeChar(waybill.getReceiveName());
|
||||
|
||||
if(isSubBill){
|
||||
address=Convert.chineseNameFirst(address);
|
||||
@ -574,12 +575,12 @@ public class EmisBaseService {
|
||||
custName= custUser.getCustName();
|
||||
}
|
||||
}
|
||||
order.put("custName", custName);
|
||||
order.put("custName", WaybillHelper.removeUnSeeChar(custName));
|
||||
|
||||
order.put("sendAddress", waybill.getSendAddress());
|
||||
order.put("sendCompany", waybill.getSendCompany());
|
||||
order.put("sendMobile", waybill.getSendMobile());
|
||||
order.put("sendPerson", waybill.getSendName());
|
||||
order.put("sendAddress", WaybillHelper.removeUnSeeChar(waybill.getSendAddress()));
|
||||
order.put("sendCompany", WaybillHelper.removeUnSeeChar(waybill.getSendCompany()));
|
||||
order.put("sendMobile", WaybillHelper.removeUnSeeChar(waybill.getSendMobile()));
|
||||
order.put("sendPerson", WaybillHelper.removeUnSeeChar(waybill.getSendName()));
|
||||
order.put("sendDate",DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS,waybill.getSendDate()));
|
||||
|
||||
// k1 - 收件国(中文)
|
||||
@ -609,8 +610,8 @@ public class EmisBaseService {
|
||||
|
||||
order.put("extData",extData.toJSONString());
|
||||
order.put("qrCodeText",extData.toJSONString());
|
||||
order.put("goodsInfo", waybill.getGoodsInfo());
|
||||
order.put("remark", waybill.getRemark());
|
||||
order.put("goodsInfo", WaybillHelper.removeUnSeeChar(waybill.getGoodsInfo()));
|
||||
order.put("remark", WaybillHelper.removeUnSeeChar(waybill.getRemark()));
|
||||
|
||||
String billWeight="0.0";
|
||||
String totalVolume="0.0";
|
||||
|
||||
@ -232,4 +232,14 @@ public class WaybillHelper {
|
||||
return value;
|
||||
}, SerializerFeature.WriteMapNullValue);
|
||||
}
|
||||
|
||||
|
||||
public static String removeUnSeeChar(String str) {
|
||||
if(!StringUtils.isEmpty(str)){
|
||||
return str.replaceAll("\\p{C}", "");
|
||||
}
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user