fix SQL注入报错
This commit is contained in:
+2
@@ -179,6 +179,7 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
||||
try {
|
||||
infoPage = lawsCommonMapper.getCommonPage(page, tableName, selectField, selectCondition);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
throw new JeroBootException("非法参数异常");
|
||||
}
|
||||
// 对返回的数据做处理
|
||||
@@ -1091,6 +1092,7 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
||||
try {
|
||||
initMap = lawsCommonMapper.getByIdAndModule(tableName, selectField, id, standardNumber);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
throw new JeroBootException("非法参数异常");
|
||||
}
|
||||
if (initMap == null) {
|
||||
|
||||
Reference in New Issue
Block a user