This commit is contained in:
linfso 2024-07-30 12:08:38 +08:00
parent 2f18a2c827
commit c534d8d987
2 changed files with 9 additions and 2 deletions

View File

@ -1901,7 +1901,7 @@ public class EmisBaseService {
extData.put("freight",waybill.getFreight());
extData.put("feeRemark",waybill.getFeeRemark());
extData.put("feeRemark",WaybillHelper.removeUnSeeChar(waybill.getFeeRemark()));
extData.put("volumeWeight",waybill.getVolumeWeight());
extData.put("settlementWeight",waybill.getSettlementWeight());

View File

@ -250,7 +250,7 @@ public class WaybillHelper {
public static String removeUnSeeChar(String str) {
if(!StringUtils.isEmpty(str)){
return str.replaceAll("\\p{C}+", "");
return str.replaceAll("\\p{C}+", "").replaceAll("\\u00A0+", " ");
}
return str;
@ -343,6 +343,13 @@ public class WaybillHelper {
// String mainBillCode=billCode.substring(0,len-4);
// System.out.print(mainBillCode);
String m1="Esmi Lee苏星";
System.out.println(m1);
String m2 = m1.replaceAll("\\p{C}", "");
m2 = m2.replaceAll("\\u00A0+", " ");
System.out.println(m2);
} catch (Exception e) {
e.printStackTrace();
}