md
This commit is contained in:
parent
e5cd65213f
commit
cc9af40cea
@ -14,7 +14,9 @@ import com.xdadan.erp.emis.domain.enumtype.EmisBizErrorType;
|
||||
import com.xdadan.erp.emis.domain.exception.EmisBizError;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.math.BigDecimal;
|
||||
import java.net.URLDecoder;
|
||||
import java.text.DecimalFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
@ -264,6 +266,11 @@ public class WaybillHelper {
|
||||
*/
|
||||
public static String formatQueryValue(String str) {
|
||||
if(!StringUtils.isEmpty(str)){
|
||||
try {
|
||||
str= URLDecoder.decode(str,"UTF-8");
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
str=str.replaceAll("\\n", ",");
|
||||
str=str.replaceAll("\\r", ",");
|
||||
str=str.replaceAll("\\t", ",");
|
||||
@ -346,8 +353,8 @@ public class WaybillHelper {
|
||||
// System.out.print(mainBillCode);
|
||||
|
||||
|
||||
String m1="T70803000087660003\n" +
|
||||
"T70803000087660004";
|
||||
String m1="T7080300117632\n" +
|
||||
"T7080300001794";
|
||||
System.out.println(m1);
|
||||
String m2 = WaybillHelper.formatQueryValue(m1);
|
||||
System.out.println(m2);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user