特殊字符限制搜索
This commit is contained in:
parent
64f7aec322
commit
b2fc2c33c6
|
|
@ -146,14 +146,4 @@ public class Constants {
|
|||
*/
|
||||
public static final String DISALLOWED_REGEX = ".*[!~`@#$%^&*()\\-_,.?\":{}|<>+\\\\/%].*";
|
||||
|
||||
/**
|
||||
* 百分号
|
||||
*/
|
||||
public static final String PERCENT_SIGN = "%";
|
||||
|
||||
/**
|
||||
* 下划线
|
||||
*/
|
||||
public static final String UNDERLINE = "_";
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -82,35 +82,27 @@ public class TbBdDeviceRecordServiceImpl implements TbBdDeviceRecordService {
|
|||
@Override
|
||||
public List<TbBdDeviceVo> getDeviceList(TbBdDeviceVo tbBdDeviceVo) {
|
||||
if (tbBdDeviceVo.getProName() != null) {
|
||||
String proName = tbBdDeviceVo.getProName();
|
||||
if (Constants.UNDERLINE.equals(proName)) {
|
||||
tbBdDeviceVo.setProName(proName.replace("_", "/_"));
|
||||
} else if (Constants.PERCENT_SIGN.equals(proName)) {
|
||||
tbBdDeviceVo.setProName(proName.replace("%", "/%"));
|
||||
boolean b = tbBdDeviceVo.getProName().matches(Constants.DISALLOWED_REGEX);
|
||||
if (b) {
|
||||
tbBdDeviceVo.setProName("/%");
|
||||
}
|
||||
}
|
||||
if (tbBdDeviceVo.getDepartName() != null) {
|
||||
String departName = tbBdDeviceVo.getDepartName();
|
||||
if (Constants.UNDERLINE.equals(departName)) {
|
||||
tbBdDeviceVo.setDepartName(departName.replace("_", "/_"));
|
||||
} else if (Constants.PERCENT_SIGN.equals(departName)) {
|
||||
tbBdDeviceVo.setDepartName(departName.replace("%", "/%"));
|
||||
boolean b = tbBdDeviceVo.getDepartName().matches(Constants.DISALLOWED_REGEX);
|
||||
if (b) {
|
||||
tbBdDeviceVo.setDepartName("/%");
|
||||
}
|
||||
}
|
||||
if (tbBdDeviceVo.getDevName() != null) {
|
||||
String devName = tbBdDeviceVo.getDevName();
|
||||
if (Constants.UNDERLINE.equals(devName)) {
|
||||
tbBdDeviceVo.setDevName(devName.replace("_", "/_"));
|
||||
} else if (Constants.PERCENT_SIGN.equals(devName)) {
|
||||
tbBdDeviceVo.setDevName(devName.replace("%", "/%"));
|
||||
boolean b = tbBdDeviceVo.getDevName().matches(Constants.DISALLOWED_REGEX);
|
||||
if (b) {
|
||||
tbBdDeviceVo.setDevName("/%");
|
||||
}
|
||||
}
|
||||
if (tbBdDeviceVo.getDevCode() != null) {
|
||||
String devCode = tbBdDeviceVo.getDevCode();
|
||||
if (Constants.UNDERLINE.equals(devCode)) {
|
||||
tbBdDeviceVo.setDevCode(devCode.replace("_", "/_"));
|
||||
} else if (Constants.PERCENT_SIGN.equals(devCode)) {
|
||||
tbBdDeviceVo.setDevCode(devCode.replace("%", "/%"));
|
||||
boolean b = tbBdDeviceVo.getDevCode().matches(Constants.DISALLOWED_REGEX);
|
||||
if (b) {
|
||||
tbBdDeviceVo.setDevCode("/%");
|
||||
}
|
||||
}
|
||||
List<TbBdDeviceVo> deviceList = tbBdDeviceRecordMapper.getDeviceList(tbBdDeviceVo);
|
||||
|
|
|
|||
|
|
@ -227,27 +227,21 @@ public class TbBdRecordServiceImpl implements TbBdRecordService {
|
|||
@Override
|
||||
public PageResultVo<TbBdRecord> getAll(TbBdRecord record){
|
||||
if (record.getDepartName() != null) {
|
||||
String departName = record.getDepartName();
|
||||
if (Constants.UNDERLINE.equals(departName)) {
|
||||
record.setDepartName(departName.replace("_", "/_"));
|
||||
} else if (Constants.PERCENT_SIGN.equals(departName)) {
|
||||
record.setDepartName(departName.replace("%", "/%"));
|
||||
boolean b = record.getDepartName().matches(Constants.DISALLOWED_REGEX);
|
||||
if (b) {
|
||||
record.setDepartName("/%");
|
||||
}
|
||||
}
|
||||
if (record.getProName() != null) {
|
||||
String proName = record.getProName();
|
||||
if (Constants.UNDERLINE.equals(proName)) {
|
||||
record.setProName(proName.replace("_", "/_"));
|
||||
} else if (Constants.PERCENT_SIGN.equals(proName)) {
|
||||
record.setProName(proName.replace("%", "/%"));
|
||||
boolean b = record.getProName().matches(Constants.DISALLOWED_REGEX);
|
||||
if (b) {
|
||||
record.setProName("/%");
|
||||
}
|
||||
}
|
||||
if (record.getRelUser() != null) {
|
||||
String relUser = record.getRelUser();
|
||||
if (Constants.UNDERLINE.equals(relUser)) {
|
||||
record.setRelUser(relUser.replace("_", "/_"));
|
||||
} else if (Constants.PERCENT_SIGN.equals(relUser)) {
|
||||
record.setRelUser(relUser.replace("%", "/%"));
|
||||
boolean b = record.getRelUser().matches(Constants.DISALLOWED_REGEX);
|
||||
if (b) {
|
||||
record.setRelUser("/%");
|
||||
}
|
||||
}
|
||||
List<TbBdRecord> list;
|
||||
|
|
|
|||
|
|
@ -79,12 +79,10 @@ public class TbDevAttributeServiceImpl implements TbDevAttributeService {
|
|||
*/
|
||||
@Override
|
||||
public PageResultVo<TbDevAttributeVo> queryAll(TbDevAttribute record) {
|
||||
if (record.getDevName() != null) {
|
||||
String devName = record.getDevName();
|
||||
if (Constants.UNDERLINE.equals(devName)) {
|
||||
record.setDevName(devName.replace("_", "/_"));
|
||||
} else if (Constants.PERCENT_SIGN.equals(devName)) {
|
||||
record.setDevName(devName.replace("%", "/%"));
|
||||
if (record.getDevName() != null) {
|
||||
boolean b = record.getDevName().matches(Constants.DISALLOWED_REGEX);
|
||||
if (b) {
|
||||
record.setDevName("/%");
|
||||
}
|
||||
}
|
||||
List<TbDevAttributeVo> list;
|
||||
|
|
|
|||
|
|
@ -134,19 +134,15 @@ public class TbDeviceServiceImpl implements TbDeviceService {
|
|||
@Override
|
||||
public List<TbDevice> getAll(TbDevice record) {
|
||||
if (record.getDevName() != null) {
|
||||
String devName = record.getDevName();
|
||||
if (Constants.UNDERLINE.equals(devName)) {
|
||||
record.setDevName(devName.replace("_", "/_"));
|
||||
} else if (Constants.PERCENT_SIGN.equals(devName)) {
|
||||
record.setDevName(devName.replace("%", "/%"));
|
||||
boolean b = record.getDevName().matches(Constants.DISALLOWED_REGEX);
|
||||
if (b) {
|
||||
record.setDevName("/%");
|
||||
}
|
||||
}
|
||||
if (record.getDevCode() != null) {
|
||||
String devCode = record.getDevCode();
|
||||
if (Constants.UNDERLINE.equals(devCode)) {
|
||||
record.setDevCode(devCode.replace("_", "/_"));
|
||||
} else if (Constants.PERCENT_SIGN.equals(devCode)) {
|
||||
record.setDevCode(devCode.replace("%", "/%"));
|
||||
if (record.getDevCode() != null) {
|
||||
boolean b = record.getDevCode().matches(Constants.DISALLOWED_REGEX);
|
||||
if (b) {
|
||||
record.setDevCode("/%");
|
||||
}
|
||||
}
|
||||
return tbDeviceMapper.getAll(record);
|
||||
|
|
|
|||
|
|
@ -79,11 +79,9 @@ public class TbPeopleServiceImpl implements TbPeopleService {
|
|||
@Override
|
||||
public List<TbPeople> queryByPage(TbPeople tbPeople) {
|
||||
if (tbPeople.getRelName() != null) {
|
||||
String relName = tbPeople.getRelName();
|
||||
if (Constants.UNDERLINE.equals(relName)) {
|
||||
tbPeople.setRelName(relName.replace("_", "/_"));
|
||||
} else if (Constants.PERCENT_SIGN.equals(relName)) {
|
||||
tbPeople.setRelName(relName.replace("%", "/%"));
|
||||
boolean b = tbPeople.getRelName().matches(Constants.DISALLOWED_REGEX);
|
||||
if (b) {
|
||||
tbPeople.setRelName("/%");
|
||||
}
|
||||
}
|
||||
List<TbPeople> peopleList = tbPeopleDao.queryByPage(tbPeople);
|
||||
|
|
|
|||
|
|
@ -64,19 +64,15 @@ public class TbProDepartServiceImpl implements TbProDepartService {
|
|||
@Override
|
||||
public List<TbProDepart> queryByPage(TbProDepart tbProDepart) {
|
||||
if (tbProDepart.getDepartName() != null) {
|
||||
String departName = tbProDepart.getDepartName();
|
||||
if (Constants.UNDERLINE.equals(departName)) {
|
||||
tbProDepart.setDepartName(departName.replace("_", "/_"));
|
||||
} else if (Constants.PERCENT_SIGN.equals(departName)) {
|
||||
tbProDepart.setDepartName(departName.replace("%", "/%"));
|
||||
boolean b = tbProDepart.getDepartName().matches(Constants.DISALLOWED_REGEX);
|
||||
if (b) {
|
||||
tbProDepart.setDepartName("/%");
|
||||
}
|
||||
}
|
||||
if (tbProDepart.getHeadUser() != null) {
|
||||
String headUser = tbProDepart.getHeadUser();
|
||||
if (Constants.UNDERLINE.equals(headUser)) {
|
||||
tbProDepart.setHeadUser(headUser.replace("_", "/_"));
|
||||
} else if (Constants.PERCENT_SIGN.equals(headUser)) {
|
||||
tbProDepart.setHeadUser(headUser.replace("%", "/%"));
|
||||
boolean b = tbProDepart.getHeadUser().matches(Constants.DISALLOWED_REGEX);
|
||||
if (b) {
|
||||
tbProDepart.setHeadUser("/%");
|
||||
}
|
||||
}
|
||||
List<TbProDepart> list = tbProDepartDao.queryByPage(tbProDepart);
|
||||
|
|
|
|||
|
|
@ -67,11 +67,9 @@ public class TbProPowerServiceImpl implements TbProPowerService {
|
|||
@Override
|
||||
public List<TbProPower> queryByPage(TbProPower tbProPower) {
|
||||
if (tbProPower.getGtName() != null) {
|
||||
String gtName = tbProPower.getGtName();
|
||||
if (Constants.UNDERLINE.equals(gtName)) {
|
||||
tbProPower.setGtName(gtName.replace("_", "/_"));
|
||||
} else if (Constants.PERCENT_SIGN.equals(gtName)) {
|
||||
tbProPower.setGtName(gtName.replace("%", "/%"));
|
||||
boolean b = tbProPower.getGtName().matches(Constants.DISALLOWED_REGEX);
|
||||
if (b) {
|
||||
tbProPower.setGtName("/%");
|
||||
}
|
||||
}
|
||||
return tbProPowerDao.queryByPage(tbProPower);
|
||||
|
|
|
|||
|
|
@ -59,19 +59,15 @@ public class TbProjectServiceImpl implements TbProjectService {
|
|||
@Override
|
||||
public List<TbProjectVo> queryByPage(TbProject tbProject) {
|
||||
if (tbProject.getDepartName() != null) {
|
||||
String departName = tbProject.getDepartName();
|
||||
if (Constants.UNDERLINE.equals(departName)) {
|
||||
tbProject.setDepartName(departName.replace("_", "/_"));
|
||||
} else if (Constants.PERCENT_SIGN.equals(departName)) {
|
||||
tbProject.setDepartName(departName.replace("%", "/%"));
|
||||
boolean b = tbProject.getDepartName().matches(Constants.DISALLOWED_REGEX);
|
||||
if (b) {
|
||||
tbProject.setDepartName("/%");
|
||||
}
|
||||
}
|
||||
if (tbProject.getProName() != null) {
|
||||
String proName = tbProject.getProName();
|
||||
if (Constants.UNDERLINE.equals(proName)) {
|
||||
tbProject.setProName(proName.replace("_", "/_"));
|
||||
} else if (Constants.PERCENT_SIGN.equals(proName)) {
|
||||
tbProject.setProName(proName.replace("%", "/%"));
|
||||
boolean b = tbProject.getProName().matches(Constants.DISALLOWED_REGEX);
|
||||
if (b) {
|
||||
tbProject.setProName("/%");
|
||||
}
|
||||
}
|
||||
return tbProjectDao.queryByPage(tbProject);
|
||||
|
|
|
|||
|
|
@ -84,27 +84,21 @@ public class TbTeamServiceImpl implements TbTeamService {
|
|||
@Override
|
||||
public List<TbTeam> queryByPage(TbTeam tbTeam) {
|
||||
if (tbTeam.getTeamName() != null) {
|
||||
String teamName = tbTeam.getTeamName();
|
||||
if (Constants.UNDERLINE.equals(teamName)) {
|
||||
tbTeam.setTeamName(teamName.replace("_", "/_"));
|
||||
} else if (Constants.PERCENT_SIGN.equals(teamName)) {
|
||||
tbTeam.setTeamName(teamName.replace("%", "/%"));
|
||||
boolean b = tbTeam.getTeamName().matches(Constants.DISALLOWED_REGEX);
|
||||
if (b) {
|
||||
tbTeam.setTeamName("/%");
|
||||
}
|
||||
}
|
||||
if (tbTeam.getRelName() != null) {
|
||||
String relName = tbTeam.getRelName();
|
||||
if (Constants.UNDERLINE.equals(relName)) {
|
||||
tbTeam.setRelName(relName.replace("_", "/_"));
|
||||
} else if (Constants.PERCENT_SIGN.equals(relName)) {
|
||||
tbTeam.setRelName(relName.replace("%", "/%"));
|
||||
boolean b = tbTeam.getRelName().matches(Constants.DISALLOWED_REGEX);
|
||||
if (b) {
|
||||
tbTeam.setRelName("/%");
|
||||
}
|
||||
}
|
||||
if (tbTeam.getKeyWord() != null) {
|
||||
String keyWord = tbTeam.getKeyWord();
|
||||
if (Constants.UNDERLINE.equals(keyWord)) {
|
||||
tbTeam.setKeyWord(keyWord.replace("_", "/_"));
|
||||
} else if (Constants.PERCENT_SIGN.equals(keyWord)) {
|
||||
tbTeam.setKeyWord(keyWord.replace("%", "/%"));
|
||||
boolean b = tbTeam.getKeyWord().matches(Constants.DISALLOWED_REGEX);
|
||||
if (b) {
|
||||
tbTeam.setKeyWord("/%");
|
||||
}
|
||||
}
|
||||
List<TbTeam> teamList = tbTeamDao.queryByPage(tbTeam);
|
||||
|
|
|
|||
|
|
@ -36,19 +36,15 @@ public class TbUserPostServiceImpl implements TbUserPostService {
|
|||
@Override
|
||||
public List<TbUserPost> queryByPage(TbUserPost tbUserPost) {
|
||||
if (tbUserPost.getPostName() != null) {
|
||||
String postName = tbUserPost.getPostName();
|
||||
if (Constants.UNDERLINE.equals(postName)) {
|
||||
tbUserPost.setPostName(postName.replace("_", "/_"));
|
||||
} else if (Constants.PERCENT_SIGN.equals(postName)) {
|
||||
tbUserPost.setPostName(postName.replace("%", "/%"));
|
||||
boolean b = tbUserPost.getPostName().matches(Constants.DISALLOWED_REGEX);
|
||||
if (b) {
|
||||
tbUserPost.setPostName("/%");
|
||||
}
|
||||
}
|
||||
if (tbUserPost.getRelName() != null) {
|
||||
String relName = tbUserPost.getRelName();
|
||||
if (Constants.UNDERLINE.equals(relName)) {
|
||||
tbUserPost.setRelName(relName.replace("_", "/_"));
|
||||
} else if (Constants.PERCENT_SIGN.equals(relName)) {
|
||||
tbUserPost.setRelName(relName.replace("%", "/%"));
|
||||
boolean b = tbUserPost.getRelName().matches(Constants.DISALLOWED_REGEX);
|
||||
if (b) {
|
||||
tbUserPost.setRelName("/%");
|
||||
}
|
||||
}
|
||||
List<TbUserPost> list = tbUserPostDao.queryByPage(tbUserPost);
|
||||
|
|
|
|||
|
|
@ -129,11 +129,9 @@ public class TbWarnConfigServiceImpl implements TbWarnConfigService {
|
|||
@Override
|
||||
public List<TbWarnConfig> getAll(TbWarnConfig record){
|
||||
if (record.getConfigName() != null) {
|
||||
String configName = record.getConfigName();
|
||||
if (Constants.UNDERLINE.equals(configName)) {
|
||||
record.setConfigName(configName.replace("_", "/_"));
|
||||
} else if (Constants.PERCENT_SIGN.equals(configName)) {
|
||||
record.setConfigName(configName.replace("%", "/%"));
|
||||
boolean b = record.getConfigName().matches(Constants.DISALLOWED_REGEX);
|
||||
if (b) {
|
||||
record.setConfigName("/%");
|
||||
}
|
||||
}
|
||||
List<TbWarnConfig> list = tbWarnConfigMapper.getAll(record);
|
||||
|
|
|
|||
|
|
@ -89,11 +89,9 @@ public class ProjectViewServiceImpl {
|
|||
|
||||
public List<DeviceWarnRecordVo> getDeviceWarnRecord(DeviceWarnRecordVo deviceWarnRecordVo) {
|
||||
if (deviceWarnRecordVo.getProName() != null) {
|
||||
String proName = deviceWarnRecordVo.getProName();
|
||||
if (Constants.UNDERLINE.equals(proName)) {
|
||||
deviceWarnRecordVo.setProName(proName.replace("_", "/_"));
|
||||
} else if (Constants.PERCENT_SIGN.equals(proName)) {
|
||||
deviceWarnRecordVo.setProName(proName.replace("%", "/%"));
|
||||
boolean b = deviceWarnRecordVo.getProName().matches(Constants.DISALLOWED_REGEX);
|
||||
if (b) {
|
||||
deviceWarnRecordVo.setProName("/%");
|
||||
}
|
||||
}
|
||||
return tbDeviceDataRecord.getDeviceWarnRecord(deviceWarnRecordVo);
|
||||
|
|
@ -106,11 +104,9 @@ public class ProjectViewServiceImpl {
|
|||
*/
|
||||
public List<WarnPredictionRecordVo> getWarnPredictionRecord(WarnPredictionRecordVo record) {
|
||||
if (record.getProName() != null) {
|
||||
String proName = record.getProName();
|
||||
if (Constants.UNDERLINE.equals(proName)) {
|
||||
record.setProName(proName.replace("_", "/_"));
|
||||
} else if (Constants.PERCENT_SIGN.equals(proName)) {
|
||||
record.setProName(proName.replace("%", "/%"));
|
||||
boolean b = record.getProName().matches(Constants.DISALLOWED_REGEX);
|
||||
if (b) {
|
||||
record.setProName("/%");
|
||||
}
|
||||
}
|
||||
return tbDeviceDataRecord.getWarnPredictionRecord(record);
|
||||
|
|
@ -177,19 +173,15 @@ public class ProjectViewServiceImpl {
|
|||
*/
|
||||
public List<DeviceWarnRecordVo> getDeviceModelDetailsPage(TbDevice tbDevice) {
|
||||
if (tbDevice.getDevName() != null) {
|
||||
String devName = tbDevice.getDevName();
|
||||
if (Constants.UNDERLINE.equals(devName)) {
|
||||
tbDevice.setDevName(devName.replace("_", "/_"));
|
||||
} else if (Constants.PERCENT_SIGN.equals(devName)) {
|
||||
tbDevice.setDevName(devName.replace("%", "/%"));
|
||||
boolean b = tbDevice.getDevName().matches(Constants.DISALLOWED_REGEX);
|
||||
if (b) {
|
||||
tbDevice.setDevName("/%");
|
||||
}
|
||||
}
|
||||
if (tbDevice.getDevCode() != null) {
|
||||
String devCode = tbDevice.getDevCode();
|
||||
if (Constants.UNDERLINE.equals(devCode)) {
|
||||
tbDevice.setDevCode(devCode.replace("_", "/_"));
|
||||
} else if (Constants.PERCENT_SIGN.equals(devCode)) {
|
||||
tbDevice.setDevCode(devCode.replace("%", "/%"));
|
||||
boolean b = tbDevice.getDevCode().matches(Constants.DISALLOWED_REGEX);
|
||||
if (b) {
|
||||
tbDevice.setDevCode("/%");
|
||||
}
|
||||
}
|
||||
return tbDeviceMapper.getDeviceModelDetailsPage(tbDevice);
|
||||
|
|
@ -202,19 +194,15 @@ public class ProjectViewServiceImpl {
|
|||
*/
|
||||
public List<TbBdDeviceRecordTwo> getDeviceModelDataAll(TbBdDeviceRecordTwo bdData) {
|
||||
if (bdData.getDevName() != null) {
|
||||
String devName = bdData.getDevName();
|
||||
if (Constants.UNDERLINE.equals(devName)) {
|
||||
bdData.setDevName(devName.replace("_", "/_"));
|
||||
} else if (Constants.PERCENT_SIGN.equals(devName)) {
|
||||
bdData.setDevName(devName.replace("%", "/%"));
|
||||
boolean b = bdData.getDevName().matches(Constants.DISALLOWED_REGEX);
|
||||
if (b) {
|
||||
bdData.setDevName("/%");
|
||||
}
|
||||
}
|
||||
if (bdData.getDevCode() != null) {
|
||||
String devCode = bdData.getDevCode();
|
||||
if (Constants.UNDERLINE.equals(devCode)) {
|
||||
bdData.setDevCode(devCode.replace("_", "/_"));
|
||||
} else if (Constants.PERCENT_SIGN.equals(devCode)) {
|
||||
bdData.setDevCode(devCode.replace("%", "/%"));
|
||||
boolean b = bdData.getDevCode().matches(Constants.DISALLOWED_REGEX);
|
||||
if (b) {
|
||||
bdData.setDevCode("/%");
|
||||
}
|
||||
}
|
||||
return tbDeviceMapper.getDeviceModelDataAll(bdData);
|
||||
|
|
@ -273,19 +261,15 @@ public class ProjectViewServiceImpl {
|
|||
*/
|
||||
public List<TeamRecord> getTeamDetails(TeamRecord record) {
|
||||
if (record.getTeamName() != null) {
|
||||
String teamName = record.getTeamName();
|
||||
if (Constants.UNDERLINE.equals(teamName)) {
|
||||
record.setTeamName(teamName.replace("_", "/_"));
|
||||
} else if (Constants.PERCENT_SIGN.equals(teamName)) {
|
||||
record.setTeamName(teamName.replace("%", "/%"));
|
||||
boolean b = record.getTeamName().matches(Constants.DISALLOWED_REGEX);
|
||||
if (b) {
|
||||
record.setTeamName("/%");
|
||||
}
|
||||
}
|
||||
if (record.getMasterName() != null) {
|
||||
String masterName = record.getMasterName();
|
||||
if (Constants.UNDERLINE.equals(masterName)) {
|
||||
record.setMasterName(masterName.replace("_", "/_"));
|
||||
} else if (Constants.PERCENT_SIGN.equals(masterName)) {
|
||||
record.setMasterName(masterName.replace("%", "/%"));
|
||||
boolean b = record.getMasterName().matches(Constants.DISALLOWED_REGEX);
|
||||
if (b) {
|
||||
record.setMasterName("/%");
|
||||
}
|
||||
}
|
||||
List<TeamRecord> list = new ArrayList<>();
|
||||
|
|
@ -307,11 +291,9 @@ public class ProjectViewServiceImpl {
|
|||
*/
|
||||
public List<TeamRecord> getTeamPeopleDetails(TeamRecord record) {
|
||||
if (record.getPeopleName() != null) {
|
||||
String name = record.getPeopleName();
|
||||
if (Constants.UNDERLINE.equals(name)) {
|
||||
record.setPeopleName(name.replace("_", "/_"));
|
||||
} else if (Constants.PERCENT_SIGN.equals(name)) {
|
||||
record.setPeopleName(name.replace("%", "/%"));
|
||||
boolean b = record.getPeopleName().matches(Constants.DISALLOWED_REGEX);
|
||||
if (b) {
|
||||
record.setPeopleName("/%");
|
||||
}
|
||||
}
|
||||
List<TeamRecord> list = new ArrayList<>();
|
||||
|
|
|
|||
Loading…
Reference in New Issue