修改更新底表的语句

2024年9月20日10:08:56
This commit is contained in:
xiang2lin 2024-09-20 10:09:01 +08:00
parent 4ede4a65ef
commit 86aac2c3f5
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ private IFormmain0044Service formmain0044Service;
str = "update "+tableName+" set " + fieldName + "= '" +subState+"'" +sync_flag+"where id = '"+main.getString("id")+"'";
} catch (Exception e) {
subState = "N";
str = "update "+tableName+" set " + fieldName + "= '" +subState+"'" +payMsg+" = '"+attribute+"' "+"where id = '"+main.getString("id")+"'";
str = "update "+tableName+" set " + fieldName + "= '" +subState+"'," +payMsg+" = '"+attribute+"' "+"where id = '"+main.getString("id")+"'";
logger.info("保存日志失败"+e.getMessage());
oaBillEntity.setSql(str);
payBillDao.updateStateForId(str,oaBillEntity);