Переглянути джерело

问卷组拉取 更新问卷内容表医院 id

wangzl 3 місяців тому
батько
коміт
d0ee303b35

+ 2 - 0
tr-modules/tr-module-smartFollowUp/src/main/java/cn/tr/module/smart/common/service/impl/BizQuestionGroupSquareServiceImpl.java

@@ -170,6 +170,7 @@ public class BizQuestionGroupSquareServiceImpl implements IBizQuestionGroupSquar
                     .in(BizQuestionPO::getGroupId,bizQuestionGroupPO.getId()));
             List<BizQuestionPO> bizQuestionPOS = bizQuestionSquarePOS.stream().map(bizQuestionSquarePO -> {
                 BizQuestionPO bizQuestionPO = BizQuestionMapper.INSTANCE.convertQuestionPO(bizQuestionSquarePO);
+                bizQuestionPO.setTenantId(tenantId);
                 bizQuestionPO.setGroupId(bizQuestionGroupPO.getId());
                 return bizQuestionPO;
             }).collect(Collectors.toList());
@@ -178,6 +179,7 @@ public class BizQuestionGroupSquareServiceImpl implements IBizQuestionGroupSquar
             bizQuestionGroupRepository.insert(newBizQuestionGroupPO);
             List<BizQuestionPO> bizQuestionPOS = bizQuestionSquarePOS.stream().map(bizQuestionSquarePO -> {
                 BizQuestionPO bizQuestionPO = BizQuestionMapper.INSTANCE.convertQuestionPO(bizQuestionSquarePO);
+                bizQuestionPO.setTenantId(tenantId);
                 bizQuestionPO.setGroupId(newBizQuestionGroupPO.getId());
                 return bizQuestionPO;
             }).collect(Collectors.toList());