Moon.Orm 5.0 (MQL版) 实战实例

时间:2023-03-09 02:46:39
Moon.Orm 5.0 (MQL版) 实战实例
)))
                .)
            {
                )
            {
                )
            {
                ));
            }
            )
            {
                )))
                .)
            {
                )
            {
                )))
                .)
            {
                )
            {
                 ? page.Value : ; ? rows.Value : ;) * pageSize;;
            )
                )
            {
                 ? )
            {
                ,
                                            qpModel.CourseId,
                                            qpModel.KnowledgeId,
                                            qpModel.Custom_Question_TypeId,
                                            qpModel.DifficultyId,
                                            qpModel.Creator,
                                            qpModel.Creator_Name,
                                            )
                {
                    rootQuestion = null;
                    ].Type);
            ;

].StandardAnswer != null)
                {
                    ].StandardAnswer[];
                        reference_Answer = standardAnswerValue.].StandardAnswer));
                    }
                }
            }

rootQuestion = ;
            rootQuestion.IsMachineScore = ( : );
            rootQuestion.ParentId = ;
            rootQuestion.ScoreRate = ;
            rootQuestion.Status = (;
            ;
            rootQuestion.CollectCount = ;
            rootQuestion.IsExtract = is_Extract ? ( : (;
            )
            {
                ],
                    rootQuestion,
                    rqType);
            }
            ];
                            reference_Answer = standardAnswerValue.;
                childQuestion.IsMachineScore = tempRqType != RealQuestionType.QA ? ( : (;
                childQuestion.ParentId = parentQuestion.Id;
                childQuestion.ScoreRate = currentScore / parentQuestion.Score.Value;
                childQuestion.Status = (;
                ;
                childQuestion.CollectCount = ;
                childQuestion.IsExtract = (;
                )
                {
                    ;
            ];
            ] :  : (,
                    OrderNo = (;
            ],
                    Score = itemScore,
                    ScoreRate = itemScore / currentQuestion.Score.Value,
                    IsAnswer = ,
                    OrderNo = ()
            {
                message = , );
            )
                        {
                            ,
                                    QuestionTitle = realQuestionType == RealQuestionType.RW ? q_option_item.OptionTitle : englishAnswer,
                                    QuestionValue = englishAnswer,
                                    Score = resultItem.TotalScore
                                });
                                )
                                {
                                    )
                        {
                            ,
                                    QuestionTitle = null,
                                    QuestionValue = null,
                                    Score = isTakeScoreFromQuestion ? q_option_item.Score.Value : (resultItem.TotalScore * q_option_item.ScoreRate.Value),
                                    StandardAnswer = q_option_item.ReferenceAnswer
                                });
                            }
                        }
                    }
                    )
            {
                ;
            )
                            {
                                 ? child_q_option_item.OrderNo : (,
                                        QuestionTitle = childRealQuestionType == RealQuestionType.RW ? child_q_option_item.OptionTitle : englishAnswer,
                                        QuestionValue = englishAnswer,
                                        Score = isTakeScoreFromQuestion ? childQv_item.Score.Value : (childResultItem.TotalScore * child_q_option_item.ScoreRate.Value)
                                    });
                                    )
                                    {
                                        )
                            {
                                ,
                                        QuestionTitle = null,
                                        QuestionValue = null,
                                        Score = isTakeScoreFromQuestion ?
                                            (child_q_options.Count ==  ? childQv_item.Score.Value : child_q_option_item.Score.Value)
                                            :
                                            (childResultItem.TotalScore * child_q_option_item.ScoreRate.Value),
                                        StandardAnswer = child_q_option_item.ReferenceAnswer
                                    });
                                }
                            }
                        }
                        break;
                }
                childResultItem.QuestionOptions = questionOptions;
                globalResultItem.ChildQuestionForRenders.Add(childResultItem);
            }
        }
    }
}