diff --git a/src/main/java/com/lq/cms/service/impl/SysUserServiceImpl.java b/src/main/java/com/lq/cms/service/impl/SysUserServiceImpl.java index 23cbdf1..9d48bf9 100755 --- a/src/main/java/com/lq/cms/service/impl/SysUserServiceImpl.java +++ b/src/main/java/com/lq/cms/service/impl/SysUserServiceImpl.java @@ -56,7 +56,7 @@ public class SysUserServiceImpl implements SysUserService { } @Override - @Transactional + @Transactional(rollbackFor = Exception.class) public void deleteUserById(Long userId) { //删除用户关联的角色 sysUserRoleDao.deleteByUserId(userId); diff --git a/src/main/java/com/lq/cms/service/impl/WechatRuleServiceImpl.java b/src/main/java/com/lq/cms/service/impl/WechatRuleServiceImpl.java index 98f4660..448e3aa 100644 --- a/src/main/java/com/lq/cms/service/impl/WechatRuleServiceImpl.java +++ b/src/main/java/com/lq/cms/service/impl/WechatRuleServiceImpl.java @@ -80,10 +80,7 @@ public class WechatRuleServiceImpl implements WechatRuleService { } if (WechatMessageTypeEnum.IMAGE_TEXT.getValue().equals(wechatMessage.getMessageType())){ NewsMessage newsMessage = new NewsMessage(); - } - - return baseMessage; }