diff --git a/op-modules/op-quality/src/main/java/com/op/quality/service/impl/QcCheckTaskIncomeServiceImpl.java b/op-modules/op-quality/src/main/java/com/op/quality/service/impl/QcCheckTaskIncomeServiceImpl.java index fbfd4d83..e66489a3 100644 --- a/op-modules/op-quality/src/main/java/com/op/quality/service/impl/QcCheckTaskIncomeServiceImpl.java +++ b/op-modules/op-quality/src/main/java/com/op/quality/service/impl/QcCheckTaskIncomeServiceImpl.java @@ -617,7 +617,7 @@ public class QcCheckTaskIncomeServiceImpl implements } @Override - //@Transactional(rollbackFor = Exception.class) + @Transactional(rollbackFor = Exception.class) public int commitCheckResults(QcCheckTaskIncome qcCheckTaskIncome) { List details = qcCheckTaskIncome.getQcCheckTaskDetails(); @@ -821,11 +821,11 @@ public class QcCheckTaskIncomeServiceImpl implements List notices = qcCheckTaskIncomeMapper.getNoticesGroup(noticeQo); if(!CollectionUtils.isEmpty(notices)) { List wecharts = new ArrayList<>(); - //去主库查微信id - DynamicDataSourceContextHolder.push("master");// 这是数据源的key - List userCodes = notices.stream() - .map(SysNoticeGroup::getUserCode) - .collect(Collectors.toList()); +// //去主库查微信id +// DynamicDataSourceContextHolder.push("master");// 这是数据源的key +// List userCodes = notices.stream() +// .map(SysNoticeGroup::getUserCode) +// .collect(Collectors.toList()); //Map wxidsMap = qcCheckTaskIncomeMapper.getWxIdMap(userCodes); for (SysNoticeGroup noticedto : notices) { // SysUser sysUser = wxidsMap.get(noticedto.getUserCode());