Merge branch 'master' into fix_foton_20230613

This commit is contained in:
wxyclub
2023-08-09 16:49:27 +08:00
2 changed files with 17 additions and 2 deletions
@@ -555,6 +555,15 @@ public class ActSarItemsBussEOService {
}
}
}
// 更新企标计划状态
String esPlanId = (String) standMap.get("planId");
if (StringUtils.isNotBlank(esPlanId)) {
EsRevisePlan esRevisePlan = esRevisePlanDao.selectById(esPlanId);
esRevisePlan.setPlanStatus("4");
esRevisePlan.setStandId(sarBussionessStand.getId());
esRevisePlan.setActualTime(new Date());
esRevisePlanDao.updateById(esRevisePlan);
}
}
return bussId;
@@ -1,8 +1,14 @@
package com.adc.da.xss;
import com.adc.da.exception.AdcDaBaseException;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import org.apache.commons.lang3.StringUtils;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
public class SQLFilter {
@@ -13,13 +19,13 @@ public class SQLFilter {
String checkStr= str;
checkStr = StringUtils.replace(checkStr, "\\", "");
checkStr = checkStr.toLowerCase();
String[] keywords = new String[]{"master", "truncate", "insert", "select", "delete", "update", "declare", "alter", "drop"};
String[] keywords = new String[]{"master ", "truncate ", "insert ", "select ", "delete ", "update", "declare ", "alter ", "drop "};
String[] arr$ = keywords;
int len$ = keywords.length;
for(int i$ = 0; i$ < len$; ++i$) {
String keyword = arr$[i$];
if (checkStr.indexOf(keyword) != -1) {
if (checkStr.contains(keyword)) {
throw new AdcDaBaseException("包含非法字符");
}
}