|
|
@@ -519,7 +519,8 @@ public class GroupRelationController {
|
|
|
@GetMapping("/check/questionnaire/{promotionId}")
|
|
|
public Result<Boolean> checkQuestionnaire(@PathVariable Long promotionId) {
|
|
|
long userId = StpUserUtil.getLoginIdAsLong();
|
|
|
- Integer count = formFieldsDataMapper.selectCount(Wrappers.lambdaQuery(FormFieldsData.class).eq(FormFieldsData::getUserId, userId).eq(FormFieldsData::getPromotionId, promotionId));
|
|
|
+ List<Long> userIdList = userBindRelationService.getRelationUserIdList(userId, null);
|
|
|
+ Integer count = formFieldsDataMapper.selectCount(Wrappers.lambdaQuery(FormFieldsData.class).in(FormFieldsData::getUserId, userIdList).eq(FormFieldsData::getPromotionId, promotionId));
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(count > 0);
|
|
|
}
|
|
|
|