feat(ai): 增加产品问题已答数量字段并更新相关接口
- 在 ApiMemberAnswerPreviousVo 类中添加 doneCnt 字段,用于表示题目答过数量
- 在 AiMemberAnswerServiceImpl 中设置 doneCnt 字段值
| | |
| | | @ApiModelProperty(value = "题目数量") |
| | | private Integer questionCnt; |
| | | |
| | | @ApiModelProperty(value = "题目答过数量") |
| | | private Integer doneCnt; |
| | | |
| | | @ApiModelProperty(value = "题目") |
| | | private String title; |
| | | |
| | |
| | | AiProduct aiProduct = aiProductService.getById(productId); |
| | | apiMemberAnswerPreviousVo.setName(aiProduct.getName()); |
| | | apiMemberAnswerPreviousVo.setQuestionCnt(aiMemberAnswer.getQuestionCnt()); |
| | | apiMemberAnswerPreviousVo.setDoneCnt(aiMemberAnswer.getDoneCnt()); |
| | | |
| | | String productQuestionId = apiMemberAnswerPreviousVo.getProductQuestionId(); |
| | | AiProductQuestion aiProductQuestion = aiProductQuestionService.getById(productQuestionId); |