🐛 修复禁用邮件模版异常

pull/82/head^2
awenes 2024-04-06 19:46:06 +08:00
parent 289da3e46a
commit a0a8e9fbe0
1 changed files with 2 additions and 2 deletions

View File

@ -52,13 +52,13 @@ public interface MailTemplateRepository extends LogicDeleteRepository<MailTempla
/**
*
*
* @param type {@link MailType}
* @param type {@link String}
*/
@Modifying
@Transactional(rollbackFor = Exception.class)
@Query(value = "UPDATE mail_template SET " + SOFT_DELETE_SET
+ " WHERE type_ = :type", nativeQuery = true)
void deleteByType(@Param("type") MailType type);
void deleteByType(@Param("type") String type);
/**
* findByIdContainsDeleted