diff --git a/src/main/java/aiyh/utils/response_deal/state/UpdateState.java b/src/main/java/aiyh/utils/response_deal/state/UpdateState.java index a249898..3c39156 100644 --- a/src/main/java/aiyh/utils/response_deal/state/UpdateState.java +++ b/src/main/java/aiyh/utils/response_deal/state/UpdateState.java @@ -56,7 +56,7 @@ public class UpdateState extends State { } RowDefinition rowDefinition = rowDefinitionList.get(0); String updateSql = MapperBuilderSql.builderUpdateSql(assignTable, rowDefinition.getUpdateParam(),"upItem"); - updateSql = updateSql + " " + conditionScript; + updateSql = updateSql + " where " + conditionScript; boolean flag = this.configMapper.executeUpdateBatchCusSql(updateSql, updateList, whereList); logger.info("批量更新处理结果 ==>"+flag); //如果为主表则处理明细数据