| | |
| | | .eq(AiProductQuestionJob::getId, id)); |
| | | return; |
| | | } |
| | | // int i = questionCnt - questionDoneCnt; |
| | | // if (i >= 5){ |
| | | // i = 5; |
| | | // } |
| | | int i = questionCnt - questionDoneCnt; |
| | | if (i >= 5){ |
| | | i = 5; |
| | | } |
| | | AiProductQuestionAiDto dto = new AiProductQuestionAiDto(); |
| | | String jsonFormat = "{\"question_list\":[{\"title\": \"消费者对透明质酸的主要担忧是什么?\",\"answer_list\":[{\"answer\": \"消费者担心透明质酸维持时间短,效果不明显。\",\"type\": 1,\"analysis\": \"\"},{\"answer\": \"消费者担心透明质酸注射后可能出现移位、凹陷、馒化、僵硬以及炎症反应。\",\"type\": 1,\"analysis\": \"\"},{\"answer\": \"消费者的主要担忧包括效果不明显、维持时间短、注射后出现移位、凹陷、馒化、僵硬以及炎症反应。他们希望既达到理想效果,又避免这些副作用。\",\"type\": 2,\"analysis\": \"标准答案涵盖了消费者对透明质酸的所有主要担忧,既包括效果问题,也涵盖副作用风险,全面反映消费者心理需求。\"}]}]} "; |
| | | dto.setJsonFormat(jsonFormat); |
| | |
| | | aiProductQuestion.setProductCategoryId(productCategoryId); |
| | | aiProductQuestion.setTitle(title); |
| | | aiProductQuestion.setDifficulty(difficulty); |
| | | aiProductQuestion.setJobId(id); |
| | | aiProductQuestion.setCreatedTime(createdTime); |
| | | this.save(aiProductQuestion); |
| | | JSONArray answerList = questionObj.getJSONArray("answer_list"); |