执行update语句

This commit is contained in:
xiangerlin 2025-07-10 19:30:50 +08:00
parent 5639af5140
commit dfad696064
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ public class ExecSqlServiceImpl implements IExecSqlService {
@Override
public int execUpdateSql(String sql, String data_source_code) throws Exception {
logger.info("=============进入execUpdateSql方法============");
if (ObjectUtils.isEmpty(sql)) {
if (!ObjectUtils.isEmpty(sql)) {
if (sql.contains("where") || sql.contains("WHERE")) {
// SqlSession sqlSession = getSqlSession(data_source_code);
// SqlSession sqlSession = new DataSourceUtil().getDefaultSqlSession();