🐛 修复禁用邮件模版异常

pull/82/head^2
awenes 8 months ago
parent 289da3e46a
commit a0a8e9fbe0

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

Loading…
Cancel
Save