对委托项目名称、标段名称、标段编号增加新的非法字符校验

This commit is contained in:
zhangqinbin
2022-05-18 10:03:20 +08:00
parent bbcf6dc8b9
commit dfd3a18175

View File

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