🐛 修复设置表对应sql的表名错误

pull/9/MERGE
yepingping 2023-02-09 07:13:24 +00:00 committed by smallbun
parent 519e3d1e79
commit 8b402d7d09
1 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ public interface SettingRepository extends LogicDeleteRepository<SettingEntity,
*/
@Modifying
@Transactional(rollbackFor = Exception.class)
@Query(value = "UPDATE stting SET " + SOFT_DELETE_SET
@Query(value = "UPDATE setting SET " + SOFT_DELETE_SET
+ " WHERE name_ = :name", nativeQuery = true)
void deleteByName(@Param("name") String name);
@ -91,7 +91,7 @@ public interface SettingRepository extends LogicDeleteRepository<SettingEntity,
*/
@Modifying
@Transactional(rollbackFor = Exception.class)
@Query(value = "UPDATE stting SET " + SOFT_DELETE_SET
@Query(value = "UPDATE setting SET " + SOFT_DELETE_SET
+ " WHERE name_ IN (:names)", nativeQuery = true)
void deleteByNameIn(@Param("names") List<String> names);