1.添加日志记录
Showing
1 changed file
with
3 additions
and
0 deletions
... | @@ -12,6 +12,7 @@ import com.topdraw.business.module.user.iptv.repository.UserTvRepository; | ... | @@ -12,6 +12,7 @@ import com.topdraw.business.module.user.iptv.repository.UserTvRepository; |
12 | import com.topdraw.business.module.user.iptv.service.UserTvService; | 12 | import com.topdraw.business.module.user.iptv.service.UserTvService; |
13 | import com.topdraw.business.module.user.iptv.service.dto.UserTvDTO; | 13 | import com.topdraw.business.module.user.iptv.service.dto.UserTvDTO; |
14 | import com.topdraw.business.module.user.iptv.service.mapper.UserTvMapper; | 14 | import com.topdraw.business.module.user.iptv.service.mapper.UserTvMapper; |
15 | import lombok.extern.slf4j.Slf4j; | ||
15 | import org.apache.commons.lang3.StringUtils; | 16 | import org.apache.commons.lang3.StringUtils; |
16 | import org.springframework.aop.framework.AopContext; | 17 | import org.springframework.aop.framework.AopContext; |
17 | import org.springframework.beans.factory.annotation.Autowired; | 18 | import org.springframework.beans.factory.annotation.Autowired; |
... | @@ -31,6 +32,7 @@ import java.util.Optional; | ... | @@ -31,6 +32,7 @@ import java.util.Optional; |
31 | */ | 32 | */ |
32 | @Service | 33 | @Service |
33 | @Transactional(propagation = Propagation.SUPPORTS, readOnly = true, rollbackFor = Exception.class) | 34 | @Transactional(propagation = Propagation.SUPPORTS, readOnly = true, rollbackFor = Exception.class) |
35 | @Slf4j | ||
34 | public class UserTvServiceImpl implements UserTvService { | 36 | public class UserTvServiceImpl implements UserTvService { |
35 | 37 | ||
36 | 38 | ||
... | @@ -84,6 +86,7 @@ public class UserTvServiceImpl implements UserTvService { | ... | @@ -84,6 +86,7 @@ public class UserTvServiceImpl implements UserTvService { |
84 | Integer integer = this.userTvRepository.updateUserTvVisUserId(userTvDTO.getId(), resources.getVisUserId(), LocalDateTime.now()); | 86 | Integer integer = this.userTvRepository.updateUserTvVisUserId(userTvDTO.getId(), resources.getVisUserId(), LocalDateTime.now()); |
85 | 87 | ||
86 | if (integer == 1) { | 88 | if (integer == 1) { |
89 | log.info("修改大屏vis_user id成功,同步至大屏侧数据库, userTvDTO ==>> {}", userTvDTO); | ||
87 | ((UserTvServiceImpl) AopContext.currentProxy()).asyncUpdateUserTvVisUserId(userTvDTO); | 90 | ((UserTvServiceImpl) AopContext.currentProxy()).asyncUpdateUserTvVisUserId(userTvDTO); |
88 | } | 91 | } |
89 | 92 | ... | ... |
-
Please register or sign in to post a comment