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