fix SQL注入报错

This commit is contained in:
liao
2023-11-15 14:08:43 +08:00
parent b5f11bdb85
commit c250e347fb
@@ -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) {