对委托项目名称、标段名称、标段编号增加新的非法字符校验
This commit is contained in:
@ -13,6 +13,7 @@ import org.springframework.beans.factory.annotation.Value;
|
|||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@ -25,7 +26,7 @@ public class CheckUtil {
|
|||||||
private static int checkLengh;
|
private static int checkLengh;
|
||||||
//zhqbin 20220428 update 增加对委托项目名称\t\r\n字符校验
|
//zhqbin 20220428 update 增加对委托项目名称\t\r\n字符校验
|
||||||
public static void checkEntrust(PurpImplementSendVO implementSendVO) {
|
public static void checkEntrust(PurpImplementSendVO implementSendVO) {
|
||||||
log.error("---------对"+checkValue+"..等---------------校验非法字符----------------------------");
|
log.error("---------对"+Arrays.toString(checkValue)+"..等字符---------------校验非法字符----------------------------");
|
||||||
if(implementSendVO.getPurpImplementName()!=null){
|
if(implementSendVO.getPurpImplementName()!=null){
|
||||||
log.error("------------------------校验非法字符----------------------------项目名称:"+implementSendVO.getPurpImplementName());
|
log.error("------------------------校验非法字符----------------------------项目名称:"+implementSendVO.getPurpImplementName());
|
||||||
check(implementSendVO.getPurpImplementName());
|
check(implementSendVO.getPurpImplementName());
|
||||||
@ -107,7 +108,9 @@ public class CheckUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String args[]){
|
public static void main(String args[]){
|
||||||
check("whw综合评分");
|
String checkValue[] = {"\t","\n","\r","<",">","|","\\","?",":","*","\""};
|
||||||
|
System.out.println(checkValue);
|
||||||
|
System.out.println(Arrays.toString(checkValue));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user