Merge branch 'master' of http://118.31.7.2:3000/wanghaobo/tz_finance_supply
commit
600d8469d8
@ -0,0 +1,38 @@
|
||||
package com.sztzjy.block_finance.controller;
|
||||
|
||||
import com.sztzjy.block_finance.annotation.AnonymousAccess;
|
||||
import com.sztzjy.block_finance.entity.dto.StuAssessmentQuestionDetailsDTO;
|
||||
import com.sztzjy.block_finance.mappers.StuFinanNeedsMapper;
|
||||
import com.sztzjy.block_finance.service.StuEvaluationService;
|
||||
import com.sztzjy.block_finance.util.ResultDataEntity;
|
||||
import com.sztzjy.block_finance.util.TzApi;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author tz
|
||||
* @date 2024/4/7 10:16
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("api/stu/supplyChainFinance/evaluation")
|
||||
@Api(tags = "理论测评")
|
||||
public class StuEvaluationController {
|
||||
@Resource
|
||||
StuEvaluationService stuEvaluationService;
|
||||
@PostMapping("/getLearningAssessment")
|
||||
@AnonymousAccess
|
||||
@ApiOperation("理论测评查看")
|
||||
public ResultDataEntity<List<StuAssessmentQuestionDetailsDTO>> getLearningAssessment(@ApiParam("归属模块") String module, @ApiParam("用户ID") String userId) {
|
||||
List<StuAssessmentQuestionDetailsDTO> list = stuEvaluationService.getLearningAssessment(module,userId);
|
||||
return new ResultDataEntity<>(HttpStatus.OK, list);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
package com.sztzjy.block_finance.entity;
|
||||
|
||||
public class StuAssessmentQuestionDetails {
|
||||
private Integer detailsId;
|
||||
|
||||
private String topicId;
|
||||
|
||||
private String studentAnswer;
|
||||
|
||||
private String userId;
|
||||
|
||||
private String rightOrWrong;
|
||||
|
||||
private String module;
|
||||
|
||||
public Integer getDetailsId() {
|
||||
return detailsId;
|
||||
}
|
||||
|
||||
public void setDetailsId(Integer detailsId) {
|
||||
this.detailsId = detailsId;
|
||||
}
|
||||
|
||||
public String getTopicId() {
|
||||
return topicId;
|
||||
}
|
||||
|
||||
public void setTopicId(String topicId) {
|
||||
this.topicId = topicId == null ? null : topicId.trim();
|
||||
}
|
||||
|
||||
public String getStudentAnswer() {
|
||||
return studentAnswer;
|
||||
}
|
||||
|
||||
public void setStudentAnswer(String studentAnswer) {
|
||||
this.studentAnswer = studentAnswer == null ? null : studentAnswer.trim();
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId == null ? null : userId.trim();
|
||||
}
|
||||
|
||||
public String getRightOrWrong() {
|
||||
return rightOrWrong;
|
||||
}
|
||||
|
||||
public void setRightOrWrong(String rightOrWrong) {
|
||||
this.rightOrWrong = rightOrWrong == null ? null : rightOrWrong.trim();
|
||||
}
|
||||
|
||||
public String getModule() {
|
||||
return module;
|
||||
}
|
||||
|
||||
public void setModule(String module) {
|
||||
this.module = module == null ? null : module.trim();
|
||||
}
|
||||
}
|
@ -0,0 +1,609 @@
|
||||
package com.sztzjy.block_finance.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class StuAssessmentQuestionDetailsExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public StuAssessmentQuestionDetailsExample() {
|
||||
oredCriteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andDetailsIdIsNull() {
|
||||
addCriterion("details_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDetailsIdIsNotNull() {
|
||||
addCriterion("details_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDetailsIdEqualTo(Integer value) {
|
||||
addCriterion("details_id =", value, "detailsId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDetailsIdNotEqualTo(Integer value) {
|
||||
addCriterion("details_id <>", value, "detailsId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDetailsIdGreaterThan(Integer value) {
|
||||
addCriterion("details_id >", value, "detailsId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDetailsIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("details_id >=", value, "detailsId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDetailsIdLessThan(Integer value) {
|
||||
addCriterion("details_id <", value, "detailsId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDetailsIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("details_id <=", value, "detailsId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDetailsIdIn(List<Integer> values) {
|
||||
addCriterion("details_id in", values, "detailsId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDetailsIdNotIn(List<Integer> values) {
|
||||
addCriterion("details_id not in", values, "detailsId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDetailsIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("details_id between", value1, value2, "detailsId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDetailsIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("details_id not between", value1, value2, "detailsId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTopicIdIsNull() {
|
||||
addCriterion("topic_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTopicIdIsNotNull() {
|
||||
addCriterion("topic_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTopicIdEqualTo(String value) {
|
||||
addCriterion("topic_id =", value, "topicId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTopicIdNotEqualTo(String value) {
|
||||
addCriterion("topic_id <>", value, "topicId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTopicIdGreaterThan(String value) {
|
||||
addCriterion("topic_id >", value, "topicId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTopicIdGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("topic_id >=", value, "topicId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTopicIdLessThan(String value) {
|
||||
addCriterion("topic_id <", value, "topicId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTopicIdLessThanOrEqualTo(String value) {
|
||||
addCriterion("topic_id <=", value, "topicId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTopicIdLike(String value) {
|
||||
addCriterion("topic_id like", value, "topicId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTopicIdNotLike(String value) {
|
||||
addCriterion("topic_id not like", value, "topicId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTopicIdIn(List<String> values) {
|
||||
addCriterion("topic_id in", values, "topicId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTopicIdNotIn(List<String> values) {
|
||||
addCriterion("topic_id not in", values, "topicId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTopicIdBetween(String value1, String value2) {
|
||||
addCriterion("topic_id between", value1, value2, "topicId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTopicIdNotBetween(String value1, String value2) {
|
||||
addCriterion("topic_id not between", value1, value2, "topicId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStudentAnswerIsNull() {
|
||||
addCriterion("student_answer is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStudentAnswerIsNotNull() {
|
||||
addCriterion("student_answer is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStudentAnswerEqualTo(String value) {
|
||||
addCriterion("student_answer =", value, "studentAnswer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStudentAnswerNotEqualTo(String value) {
|
||||
addCriterion("student_answer <>", value, "studentAnswer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStudentAnswerGreaterThan(String value) {
|
||||
addCriterion("student_answer >", value, "studentAnswer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStudentAnswerGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("student_answer >=", value, "studentAnswer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStudentAnswerLessThan(String value) {
|
||||
addCriterion("student_answer <", value, "studentAnswer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStudentAnswerLessThanOrEqualTo(String value) {
|
||||
addCriterion("student_answer <=", value, "studentAnswer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStudentAnswerLike(String value) {
|
||||
addCriterion("student_answer like", value, "studentAnswer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStudentAnswerNotLike(String value) {
|
||||
addCriterion("student_answer not like", value, "studentAnswer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStudentAnswerIn(List<String> values) {
|
||||
addCriterion("student_answer in", values, "studentAnswer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStudentAnswerNotIn(List<String> values) {
|
||||
addCriterion("student_answer not in", values, "studentAnswer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStudentAnswerBetween(String value1, String value2) {
|
||||
addCriterion("student_answer between", value1, value2, "studentAnswer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStudentAnswerNotBetween(String value1, String value2) {
|
||||
addCriterion("student_answer not between", value1, value2, "studentAnswer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdIsNull() {
|
||||
addCriterion("user_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdIsNotNull() {
|
||||
addCriterion("user_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdEqualTo(String value) {
|
||||
addCriterion("user_id =", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotEqualTo(String value) {
|
||||
addCriterion("user_id <>", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdGreaterThan(String value) {
|
||||
addCriterion("user_id >", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("user_id >=", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdLessThan(String value) {
|
||||
addCriterion("user_id <", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdLessThanOrEqualTo(String value) {
|
||||
addCriterion("user_id <=", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdLike(String value) {
|
||||
addCriterion("user_id like", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotLike(String value) {
|
||||
addCriterion("user_id not like", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdIn(List<String> values) {
|
||||
addCriterion("user_id in", values, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotIn(List<String> values) {
|
||||
addCriterion("user_id not in", values, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdBetween(String value1, String value2) {
|
||||
addCriterion("user_id between", value1, value2, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotBetween(String value1, String value2) {
|
||||
addCriterion("user_id not between", value1, value2, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRightOrWrongIsNull() {
|
||||
addCriterion("right_or_wrong is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRightOrWrongIsNotNull() {
|
||||
addCriterion("right_or_wrong is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRightOrWrongEqualTo(String value) {
|
||||
addCriterion("right_or_wrong =", value, "rightOrWrong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRightOrWrongNotEqualTo(String value) {
|
||||
addCriterion("right_or_wrong <>", value, "rightOrWrong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRightOrWrongGreaterThan(String value) {
|
||||
addCriterion("right_or_wrong >", value, "rightOrWrong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRightOrWrongGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("right_or_wrong >=", value, "rightOrWrong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRightOrWrongLessThan(String value) {
|
||||
addCriterion("right_or_wrong <", value, "rightOrWrong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRightOrWrongLessThanOrEqualTo(String value) {
|
||||
addCriterion("right_or_wrong <=", value, "rightOrWrong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRightOrWrongLike(String value) {
|
||||
addCriterion("right_or_wrong like", value, "rightOrWrong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRightOrWrongNotLike(String value) {
|
||||
addCriterion("right_or_wrong not like", value, "rightOrWrong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRightOrWrongIn(List<String> values) {
|
||||
addCriterion("right_or_wrong in", values, "rightOrWrong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRightOrWrongNotIn(List<String> values) {
|
||||
addCriterion("right_or_wrong not in", values, "rightOrWrong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRightOrWrongBetween(String value1, String value2) {
|
||||
addCriterion("right_or_wrong between", value1, value2, "rightOrWrong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRightOrWrongNotBetween(String value1, String value2) {
|
||||
addCriterion("right_or_wrong not between", value1, value2, "rightOrWrong");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleIsNull() {
|
||||
addCriterion("module is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleIsNotNull() {
|
||||
addCriterion("module is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleEqualTo(String value) {
|
||||
addCriterion("module =", value, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleNotEqualTo(String value) {
|
||||
addCriterion("module <>", value, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleGreaterThan(String value) {
|
||||
addCriterion("module >", value, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("module >=", value, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleLessThan(String value) {
|
||||
addCriterion("module <", value, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleLessThanOrEqualTo(String value) {
|
||||
addCriterion("module <=", value, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleLike(String value) {
|
||||
addCriterion("module like", value, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleNotLike(String value) {
|
||||
addCriterion("module not like", value, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleIn(List<String> values) {
|
||||
addCriterion("module in", values, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleNotIn(List<String> values) {
|
||||
addCriterion("module not in", values, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleBetween(String value1, String value2) {
|
||||
addCriterion("module between", value1, value2, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleNotBetween(String value1, String value2) {
|
||||
addCriterion("module not between", value1, value2, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,205 @@
|
||||
package com.sztzjy.block_finance.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public class StuLearningAssessment {
|
||||
private String topicId;
|
||||
|
||||
private String topicName;
|
||||
|
||||
private String topicType;
|
||||
|
||||
private String topicDifficultyLevel;
|
||||
|
||||
private BigDecimal topicScore;
|
||||
|
||||
private Integer topicNumber;
|
||||
|
||||
private String optionA;
|
||||
|
||||
private String optionB;
|
||||
|
||||
private String optionC;
|
||||
|
||||
private String optionD;
|
||||
|
||||
private String optionE;
|
||||
|
||||
private String optionF;
|
||||
|
||||
private String answer;
|
||||
|
||||
private String studentAnswer;
|
||||
|
||||
private String questionAnswer;
|
||||
|
||||
private String module;
|
||||
|
||||
private Integer logic;
|
||||
|
||||
private Integer state;
|
||||
|
||||
private String reason;
|
||||
|
||||
private String optionImg;
|
||||
|
||||
public String getTopicId() {
|
||||
return topicId;
|
||||
}
|
||||
|
||||
public void setTopicId(String topicId) {
|
||||
this.topicId = topicId == null ? null : topicId.trim();
|
||||
}
|
||||
|
||||
public String getTopicName() {
|
||||
return topicName;
|
||||
}
|
||||
|
||||
public void setTopicName(String topicName) {
|
||||
this.topicName = topicName == null ? null : topicName.trim();
|
||||
}
|
||||
|
||||
public String getTopicType() {
|
||||
return topicType;
|
||||
}
|
||||
|
||||
public void setTopicType(String topicType) {
|
||||
this.topicType = topicType == null ? null : topicType.trim();
|
||||
}
|
||||
|
||||
public String getTopicDifficultyLevel() {
|
||||
return topicDifficultyLevel;
|
||||
}
|
||||
|
||||
public void setTopicDifficultyLevel(String topicDifficultyLevel) {
|
||||
this.topicDifficultyLevel = topicDifficultyLevel == null ? null : topicDifficultyLevel.trim();
|
||||
}
|
||||
|
||||
public BigDecimal getTopicScore() {
|
||||
return topicScore;
|
||||
}
|
||||
|
||||
public void setTopicScore(BigDecimal topicScore) {
|
||||
this.topicScore = topicScore;
|
||||
}
|
||||
|
||||
public Integer getTopicNumber() {
|
||||
return topicNumber;
|
||||
}
|
||||
|
||||
public void setTopicNumber(Integer topicNumber) {
|
||||
this.topicNumber = topicNumber;
|
||||
}
|
||||
|
||||
public String getOptionA() {
|
||||
return optionA;
|
||||
}
|
||||
|
||||
public void setOptionA(String optionA) {
|
||||
this.optionA = optionA == null ? null : optionA.trim();
|
||||
}
|
||||
|
||||
public String getOptionB() {
|
||||
return optionB;
|
||||
}
|
||||
|
||||
public void setOptionB(String optionB) {
|
||||
this.optionB = optionB == null ? null : optionB.trim();
|
||||
}
|
||||
|
||||
public String getOptionC() {
|
||||
return optionC;
|
||||
}
|
||||
|
||||
public void setOptionC(String optionC) {
|
||||
this.optionC = optionC == null ? null : optionC.trim();
|
||||
}
|
||||
|
||||
public String getOptionD() {
|
||||
return optionD;
|
||||
}
|
||||
|
||||
public void setOptionD(String optionD) {
|
||||
this.optionD = optionD == null ? null : optionD.trim();
|
||||
}
|
||||
|
||||
public String getOptionE() {
|
||||
return optionE;
|
||||
}
|
||||
|
||||
public void setOptionE(String optionE) {
|
||||
this.optionE = optionE == null ? null : optionE.trim();
|
||||
}
|
||||
|
||||
public String getOptionF() {
|
||||
return optionF;
|
||||
}
|
||||
|
||||
public void setOptionF(String optionF) {
|
||||
this.optionF = optionF == null ? null : optionF.trim();
|
||||
}
|
||||
|
||||
public String getAnswer() {
|
||||
return answer;
|
||||
}
|
||||
|
||||
public void setAnswer(String answer) {
|
||||
this.answer = answer == null ? null : answer.trim();
|
||||
}
|
||||
|
||||
public String getStudentAnswer() {
|
||||
return studentAnswer;
|
||||
}
|
||||
|
||||
public void setStudentAnswer(String studentAnswer) {
|
||||
this.studentAnswer = studentAnswer == null ? null : studentAnswer.trim();
|
||||
}
|
||||
|
||||
public String getQuestionAnswer() {
|
||||
return questionAnswer;
|
||||
}
|
||||
|
||||
public void setQuestionAnswer(String questionAnswer) {
|
||||
this.questionAnswer = questionAnswer == null ? null : questionAnswer.trim();
|
||||
}
|
||||
|
||||
public String getModule() {
|
||||
return module;
|
||||
}
|
||||
|
||||
public void setModule(String module) {
|
||||
this.module = module == null ? null : module.trim();
|
||||
}
|
||||
|
||||
public Integer getLogic() {
|
||||
return logic;
|
||||
}
|
||||
|
||||
public void setLogic(Integer logic) {
|
||||
this.logic = logic;
|
||||
}
|
||||
|
||||
public Integer getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(Integer state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public String getReason() {
|
||||
return reason;
|
||||
}
|
||||
|
||||
public void setReason(String reason) {
|
||||
this.reason = reason == null ? null : reason.trim();
|
||||
}
|
||||
|
||||
public String getOptionImg() {
|
||||
return optionImg;
|
||||
}
|
||||
|
||||
public void setOptionImg(String optionImg) {
|
||||
this.optionImg = optionImg == null ? null : optionImg.trim();
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,54 @@
|
||||
package com.sztzjy.block_finance.entity.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @author tz
|
||||
* @date 2023/10/26 10:46
|
||||
*/
|
||||
@Data
|
||||
public class StuAssessmentQuestionDetailsDTO {
|
||||
private String topicId;
|
||||
|
||||
private String topicName;
|
||||
|
||||
private String topicType;
|
||||
|
||||
private String topicDifficultyLevel;
|
||||
|
||||
private BigDecimal topicScore;
|
||||
|
||||
private Integer topicNumber;
|
||||
|
||||
private String optionA;
|
||||
|
||||
private String optionB;
|
||||
|
||||
private String optionC;
|
||||
|
||||
private String optionD;
|
||||
|
||||
private String optionE;
|
||||
|
||||
private String optionF;
|
||||
|
||||
private String answer;
|
||||
|
||||
private String studentAnswer;
|
||||
|
||||
private String questionAnswer;
|
||||
|
||||
private String module;
|
||||
|
||||
private Integer logic;
|
||||
|
||||
private Integer state;
|
||||
|
||||
private String reason;
|
||||
|
||||
private String optionImg;
|
||||
|
||||
private String rightOrWrong;
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.sztzjy.block_finance.mappers;
|
||||
|
||||
import com.sztzjy.block_finance.entity.StuAssessmentQuestionDetails;
|
||||
import com.sztzjy.block_finance.entity.StuAssessmentQuestionDetailsExample;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
@Mapper
|
||||
public interface StuAssessmentQuestionDetailsMapper {
|
||||
long countByExample(StuAssessmentQuestionDetailsExample example);
|
||||
|
||||
int deleteByExample(StuAssessmentQuestionDetailsExample example);
|
||||
|
||||
int deleteByPrimaryKey(Integer detailsId);
|
||||
|
||||
int insert(StuAssessmentQuestionDetails record);
|
||||
|
||||
int insertSelective(StuAssessmentQuestionDetails record);
|
||||
|
||||
List<StuAssessmentQuestionDetails> selectByExample(StuAssessmentQuestionDetailsExample example);
|
||||
|
||||
StuAssessmentQuestionDetails selectByPrimaryKey(Integer detailsId);
|
||||
|
||||
int updateByExampleSelective(@Param("record") StuAssessmentQuestionDetails record, @Param("example") StuAssessmentQuestionDetailsExample example);
|
||||
|
||||
int updateByExample(@Param("record") StuAssessmentQuestionDetails record, @Param("example") StuAssessmentQuestionDetailsExample example);
|
||||
|
||||
int updateByPrimaryKeySelective(StuAssessmentQuestionDetails record);
|
||||
|
||||
int updateByPrimaryKey(StuAssessmentQuestionDetails record);
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.sztzjy.block_finance.mappers;
|
||||
|
||||
import com.sztzjy.block_finance.entity.StuLearningAssessment;
|
||||
import com.sztzjy.block_finance.entity.StuLearningAssessmentExample;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
@Mapper
|
||||
public interface StuLearningAssessmentMapper {
|
||||
long countByExample(StuLearningAssessmentExample example);
|
||||
|
||||
int deleteByExample(StuLearningAssessmentExample example);
|
||||
|
||||
int deleteByPrimaryKey(String topicId);
|
||||
|
||||
int insert(StuLearningAssessment record);
|
||||
|
||||
int insertSelective(StuLearningAssessment record);
|
||||
|
||||
List<StuLearningAssessment> selectByExample(StuLearningAssessmentExample example);
|
||||
|
||||
StuLearningAssessment selectByPrimaryKey(String topicId);
|
||||
|
||||
int updateByExampleSelective(@Param("record") StuLearningAssessment record, @Param("example") StuLearningAssessmentExample example);
|
||||
|
||||
int updateByExample(@Param("record") StuLearningAssessment record, @Param("example") StuLearningAssessmentExample example);
|
||||
|
||||
int updateByPrimaryKeySelective(StuLearningAssessment record);
|
||||
|
||||
int updateByPrimaryKey(StuLearningAssessment record);
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.sztzjy.block_finance.service;
|
||||
|
||||
import com.sztzjy.block_finance.entity.dto.StuAssessmentQuestionDetailsDTO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author tz
|
||||
* @date 2024/4/7 10:20
|
||||
*/
|
||||
public interface StuEvaluationService {
|
||||
List<StuAssessmentQuestionDetailsDTO> getLearningAssessment(String module, String userId);
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
package com.sztzjy.block_finance.service.impl;
|
||||
|
||||
import com.sztzjy.block_finance.entity.StuAssessmentQuestionDetails;
|
||||
import com.sztzjy.block_finance.entity.StuAssessmentQuestionDetailsExample;
|
||||
import com.sztzjy.block_finance.entity.StuLearningAssessment;
|
||||
import com.sztzjy.block_finance.entity.StuLearningAssessmentExample;
|
||||
import com.sztzjy.block_finance.entity.dto.StuAssessmentQuestionDetailsDTO;
|
||||
import com.sztzjy.block_finance.mappers.StuAssessmentQuestionDetailsMapper;
|
||||
import com.sztzjy.block_finance.mappers.StuLearningAssessmentMapper;
|
||||
import com.sztzjy.block_finance.service.StuEvaluationService;
|
||||
import com.sztzjy.block_finance.util.ConvertUtil;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author tz
|
||||
* @date 2024/4/7 10:21
|
||||
*/
|
||||
@Service
|
||||
public class StuEvaluationServiceImpl implements StuEvaluationService {
|
||||
@Resource
|
||||
ConvertUtil convertUtil;
|
||||
@Resource
|
||||
StuAssessmentQuestionDetailsMapper stuAssessmentQuestionDetailsMapper;
|
||||
@Resource
|
||||
StuLearningAssessmentMapper stuLearningAssessmentMapper;
|
||||
@Override
|
||||
public List<StuAssessmentQuestionDetailsDTO> getLearningAssessment(String module, String userId) {
|
||||
|
||||
StuAssessmentQuestionDetailsExample detailsExample=new StuAssessmentQuestionDetailsExample();
|
||||
detailsExample.createCriteria().andUserIdEqualTo(userId).andModuleEqualTo(module);
|
||||
List<StuAssessmentQuestionDetails> stuAssessmentQuestionDetails = stuAssessmentQuestionDetailsMapper.selectByExample(detailsExample);
|
||||
|
||||
StuLearningAssessmentExample example = new StuLearningAssessmentExample();
|
||||
StuLearningAssessmentExample.Criteria criteria = example.createCriteria();
|
||||
criteria.andModuleEqualTo(module).andLogicEqualTo(1);
|
||||
List<StuLearningAssessment> stuLearningAssessments = stuLearningAssessmentMapper.selectByExample(example);
|
||||
List<StuAssessmentQuestionDetailsDTO> stuAssessmentQuestionDetailsDTOS = convertUtil.entityToDTOList(stuLearningAssessments, StuAssessmentQuestionDetailsDTO.class);
|
||||
if(stuAssessmentQuestionDetails.size()!=0){
|
||||
for (int i = 0; i < stuAssessmentQuestionDetails.size(); i++) {
|
||||
for (int j = 0; j < stuAssessmentQuestionDetailsDTOS.size(); j++) {
|
||||
if(stuAssessmentQuestionDetails.get(i).getTopicId().equals(stuLearningAssessments.get(j).getTopicId())){
|
||||
String rightOrWrong = stuAssessmentQuestionDetails.get(i).getRightOrWrong();
|
||||
String studentAnswer = stuAssessmentQuestionDetails.get(i).getStudentAnswer();
|
||||
stuAssessmentQuestionDetailsDTOS.get(j).setRightOrWrong(rightOrWrong);
|
||||
stuAssessmentQuestionDetailsDTOS.get(j).setStudentAnswer(studentAnswer);
|
||||
}
|
||||
}
|
||||
}
|
||||
return stuAssessmentQuestionDetailsDTOS;
|
||||
}
|
||||
for (int i = 0; i < stuAssessmentQuestionDetailsDTOS.size(); i++) {
|
||||
stuAssessmentQuestionDetailsDTOS.get(i).setAnswer(null);
|
||||
}
|
||||
return stuAssessmentQuestionDetailsDTOS;
|
||||
}
|
||||
}
|
@ -0,0 +1,228 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.sztzjy.block_finance.mappers.StuAssessmentQuestionDetailsMapper">
|
||||
<resultMap id="BaseResultMap" type="com.sztzjy.block_finance.entity.StuAssessmentQuestionDetails">
|
||||
<id column="details_id" jdbcType="INTEGER" property="detailsId" />
|
||||
<result column="topic_id" jdbcType="VARCHAR" property="topicId" />
|
||||
<result column="student_answer" jdbcType="VARCHAR" property="studentAnswer" />
|
||||
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
||||
<result column="right_or_wrong" jdbcType="VARCHAR" property="rightOrWrong" />
|
||||
<result column="module" jdbcType="VARCHAR" property="module" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
details_id, topic_id, student_answer, user_id, right_or_wrong, module
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.sztzjy.block_finance.entity.StuAssessmentQuestionDetailsExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from stu_assessment_question_details
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from stu_assessment_question_details
|
||||
where details_id = #{detailsId,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from stu_assessment_question_details
|
||||
where details_id = #{detailsId,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.sztzjy.block_finance.entity.StuAssessmentQuestionDetailsExample">
|
||||
delete from stu_assessment_question_details
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sztzjy.block_finance.entity.StuAssessmentQuestionDetails">
|
||||
insert into stu_assessment_question_details (details_id, topic_id, student_answer,
|
||||
user_id, right_or_wrong, module
|
||||
)
|
||||
values (#{detailsId,jdbcType=INTEGER}, #{topicId,jdbcType=VARCHAR}, #{studentAnswer,jdbcType=VARCHAR},
|
||||
#{userId,jdbcType=VARCHAR}, #{rightOrWrong,jdbcType=VARCHAR}, #{module,jdbcType=VARCHAR}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sztzjy.block_finance.entity.StuAssessmentQuestionDetails">
|
||||
insert into stu_assessment_question_details
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="detailsId != null">
|
||||
details_id,
|
||||
</if>
|
||||
<if test="topicId != null">
|
||||
topic_id,
|
||||
</if>
|
||||
<if test="studentAnswer != null">
|
||||
student_answer,
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id,
|
||||
</if>
|
||||
<if test="rightOrWrong != null">
|
||||
right_or_wrong,
|
||||
</if>
|
||||
<if test="module != null">
|
||||
module,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="detailsId != null">
|
||||
#{detailsId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="topicId != null">
|
||||
#{topicId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="studentAnswer != null">
|
||||
#{studentAnswer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
#{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="rightOrWrong != null">
|
||||
#{rightOrWrong,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="module != null">
|
||||
#{module,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.sztzjy.block_finance.entity.StuAssessmentQuestionDetailsExample" resultType="java.lang.Long">
|
||||
select count(*) from stu_assessment_question_details
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update stu_assessment_question_details
|
||||
<set>
|
||||
<if test="record.detailsId != null">
|
||||
details_id = #{record.detailsId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.topicId != null">
|
||||
topic_id = #{record.topicId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.studentAnswer != null">
|
||||
student_answer = #{record.studentAnswer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.userId != null">
|
||||
user_id = #{record.userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.rightOrWrong != null">
|
||||
right_or_wrong = #{record.rightOrWrong,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.module != null">
|
||||
module = #{record.module,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update stu_assessment_question_details
|
||||
set details_id = #{record.detailsId,jdbcType=INTEGER},
|
||||
topic_id = #{record.topicId,jdbcType=VARCHAR},
|
||||
student_answer = #{record.studentAnswer,jdbcType=VARCHAR},
|
||||
user_id = #{record.userId,jdbcType=VARCHAR},
|
||||
right_or_wrong = #{record.rightOrWrong,jdbcType=VARCHAR},
|
||||
module = #{record.module,jdbcType=VARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.block_finance.entity.StuAssessmentQuestionDetails">
|
||||
update stu_assessment_question_details
|
||||
<set>
|
||||
<if test="topicId != null">
|
||||
topic_id = #{topicId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="studentAnswer != null">
|
||||
student_answer = #{studentAnswer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id = #{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="rightOrWrong != null">
|
||||
right_or_wrong = #{rightOrWrong,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="module != null">
|
||||
module = #{module,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where details_id = #{detailsId,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sztzjy.block_finance.entity.StuAssessmentQuestionDetails">
|
||||
update stu_assessment_question_details
|
||||
set topic_id = #{topicId,jdbcType=VARCHAR},
|
||||
student_answer = #{studentAnswer,jdbcType=VARCHAR},
|
||||
user_id = #{userId,jdbcType=VARCHAR},
|
||||
right_or_wrong = #{rightOrWrong,jdbcType=VARCHAR},
|
||||
module = #{module,jdbcType=VARCHAR}
|
||||
where details_id = #{detailsId,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
@ -0,0 +1,448 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.sztzjy.block_finance.mappers.StuLearningAssessmentMapper">
|
||||
<resultMap id="BaseResultMap" type="com.sztzjy.block_finance.entity.StuLearningAssessment">
|
||||
<id column="topic_id" jdbcType="VARCHAR" property="topicId" />
|
||||
<result column="topic_name" jdbcType="VARCHAR" property="topicName" />
|
||||
<result column="topic_type" jdbcType="VARCHAR" property="topicType" />
|
||||
<result column="topic_difficulty_level" jdbcType="VARCHAR" property="topicDifficultyLevel" />
|
||||
<result column="topic_score" jdbcType="DECIMAL" property="topicScore" />
|
||||
<result column="topic_number" jdbcType="INTEGER" property="topicNumber" />
|
||||
<result column="option_a" jdbcType="VARCHAR" property="optionA" />
|
||||
<result column="option_b" jdbcType="VARCHAR" property="optionB" />
|
||||
<result column="option_c" jdbcType="VARCHAR" property="optionC" />
|
||||
<result column="option_d" jdbcType="VARCHAR" property="optionD" />
|
||||
<result column="option_e" jdbcType="VARCHAR" property="optionE" />
|
||||
<result column="option_f" jdbcType="VARCHAR" property="optionF" />
|
||||
<result column="answer" jdbcType="VARCHAR" property="answer" />
|
||||
<result column="student_answer" jdbcType="VARCHAR" property="studentAnswer" />
|
||||
<result column="question_answer" jdbcType="VARCHAR" property="questionAnswer" />
|
||||
<result column="module" jdbcType="VARCHAR" property="module" />
|
||||
<result column="logic" jdbcType="INTEGER" property="logic" />
|
||||
<result column="state" jdbcType="INTEGER" property="state" />
|
||||
<result column="reason" jdbcType="VARCHAR" property="reason" />
|
||||
<result column="option_img" jdbcType="VARCHAR" property="optionImg" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
topic_id, topic_name, topic_type, topic_difficulty_level, topic_score, topic_number,
|
||||
option_a, option_b, option_c, option_d, option_e, option_f, answer, student_answer,
|
||||
question_answer, module, logic, state, reason, option_img
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.sztzjy.block_finance.entity.StuLearningAssessmentExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from stu_learning_assessment
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from stu_learning_assessment
|
||||
where topic_id = #{topicId,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from stu_learning_assessment
|
||||
where topic_id = #{topicId,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.sztzjy.block_finance.entity.StuLearningAssessmentExample">
|
||||
delete from stu_learning_assessment
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sztzjy.block_finance.entity.StuLearningAssessment">
|
||||
insert into stu_learning_assessment (topic_id, topic_name, topic_type,
|
||||
topic_difficulty_level, topic_score, topic_number,
|
||||
option_a, option_b, option_c,
|
||||
option_d, option_e, option_f,
|
||||
answer, student_answer, question_answer,
|
||||
module, logic, state,
|
||||
reason, option_img)
|
||||
values (#{topicId,jdbcType=VARCHAR}, #{topicName,jdbcType=VARCHAR}, #{topicType,jdbcType=VARCHAR},
|
||||
#{topicDifficultyLevel,jdbcType=VARCHAR}, #{topicScore,jdbcType=DECIMAL}, #{topicNumber,jdbcType=INTEGER},
|
||||
#{optionA,jdbcType=VARCHAR}, #{optionB,jdbcType=VARCHAR}, #{optionC,jdbcType=VARCHAR},
|
||||
#{optionD,jdbcType=VARCHAR}, #{optionE,jdbcType=VARCHAR}, #{optionF,jdbcType=VARCHAR},
|
||||
#{answer,jdbcType=VARCHAR}, #{studentAnswer,jdbcType=VARCHAR}, #{questionAnswer,jdbcType=VARCHAR},
|
||||
#{module,jdbcType=VARCHAR}, #{logic,jdbcType=INTEGER}, #{state,jdbcType=INTEGER},
|
||||
#{reason,jdbcType=VARCHAR}, #{optionImg,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sztzjy.block_finance.entity.StuLearningAssessment">
|
||||
insert into stu_learning_assessment
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="topicId != null">
|
||||
topic_id,
|
||||
</if>
|
||||
<if test="topicName != null">
|
||||
topic_name,
|
||||
</if>
|
||||
<if test="topicType != null">
|
||||
topic_type,
|
||||
</if>
|
||||
<if test="topicDifficultyLevel != null">
|
||||
topic_difficulty_level,
|
||||
</if>
|
||||
<if test="topicScore != null">
|
||||
topic_score,
|
||||
</if>
|
||||
<if test="topicNumber != null">
|
||||
topic_number,
|
||||
</if>
|
||||
<if test="optionA != null">
|
||||
option_a,
|
||||
</if>
|
||||
<if test="optionB != null">
|
||||
option_b,
|
||||
</if>
|
||||
<if test="optionC != null">
|
||||
option_c,
|
||||
</if>
|
||||
<if test="optionD != null">
|
||||
option_d,
|
||||
</if>
|
||||
<if test="optionE != null">
|
||||
option_e,
|
||||
</if>
|
||||
<if test="optionF != null">
|
||||
option_f,
|
||||
</if>
|
||||
<if test="answer != null">
|
||||
answer,
|
||||
</if>
|
||||
<if test="studentAnswer != null">
|
||||
student_answer,
|
||||
</if>
|
||||
<if test="questionAnswer != null">
|
||||
question_answer,
|
||||
</if>
|
||||
<if test="module != null">
|
||||
module,
|
||||
</if>
|
||||
<if test="logic != null">
|
||||
logic,
|
||||
</if>
|
||||
<if test="state != null">
|
||||
state,
|
||||
</if>
|
||||
<if test="reason != null">
|
||||
reason,
|
||||
</if>
|
||||
<if test="optionImg != null">
|
||||
option_img,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="topicId != null">
|
||||
#{topicId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="topicName != null">
|
||||
#{topicName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="topicType != null">
|
||||
#{topicType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="topicDifficultyLevel != null">
|
||||
#{topicDifficultyLevel,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="topicScore != null">
|
||||
#{topicScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="topicNumber != null">
|
||||
#{topicNumber,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="optionA != null">
|
||||
#{optionA,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="optionB != null">
|
||||
#{optionB,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="optionC != null">
|
||||
#{optionC,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="optionD != null">
|
||||
#{optionD,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="optionE != null">
|
||||
#{optionE,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="optionF != null">
|
||||
#{optionF,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="answer != null">
|
||||
#{answer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="studentAnswer != null">
|
||||
#{studentAnswer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="questionAnswer != null">
|
||||
#{questionAnswer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="module != null">
|
||||
#{module,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="logic != null">
|
||||
#{logic,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="state != null">
|
||||
#{state,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="reason != null">
|
||||
#{reason,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="optionImg != null">
|
||||
#{optionImg,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.sztzjy.block_finance.entity.StuLearningAssessmentExample" resultType="java.lang.Long">
|
||||
select count(*) from stu_learning_assessment
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update stu_learning_assessment
|
||||
<set>
|
||||
<if test="record.topicId != null">
|
||||
topic_id = #{record.topicId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.topicName != null">
|
||||
topic_name = #{record.topicName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.topicType != null">
|
||||
topic_type = #{record.topicType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.topicDifficultyLevel != null">
|
||||
topic_difficulty_level = #{record.topicDifficultyLevel,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.topicScore != null">
|
||||
topic_score = #{record.topicScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.topicNumber != null">
|
||||
topic_number = #{record.topicNumber,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.optionA != null">
|
||||
option_a = #{record.optionA,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.optionB != null">
|
||||
option_b = #{record.optionB,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.optionC != null">
|
||||
option_c = #{record.optionC,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.optionD != null">
|
||||
option_d = #{record.optionD,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.optionE != null">
|
||||
option_e = #{record.optionE,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.optionF != null">
|
||||
option_f = #{record.optionF,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.answer != null">
|
||||
answer = #{record.answer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.studentAnswer != null">
|
||||
student_answer = #{record.studentAnswer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.questionAnswer != null">
|
||||
question_answer = #{record.questionAnswer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.module != null">
|
||||
module = #{record.module,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.logic != null">
|
||||
logic = #{record.logic,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.state != null">
|
||||
state = #{record.state,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.reason != null">
|
||||
reason = #{record.reason,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.optionImg != null">
|
||||
option_img = #{record.optionImg,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update stu_learning_assessment
|
||||
set topic_id = #{record.topicId,jdbcType=VARCHAR},
|
||||
topic_name = #{record.topicName,jdbcType=VARCHAR},
|
||||
topic_type = #{record.topicType,jdbcType=VARCHAR},
|
||||
topic_difficulty_level = #{record.topicDifficultyLevel,jdbcType=VARCHAR},
|
||||
topic_score = #{record.topicScore,jdbcType=DECIMAL},
|
||||
topic_number = #{record.topicNumber,jdbcType=INTEGER},
|
||||
option_a = #{record.optionA,jdbcType=VARCHAR},
|
||||
option_b = #{record.optionB,jdbcType=VARCHAR},
|
||||
option_c = #{record.optionC,jdbcType=VARCHAR},
|
||||
option_d = #{record.optionD,jdbcType=VARCHAR},
|
||||
option_e = #{record.optionE,jdbcType=VARCHAR},
|
||||
option_f = #{record.optionF,jdbcType=VARCHAR},
|
||||
answer = #{record.answer,jdbcType=VARCHAR},
|
||||
student_answer = #{record.studentAnswer,jdbcType=VARCHAR},
|
||||
question_answer = #{record.questionAnswer,jdbcType=VARCHAR},
|
||||
module = #{record.module,jdbcType=VARCHAR},
|
||||
logic = #{record.logic,jdbcType=INTEGER},
|
||||
state = #{record.state,jdbcType=INTEGER},
|
||||
reason = #{record.reason,jdbcType=VARCHAR},
|
||||
option_img = #{record.optionImg,jdbcType=VARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.block_finance.entity.StuLearningAssessment">
|
||||
update stu_learning_assessment
|
||||
<set>
|
||||
<if test="topicName != null">
|
||||
topic_name = #{topicName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="topicType != null">
|
||||
topic_type = #{topicType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="topicDifficultyLevel != null">
|
||||
topic_difficulty_level = #{topicDifficultyLevel,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="topicScore != null">
|
||||
topic_score = #{topicScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="topicNumber != null">
|
||||
topic_number = #{topicNumber,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="optionA != null">
|
||||
option_a = #{optionA,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="optionB != null">
|
||||
option_b = #{optionB,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="optionC != null">
|
||||
option_c = #{optionC,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="optionD != null">
|
||||
option_d = #{optionD,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="optionE != null">
|
||||
option_e = #{optionE,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="optionF != null">
|
||||
option_f = #{optionF,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="answer != null">
|
||||
answer = #{answer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="studentAnswer != null">
|
||||
student_answer = #{studentAnswer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="questionAnswer != null">
|
||||
question_answer = #{questionAnswer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="module != null">
|
||||
module = #{module,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="logic != null">
|
||||
logic = #{logic,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="state != null">
|
||||
state = #{state,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="reason != null">
|
||||
reason = #{reason,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="optionImg != null">
|
||||
option_img = #{optionImg,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where topic_id = #{topicId,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sztzjy.block_finance.entity.StuLearningAssessment">
|
||||
update stu_learning_assessment
|
||||
set topic_name = #{topicName,jdbcType=VARCHAR},
|
||||
topic_type = #{topicType,jdbcType=VARCHAR},
|
||||
topic_difficulty_level = #{topicDifficultyLevel,jdbcType=VARCHAR},
|
||||
topic_score = #{topicScore,jdbcType=DECIMAL},
|
||||
topic_number = #{topicNumber,jdbcType=INTEGER},
|
||||
option_a = #{optionA,jdbcType=VARCHAR},
|
||||
option_b = #{optionB,jdbcType=VARCHAR},
|
||||
option_c = #{optionC,jdbcType=VARCHAR},
|
||||
option_d = #{optionD,jdbcType=VARCHAR},
|
||||
option_e = #{optionE,jdbcType=VARCHAR},
|
||||
option_f = #{optionF,jdbcType=VARCHAR},
|
||||
answer = #{answer,jdbcType=VARCHAR},
|
||||
student_answer = #{studentAnswer,jdbcType=VARCHAR},
|
||||
question_answer = #{questionAnswer,jdbcType=VARCHAR},
|
||||
module = #{module,jdbcType=VARCHAR},
|
||||
logic = #{logic,jdbcType=INTEGER},
|
||||
state = #{state,jdbcType=INTEGER},
|
||||
reason = #{reason,jdbcType=VARCHAR},
|
||||
option_img = #{optionImg,jdbcType=VARCHAR}
|
||||
where topic_id = #{topicId,jdbcType=VARCHAR}
|
||||
</update>
|
||||
</mapper>
|
Loading…
Reference in New Issue