md
This commit is contained in:
parent
af3e645cfc
commit
0eca9da8ed
@ -110,6 +110,7 @@ public class EmisWaybillController extends EmisBaseController
|
|||||||
return AjaxResult.error("参数错误");
|
return AjaxResult.error("参数错误");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
billCode=WaybillHelper.formatQueryValue(billCode)
|
||||||
if(!StringUtils.isEmpty(billCode) ){
|
if(!StringUtils.isEmpty(billCode) ){
|
||||||
waybillOrder = emisWaybillService.getWaybillOrderByBillCode(billCode);
|
waybillOrder = emisWaybillService.getWaybillOrderByBillCode(billCode);
|
||||||
if(waybillOrder==null){
|
if(waybillOrder==null){
|
||||||
|
|||||||
@ -218,6 +218,7 @@ public class WaybillHelper {
|
|||||||
public static String formatQueryValue(String str) {
|
public static String formatQueryValue(String str) {
|
||||||
if(!StringUtils.isEmpty(str)){
|
if(!StringUtils.isEmpty(str)){
|
||||||
str=str.replaceAll("\\n", ",");
|
str=str.replaceAll("\\n", ",");
|
||||||
|
str=str.replaceAll("\\t", ",");
|
||||||
str=str.replaceAll(",+", ",");
|
str=str.replaceAll(",+", ",");
|
||||||
str=StringUtils.removeEnd(str, ",");
|
str=StringUtils.removeEnd(str, ",");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user