whb
commit 356ae55ab0

@ -48,6 +48,14 @@
<artifactId>poi-ooxml</artifactId>
<version>3.15-beta2</version>
</dependency>
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>2.0.27</version>
</dependency>
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>itextpdf</artifactId>

@ -0,0 +1,37 @@
package com.sztzjy.marketing.config.exception.handler;
import org.springframework.http.HttpStatus;
public class InvoceTException extends RuntimeException {
private HttpStatus code;
private String msg;
public InvoceTException() {
}
public InvoceTException(HttpStatus code) {
this.code = code;
}
public InvoceTException(HttpStatus code, String msg) {
super(msg);
this.code = code;
this.msg = msg;
}
public HttpStatus getCode() {
return code;
}
public void setCode(HttpStatus code) {
this.code = code;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
}

@ -0,0 +1,236 @@
package com.sztzjy.marketing.controller;
import cn.hutool.core.util.IdUtil;
import com.alibaba.fastjson.JSONObject;
import com.sztzjy.marketing.annotation.AnonymousAccess;
import com.sztzjy.marketing.entity.*;
import com.sztzjy.marketing.entity.dto.StuBigDataTechnologyTrainingDTO;
import com.sztzjy.marketing.entity.dto.StuSelectDetailsDTO;
import com.sztzjy.marketing.mapper.StuBigDataTechnologyTrainingMapper;
import com.sztzjy.marketing.mapper.StuTrainingOperateStepMapper;
import com.sztzjy.marketing.mapper.StuTrainingProblemDetailsMapper;
import com.sztzjy.marketing.service.StuBigDataTechnologyTrainingService;
import com.sztzjy.marketing.service.StuFiveGTrainingService;
import com.sztzjy.marketing.util.ConvertUtil;
import com.sztzjy.marketing.util.ResultEntity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.BeanUtils;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
import java.util.UUID;
/**
* @author tz
* @date 2024/6/12 10:48
*/
@Api(tags = "大数据")
@RequestMapping("api/bigData")
@RestController
public class BigDataController {
@Resource
StuTrainingOperateStepMapper stuTrainingOperateStepMapper;
@Resource
StuBigDataTechnologyTrainingMapper stuBigDataTechnologyTrainingMapper;
@Resource
StuTrainingProblemDetailsMapper stuTrainingProblemDetailsMapper;
@Resource
ConvertUtil convertUtil;
@Resource
StuBigDataTechnologyTrainingService stuBigDataTechnologyTrainingService;
@Resource
StuFiveGTrainingService stuFiveGTrainingService;
@ApiOperation("Hadoop HDFSs--操作记录查看")
@PostMapping("/viewOperationRecord")
@AnonymousAccess
public ResultEntity viewOperationRecord(@ApiParam("用户ID") String userId,
@ApiParam("归属模块") String module) {
StuTrainingOperateStepExample example=new StuTrainingOperateStepExample();
example.createCriteria().andUserIdEqualTo(userId).andModuleEqualTo(module);
List<StuTrainingOperateStepWithBLOBs> stuTrainingOperateSteps = stuTrainingOperateStepMapper.selectByExampleWithBLOBs(example);
return new ResultEntity<>(HttpStatus.OK,"成功",stuTrainingOperateSteps);
}
@ApiOperation("Hadoop HDFSs--实训操作记录")
@PostMapping("/trainingOperationRecord")
@AnonymousAccess
public ResultEntity trainingOperationRecord(@RequestBody StuTrainingOperateStepWithBLOBs stuTrainingOperateStep) {
StuTrainingOperateStepExample example=new StuTrainingOperateStepExample();
example.createCriteria().andUserIdEqualTo(stuTrainingOperateStep.getUserId()).andModuleEqualTo(stuTrainingOperateStep.getModule());
List<StuTrainingOperateStep> stuTrainingOperateSteps = stuTrainingOperateStepMapper.selectByExample(example);
if(stuTrainingOperateSteps.isEmpty()){
stuTrainingOperateStep.setId((int) IdUtil.getSnowflakeNextId());
stuTrainingOperateStep.setModule(stuTrainingOperateStep.getModule());
stuTrainingOperateStepMapper.insert(stuTrainingOperateStep);
}else {
StuTrainingOperateStep trainingOperateStep = stuTrainingOperateSteps.get(0);
Integer id = trainingOperateStep.getId();
BeanUtils.copyProperties(stuTrainingOperateStep,trainingOperateStep);
stuTrainingOperateStep.setId(id);
stuTrainingOperateStepMapper.updateByPrimaryKeySelective(stuTrainingOperateStep);
}
return new ResultEntity<>(HttpStatus.OK,"成功");
}
@ApiOperation("大数据技术框架--题目展示")
@PostMapping("/topicDisplay")
@AnonymousAccess
public ResultEntity<List<StuBigDataTechnologyTrainingDTO>> topicDisplay(@RequestParam("userId") String userId, @RequestParam("module") String module) {
//查询是否已有做题记录
StuTrainingProblemDetailsExample stuTrainingProblemDetailsExample = new StuTrainingProblemDetailsExample();
stuTrainingProblemDetailsExample.createCriteria().andUserIdEqualTo(userId).andModuleEqualTo(module);
List<StuTrainingProblemDetails> stuTrainingProblemDetails = stuTrainingProblemDetailsMapper.selectByExample(stuTrainingProblemDetailsExample);
//查询是否有默认题目
StuBigDataTechnologyTrainingExample stuBigDataTechnologyTrainingExample=new StuBigDataTechnologyTrainingExample();
stuBigDataTechnologyTrainingExample.createCriteria().andModuleEqualTo(module);
List<StuBigDataTechnologyTraining> stuBigDataTechnologyTrainings = stuBigDataTechnologyTrainingMapper.selectByExample(stuBigDataTechnologyTrainingExample);
if (stuTrainingProblemDetails.isEmpty()) {
String[] topic = {"大数据处理技术中的数据采集与预处理工具组件有哪些?", "大数据处理技术中的数据存储工具组件有哪些?", "大数据处理技术中的数据清洗工具组件有哪些?", "大数据处理技术中的查询计算挖掘工具组件有哪些?", "大数据处理技术中的数据可视化工具组件有哪些?"};
String[] answer = {"Sqoop", "Flume", "Kettle", "HDFS", "HBase", "Redis", "NoSQL", "Oozie", "Azkaban", "MapReduce", "Spark", "Hive", "Mahout", "Flink", "FineBI", "Tableau", "Qlikview", "PowrerBI"};
//设置默认数据
if (stuBigDataTechnologyTrainings.isEmpty()) {
StuBigDataTechnologyTraining stuBigDataTechnologyTraining = new StuBigDataTechnologyTraining();
Integer uuid = UUID.randomUUID().toString().replaceAll("-", "").hashCode();
uuid = uuid < 0 ? -uuid : uuid;//String.hashCode() 值会为空
for (int i = 0; i < topic.length; i++) {
String option = "";
String select = "";
stuBigDataTechnologyTraining.setId(uuid + i);
stuBigDataTechnologyTraining.setTopicName(topic[i]);
stuBigDataTechnologyTraining.setTopicNumber(i + 1);
stuBigDataTechnologyTraining.setModule(module);
for (int j = 0; j < answer.length; j++) {
if (j == answer.length - 1) {
option = option + answer[j];
}else {
option = option + answer[j] + ",";
}
if (i == 0 && j < 3) {
if (j == 2) {
select = select + answer[j];
}else {
select = select + answer[j] + ",";
}
}
if (i == 1 && 2 < j && j < 7) {
if (j == 6) {
select = select + answer[j];
}else {
select = select + answer[j] + ",";
}
}
if (i == 2 && 6 < j && j < 9) {
if (j == 8) {
select = select + answer[j];
}else {
select = select + answer[j] + ",";
}
}
if (i == 3 && 8 < j && j < 14) {
if (j == 13) {
select = select + answer[j];
}else {
select = select + answer[j] + ",";
}
}
if (i == 4 && 13 < j && j < 18) {
if (j == 17) {
select = select + answer[j];
}else {
select = select + answer[j] + ",";
}
}
}
stuBigDataTechnologyTraining.setTopicType(2);
stuBigDataTechnologyTraining.setTopicOption(option);
stuBigDataTechnologyTraining.setTopicAnswer(select);
stuBigDataTechnologyTraining.setModule(module);
stuBigDataTechnologyTrainingMapper.insert(stuBigDataTechnologyTraining);
stuBigDataTechnologyTrainings.add(stuBigDataTechnologyTraining);
}
List<StuBigDataTechnologyTrainingDTO> stuBigDataTechnologyTrainingDTOS = convertUtil.entityToDTOList(stuBigDataTechnologyTrainings, StuBigDataTechnologyTrainingDTO.class);
return new ResultEntity<>(HttpStatus.OK, "成功", stuBigDataTechnologyTrainingDTOS);
}
List<StuBigDataTechnologyTrainingDTO> stuBigDataTechnologyTrainingDTOS = convertUtil.entityToDTOList(stuBigDataTechnologyTrainings, StuBigDataTechnologyTrainingDTO.class);
return new ResultEntity<>(HttpStatus.OK, "成功", stuBigDataTechnologyTrainingDTOS);
} else {
List<StuBigDataTechnologyTrainingDTO> stuBigDataTechnologyTrainingDTOS = convertUtil.entityToDTOList(stuBigDataTechnologyTrainings, StuBigDataTechnologyTrainingDTO.class);
for (int i = 0; i < stuBigDataTechnologyTrainingDTOS.size(); i++) {
for (int j = 0; j < stuTrainingProblemDetails.size(); j++) {
if (stuBigDataTechnologyTrainingDTOS.get(i).getId().equals(stuTrainingProblemDetails.get(j).getTopicId())) {
//取出用户选择的答案,转成数组
String stuAnswer = stuTrainingProblemDetails.get(j).getStuAnswer();
String[] split = stuAnswer.split(",");
stuBigDataTechnologyTrainingDTOS.get(i).setStuAnswer(split);
stuBigDataTechnologyTrainingDTOS.get(i).setRightOrWrong(stuTrainingProblemDetails.get(j).getRightOrWrong());
}
}
}
return new ResultEntity<>(HttpStatus.OK, "成功", stuBigDataTechnologyTrainingDTOS);
}
}
@ApiOperation("大数据技术框架--题目选择")
@PostMapping("/questionSelection")
@AnonymousAccess
public ResultEntity questionSelection(@RequestBody JSONObject jsonObject) {
StuSelectDetailsDTO stuSelectDetailsDTO = jsonObject.getObject("StuSelectDetailsDTO", StuSelectDetailsDTO.class);
Integer result=stuBigDataTechnologyTrainingService.questionSelection(stuSelectDetailsDTO);
return new ResultEntity<>(HttpStatus.OK,"提交成功",result);
}
@ApiOperation("Hadoop实验实训")
@PostMapping("/hadoop")
@AnonymousAccess
public ResultEntity hadoop(@ApiParam("框架选择内容") String context, @ApiParam("选择的内容") String select, @ApiParam("用户ID") String userId) {
String info = stuFiveGTrainingService.hadoop(context, select, userId);
if (info == null) {
return new ResultEntity<>(HttpStatus.ACCEPTED, "请选择正确的选项!");
}
return new ResultEntity<>(HttpStatus.OK, info);
}
@ApiOperation("Hadoop清空数据")
@GetMapping("/delHadoop")
@AnonymousAccess
public ResultEntity delHadoop(@ApiParam("用户ID") String userId) {
stuFiveGTrainingService.delHadoop(userId);
return new ResultEntity<>(HttpStatus.OK, "清空成功");
}
@ApiOperation("Hadoop查询历史数据")
@GetMapping("/selHadoop")
@AnonymousAccess
public ResultEntity selHadoop(@ApiParam("用户ID") String userId) {
Integer state= stuFiveGTrainingService.selHadoop(userId);
return new ResultEntity<>(HttpStatus.OK, "查询成功",state);
}
}

@ -0,0 +1,86 @@
package com.sztzjy.marketing.entity;
import io.swagger.annotations.ApiModelProperty;
/**
*
* @author whb
* stu_big_data_technology_training
*/
public class StuBigDataTechnologyTraining {
@ApiModelProperty("ID")
private Integer id;
@ApiModelProperty("题目序号")
private Integer topicNumber;
@ApiModelProperty("题目类型(1、单选 2、多选)")
private Integer topicType;
@ApiModelProperty("题目名称")
private String topicName;
@ApiModelProperty("题目选项(多个选项用逗号隔开)")
private String topicOption;
@ApiModelProperty("题目答案(多个答案用逗号隔开)")
private String topicAnswer;
@ApiModelProperty("归属模块")
private String module;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getTopicNumber() {
return topicNumber;
}
public void setTopicNumber(Integer topicNumber) {
this.topicNumber = topicNumber;
}
public Integer getTopicType() {
return topicType;
}
public void setTopicType(Integer topicType) {
this.topicType = topicType;
}
public String getTopicName() {
return topicName;
}
public void setTopicName(String topicName) {
this.topicName = topicName == null ? null : topicName.trim();
}
public String getTopicOption() {
return topicOption;
}
public void setTopicOption(String topicOption) {
this.topicOption = topicOption == null ? null : topicOption.trim();
}
public String getTopicAnswer() {
return topicAnswer;
}
public void setTopicAnswer(String topicAnswer) {
this.topicAnswer = topicAnswer == null ? null : topicAnswer.trim();
}
public String getModule() {
return module;
}
public void setModule(String module) {
this.module = module == null ? null : module.trim();
}
}

@ -0,0 +1,659 @@
package com.sztzjy.marketing.entity;
import java.util.ArrayList;
import java.util.List;
public class StuBigDataTechnologyTrainingExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public StuBigDataTechnologyTrainingExample() {
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 andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Integer value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Integer> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Integer> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Integer value1, Integer value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Integer value1, Integer value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andTopicNumberIsNull() {
addCriterion("topic_number is null");
return (Criteria) this;
}
public Criteria andTopicNumberIsNotNull() {
addCriterion("topic_number is not null");
return (Criteria) this;
}
public Criteria andTopicNumberEqualTo(Integer value) {
addCriterion("topic_number =", value, "topicNumber");
return (Criteria) this;
}
public Criteria andTopicNumberNotEqualTo(Integer value) {
addCriterion("topic_number <>", value, "topicNumber");
return (Criteria) this;
}
public Criteria andTopicNumberGreaterThan(Integer value) {
addCriterion("topic_number >", value, "topicNumber");
return (Criteria) this;
}
public Criteria andTopicNumberGreaterThanOrEqualTo(Integer value) {
addCriterion("topic_number >=", value, "topicNumber");
return (Criteria) this;
}
public Criteria andTopicNumberLessThan(Integer value) {
addCriterion("topic_number <", value, "topicNumber");
return (Criteria) this;
}
public Criteria andTopicNumberLessThanOrEqualTo(Integer value) {
addCriterion("topic_number <=", value, "topicNumber");
return (Criteria) this;
}
public Criteria andTopicNumberIn(List<Integer> values) {
addCriterion("topic_number in", values, "topicNumber");
return (Criteria) this;
}
public Criteria andTopicNumberNotIn(List<Integer> values) {
addCriterion("topic_number not in", values, "topicNumber");
return (Criteria) this;
}
public Criteria andTopicNumberBetween(Integer value1, Integer value2) {
addCriterion("topic_number between", value1, value2, "topicNumber");
return (Criteria) this;
}
public Criteria andTopicNumberNotBetween(Integer value1, Integer value2) {
addCriterion("topic_number not between", value1, value2, "topicNumber");
return (Criteria) this;
}
public Criteria andTopicTypeIsNull() {
addCriterion("topic_type is null");
return (Criteria) this;
}
public Criteria andTopicTypeIsNotNull() {
addCriterion("topic_type is not null");
return (Criteria) this;
}
public Criteria andTopicTypeEqualTo(Integer value) {
addCriterion("topic_type =", value, "topicType");
return (Criteria) this;
}
public Criteria andTopicTypeNotEqualTo(Integer value) {
addCriterion("topic_type <>", value, "topicType");
return (Criteria) this;
}
public Criteria andTopicTypeGreaterThan(Integer value) {
addCriterion("topic_type >", value, "topicType");
return (Criteria) this;
}
public Criteria andTopicTypeGreaterThanOrEqualTo(Integer value) {
addCriterion("topic_type >=", value, "topicType");
return (Criteria) this;
}
public Criteria andTopicTypeLessThan(Integer value) {
addCriterion("topic_type <", value, "topicType");
return (Criteria) this;
}
public Criteria andTopicTypeLessThanOrEqualTo(Integer value) {
addCriterion("topic_type <=", value, "topicType");
return (Criteria) this;
}
public Criteria andTopicTypeIn(List<Integer> values) {
addCriterion("topic_type in", values, "topicType");
return (Criteria) this;
}
public Criteria andTopicTypeNotIn(List<Integer> values) {
addCriterion("topic_type not in", values, "topicType");
return (Criteria) this;
}
public Criteria andTopicTypeBetween(Integer value1, Integer value2) {
addCriterion("topic_type between", value1, value2, "topicType");
return (Criteria) this;
}
public Criteria andTopicTypeNotBetween(Integer value1, Integer value2) {
addCriterion("topic_type not between", value1, value2, "topicType");
return (Criteria) this;
}
public Criteria andTopicNameIsNull() {
addCriterion("topic_name is null");
return (Criteria) this;
}
public Criteria andTopicNameIsNotNull() {
addCriterion("topic_name is not null");
return (Criteria) this;
}
public Criteria andTopicNameEqualTo(String value) {
addCriterion("topic_name =", value, "topicName");
return (Criteria) this;
}
public Criteria andTopicNameNotEqualTo(String value) {
addCriterion("topic_name <>", value, "topicName");
return (Criteria) this;
}
public Criteria andTopicNameGreaterThan(String value) {
addCriterion("topic_name >", value, "topicName");
return (Criteria) this;
}
public Criteria andTopicNameGreaterThanOrEqualTo(String value) {
addCriterion("topic_name >=", value, "topicName");
return (Criteria) this;
}
public Criteria andTopicNameLessThan(String value) {
addCriterion("topic_name <", value, "topicName");
return (Criteria) this;
}
public Criteria andTopicNameLessThanOrEqualTo(String value) {
addCriterion("topic_name <=", value, "topicName");
return (Criteria) this;
}
public Criteria andTopicNameLike(String value) {
addCriterion("topic_name like", value, "topicName");
return (Criteria) this;
}
public Criteria andTopicNameNotLike(String value) {
addCriterion("topic_name not like", value, "topicName");
return (Criteria) this;
}
public Criteria andTopicNameIn(List<String> values) {
addCriterion("topic_name in", values, "topicName");
return (Criteria) this;
}
public Criteria andTopicNameNotIn(List<String> values) {
addCriterion("topic_name not in", values, "topicName");
return (Criteria) this;
}
public Criteria andTopicNameBetween(String value1, String value2) {
addCriterion("topic_name between", value1, value2, "topicName");
return (Criteria) this;
}
public Criteria andTopicNameNotBetween(String value1, String value2) {
addCriterion("topic_name not between", value1, value2, "topicName");
return (Criteria) this;
}
public Criteria andTopicOptionIsNull() {
addCriterion("topic_option is null");
return (Criteria) this;
}
public Criteria andTopicOptionIsNotNull() {
addCriterion("topic_option is not null");
return (Criteria) this;
}
public Criteria andTopicOptionEqualTo(String value) {
addCriterion("topic_option =", value, "topicOption");
return (Criteria) this;
}
public Criteria andTopicOptionNotEqualTo(String value) {
addCriterion("topic_option <>", value, "topicOption");
return (Criteria) this;
}
public Criteria andTopicOptionGreaterThan(String value) {
addCriterion("topic_option >", value, "topicOption");
return (Criteria) this;
}
public Criteria andTopicOptionGreaterThanOrEqualTo(String value) {
addCriterion("topic_option >=", value, "topicOption");
return (Criteria) this;
}
public Criteria andTopicOptionLessThan(String value) {
addCriterion("topic_option <", value, "topicOption");
return (Criteria) this;
}
public Criteria andTopicOptionLessThanOrEqualTo(String value) {
addCriterion("topic_option <=", value, "topicOption");
return (Criteria) this;
}
public Criteria andTopicOptionLike(String value) {
addCriterion("topic_option like", value, "topicOption");
return (Criteria) this;
}
public Criteria andTopicOptionNotLike(String value) {
addCriterion("topic_option not like", value, "topicOption");
return (Criteria) this;
}
public Criteria andTopicOptionIn(List<String> values) {
addCriterion("topic_option in", values, "topicOption");
return (Criteria) this;
}
public Criteria andTopicOptionNotIn(List<String> values) {
addCriterion("topic_option not in", values, "topicOption");
return (Criteria) this;
}
public Criteria andTopicOptionBetween(String value1, String value2) {
addCriterion("topic_option between", value1, value2, "topicOption");
return (Criteria) this;
}
public Criteria andTopicOptionNotBetween(String value1, String value2) {
addCriterion("topic_option not between", value1, value2, "topicOption");
return (Criteria) this;
}
public Criteria andTopicAnswerIsNull() {
addCriterion("topic_answer is null");
return (Criteria) this;
}
public Criteria andTopicAnswerIsNotNull() {
addCriterion("topic_answer is not null");
return (Criteria) this;
}
public Criteria andTopicAnswerEqualTo(String value) {
addCriterion("topic_answer =", value, "topicAnswer");
return (Criteria) this;
}
public Criteria andTopicAnswerNotEqualTo(String value) {
addCriterion("topic_answer <>", value, "topicAnswer");
return (Criteria) this;
}
public Criteria andTopicAnswerGreaterThan(String value) {
addCriterion("topic_answer >", value, "topicAnswer");
return (Criteria) this;
}
public Criteria andTopicAnswerGreaterThanOrEqualTo(String value) {
addCriterion("topic_answer >=", value, "topicAnswer");
return (Criteria) this;
}
public Criteria andTopicAnswerLessThan(String value) {
addCriterion("topic_answer <", value, "topicAnswer");
return (Criteria) this;
}
public Criteria andTopicAnswerLessThanOrEqualTo(String value) {
addCriterion("topic_answer <=", value, "topicAnswer");
return (Criteria) this;
}
public Criteria andTopicAnswerLike(String value) {
addCriterion("topic_answer like", value, "topicAnswer");
return (Criteria) this;
}
public Criteria andTopicAnswerNotLike(String value) {
addCriterion("topic_answer not like", value, "topicAnswer");
return (Criteria) this;
}
public Criteria andTopicAnswerIn(List<String> values) {
addCriterion("topic_answer in", values, "topicAnswer");
return (Criteria) this;
}
public Criteria andTopicAnswerNotIn(List<String> values) {
addCriterion("topic_answer not in", values, "topicAnswer");
return (Criteria) this;
}
public Criteria andTopicAnswerBetween(String value1, String value2) {
addCriterion("topic_answer between", value1, value2, "topicAnswer");
return (Criteria) this;
}
public Criteria andTopicAnswerNotBetween(String value1, String value2) {
addCriterion("topic_answer not between", value1, value2, "topicAnswer");
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,417 @@
package com.sztzjy.marketing.entity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;
/**
*
* @author whb
* stu_dig_service_trade
*/
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class StuDigServiceTrade {
@ApiModelProperty("id")
private Integer id;
@ApiModelProperty("境内企业纳税识别号")
private String demoTaxNumber;
@ApiModelProperty("境内企业类型")
private String demoType;
@ApiModelProperty("境内企业法人")
private String demoLegPerson;
@ApiModelProperty("境内企业联系方式")
private String domeTel;
@ApiModelProperty("境内企业密码")
private String domePwd;
@ApiModelProperty("境内企业验证码")
private String domeCode;
@ApiModelProperty("境内企业营业执照")
private String domeLicense;
@ApiModelProperty("境内企业规格型号")
private String domeModel;
@ApiModelProperty("境内企业产品介绍")
private String doemIntroduce;
@ApiModelProperty("境外企业验证码")
private String abroadCode;
@ApiModelProperty("境外企业密码")
private String abroadPwd;
@ApiModelProperty("境外企业商业登记照片")
private String abroadBusReg;
@ApiModelProperty("境外企业规格型号")
private String abroadModel;
@ApiModelProperty("境外企业类型")
private String abroadType;
@ApiModelProperty("境外企业产品介绍")
private String abroadIntroduce;
@ApiModelProperty("发起询价")
private String inquiry;
@ApiModelProperty("用户ID")
private String userId;
@ApiModelProperty("提交状态0未提交 1已提交")
private Integer subState;
@ApiModelProperty("境外企业法人")
private String abroadPerson;
@ApiModelProperty("境外企业电话")
private String abroadTel;
private String stepFiveA;
private String stepFiveB;
private String stepFiveC;
private String stepFiveD;
private String stepSixA;
private String stepSixB;
private String stepSixC;
private String stepSixD;
private String stepSeven;
private String stepTenA;
private String stepTenB;
private String stepTenC;
private String stepTenD;
private String stepTeneA;
private String stepTeneB;
private String stepTeneC;
private String stepTeneD;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getDemoTaxNumber() {
return demoTaxNumber;
}
public void setDemoTaxNumber(String demoTaxNumber) {
this.demoTaxNumber = demoTaxNumber == null ? null : demoTaxNumber.trim();
}
public String getDemoType() {
return demoType;
}
public void setDemoType(String demoType) {
this.demoType = demoType == null ? null : demoType.trim();
}
public String getDemoLegPerson() {
return demoLegPerson;
}
public void setDemoLegPerson(String demoLegPerson) {
this.demoLegPerson = demoLegPerson == null ? null : demoLegPerson.trim();
}
public String getDomeTel() {
return domeTel;
}
public void setDomeTel(String domeTel) {
this.domeTel = domeTel == null ? null : domeTel.trim();
}
public String getDomePwd() {
return domePwd;
}
public void setDomePwd(String domePwd) {
this.domePwd = domePwd == null ? null : domePwd.trim();
}
public String getDomeCode() {
return domeCode;
}
public void setDomeCode(String domeCode) {
this.domeCode = domeCode == null ? null : domeCode.trim();
}
public String getDomeLicense() {
return domeLicense;
}
public void setDomeLicense(String domeLicense) {
this.domeLicense = domeLicense == null ? null : domeLicense.trim();
}
public String getDomeModel() {
return domeModel;
}
public void setDomeModel(String domeModel) {
this.domeModel = domeModel == null ? null : domeModel.trim();
}
public String getDoemIntroduce() {
return doemIntroduce;
}
public void setDoemIntroduce(String doemIntroduce) {
this.doemIntroduce = doemIntroduce == null ? null : doemIntroduce.trim();
}
public String getAbroadCode() {
return abroadCode;
}
public void setAbroadCode(String abroadCode) {
this.abroadCode = abroadCode == null ? null : abroadCode.trim();
}
public String getAbroadPwd() {
return abroadPwd;
}
public void setAbroadPwd(String abroadPwd) {
this.abroadPwd = abroadPwd == null ? null : abroadPwd.trim();
}
public String getAbroadBusReg() {
return abroadBusReg;
}
public void setAbroadBusReg(String abroadBusReg) {
this.abroadBusReg = abroadBusReg == null ? null : abroadBusReg.trim();
}
public String getAbroadModel() {
return abroadModel;
}
public void setAbroadModel(String abroadModel) {
this.abroadModel = abroadModel == null ? null : abroadModel.trim();
}
public String getAbroadType() {
return abroadType;
}
public void setAbroadType(String abroadType) {
this.abroadType = abroadType == null ? null : abroadType.trim();
}
public String getAbroadIntroduce() {
return abroadIntroduce;
}
public void setAbroadIntroduce(String abroadIntroduce) {
this.abroadIntroduce = abroadIntroduce == null ? null : abroadIntroduce.trim();
}
public String getInquiry() {
return inquiry;
}
public void setInquiry(String inquiry) {
this.inquiry = inquiry == null ? null : inquiry.trim();
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId == null ? null : userId.trim();
}
public Integer getSubState() {
return subState;
}
public void setSubState(Integer subState) {
this.subState = subState;
}
public String getAbroadPerson() {
return abroadPerson;
}
public void setAbroadPerson(String abroadPerson) {
this.abroadPerson = abroadPerson == null ? null : abroadPerson.trim();
}
public String getAbroadTel() {
return abroadTel;
}
public void setAbroadTel(String abroadTel) {
this.abroadTel = abroadTel == null ? null : abroadTel.trim();
}
public String getStepFiveA() {
return stepFiveA;
}
public void setStepFiveA(String stepFiveA) {
this.stepFiveA = stepFiveA == null ? null : stepFiveA.trim();
}
public String getStepFiveB() {
return stepFiveB;
}
public void setStepFiveB(String stepFiveB) {
this.stepFiveB = stepFiveB == null ? null : stepFiveB.trim();
}
public String getStepFiveC() {
return stepFiveC;
}
public void setStepFiveC(String stepFiveC) {
this.stepFiveC = stepFiveC == null ? null : stepFiveC.trim();
}
public String getStepFiveD() {
return stepFiveD;
}
public void setStepFiveD(String stepFiveD) {
this.stepFiveD = stepFiveD == null ? null : stepFiveD.trim();
}
public String getStepSixA() {
return stepSixA;
}
public void setStepSixA(String stepSixA) {
this.stepSixA = stepSixA == null ? null : stepSixA.trim();
}
public String getStepSixB() {
return stepSixB;
}
public void setStepSixB(String stepSixB) {
this.stepSixB = stepSixB == null ? null : stepSixB.trim();
}
public String getStepSixC() {
return stepSixC;
}
public void setStepSixC(String stepSixC) {
this.stepSixC = stepSixC == null ? null : stepSixC.trim();
}
public String getStepSixD() {
return stepSixD;
}
public void setStepSixD(String stepSixD) {
this.stepSixD = stepSixD == null ? null : stepSixD.trim();
}
public String getStepSeven() {
return stepSeven;
}
public void setStepSeven(String stepSeven) {
this.stepSeven = stepSeven == null ? null : stepSeven.trim();
}
public String getStepTenA() {
return stepTenA;
}
public void setStepTenA(String stepTenA) {
this.stepTenA = stepTenA == null ? null : stepTenA.trim();
}
public String getStepTenB() {
return stepTenB;
}
public void setStepTenB(String stepTenB) {
this.stepTenB = stepTenB == null ? null : stepTenB.trim();
}
public String getStepTenC() {
return stepTenC;
}
public void setStepTenC(String stepTenC) {
this.stepTenC = stepTenC == null ? null : stepTenC.trim();
}
public String getStepTenD() {
return stepTenD;
}
public void setStepTenD(String stepTenD) {
this.stepTenD = stepTenD == null ? null : stepTenD.trim();
}
public String getStepTeneA() {
return stepTeneA;
}
public void setStepTeneA(String stepTeneA) {
this.stepTeneA = stepTeneA == null ? null : stepTeneA.trim();
}
public String getStepTeneB() {
return stepTeneB;
}
public void setStepTeneB(String stepTeneB) {
this.stepTeneB = stepTeneB == null ? null : stepTeneB.trim();
}
public String getStepTeneC() {
return stepTeneC;
}
public void setStepTeneC(String stepTeneC) {
this.stepTeneC = stepTeneC == null ? null : stepTeneC.trim();
}
public String getStepTeneD() {
return stepTeneD;
}
public void setStepTeneD(String stepTeneD) {
this.stepTeneD = stepTeneD == null ? null : stepTeneD.trim();
}
}

@ -0,0 +1,273 @@
package com.sztzjy.marketing.entity;
import java.util.Date;
import io.swagger.annotations.ApiModelProperty;
/**
*
* @author whb
* stu_digital_confirmation
*/
public class StuDigitalConfirmation {
@ApiModelProperty("id")
private Integer id;
@ApiModelProperty("文档名")
private String docName;
@ApiModelProperty("类型")
private String docType;
@ApiModelProperty("页数")
private String docPage;
@ApiModelProperty("公钥")
private String pubKey;
@ApiModelProperty("私钥")
private String priKey;
@ApiModelProperty(" Hash")
private String blockHash;
@ApiModelProperty("区块高度")
private String blockHigh;
@ApiModelProperty("数字资产ID")
private String assetsId;
@ApiModelProperty("简介")
private String introduction;
@ApiModelProperty("用户ID")
private String userId;
private Date createTime;
private Date updateTime;
@ApiModelProperty("文档大小")
private String append;
@ApiModelProperty("购买的页码")
private String excessive;
@ApiModelProperty("3页价格")
private String threepage;
@ApiModelProperty("5页价格")
private String fivepage;
@ApiModelProperty("10页价格")
private String tenpage;
@ApiModelProperty("全部价格")
private String allpage;
@ApiModelProperty("全有权价格")
private String ownership;
@ApiModelProperty("提交状态")
private Integer subState;
@ApiModelProperty("文档大小")
private String blockSize;
@ApiModelProperty("记录做题步骤")
private String step;
@ApiModelProperty("记录错误次数")
private String confirm;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getDocName() {
return docName;
}
public void setDocName(String docName) {
this.docName = docName == null ? null : docName.trim();
}
public String getDocType() {
return docType;
}
public void setDocType(String docType) {
this.docType = docType == null ? null : docType.trim();
}
public String getDocPage() {
return docPage;
}
public void setDocPage(String docPage) {
this.docPage = docPage == null ? null : docPage.trim();
}
public String getPubKey() {
return pubKey;
}
public void setPubKey(String pubKey) {
this.pubKey = pubKey == null ? null : pubKey.trim();
}
public String getPriKey() {
return priKey;
}
public void setPriKey(String priKey) {
this.priKey = priKey == null ? null : priKey.trim();
}
public String getBlockHash() {
return blockHash;
}
public void setBlockHash(String blockHash) {
this.blockHash = blockHash == null ? null : blockHash.trim();
}
public String getBlockHigh() {
return blockHigh;
}
public void setBlockHigh(String blockHigh) {
this.blockHigh = blockHigh == null ? null : blockHigh.trim();
}
public String getAssetsId() {
return assetsId;
}
public void setAssetsId(String assetsId) {
this.assetsId = assetsId == null ? null : assetsId.trim();
}
public String getIntroduction() {
return introduction;
}
public void setIntroduction(String introduction) {
this.introduction = introduction == null ? null : introduction.trim();
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId == null ? null : userId.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public String getAppend() {
return append;
}
public void setAppend(String append) {
this.append = append == null ? null : append.trim();
}
public String getExcessive() {
return excessive;
}
public void setExcessive(String excessive) {
this.excessive = excessive == null ? null : excessive.trim();
}
public String getThreepage() {
return threepage;
}
public void setThreepage(String threepage) {
this.threepage = threepage == null ? null : threepage.trim();
}
public String getFivepage() {
return fivepage;
}
public void setFivepage(String fivepage) {
this.fivepage = fivepage == null ? null : fivepage.trim();
}
public String getTenpage() {
return tenpage;
}
public void setTenpage(String tenpage) {
this.tenpage = tenpage == null ? null : tenpage.trim();
}
public String getAllpage() {
return allpage;
}
public void setAllpage(String allpage) {
this.allpage = allpage == null ? null : allpage.trim();
}
public String getOwnership() {
return ownership;
}
public void setOwnership(String ownership) {
this.ownership = ownership == null ? null : ownership.trim();
}
public Integer getSubState() {
return subState;
}
public void setSubState(Integer subState) {
this.subState = subState;
}
public String getBlockSize() {
return blockSize;
}
public void setBlockSize(String blockSize) {
this.blockSize = blockSize == null ? null : blockSize.trim();
}
public String getStep() {
return step;
}
public void setStep(String step) {
this.step = step == null ? null : step.trim();
}
public String getConfirm() {
return confirm;
}
public void setConfirm(String confirm) {
this.confirm = confirm == null ? null : confirm.trim();
}
}

@ -0,0 +1,77 @@
package com.sztzjy.marketing.entity;
import java.util.Date;
import io.swagger.annotations.ApiModelProperty;
/**
*
* @author whb
* stu_hadoop_train
*/
public class StuHadoopTrain {
@ApiModelProperty("ID")
private Integer id;
@ApiModelProperty("用户ID")
private String userId;
@ApiModelProperty("错误信息")
private String wrongDetail;
@ApiModelProperty("创建时间")
private Date createTime;
@ApiModelProperty("做题记录")
private String append;
@ApiModelProperty("是否完成0未完成1已完成")
private Integer state;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId == null ? null : userId.trim();
}
public String getWrongDetail() {
return wrongDetail;
}
public void setWrongDetail(String wrongDetail) {
this.wrongDetail = wrongDetail == null ? null : wrongDetail.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public String getAppend() {
return append;
}
public void setAppend(String append) {
this.append = append == null ? null : append.trim();
}
public Integer getState() {
return state;
}
public void setState(Integer state) {
this.state = state;
}
}

@ -0,0 +1,590 @@
package com.sztzjy.marketing.entity;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class StuHadoopTrainExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public StuHadoopTrainExample() {
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 andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Integer value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Integer> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Integer> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Integer value1, Integer value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Integer value1, Integer value2) {
addCriterion("id not between", value1, value2, "id");
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 andWrongDetailIsNull() {
addCriterion("wrong_detail is null");
return (Criteria) this;
}
public Criteria andWrongDetailIsNotNull() {
addCriterion("wrong_detail is not null");
return (Criteria) this;
}
public Criteria andWrongDetailEqualTo(String value) {
addCriterion("wrong_detail =", value, "wrongDetail");
return (Criteria) this;
}
public Criteria andWrongDetailNotEqualTo(String value) {
addCriterion("wrong_detail <>", value, "wrongDetail");
return (Criteria) this;
}
public Criteria andWrongDetailGreaterThan(String value) {
addCriterion("wrong_detail >", value, "wrongDetail");
return (Criteria) this;
}
public Criteria andWrongDetailGreaterThanOrEqualTo(String value) {
addCriterion("wrong_detail >=", value, "wrongDetail");
return (Criteria) this;
}
public Criteria andWrongDetailLessThan(String value) {
addCriterion("wrong_detail <", value, "wrongDetail");
return (Criteria) this;
}
public Criteria andWrongDetailLessThanOrEqualTo(String value) {
addCriterion("wrong_detail <=", value, "wrongDetail");
return (Criteria) this;
}
public Criteria andWrongDetailLike(String value) {
addCriterion("wrong_detail like", value, "wrongDetail");
return (Criteria) this;
}
public Criteria andWrongDetailNotLike(String value) {
addCriterion("wrong_detail not like", value, "wrongDetail");
return (Criteria) this;
}
public Criteria andWrongDetailIn(List<String> values) {
addCriterion("wrong_detail in", values, "wrongDetail");
return (Criteria) this;
}
public Criteria andWrongDetailNotIn(List<String> values) {
addCriterion("wrong_detail not in", values, "wrongDetail");
return (Criteria) this;
}
public Criteria andWrongDetailBetween(String value1, String value2) {
addCriterion("wrong_detail between", value1, value2, "wrongDetail");
return (Criteria) this;
}
public Criteria andWrongDetailNotBetween(String value1, String value2) {
addCriterion("wrong_detail not between", value1, value2, "wrongDetail");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andAppendIsNull() {
addCriterion("append is null");
return (Criteria) this;
}
public Criteria andAppendIsNotNull() {
addCriterion("append is not null");
return (Criteria) this;
}
public Criteria andAppendEqualTo(String value) {
addCriterion("append =", value, "append");
return (Criteria) this;
}
public Criteria andAppendNotEqualTo(String value) {
addCriterion("append <>", value, "append");
return (Criteria) this;
}
public Criteria andAppendGreaterThan(String value) {
addCriterion("append >", value, "append");
return (Criteria) this;
}
public Criteria andAppendGreaterThanOrEqualTo(String value) {
addCriterion("append >=", value, "append");
return (Criteria) this;
}
public Criteria andAppendLessThan(String value) {
addCriterion("append <", value, "append");
return (Criteria) this;
}
public Criteria andAppendLessThanOrEqualTo(String value) {
addCriterion("append <=", value, "append");
return (Criteria) this;
}
public Criteria andAppendLike(String value) {
addCriterion("append like", value, "append");
return (Criteria) this;
}
public Criteria andAppendNotLike(String value) {
addCriterion("append not like", value, "append");
return (Criteria) this;
}
public Criteria andAppendIn(List<String> values) {
addCriterion("append in", values, "append");
return (Criteria) this;
}
public Criteria andAppendNotIn(List<String> values) {
addCriterion("append not in", values, "append");
return (Criteria) this;
}
public Criteria andAppendBetween(String value1, String value2) {
addCriterion("append between", value1, value2, "append");
return (Criteria) this;
}
public Criteria andAppendNotBetween(String value1, String value2) {
addCriterion("append not between", value1, value2, "append");
return (Criteria) this;
}
public Criteria andStateIsNull() {
addCriterion("state is null");
return (Criteria) this;
}
public Criteria andStateIsNotNull() {
addCriterion("state is not null");
return (Criteria) this;
}
public Criteria andStateEqualTo(Integer value) {
addCriterion("state =", value, "state");
return (Criteria) this;
}
public Criteria andStateNotEqualTo(Integer value) {
addCriterion("state <>", value, "state");
return (Criteria) this;
}
public Criteria andStateGreaterThan(Integer value) {
addCriterion("state >", value, "state");
return (Criteria) this;
}
public Criteria andStateGreaterThanOrEqualTo(Integer value) {
addCriterion("state >=", value, "state");
return (Criteria) this;
}
public Criteria andStateLessThan(Integer value) {
addCriterion("state <", value, "state");
return (Criteria) this;
}
public Criteria andStateLessThanOrEqualTo(Integer value) {
addCriterion("state <=", value, "state");
return (Criteria) this;
}
public Criteria andStateIn(List<Integer> values) {
addCriterion("state in", values, "state");
return (Criteria) this;
}
public Criteria andStateNotIn(List<Integer> values) {
addCriterion("state not in", values, "state");
return (Criteria) this;
}
public Criteria andStateBetween(Integer value1, Integer value2) {
addCriterion("state between", value1, value2, "state");
return (Criteria) this;
}
public Criteria andStateNotBetween(Integer value1, Integer value2) {
addCriterion("state not between", value1, value2, "state");
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,141 @@
package com.sztzjy.marketing.entity;
import io.swagger.annotations.ApiModelProperty;
/**
*
* @author whb
* stu_image_recognition_training
*/
public class StuImageRecognitionTraining {
@ApiModelProperty("ID")
private Integer id;
@ApiModelProperty("题目内容")
private String stemContent;
@ApiModelProperty("答案A")
private String optionA;
@ApiModelProperty("答案B")
private String optionB;
@ApiModelProperty("答案C")
private String optionC;
@ApiModelProperty("答案D")
private String optionD;
@ApiModelProperty("备选答案F")
private String optionF;
@ApiModelProperty("正确答案")
private String correctAnswer;
@ApiModelProperty("选择答案")
private String studentAnswer;
@ApiModelProperty("用户ID")
private String userId;
@ApiModelProperty("是否正确(0、错误 1、正确)")
private Integer rightOrWrong;
@ApiModelProperty("归属模块")
private String model;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getStemContent() {
return stemContent;
}
public void setStemContent(String stemContent) {
this.stemContent = stemContent == null ? null : stemContent.trim();
}
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 getOptionF() {
return optionF;
}
public void setOptionF(String optionF) {
this.optionF = optionF == null ? null : optionF.trim();
}
public String getCorrectAnswer() {
return correctAnswer;
}
public void setCorrectAnswer(String correctAnswer) {
this.correctAnswer = correctAnswer == null ? null : correctAnswer.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 Integer getRightOrWrong() {
return rightOrWrong;
}
public void setRightOrWrong(Integer rightOrWrong) {
this.rightOrWrong = rightOrWrong;
}
public String getModel() {
return model;
}
public void setModel(String model) {
this.model = model == null ? null : model.trim();
}
}

@ -0,0 +1,229 @@
package com.sztzjy.marketing.entity;
import io.swagger.annotations.ApiModelProperty;
/**
*
* @author whb
* stu_training_operate_step
*/
public class StuTrainingOperateStep {
private Integer id;
private String module;
private String userId;
private String fieldOne;
private String fieldTwo;
private String fieldThree;
private String fieldFour;
private String fieldFive;
private String fieldSix;
private String fieldSeven;
private String fieldEight;
private String fieldNine;
private String fieldTen;
private String fieldEleven;
private String fieldTwelve;
private String fieldThirteen;
private String fieldFourteen;
private String fieldFifteen;
private String fieldSixteen;
private String fieldSeventeen;
private String fieldEighteen;
private String fieldTwenty;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getModule() {
return module;
}
public void setModule(String module) {
this.module = module == null ? null : module.trim();
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId == null ? null : userId.trim();
}
public String getFieldOne() {
return fieldOne;
}
public void setFieldOne(String fieldOne) {
this.fieldOne = fieldOne == null ? null : fieldOne.trim();
}
public String getFieldTwo() {
return fieldTwo;
}
public void setFieldTwo(String fieldTwo) {
this.fieldTwo = fieldTwo == null ? null : fieldTwo.trim();
}
public String getFieldThree() {
return fieldThree;
}
public void setFieldThree(String fieldThree) {
this.fieldThree = fieldThree == null ? null : fieldThree.trim();
}
public String getFieldFour() {
return fieldFour;
}
public void setFieldFour(String fieldFour) {
this.fieldFour = fieldFour == null ? null : fieldFour.trim();
}
public String getFieldFive() {
return fieldFive;
}
public void setFieldFive(String fieldFive) {
this.fieldFive = fieldFive == null ? null : fieldFive.trim();
}
public String getFieldSix() {
return fieldSix;
}
public void setFieldSix(String fieldSix) {
this.fieldSix = fieldSix == null ? null : fieldSix.trim();
}
public String getFieldSeven() {
return fieldSeven;
}
public void setFieldSeven(String fieldSeven) {
this.fieldSeven = fieldSeven == null ? null : fieldSeven.trim();
}
public String getFieldEight() {
return fieldEight;
}
public void setFieldEight(String fieldEight) {
this.fieldEight = fieldEight == null ? null : fieldEight.trim();
}
public String getFieldNine() {
return fieldNine;
}
public void setFieldNine(String fieldNine) {
this.fieldNine = fieldNine == null ? null : fieldNine.trim();
}
public String getFieldTen() {
return fieldTen;
}
public void setFieldTen(String fieldTen) {
this.fieldTen = fieldTen == null ? null : fieldTen.trim();
}
public String getFieldEleven() {
return fieldEleven;
}
public void setFieldEleven(String fieldEleven) {
this.fieldEleven = fieldEleven == null ? null : fieldEleven.trim();
}
public String getFieldTwelve() {
return fieldTwelve;
}
public void setFieldTwelve(String fieldTwelve) {
this.fieldTwelve = fieldTwelve == null ? null : fieldTwelve.trim();
}
public String getFieldThirteen() {
return fieldThirteen;
}
public void setFieldThirteen(String fieldThirteen) {
this.fieldThirteen = fieldThirteen == null ? null : fieldThirteen.trim();
}
public String getFieldFourteen() {
return fieldFourteen;
}
public void setFieldFourteen(String fieldFourteen) {
this.fieldFourteen = fieldFourteen == null ? null : fieldFourteen.trim();
}
public String getFieldFifteen() {
return fieldFifteen;
}
public void setFieldFifteen(String fieldFifteen) {
this.fieldFifteen = fieldFifteen == null ? null : fieldFifteen.trim();
}
public String getFieldSixteen() {
return fieldSixteen;
}
public void setFieldSixteen(String fieldSixteen) {
this.fieldSixteen = fieldSixteen == null ? null : fieldSixteen.trim();
}
public String getFieldSeventeen() {
return fieldSeventeen;
}
public void setFieldSeventeen(String fieldSeventeen) {
this.fieldSeventeen = fieldSeventeen == null ? null : fieldSeventeen.trim();
}
public String getFieldEighteen() {
return fieldEighteen;
}
public void setFieldEighteen(String fieldEighteen) {
this.fieldEighteen = fieldEighteen == null ? null : fieldEighteen.trim();
}
public String getFieldTwenty() {
return fieldTwenty;
}
public void setFieldTwenty(String fieldTwenty) {
this.fieldTwenty = fieldTwenty == null ? null : fieldTwenty.trim();
}
}

@ -0,0 +1,399 @@
package com.sztzjy.marketing.entity;
import java.util.ArrayList;
import java.util.List;
public class StuTrainingOperateStepExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public StuTrainingOperateStepExample() {
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 andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Integer value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Integer> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Integer> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Integer value1, Integer value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Integer value1, Integer value2) {
addCriterion("id not between", value1, value2, "id");
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 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 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,193 @@
package com.sztzjy.marketing.entity;
public class StuTrainingOperateStepWithBLOBs extends StuTrainingOperateStep {
private String fieldOne;
private String fieldTwo;
private String fieldThree;
private String fieldFour;
private String fieldFive;
private String fieldSix;
private String fieldSeven;
private String fieldEight;
private String fieldNine;
private String fieldTen;
private String fieldEleven;
private String fieldTwelve;
private String fieldThirteen;
private String fieldFourteen;
private String fieldFifteen;
private String fieldSixteen;
private String fieldSeventeen;
private String fieldEighteen;
private String fieldTwenty;
public String getFieldOne() {
return fieldOne;
}
public void setFieldOne(String fieldOne) {
this.fieldOne = fieldOne == null ? null : fieldOne.trim();
}
public String getFieldTwo() {
return fieldTwo;
}
public void setFieldTwo(String fieldTwo) {
this.fieldTwo = fieldTwo == null ? null : fieldTwo.trim();
}
public String getFieldThree() {
return fieldThree;
}
public void setFieldThree(String fieldThree) {
this.fieldThree = fieldThree == null ? null : fieldThree.trim();
}
public String getFieldFour() {
return fieldFour;
}
public void setFieldFour(String fieldFour) {
this.fieldFour = fieldFour == null ? null : fieldFour.trim();
}
public String getFieldFive() {
return fieldFive;
}
public void setFieldFive(String fieldFive) {
this.fieldFive = fieldFive == null ? null : fieldFive.trim();
}
public String getFieldSix() {
return fieldSix;
}
public void setFieldSix(String fieldSix) {
this.fieldSix = fieldSix == null ? null : fieldSix.trim();
}
public String getFieldSeven() {
return fieldSeven;
}
public void setFieldSeven(String fieldSeven) {
this.fieldSeven = fieldSeven == null ? null : fieldSeven.trim();
}
public String getFieldEight() {
return fieldEight;
}
public void setFieldEight(String fieldEight) {
this.fieldEight = fieldEight == null ? null : fieldEight.trim();
}
public String getFieldNine() {
return fieldNine;
}
public void setFieldNine(String fieldNine) {
this.fieldNine = fieldNine == null ? null : fieldNine.trim();
}
public String getFieldTen() {
return fieldTen;
}
public void setFieldTen(String fieldTen) {
this.fieldTen = fieldTen == null ? null : fieldTen.trim();
}
public String getFieldEleven() {
return fieldEleven;
}
public void setFieldEleven(String fieldEleven) {
this.fieldEleven = fieldEleven == null ? null : fieldEleven.trim();
}
public String getFieldTwelve() {
return fieldTwelve;
}
public void setFieldTwelve(String fieldTwelve) {
this.fieldTwelve = fieldTwelve == null ? null : fieldTwelve.trim();
}
public String getFieldThirteen() {
return fieldThirteen;
}
public void setFieldThirteen(String fieldThirteen) {
this.fieldThirteen = fieldThirteen == null ? null : fieldThirteen.trim();
}
public String getFieldFourteen() {
return fieldFourteen;
}
public void setFieldFourteen(String fieldFourteen) {
this.fieldFourteen = fieldFourteen == null ? null : fieldFourteen.trim();
}
public String getFieldFifteen() {
return fieldFifteen;
}
public void setFieldFifteen(String fieldFifteen) {
this.fieldFifteen = fieldFifteen == null ? null : fieldFifteen.trim();
}
public String getFieldSixteen() {
return fieldSixteen;
}
public void setFieldSixteen(String fieldSixteen) {
this.fieldSixteen = fieldSixteen == null ? null : fieldSixteen.trim();
}
public String getFieldSeventeen() {
return fieldSeventeen;
}
public void setFieldSeventeen(String fieldSeventeen) {
this.fieldSeventeen = fieldSeventeen == null ? null : fieldSeventeen.trim();
}
public String getFieldEighteen() {
return fieldEighteen;
}
public void setFieldEighteen(String fieldEighteen) {
this.fieldEighteen = fieldEighteen == null ? null : fieldEighteen.trim();
}
public String getFieldTwenty() {
return fieldTwenty;
}
public void setFieldTwenty(String fieldTwenty) {
this.fieldTwenty = fieldTwenty == null ? null : fieldTwenty.trim();
}
}

@ -0,0 +1,75 @@
package com.sztzjy.marketing.entity;
import io.swagger.annotations.ApiModelProperty;
/**
*
* @author whb
* stu_training_problem_details
*/
public class StuTrainingProblemDetails {
@ApiModelProperty("ID")
private Integer id;
@ApiModelProperty("用户ID")
private String userId;
@ApiModelProperty("题目ID")
private Integer topicId;
@ApiModelProperty("学生选择答案(多个答案逗号隔开)")
private String stuAnswer;
@ApiModelProperty("归属模块")
private String module;
@ApiModelProperty("是否正确(0、错误 1、正确)")
private Integer rightOrWrong;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId == null ? null : userId.trim();
}
public Integer getTopicId() {
return topicId;
}
public void setTopicId(Integer topicId) {
this.topicId = topicId;
}
public String getStuAnswer() {
return stuAnswer;
}
public void setStuAnswer(String stuAnswer) {
this.stuAnswer = stuAnswer == null ? null : stuAnswer.trim();
}
public String getModule() {
return module;
}
public void setModule(String module) {
this.module = module == null ? null : module.trim();
}
public Integer getRightOrWrong() {
return rightOrWrong;
}
public void setRightOrWrong(Integer rightOrWrong) {
this.rightOrWrong = rightOrWrong;
}
}

@ -0,0 +1,589 @@
package com.sztzjy.marketing.entity;
import java.util.ArrayList;
import java.util.List;
public class StuTrainingProblemDetailsExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public StuTrainingProblemDetailsExample() {
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 andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Integer value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Integer> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Integer> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Integer value1, Integer value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Integer value1, Integer value2) {
addCriterion("id not between", value1, value2, "id");
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 andTopicIdIsNull() {
addCriterion("topic_id is null");
return (Criteria) this;
}
public Criteria andTopicIdIsNotNull() {
addCriterion("topic_id is not null");
return (Criteria) this;
}
public Criteria andTopicIdEqualTo(Integer value) {
addCriterion("topic_id =", value, "topicId");
return (Criteria) this;
}
public Criteria andTopicIdNotEqualTo(Integer value) {
addCriterion("topic_id <>", value, "topicId");
return (Criteria) this;
}
public Criteria andTopicIdGreaterThan(Integer value) {
addCriterion("topic_id >", value, "topicId");
return (Criteria) this;
}
public Criteria andTopicIdGreaterThanOrEqualTo(Integer value) {
addCriterion("topic_id >=", value, "topicId");
return (Criteria) this;
}
public Criteria andTopicIdLessThan(Integer value) {
addCriterion("topic_id <", value, "topicId");
return (Criteria) this;
}
public Criteria andTopicIdLessThanOrEqualTo(Integer value) {
addCriterion("topic_id <=", value, "topicId");
return (Criteria) this;
}
public Criteria andTopicIdIn(List<Integer> values) {
addCriterion("topic_id in", values, "topicId");
return (Criteria) this;
}
public Criteria andTopicIdNotIn(List<Integer> values) {
addCriterion("topic_id not in", values, "topicId");
return (Criteria) this;
}
public Criteria andTopicIdBetween(Integer value1, Integer value2) {
addCriterion("topic_id between", value1, value2, "topicId");
return (Criteria) this;
}
public Criteria andTopicIdNotBetween(Integer value1, Integer value2) {
addCriterion("topic_id not between", value1, value2, "topicId");
return (Criteria) this;
}
public Criteria andStuAnswerIsNull() {
addCriterion("stu_answer is null");
return (Criteria) this;
}
public Criteria andStuAnswerIsNotNull() {
addCriterion("stu_answer is not null");
return (Criteria) this;
}
public Criteria andStuAnswerEqualTo(String value) {
addCriterion("stu_answer =", value, "stuAnswer");
return (Criteria) this;
}
public Criteria andStuAnswerNotEqualTo(String value) {
addCriterion("stu_answer <>", value, "stuAnswer");
return (Criteria) this;
}
public Criteria andStuAnswerGreaterThan(String value) {
addCriterion("stu_answer >", value, "stuAnswer");
return (Criteria) this;
}
public Criteria andStuAnswerGreaterThanOrEqualTo(String value) {
addCriterion("stu_answer >=", value, "stuAnswer");
return (Criteria) this;
}
public Criteria andStuAnswerLessThan(String value) {
addCriterion("stu_answer <", value, "stuAnswer");
return (Criteria) this;
}
public Criteria andStuAnswerLessThanOrEqualTo(String value) {
addCriterion("stu_answer <=", value, "stuAnswer");
return (Criteria) this;
}
public Criteria andStuAnswerLike(String value) {
addCriterion("stu_answer like", value, "stuAnswer");
return (Criteria) this;
}
public Criteria andStuAnswerNotLike(String value) {
addCriterion("stu_answer not like", value, "stuAnswer");
return (Criteria) this;
}
public Criteria andStuAnswerIn(List<String> values) {
addCriterion("stu_answer in", values, "stuAnswer");
return (Criteria) this;
}
public Criteria andStuAnswerNotIn(List<String> values) {
addCriterion("stu_answer not in", values, "stuAnswer");
return (Criteria) this;
}
public Criteria andStuAnswerBetween(String value1, String value2) {
addCriterion("stu_answer between", value1, value2, "stuAnswer");
return (Criteria) this;
}
public Criteria andStuAnswerNotBetween(String value1, String value2) {
addCriterion("stu_answer not between", value1, value2, "stuAnswer");
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 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(Integer value) {
addCriterion("right_or_wrong =", value, "rightOrWrong");
return (Criteria) this;
}
public Criteria andRightOrWrongNotEqualTo(Integer value) {
addCriterion("right_or_wrong <>", value, "rightOrWrong");
return (Criteria) this;
}
public Criteria andRightOrWrongGreaterThan(Integer value) {
addCriterion("right_or_wrong >", value, "rightOrWrong");
return (Criteria) this;
}
public Criteria andRightOrWrongGreaterThanOrEqualTo(Integer value) {
addCriterion("right_or_wrong >=", value, "rightOrWrong");
return (Criteria) this;
}
public Criteria andRightOrWrongLessThan(Integer value) {
addCriterion("right_or_wrong <", value, "rightOrWrong");
return (Criteria) this;
}
public Criteria andRightOrWrongLessThanOrEqualTo(Integer value) {
addCriterion("right_or_wrong <=", value, "rightOrWrong");
return (Criteria) this;
}
public Criteria andRightOrWrongIn(List<Integer> values) {
addCriterion("right_or_wrong in", values, "rightOrWrong");
return (Criteria) this;
}
public Criteria andRightOrWrongNotIn(List<Integer> values) {
addCriterion("right_or_wrong not in", values, "rightOrWrong");
return (Criteria) this;
}
public Criteria andRightOrWrongBetween(Integer value1, Integer value2) {
addCriterion("right_or_wrong between", value1, value2, "rightOrWrong");
return (Criteria) this;
}
public Criteria andRightOrWrongNotBetween(Integer value1, Integer value2) {
addCriterion("right_or_wrong not between", value1, value2, "rightOrWrong");
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,18 @@
package com.sztzjy.marketing.entity.dto;
import lombok.Data;
/**
* @author tz
* @date 2023/12/28 15:58
*/
@Data
public class StuBigDataTechnologyTrainingDTO {
private Integer id;
private Integer topicNumber;
private String topicName;
private String topicOption;
private String topicAnswer;
private String[] stuAnswer;
private Integer rightOrWrong;
}

@ -0,0 +1,13 @@
package com.sztzjy.marketing.entity.dto;
import lombok.Data;
/**
* @author tz
* @date 2023/12/28 17:44
*/
@Data
public class StuSelectDTO {
private Integer id;
private String[] select;
}

@ -0,0 +1,16 @@
package com.sztzjy.marketing.entity.dto;
import lombok.Data;
import java.util.List;
/**
* @author tz
* @date 2023/12/28 17:09
*/
@Data
public class StuSelectDetailsDTO {
private String userId;
private String module;
private List<StuSelectDTO> stuSelectDTOList;
}

@ -0,0 +1,27 @@
package com.sztzjy.marketing.entity.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @author 17803
*/
@Data
@ApiModel
public class robotTitleSubDTO {
@ApiModelProperty("步骤一答案")
private String firstTitle;
@ApiModelProperty("步骤二题答案")
private String secondTitle;
@ApiModelProperty("步骤三题答案")
private String thirdTitle;
@ApiModelProperty("用户ID")
private String userId;
}

@ -0,0 +1,32 @@
package com.sztzjy.marketing.mapper;
import com.sztzjy.marketing.entity.StuBigDataTechnologyTraining;
import com.sztzjy.marketing.entity.StuBigDataTechnologyTrainingExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface StuBigDataTechnologyTrainingMapper {
long countByExample(StuBigDataTechnologyTrainingExample example);
int deleteByExample(StuBigDataTechnologyTrainingExample example);
int deleteByPrimaryKey(Integer id);
int insert(StuBigDataTechnologyTraining record);
int insertSelective(StuBigDataTechnologyTraining record);
List<StuBigDataTechnologyTraining> selectByExample(StuBigDataTechnologyTrainingExample example);
StuBigDataTechnologyTraining selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") StuBigDataTechnologyTraining record, @Param("example") StuBigDataTechnologyTrainingExample example);
int updateByExample(@Param("record") StuBigDataTechnologyTraining record, @Param("example") StuBigDataTechnologyTrainingExample example);
int updateByPrimaryKeySelective(StuBigDataTechnologyTraining record);
int updateByPrimaryKey(StuBigDataTechnologyTraining record);
}

@ -0,0 +1,32 @@
package com.sztzjy.marketing.mapper;
import com.sztzjy.marketing.entity.StuDigServiceTrade;
import com.sztzjy.marketing.entity.StuDigServiceTradeExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface StuDigServiceTradeMapper {
long countByExample(StuDigServiceTradeExample example);
int deleteByExample(StuDigServiceTradeExample example);
int deleteByPrimaryKey(Integer id);
int insert(StuDigServiceTrade record);
int insertSelective(StuDigServiceTrade record);
List<StuDigServiceTrade> selectByExample(StuDigServiceTradeExample example);
StuDigServiceTrade selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") StuDigServiceTrade record, @Param("example") StuDigServiceTradeExample example);
int updateByExample(@Param("record") StuDigServiceTrade record, @Param("example") StuDigServiceTradeExample example);
int updateByPrimaryKeySelective(StuDigServiceTrade record);
int updateByPrimaryKey(StuDigServiceTrade record);
}

@ -0,0 +1,32 @@
package com.sztzjy.marketing.mapper;
import com.sztzjy.marketing.entity.StuDigitalConfirmation;
import com.sztzjy.marketing.entity.StuDigitalConfirmationExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface StuDigitalConfirmationMapper {
long countByExample(StuDigitalConfirmationExample example);
int deleteByExample(StuDigitalConfirmationExample example);
int deleteByPrimaryKey(Integer id);
int insert(StuDigitalConfirmation record);
int insertSelective(StuDigitalConfirmation record);
List<StuDigitalConfirmation> selectByExample(StuDigitalConfirmationExample example);
StuDigitalConfirmation selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") StuDigitalConfirmation record, @Param("example") StuDigitalConfirmationExample example);
int updateByExample(@Param("record") StuDigitalConfirmation record, @Param("example") StuDigitalConfirmationExample example);
int updateByPrimaryKeySelective(StuDigitalConfirmation record);
int updateByPrimaryKey(StuDigitalConfirmation record);
}

@ -0,0 +1,32 @@
package com.sztzjy.marketing.mapper;
import com.sztzjy.marketing.entity.StuHadoopTrain;
import com.sztzjy.marketing.entity.StuHadoopTrainExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface StuHadoopTrainMapper {
long countByExample(StuHadoopTrainExample example);
int deleteByExample(StuHadoopTrainExample example);
int deleteByPrimaryKey(Integer id);
int insert(StuHadoopTrain record);
int insertSelective(StuHadoopTrain record);
List<StuHadoopTrain> selectByExample(StuHadoopTrainExample example);
StuHadoopTrain selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") StuHadoopTrain record, @Param("example") StuHadoopTrainExample example);
int updateByExample(@Param("record") StuHadoopTrain record, @Param("example") StuHadoopTrainExample example);
int updateByPrimaryKeySelective(StuHadoopTrain record);
int updateByPrimaryKey(StuHadoopTrain record);
}

@ -0,0 +1,32 @@
package com.sztzjy.marketing.mapper;
import com.sztzjy.marketing.entity.StuImageRecognitionTraining;
import com.sztzjy.marketing.entity.StuImageRecognitionTrainingExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface StuImageRecognitionTrainingMapper {
long countByExample(StuImageRecognitionTrainingExample example);
int deleteByExample(StuImageRecognitionTrainingExample example);
int deleteByPrimaryKey(Integer id);
int insert(StuImageRecognitionTraining record);
int insertSelective(StuImageRecognitionTraining record);
List<StuImageRecognitionTraining> selectByExample(StuImageRecognitionTrainingExample example);
StuImageRecognitionTraining selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") StuImageRecognitionTraining record, @Param("example") StuImageRecognitionTrainingExample example);
int updateByExample(@Param("record") StuImageRecognitionTraining record, @Param("example") StuImageRecognitionTrainingExample example);
int updateByPrimaryKeySelective(StuImageRecognitionTraining record);
int updateByPrimaryKey(StuImageRecognitionTraining record);
}

@ -0,0 +1,40 @@
package com.sztzjy.marketing.mapper;
import com.sztzjy.marketing.entity.StuTrainingOperateStep;
import com.sztzjy.marketing.entity.StuTrainingOperateStepExample;
import java.util.List;
import com.sztzjy.marketing.entity.StuTrainingOperateStepWithBLOBs;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface StuTrainingOperateStepMapper {
long countByExample(StuTrainingOperateStepExample example);
int deleteByExample(StuTrainingOperateStepExample example);
int deleteByPrimaryKey(Integer id);
int insert(StuTrainingOperateStep record);
int insertSelective(StuTrainingOperateStep record);
List<StuTrainingOperateStepWithBLOBs> selectByExampleWithBLOBs(StuTrainingOperateStepExample example);
List<StuTrainingOperateStep> selectByExample(StuTrainingOperateStepExample example);
StuTrainingOperateStep selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") StuTrainingOperateStep record, @Param("example") StuTrainingOperateStepExample example);
int updateByExampleWithBLOBs(@Param("record") StuTrainingOperateStep record, @Param("example") StuTrainingOperateStepExample example);
int updateByExample(@Param("record") StuTrainingOperateStep record, @Param("example") StuTrainingOperateStepExample example);
int updateByPrimaryKeySelective(StuTrainingOperateStep record);
int updateByPrimaryKeyWithBLOBs(StuTrainingOperateStep record);
int updateByPrimaryKey(StuTrainingOperateStep record);
}

@ -0,0 +1,32 @@
package com.sztzjy.marketing.mapper;
import com.sztzjy.marketing.entity.StuTrainingProblemDetails;
import com.sztzjy.marketing.entity.StuTrainingProblemDetailsExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface StuTrainingProblemDetailsMapper {
long countByExample(StuTrainingProblemDetailsExample example);
int deleteByExample(StuTrainingProblemDetailsExample example);
int deleteByPrimaryKey(Integer id);
int insert(StuTrainingProblemDetails record);
int insertSelective(StuTrainingProblemDetails record);
List<StuTrainingProblemDetails> selectByExample(StuTrainingProblemDetailsExample example);
StuTrainingProblemDetails selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") StuTrainingProblemDetails record, @Param("example") StuTrainingProblemDetailsExample example);
int updateByExample(@Param("record") StuTrainingProblemDetails record, @Param("example") StuTrainingProblemDetailsExample example);
int updateByPrimaryKeySelective(StuTrainingProblemDetails record);
int updateByPrimaryKey(StuTrainingProblemDetails record);
}

@ -0,0 +1,11 @@
package com.sztzjy.marketing.service;
import com.sztzjy.marketing.entity.dto.StuSelectDetailsDTO;
/**
* @author tz
* @date 2023/12/28 16:28
*/
public interface StuBigDataTechnologyTrainingService {
Integer questionSelection(StuSelectDetailsDTO stuSelectDetailsDTO);
}

@ -0,0 +1,107 @@
package com.sztzjy.marketing.service;
import com.sztzjy.marketing.entity.StuImageRecognitionTraining;
import com.sztzjy.marketing.entity.dto.robotTitleSubDTO;
import org.springframework.core.io.FileSystemResource;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* @author 17803
* @date 2023-12-25 13:52
*/
public interface StuFiveGTrainingService {
/**
* Hadoop
*
* @param context
* @return
*/
String hadoop(String context, String select, String userId);
/**
*
* @param userId
* @return
*/
void download(String userId,HttpServletResponse response);
/**
*
* @param userId
* @param response
* @return
*/
void downloadImg(String userId, HttpServletResponse response);
/**
*
*/
void upload(MultipartFile file, String userId);
/**
*
*/
void uploadB(MultipartFile file, String userId);
/**
* OCR
* @param userId
* @param model
* @return
*/
List<StuImageRecognitionTraining> ocrTitle(String userId, String model);
//文字识别OCR题目一提交
String ocrTitleOneSub(String userId, String answer);
/**
* OCR
* @param userId
* @param answer
* @return
*/
String ocrTitleTwoSub(String userId, String answer);
/**
*:
* @param userId
* @return
*/
List<StuImageRecognitionTraining> robotTitle(String userId);
/**
* :
* @param robotTitleSubDTO
* @return
*/
Integer robotTitleSub(robotTitleSubDTO robotTitleSubDTO);
//Hadoop清空数据
void delHadoop(String userId);
//Hadoop查询历史数据
Integer selHadoop(String userId);
// //自然语言处理:获取题目
// List<StuImageRecognitionTraining> getTitles(String userId);
//
// //自然语言处理:提交题目
// String subTitles(robotTitleSubDTO robotTitleSubDTO);
}

@ -0,0 +1,113 @@
package com.sztzjy.marketing.service.impl;
import com.sztzjy.marketing.entity.*;
import com.sztzjy.marketing.entity.dto.StuSelectDTO;
import com.sztzjy.marketing.entity.dto.StuSelectDetailsDTO;
import com.sztzjy.marketing.mapper.StuBigDataTechnologyTrainingMapper;
import com.sztzjy.marketing.mapper.StuTrainingProblemDetailsMapper;
import com.sztzjy.marketing.service.StuBigDataTechnologyTrainingService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.Arrays;
import java.util.List;
import java.util.UUID;
/**
* @author tz
* @date 2023/12/28 16:29
*/
@Service
public class StuBigDataTechnologyTrainingServiceImpl implements StuBigDataTechnologyTrainingService {
@Resource
StuTrainingProblemDetailsMapper stuTrainingProblemDetailsMapper;
@Resource
StuBigDataTechnologyTrainingMapper stuBigDataTechnologyTrainingMapper;
@Override
public Integer questionSelection(StuSelectDetailsDTO stuSelectDetailsDTO) {
StuBigDataTechnologyTrainingExample example=new StuBigDataTechnologyTrainingExample();
example.createCriteria().andModuleEqualTo(stuSelectDetailsDTO.getModule());
List<StuBigDataTechnologyTraining> stuBigDataTechnologyTrainings = stuBigDataTechnologyTrainingMapper.selectByExample(example);
List<StuSelectDTO> stuSelectDTOList = stuSelectDetailsDTO.getStuSelectDTOList();
StuTrainingProblemDetailsExample stuTrainingProblemDetailsExample=new StuTrainingProblemDetailsExample();
stuTrainingProblemDetailsExample.createCriteria().andUserIdEqualTo(stuSelectDetailsDTO.getUserId()).andModuleEqualTo(stuSelectDetailsDTO.getModule());
List<StuTrainingProblemDetails> stuTrainingProblemDetailsList = stuTrainingProblemDetailsMapper.selectByExample(stuTrainingProblemDetailsExample);
StuTrainingProblemDetails stuTrainingProblemDetails=new StuTrainingProblemDetails();
for (int i = 0; i < stuSelectDTOList.size(); i++) {
for (int j = 0; j < stuBigDataTechnologyTrainings.size(); j++) {
if(stuSelectDTOList.get(i).getId().equals(stuBigDataTechnologyTrainings.get(j).getId())){
String topicAnswer = stuBigDataTechnologyTrainings.get(j).getTopicAnswer();
String[] split = topicAnswer.split(",");
//将两个数组进行排序
Arrays.sort(split);
Arrays.sort(stuSelectDTOList.get(i).getSelect());
if(stuTrainingProblemDetailsList.isEmpty()){ //封装对象
Integer uuid = UUID.randomUUID().toString().replaceAll("-", "").hashCode();
uuid = uuid < 0 ? -uuid : uuid;//String.hashCode() 值会为空
stuTrainingProblemDetails.setId(uuid);
stuTrainingProblemDetails.setUserId(stuSelectDetailsDTO.getUserId());
String stuAnswer="";
for (int k = 0; k < stuSelectDTOList.get(i).getSelect().length; k++) {
if(k==stuSelectDTOList.get(i).getSelect().length-1){
stuAnswer=stuAnswer+stuSelectDTOList.get(i).getSelect()[k];
}else {
stuAnswer=stuAnswer+stuSelectDTOList.get(i).getSelect()[k]+",";
}
}
stuTrainingProblemDetails.setStuAnswer(stuAnswer);
stuTrainingProblemDetails.setTopicId(stuSelectDTOList.get(i).getId());
stuTrainingProblemDetails.setModule(stuSelectDetailsDTO.getModule());
if(i<9){ //1-9题判断
//再进行比较
if(Arrays.equals(split,stuSelectDTOList.get(i).getSelect())){
stuTrainingProblemDetails.setRightOrWrong(1);
}else {
stuTrainingProblemDetails.setRightOrWrong(0);
}
}else { //第10题判断
String join = String.join(",", stuSelectDTOList.get(i).getSelect());
if(topicAnswer.equals(join)){
stuTrainingProblemDetails.setRightOrWrong(1);
}else {
stuTrainingProblemDetails.setRightOrWrong(0);
}
}
//添加做题记录
stuTrainingProblemDetailsMapper.insert(stuTrainingProblemDetails);
}else {
String stuAnswer="";
for (int k = 0; k < stuSelectDTOList.get(i).getSelect().length; k++) {
if(k==stuSelectDTOList.get(i).getSelect().length-1){
stuAnswer=stuAnswer+stuSelectDTOList.get(i).getSelect()[k];
}else {
stuAnswer=stuAnswer+stuSelectDTOList.get(i).getSelect()[k]+",";
}
}
for (int k = 0; k < stuTrainingProblemDetailsList.size(); k++) {
if(stuTrainingProblemDetailsList.get(k).getTopicId().equals(stuSelectDTOList.get(i).getId())){
StuTrainingProblemDetails stuTrainingProblemDetails1 = stuTrainingProblemDetailsList.get(k);
stuTrainingProblemDetails1.setStuAnswer(stuAnswer);
//再进行比较
if(Arrays.equals(split,stuSelectDTOList.get(i).getSelect())){
stuTrainingProblemDetails1.setRightOrWrong(1);
}else {
stuTrainingProblemDetails1.setRightOrWrong(0);
}
stuTrainingProblemDetailsMapper.updateByPrimaryKey(stuTrainingProblemDetails1);
}
}
}
}
}
}
//查询用户错误次数 返回
StuTrainingProblemDetailsExample stuTrainingProblemExample=new StuTrainingProblemDetailsExample();
stuTrainingProblemExample.createCriteria().andModuleEqualTo(stuSelectDetailsDTO.getModule())
.andUserIdEqualTo(stuSelectDetailsDTO.getUserId()).andRightOrWrongEqualTo(0);
List<StuTrainingProblemDetails> stuTrainingProblemDetails1 = stuTrainingProblemDetailsMapper.selectByExample(stuTrainingProblemExample);
return stuTrainingProblemDetails1.size();
}
}

@ -0,0 +1,901 @@
package com.sztzjy.marketing.service.impl;
/**
* @author 17803
* @date 2023-12-25 13:55
*/
import cn.hutool.core.convert.Convert;
import cn.hutool.core.util.IdUtil;
import cn.hutool.core.util.RandomUtil;
import com.alibaba.fastjson.JSON;
import com.sztzjy.marketing.config.exception.handler.InvoceTException;
import com.sztzjy.marketing.entity.*;
import com.sztzjy.marketing.entity.dto.robotTitleSubDTO;
import com.sztzjy.marketing.mapper.StuDigServiceTradeMapper;
import com.sztzjy.marketing.mapper.StuDigitalConfirmationMapper;
import com.sztzjy.marketing.mapper.StuHadoopTrainMapper;
import com.sztzjy.marketing.service.StuFiveGTrainingService;
import com.sztzjy.marketing.util.file.IFileUtil;
import com.sztzjy.marketing.mapper.StuImageRecognitionTrainingMapper;
import org.apache.logging.log4j.util.Strings;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.PDPage;
import org.apache.pdfbox.pdmodel.PDPageTree;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.core.io.FileSystemResource;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.*;
import java.util.stream.Collectors;
@Service
public class StuFiveGTrainingServiceImpl implements StuFiveGTrainingService {
@Autowired
private StuImageRecognitionTrainingMapper stuImageRecognitionTrainingMapper;
@Resource
private IFileUtil iFileUtil;
@Value("${file.path}")
private String filePath;
@Resource
IFileUtil localFileUtil;
@Resource
StuHadoopTrainMapper stuHadoopTrainMapper;
@Resource
StuDigServiceTradeMapper stuDigServiceTradeMapper;
@Resource
StuDigitalConfirmationMapper stuDigitalConfirmationMapper;
/**
* Hadoop
*
* @param context
* @return
*/
@Override
public String hadoop(String context, String select, String userId) {
//查询是否做过题
HashMap<String, String> map = new HashMap<>();
map.put("1任务调度", "Oozie");
map.put("2任务调度", "Azkaban");
map.put("1数据查询", "Hive");
map.put("数据挖掘", "Spark Mlib");
map.put("2数据查询", "Spark Sql");
map.put("1实时计算", "Spark Streaming");
map.put("Flink", "Flink");
map.put("离线计算", "MapReduce");
map.put("内存计算", "Spark Core");
map.put("2实时计算", "Storm");
map.put("资源管理", "YARN");
map.put("非关系型数据库", "HBase");
map.put("文件存储", "HDFS");
map.put("数据传递", "Sqoop");
map.put("日志收集", "Flume");
map.put("消息队列", "Kafka");
map.put("数据平台配置和调度", "ZooKeeper");
String s = map.get(context);
//查询用户数据
StuHadoopTrainExample stuHadoopTrainExample = new StuHadoopTrainExample();
stuHadoopTrainExample.createCriteria().andUserIdEqualTo(userId);
List<StuHadoopTrain> stuHadoopTrains = stuHadoopTrainMapper.selectByExample(stuHadoopTrainExample);
//判断两个是否相同
if (s.equals(select)) {
String temp = select + context;
//答案
String info = temp.replaceAll("[12]", "");
// String s1 = context.replaceAll("[12]", "");
//查询有无数据 有数据插入更新状态为1
//没有则插入
//不是第一次做题
if (stuHadoopTrains!=null && stuHadoopTrains.size()>0)
{
String append = stuHadoopTrains.get(0).getAppend();
String parsed = JSON.parseObject(append, String.class);
//获取答题记录
//判断是否做过改题目
String[] split = parsed.split(",");
//判断够不够16个
if (split.length==16){
//判断是否包含
if (Arrays.asList(split).contains(context)){
return info;
}
//判断完成状态
if (stuHadoopTrains.get(0).getState()==0)
{
String Info = parsed + context +",";
String jsonString = JSON.toJSONString(Info);
stuHadoopTrains.get(0).setAppend(jsonString);
stuHadoopTrains.get(0).setState(1);
stuHadoopTrainMapper.updateByPrimaryKeySelective(stuHadoopTrains.get(0));
//提交答题错误
Integer anInt = Convert.toInt(stuHadoopTrains.get(0).getWrongDetail());
// stuDigitalIndustrializationService.practicalTrainingSubmission(userId,"大数据","Hadoop",anInt);
}
return info;
}
if (Arrays.asList(split).contains(context)){
return info;
}
String Info = parsed + context +",";
String jsonString = JSON.toJSONString(Info);
stuHadoopTrains.get(0).setAppend(jsonString);
stuHadoopTrainMapper.updateByPrimaryKeySelective(stuHadoopTrains.get(0));
return info;
}else {
String currentInfo = context + ",";
String jsonString = JSON.toJSONString(currentInfo);
StuHadoopTrain stuHadoopTrain = new StuHadoopTrain();
stuHadoopTrain.setId((int) IdUtil.getSnowflakeNextId());
stuHadoopTrain.setAppend(jsonString);
stuHadoopTrain.setUserId(userId);
stuHadoopTrain.setCreateTime(new Date());
//默认错0次
stuHadoopTrain.setWrongDetail("0");
stuHadoopTrainMapper.insertSelective(stuHadoopTrain);
}
return info;
} else {
//不相同 查看有无数据
if (stuHadoopTrains!=null && stuHadoopTrains.size()>0)
{
StuHadoopTrain stuHadoopTrain = stuHadoopTrains.get(0);
String wrongDetail = stuHadoopTrain.getWrongDetail();
int count = Convert.toInt(wrongDetail)+ 1;
stuHadoopTrain.setWrongDetail(String.valueOf(count));
stuHadoopTrainMapper.updateByPrimaryKeySelective(stuHadoopTrain);
}else {
StuHadoopTrain stuHadoopTrain = new StuHadoopTrain();
stuHadoopTrain.setId((int) IdUtil.getSnowflakeNextId());
stuHadoopTrain.setAppend("1");
stuHadoopTrain.setUserId(userId);
stuHadoopTrain.setCreateTime(new Date());
//默认错0次
stuHadoopTrain.setWrongDetail("1");
stuHadoopTrainMapper.insertSelective(stuHadoopTrain);
}
}
//得分接口
//todo
return null;
}
/**
*
*/
@Override
public void download(String userId, HttpServletResponse response) {
//查询要下载的
//购买页码
StuDigitalConfirmationExample stuDigitalConfirmationExample = new StuDigitalConfirmationExample();
stuDigitalConfirmationExample.createCriteria().andUserIdEqualTo(userId);
List<StuDigitalConfirmation> stuDigitalConfirmationList = stuDigitalConfirmationMapper.selectByExample(stuDigitalConfirmationExample);
StuDigitalConfirmation info = stuDigitalConfirmationList.get(0);
//三个文件路径
Map<String, String> map = new HashMap<>();
map.put("中国数字经济就业发展研究报告", "/doc/中国数字经济就业发展研究报告.pdf");
map.put("AI算力行业深度研究报告", "/doc/AI算力行业深度研究报告.pdf");
map.put("数据要素白皮书", "/doc/数据要素白皮书.pdf");
String path = map.get(info.getDocName());
String s = RandomUtil.randomString(15);
String outPath = filePath + "/doc/page/" + s + ".pdf";
Integer anInt = Convert.toInt(info.getExcessive());
try {
downloadPdfPages(filePath + path, outPath, 1, anInt);
} catch (IOException e) {
throw new RuntimeException(e);
}
String docPath = "/doc/page/" + s + ".pdf";
iFileUtil.download(response, info.getDocName(), docPath);
}
/**
*
*
* @param userId
*/
@Override
public void downloadImg(String userId, HttpServletResponse response) {
iFileUtil.download(response, "文字识别.png", "/doc/文字识别.png");
}
public static void downloadPdfPages(String inputPdfPath, String outputPdfPath, int startPage, int endPage) throws IOException {
try (PDDocument document = PDDocument.load(new File(inputPdfPath))) {
// Ensure the requested page range is valid
int totalPages = document.getNumberOfPages();
if (endPage > totalPages) {
endPage = totalPages;
}
if (startPage < 1 || startPage > totalPages || endPage < startPage || endPage > totalPages) {
throw new IllegalArgumentException("Invalid page range");
}
// Create a new document for the selected pages
PDDocument outputDocument = new PDDocument();
PDPageTree pages = document.getPages();
for (int pageNumber = startPage - 1; pageNumber < endPage; pageNumber++) {
PDPage page = pages.get(pageNumber);
outputDocument.addPage(page);
}
// Save the new document to the specified output path
try (OutputStream outputStream = new FileOutputStream(outputPdfPath)) {
outputDocument.save(outputStream);
}
}
}
//文件下载
@Override
public void upload(MultipartFile file, String userId) {
String url = localFileUtil.upload(file);
StuDigServiceTradeExample example = new StuDigServiceTradeExample();
example.createCriteria().andUserIdEqualTo(userId);
List<StuDigServiceTrade> stuDigServiceTrades = stuDigServiceTradeMapper.selectByExample(example);
if (stuDigServiceTrades.size() > 0) {
stuDigServiceTrades.get(0).setDomeLicense(url);
stuDigServiceTradeMapper.updateByPrimaryKeySelective(stuDigServiceTrades.get(0));
} else {
int i = UUID.randomUUID().hashCode();
int id= i > 0 ? i : -i;
StuDigServiceTrade build = StuDigServiceTrade.builder().id(id).domeLicense(url).userId(userId).build();
stuDigServiceTradeMapper.insertSelective(build);
}
}
/**
*
*/
@Override
public void uploadB(MultipartFile file, String userId) {
String url = localFileUtil.upload(file);
StuDigServiceTradeExample example = new StuDigServiceTradeExample();
example.createCriteria().andUserIdEqualTo(userId);
List<StuDigServiceTrade> stuDigServiceTrades = stuDigServiceTradeMapper.selectByExample(example);
if (stuDigServiceTrades.size() > 0) {
stuDigServiceTrades.get(0).setAbroadBusReg(url);
stuDigServiceTradeMapper.updateByPrimaryKeySelective(stuDigServiceTrades.get(0));
} else {
int i = UUID.randomUUID().hashCode();
int id= i > 0 ? i : -i;
StuDigServiceTrade build = StuDigServiceTrade.builder().id(id).abroadBusReg(url).userId(userId).build();
stuDigServiceTradeMapper.insertSelective(build);
}
}
//获取文字识别OCR题目
@Override
public List<StuImageRecognitionTraining> ocrTitle(String userId, String model) {
//获取已经做的题目
StuImageRecognitionTrainingExample Stuexample = new StuImageRecognitionTrainingExample();
Stuexample.createCriteria().andModelEqualTo(model).andUserIdEqualTo(userId);
List<StuImageRecognitionTraining> stuImageRecognitionList = stuImageRecognitionTrainingMapper.selectByExample(Stuexample);
if (stuImageRecognitionList.size()==2){
List<StuImageRecognitionTraining> collect = stuImageRecognitionList.stream().sorted(Comparator.comparing(StuImageRecognitionTraining::getStemContent).reversed()).collect(Collectors.toList());
return collect;
}
ArrayList<StuImageRecognitionTraining> arrayList = new ArrayList<>();
if (stuImageRecognitionList.size() > 0) {
//获取所有题目
StuImageRecognitionTrainingExample example = new StuImageRecognitionTrainingExample();
example.createCriteria().andModelEqualTo(model).andUserIdIsNull();
List<StuImageRecognitionTraining> stuImageRecognitionTrainings = stuImageRecognitionTrainingMapper.selectByExample(example);
for (int i = 0; i < stuImageRecognitionTrainings.size(); i++) {
for (int j = 0; j < stuImageRecognitionList.size(); j++) {
if (stuImageRecognitionTrainings.get(i).getStemContent().equals(stuImageRecognitionList.get(j).getStemContent())) {
//已经做过题目,添加进集合并返回
arrayList.add(stuImageRecognitionList.get(j));
} else {
//未做题目
arrayList.add(stuImageRecognitionTrainings.get(i));
}
}
}
List<StuImageRecognitionTraining> collect = arrayList.stream().sorted(Comparator.comparing(StuImageRecognitionTraining::getStemContent).reversed()).collect(Collectors.toList());
return collect;
}
StuImageRecognitionTrainingExample example = new StuImageRecognitionTrainingExample();
example.createCriteria().andModelEqualTo(model).andUserIdIsNull();
//获取题目
List<StuImageRecognitionTraining> stuImageRecognitionTrainings = stuImageRecognitionTrainingMapper.selectByExample(example);
stuImageRecognitionTrainings.stream().forEach(item -> {
item.setCorrectAnswer(null);
});
if (stuImageRecognitionTrainings.size() > 0) {
List<StuImageRecognitionTraining> collect = stuImageRecognitionTrainings.stream().sorted(Comparator.comparing(StuImageRecognitionTraining::getStemContent).reversed()).collect(Collectors.toList());
return stuImageRecognitionTrainings;
} else {
throw new InvoceTException(HttpStatus.ACCEPTED, "题目不存在");
}
}
//文字识别OCR题目一提交
@Override
public String ocrTitleOneSub(String userId, String answer) {
//判断是否做过题
StuImageRecognitionTrainingExample stuExample = new StuImageRecognitionTrainingExample();
stuExample.createCriteria().andModelEqualTo("文字识别OCR").andUserIdEqualTo(userId);
List<StuImageRecognitionTraining> stuImageRecognitionList = stuImageRecognitionTrainingMapper.selectByExample(stuExample);
if (stuImageRecognitionList.size() > 0) {
List<StuImageRecognitionTraining> collect = stuImageRecognitionList.stream().filter(item -> item.getStemContent().equals("请选择一种最优的方法先获得文章的图片。")).collect(Collectors.toList());
if (collect.size() > 0 ) {
if (collect.get(0).getStudentAnswer().equals("B")){
if ("A".equals(answer) ){
return "选择错误!";
}
return "提交成功";
}
if ("A".equals(answer) )
{
throw new InvoceTException(HttpStatus.ACCEPTED, "选择错误");
}else {
collect.get(0).setStudentAnswer("B");
stuImageRecognitionTrainingMapper.updateByPrimaryKey(collect.get(0));
return "选择正确!";
}
}
}
StuImageRecognitionTrainingExample example = new StuImageRecognitionTrainingExample();
example.createCriteria().andModelEqualTo("文字识别OCR").andUserIdIsNull();
//获取题目
List<StuImageRecognitionTraining> stuImageRecognitionTrainings =
stuImageRecognitionTrainingMapper.selectByExample(example);
for (int i = 0; i < stuImageRecognitionTrainings.size(); i++) {
if (stuImageRecognitionTrainings.get(i).getOptionC() == null) {
String correctAnswer = stuImageRecognitionTrainings.get(i).getCorrectAnswer();
StuImageRecognitionTraining stuImageRecognitionTraining = new StuImageRecognitionTraining();
BeanUtils.copyProperties(stuImageRecognitionTrainings.get(i), stuImageRecognitionTraining);
stuImageRecognitionTraining.setUserId(userId);
stuImageRecognitionTraining.setId(Convert.toInt(IdUtil.getSnowflakeNextId()));
if (!answer.equals(correctAnswer)) {
stuImageRecognitionTraining.setRightOrWrong(0);
stuImageRecognitionTraining.setStudentAnswer(answer);
stuImageRecognitionTrainingMapper.insert(stuImageRecognitionTraining);
throw new InvoceTException(HttpStatus.ACCEPTED, "选择错误");
} else {
stuImageRecognitionTraining.setRightOrWrong(1);
stuImageRecognitionTraining.setStudentAnswer(answer);
stuImageRecognitionTrainingMapper.insert(stuImageRecognitionTraining);
return "选择正确!";
}
}
}
return null;
}
/**
* OCR
*
* @param userId
* @param answer
* @return
*/
@Override
public String ocrTitleTwoSub(String userId, String answer) {
//判断是否做过题
StuImageRecognitionTrainingExample stuExample = new StuImageRecognitionTrainingExample();
stuExample.createCriteria().andModelEqualTo("文字识别OCR").andUserIdEqualTo(userId);
List<StuImageRecognitionTraining> stuImageRecognitionList = stuImageRecognitionTrainingMapper.selectByExample(stuExample);
String[] select = answer.split(",");
Arrays.sort(select);
String arr[] = {"A","B","C","D","E"};
if (stuImageRecognitionList.size() > 0 ) {
List<StuImageRecognitionTraining> collect = stuImageRecognitionList.stream().filter(item -> item.getStemContent().equals("以下选项属于图片预处理方法的是?")).collect(Collectors.toList());
if (collect.size() > 0 ) {
if (collect.get(0).getStudentAnswer().equals("A,B,C,D,E")){
if (!Arrays.equals(arr, select))
{
return "选择错误!";
}
return "提交成功";
}
if (!Arrays.equals(arr, select))
{
return "选择错误!";
}else {
collect.get(0).setStudentAnswer(answer);
stuImageRecognitionTrainingMapper.updateByPrimaryKey(collect.get(0));
return "选择正确!";
}
}
}
String[] stuAnswer = answer.split(",");
StuImageRecognitionTrainingExample example = new StuImageRecognitionTrainingExample();
example.createCriteria().andModelEqualTo("文字识别OCR").andUserIdIsNull();
//获取题目
List<StuImageRecognitionTraining> stuImageRecognitionTrainings =
stuImageRecognitionTrainingMapper.selectByExample(example);
for (int i = 0; i < stuImageRecognitionTrainings.size(); i++) {
if (stuImageRecognitionTrainings.get(i).getOptionC() != null) {
String correctAnswer = stuImageRecognitionTrainings.get(i).getCorrectAnswer();
String[] split = correctAnswer.split(",");
StuImageRecognitionTraining stuImageRecognitionTraining = new StuImageRecognitionTraining();
BeanUtils.copyProperties(stuImageRecognitionTrainings.get(i), stuImageRecognitionTraining);
stuImageRecognitionTraining.setUserId(userId);
stuImageRecognitionTraining.setId(Convert.toInt(IdUtil.getSnowflakeNextId()));
if (!Arrays.equals(split, stuAnswer)) {
stuImageRecognitionTraining.setRightOrWrong(0);
stuImageRecognitionTraining.setStudentAnswer(answer);
stuImageRecognitionTrainingMapper.insert(stuImageRecognitionTraining);
return "选择错误!";
} else {
stuImageRecognitionTraining.setRightOrWrong(1);
stuImageRecognitionTraining.setStudentAnswer(answer);
stuImageRecognitionTrainingMapper.insert(stuImageRecognitionTraining);
return "选择正确!";
}
}
}
return null;
}
/**
*:
* @param userId
* @return
*/
@Override
public List<StuImageRecognitionTraining> robotTitle(String userId) {
//获取用户做题详情
StuImageRecognitionTrainingExample lastExample = new StuImageRecognitionTrainingExample();
lastExample.createCriteria().andUserIdEqualTo(userId).andModelEqualTo("机器人");
List<StuImageRecognitionTraining> lastRecognitionTrainingList = stuImageRecognitionTrainingMapper.selectByExample(lastExample);
List<String> lastCollect = lastRecognitionTrainingList.stream().map(item -> item.getOptionF()).collect(Collectors.toList());
//第一次做题查询题目
StuImageRecognitionTrainingExample firstExample = new StuImageRecognitionTrainingExample();
firstExample.createCriteria().andUserIdIsNull().andModelEqualTo("机器人");
List<StuImageRecognitionTraining> firstRecognitionTrainingLists = stuImageRecognitionTrainingMapper.selectByExample(firstExample);
List<String> firstCollect = firstRecognitionTrainingLists.stream().map(item -> item.getOptionF()).collect(Collectors.toList());
ArrayList<StuImageRecognitionTraining> arrayList = new ArrayList<>();
if (lastRecognitionTrainingList.size()>0)
{
//用户可能未做题,需要返回题目和已做题目和结果
for (int i = 0; i < firstRecognitionTrainingLists.size(); i++) {
for (int j = 0; j < lastRecognitionTrainingList.size(); j++) {
//查询出已做题目 根据题目判断
if (firstRecognitionTrainingLists.get(i).getOptionF().equals(lastRecognitionTrainingList.get(j).getOptionF())){
arrayList.add(lastRecognitionTrainingList.get(j));
continue;
}else {
firstCollect.removeAll(lastCollect);
for (int z = 0; z < firstCollect.size(); z++) {
if (firstRecognitionTrainingLists.get(i).getOptionF().equals(firstCollect.get(z)))
{
arrayList.add(firstRecognitionTrainingLists.get(i));
break;
}
}
}
}
}
Collections.sort(arrayList,Comparator.comparing(StuImageRecognitionTraining::getOptionF));
arrayList.forEach(item->{
item.setOptionF(null);
item.setModel(null);
});
return arrayList;
}else {
if (firstRecognitionTrainingLists.size()>0)
{
//不返回正确答案
firstRecognitionTrainingLists.forEach(item->{
item.setCorrectAnswer(null);
item.setModel(null);
item.setOptionF(null);
}
);
return firstRecognitionTrainingLists;
}else {
throw new InvoceTException(HttpStatus.ACCEPTED,"未查询到题目");
}
}
}
/**
* :
* @param robotTitleSubDTO
* @return
*/
@Override
public Integer robotTitleSub(robotTitleSubDTO robotTitleSubDTO) {
//判断是否多次提交
StuImageRecognitionTrainingExample example = new StuImageRecognitionTrainingExample();
example.createCriteria().andUserIdEqualTo(robotTitleSubDTO.getUserId()).andModelEqualTo("机器人");
List<StuImageRecognitionTraining> lists = stuImageRecognitionTrainingMapper.selectByExample(example);
//第n次提交
if (lists.size()>0 && lists != null)
{
return -10;
}
//记录错误次数
int sum = 0;
//获取所有结果
StuImageRecognitionTrainingExample firstExample = new StuImageRecognitionTrainingExample();
firstExample.createCriteria().andUserIdIsNull().andModelEqualTo("机器人");
List<StuImageRecognitionTraining> firstRecognitionTrainingLists = stuImageRecognitionTrainingMapper.selectByExample(firstExample);
Map<String,String> strings = new HashMap<>();
strings.put("步骤一",robotTitleSubDTO.getFirstTitle());
strings.put("步骤二",robotTitleSubDTO.getSecondTitle());
strings.put("步骤三",robotTitleSubDTO.getThirdTitle());
if (firstRecognitionTrainingLists.size()>0){
//获取三个题目的结果判断对错
// 第一题
for (int i = 0; i < firstRecognitionTrainingLists.size(); i++) {
// for (Map.Entry<String, String> entry : strings.entrySet()) {
Iterator<Map.Entry<String, String>> iterator = strings.entrySet().iterator();
while (iterator.hasNext()) {
Map.Entry<String, String> entry = iterator.next();
String key = entry.getKey();
String value = entry.getValue();
if (Strings.isEmpty(value)) {
iterator.remove(); // Remove the current entry from the map
sum++;
//用户答案为空 也是错误
StuImageRecognitionTraining stuImageRecognitionTraining = new StuImageRecognitionTraining();
BeanUtils.copyProperties( firstRecognitionTrainingLists.get(i),stuImageRecognitionTraining);
stuImageRecognitionTraining.setUserId(robotTitleSubDTO.getUserId());
stuImageRecognitionTraining.setId((int)IdUtil.getSnowflakeNextId());
stuImageRecognitionTraining.setStudentAnswer("该题未做");
stuImageRecognitionTraining.setRightOrWrong(0);
stuImageRecognitionTrainingMapper.insertSelective(stuImageRecognitionTraining);
break;
}
if (key.equals(firstRecognitionTrainingLists.get(i).getOptionF())){
//比较答案判断对错
//用户答案
String[] stuFirst = value.split(",");
//正确答案
String[] correctAnswer = firstRecognitionTrainingLists.get(i).getCorrectAnswer().split(",");
boolean equals = Arrays.equals(stuFirst, correctAnswer);
StuImageRecognitionTraining stuImageRecognitionTraining = new StuImageRecognitionTraining();
BeanUtils.copyProperties( firstRecognitionTrainingLists.get(i),stuImageRecognitionTraining);
stuImageRecognitionTraining.setUserId(robotTitleSubDTO.getUserId());
stuImageRecognitionTraining.setId((int)IdUtil.getSnowflakeNextId());
stuImageRecognitionTraining.setStudentAnswer(value);
if (!equals)
{
stuImageRecognitionTraining.setRightOrWrong(0);
sum++;
}else {
stuImageRecognitionTraining.setRightOrWrong(1);
}
iterator.remove(); // Remove the current entry from the map
stuImageRecognitionTrainingMapper.insertSelective(stuImageRecognitionTraining);
break;
}
}
}
}else {
throw new InvoceTException(HttpStatus.ACCEPTED,"题目不存在");
}
return sum;
}
//Hadoop清空数据
@Override
public void delHadoop(String userId) {
//查询数据库 做题内容够不够17个 不够就清除数据库
StuHadoopTrainExample stuHadoopTrainExample = new StuHadoopTrainExample();
stuHadoopTrainExample.createCriteria().andUserIdEqualTo(userId);
List<StuHadoopTrain> stuHadoopTrainList = stuHadoopTrainMapper.selectByExample(stuHadoopTrainExample);
if (!stuHadoopTrainList.isEmpty())
{ String appendOne = stuHadoopTrainList.get(0).getAppend();
String parsedOne = JSON.parseObject(appendOne, String.class);
//判断是否做过改题目
String[] split = parsedOne.split(",");
if (split.length!=17){
stuHadoopTrainMapper.deleteByPrimaryKey(stuHadoopTrainList.get(0).getId());
}
}
}
@Override
public Integer selHadoop(String userId) {
//查询数据库 做题内容够不够17个 不够就清除数据库
StuHadoopTrainExample stuHadoopTrainExample = new StuHadoopTrainExample();
stuHadoopTrainExample.createCriteria().andUserIdEqualTo(userId);
List<StuHadoopTrain> stuHadoopTrainList = stuHadoopTrainMapper.selectByExample(stuHadoopTrainExample);
if (!stuHadoopTrainList.isEmpty())
{
StuHadoopTrain stuHadoopTrain = stuHadoopTrainList.get(0);
Integer state = stuHadoopTrain.getState();
return state;
}
return 0;
}
// //自然语言处理:获取题目
// @Override
// public List<StuImageRecognitionTraining> getTitles(String userId) {
// //获取用户做题详情
// StuImageRecognitionTrainingExample lastExample = new StuImageRecognitionTrainingExample();
// lastExample.createCriteria().andUserIdEqualTo(userId).andModelEqualTo("自然语言处理");
// List<StuImageRecognitionTraining> tileList = stuImageRecognitionTrainingMapper.selectByExample(lastExample);
// if (tileList != null && tileList.size()>0)
// {
// throw new InvoceTException(HttpStatus.BAD_GATEWAY,"请勿重复答题!");
// }else {
//
// return tileList;
//
//
// }
//
//
//
// }
//
// //自然语言处理:提交题目
// @Override
// public String subTitles(robotTitleSubDTO robotTitleSubDTO) {
//
//// 把两个题答案存储起来
// HashMap<String, String> map = new HashMap<>();
// map.put("firstTitle","A");
// map.put("secondTitle","A,B,D");
//
// Iterator<Map.Entry<String, String>> iterator = map.entrySet().iterator();
// while (iterator.hasNext()){
// Map.Entry<String, String> next = iterator.next();
// String key = next.getKey();
// String value = next.getValue();
// //判断用户书否答题
// if (Strings.isEmpty(robotTitleSubDTO.getFirstTitle()))
// {
// insertInfo(robotTitleSubDTO,"步骤一");
// }
//
// if ("firstTitle".equals(key)){
// String[] split = robotTitleSubDTO.getFirstTitle().split(",");
// Arrays.sort(split);
// String[] strings = value.split(",");
// Arrays.sort(strings);
//
// if (Arrays.equals(split, strings)){
//
// }
//
//
// }
//
//
// }
//
//
// //比较答案
//
//
// return null;
//
// }
//
// public void insertInfo(robotTitleSubDTO robotTitleSubDTO,String type){
// StuImageRecognitionTrainingExample firstExample = new StuImageRecognitionTrainingExample();
// firstExample.createCriteria().andUserIdIsNull().andModelEqualTo("自然语言处理");
// List<StuImageRecognitionTraining> firstRecognitionTrainingLists = stuImageRecognitionTrainingMapper.selectByExample(firstExample);
// List<StuImageRecognitionTraining> collect = firstRecognitionTrainingLists.stream().filter(p -> p.getOptionF().equals(type)).collect(Collectors.toList());
//
//
// StuImageRecognitionTraining stuImageRecognitionTraining = new StuImageRecognitionTraining();
// BeanUtils.copyProperties( collect.get(0),stuImageRecognitionTraining);
// stuImageRecognitionTraining.setUserId(robotTitleSubDTO.getUserId());
// stuImageRecognitionTraining.setId((int)IdUtil.getSnowflakeNextId());
// stuImageRecognitionTraining.setStudentAnswer("该题未做");
//
// stuImageRecognitionTraining.setRightOrWrong(0);
// stuImageRecognitionTrainingMapper.insertSelective(stuImageRecognitionTraining);
// }
}

@ -0,0 +1,155 @@
package com.sztzjy.marketing.util.algorithm;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
public class KMeans {
private int k; // 簇数
private int maxIterations; // 最大迭代次数
private List<Point> centroids; // 质心
private List<Point> points; // 数据集
public KMeans(int k, int maxIterations, List<Point> points) {
this.k = k;
this.maxIterations = maxIterations;
this.points = points;
this.centroids = initializeCentroids();
}
// 初始化质心
private List<Point> initializeCentroids() {
List<Point> centroids = new ArrayList<>();
Random random = new Random();
for (int i = 0; i < k; i++) {
int randomIndex = random.nextInt(points.size());
centroids.add(points.get(randomIndex));
}
return centroids;
}
// 计算点到质心的距离
private double distance(Point point1, Point point2) {
return Math.sqrt(Math.pow(point1.getX() - point2.getX(), 2) + Math.pow(point1.getY() - point2.getY(), 2));
}
// 找到每个点所属的最近质心
private int closestCentroid(Point point) {
double minDistance = Double.MAX_VALUE;
int closestCentroidIndex = -1;
for (int i = 0; i < centroids.size(); i++) {
double dist = distance(point, centroids.get(i));
if (dist < minDistance) {
minDistance = dist;
closestCentroidIndex = i;
}
}
return closestCentroidIndex;
}
// 更新质心位置为每个簇的平均值
private void updateCentroids(List<List<Point>> clusters) {
for (int i = 0; i < k; i++) {
double sumX = 0;
double sumY = 0;
List<Point> cluster = clusters.get(i);
int clusterSize = cluster.size();
for (Point point : cluster) {
sumX += point.getX();
sumY += point.getY();
}
if (clusterSize > 0) {
centroids.get(i).setX(sumX / clusterSize);
centroids.get(i).setY(sumY / clusterSize);
}
}
}
// K-means聚类算法
public List<List<Point>> cluster() {
List<List<Point>> clusters=null;
for (int iter = 0; iter < maxIterations; iter++) {
clusters = new ArrayList<>(k);
for (int i = 0; i < k; i++) {
clusters.add(new ArrayList<>());
}
// 分配每个点到最近的质心
for (Point point : points) {
int closestIndex = closestCentroid(point);
clusters.get(closestIndex).add(point);
}
// 更新质心位置
updateCentroids(clusters);
}
// 返回每个簇的点集合
return clusters;
}
// 示例中的数据点类
static class Point {
private double x;
private double y;
public Point(double x, double y) {
this.x = x;
this.y = y;
}
public double getX() {
return x;
}
public double getY() {
return y;
}
public void setX(double x) {
this.x = x;
}
public void setY(double y) {
this.y = y;
}
@Override
public String toString() {
return "(" + x + ", " + y + ")";
}
}
public static void main(String[] args) {
List<KMeans.Point> irisData = readIrisData("D:\\project\\digital_marketing\\src\\main\\java\\com\\sztzjy\\marketing\\controller\\Iris.txt");
int k = 3; // 假设聚为3类
int maxIterations = 100;
KMeans kMeans = new KMeans(k, maxIterations, irisData);
List<List<KMeans.Point>> clusters = kMeans.cluster();
// 打印每个簇的结果
for (int i = 0; i < clusters.size(); i++) {
System.out.println("Cluster " + i + ": " + clusters.get(i));
}
}
private static List<KMeans.Point> readIrisData(String filename) {
List<KMeans.Point> points = new ArrayList<>();
try (BufferedReader br = new BufferedReader(new FileReader(filename))) {
String line;
while ((line = br.readLine()) != null) {
String[] values = line.split(",");
double x = Double.parseDouble(values[0]);
double y = Double.parseDouble(values[1]);
points.add(new KMeans.Point(x, y));
}
} catch (IOException e) {
e.printStackTrace();
}
return points;
}
}

@ -0,0 +1,243 @@
<?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.marketing.mapper.StuBigDataTechnologyTrainingMapper">
<resultMap id="BaseResultMap" type="com.sztzjy.marketing.entity.StuBigDataTechnologyTraining">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="topic_number" jdbcType="INTEGER" property="topicNumber" />
<result column="topic_type" jdbcType="INTEGER" property="topicType" />
<result column="topic_name" jdbcType="VARCHAR" property="topicName" />
<result column="topic_option" jdbcType="VARCHAR" property="topicOption" />
<result column="topic_answer" jdbcType="VARCHAR" property="topicAnswer" />
<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">
id, topic_number, topic_type, topic_name, topic_option, topic_answer, module
</sql>
<select id="selectByExample" parameterType="com.sztzjy.marketing.entity.StuBigDataTechnologyTrainingExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from stu_big_data_technology_training
<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_big_data_technology_training
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from stu_big_data_technology_training
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.sztzjy.marketing.entity.StuBigDataTechnologyTrainingExample">
delete from stu_big_data_technology_training
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.sztzjy.marketing.entity.StuBigDataTechnologyTraining">
insert into stu_big_data_technology_training (id, topic_number, topic_type,
topic_name, topic_option, topic_answer,
module)
values (#{id,jdbcType=INTEGER}, #{topicNumber,jdbcType=INTEGER}, #{topicType,jdbcType=INTEGER},
#{topicName,jdbcType=VARCHAR}, #{topicOption,jdbcType=VARCHAR}, #{topicAnswer,jdbcType=VARCHAR},
#{module,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.sztzjy.marketing.entity.StuBigDataTechnologyTraining">
insert into stu_big_data_technology_training
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="topicNumber != null">
topic_number,
</if>
<if test="topicType != null">
topic_type,
</if>
<if test="topicName != null">
topic_name,
</if>
<if test="topicOption != null">
topic_option,
</if>
<if test="topicAnswer != null">
topic_answer,
</if>
<if test="module != null">
module,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="topicNumber != null">
#{topicNumber,jdbcType=INTEGER},
</if>
<if test="topicType != null">
#{topicType,jdbcType=INTEGER},
</if>
<if test="topicName != null">
#{topicName,jdbcType=VARCHAR},
</if>
<if test="topicOption != null">
#{topicOption,jdbcType=VARCHAR},
</if>
<if test="topicAnswer != null">
#{topicAnswer,jdbcType=VARCHAR},
</if>
<if test="module != null">
#{module,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.sztzjy.marketing.entity.StuBigDataTechnologyTrainingExample" resultType="java.lang.Long">
select count(*) from stu_big_data_technology_training
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update stu_big_data_technology_training
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.topicNumber != null">
topic_number = #{record.topicNumber,jdbcType=INTEGER},
</if>
<if test="record.topicType != null">
topic_type = #{record.topicType,jdbcType=INTEGER},
</if>
<if test="record.topicName != null">
topic_name = #{record.topicName,jdbcType=VARCHAR},
</if>
<if test="record.topicOption != null">
topic_option = #{record.topicOption,jdbcType=VARCHAR},
</if>
<if test="record.topicAnswer != null">
topic_answer = #{record.topicAnswer,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_big_data_technology_training
set id = #{record.id,jdbcType=INTEGER},
topic_number = #{record.topicNumber,jdbcType=INTEGER},
topic_type = #{record.topicType,jdbcType=INTEGER},
topic_name = #{record.topicName,jdbcType=VARCHAR},
topic_option = #{record.topicOption,jdbcType=VARCHAR},
topic_answer = #{record.topicAnswer,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.marketing.entity.StuBigDataTechnologyTraining">
update stu_big_data_technology_training
<set>
<if test="topicNumber != null">
topic_number = #{topicNumber,jdbcType=INTEGER},
</if>
<if test="topicType != null">
topic_type = #{topicType,jdbcType=INTEGER},
</if>
<if test="topicName != null">
topic_name = #{topicName,jdbcType=VARCHAR},
</if>
<if test="topicOption != null">
topic_option = #{topicOption,jdbcType=VARCHAR},
</if>
<if test="topicAnswer != null">
topic_answer = #{topicAnswer,jdbcType=VARCHAR},
</if>
<if test="module != null">
module = #{module,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.sztzjy.marketing.entity.StuBigDataTechnologyTraining">
update stu_big_data_technology_training
set topic_number = #{topicNumber,jdbcType=INTEGER},
topic_type = #{topicType,jdbcType=INTEGER},
topic_name = #{topicName,jdbcType=VARCHAR},
topic_option = #{topicOption,jdbcType=VARCHAR},
topic_answer = #{topicAnswer,jdbcType=VARCHAR},
module = #{module,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>

@ -0,0 +1,733 @@
<?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.marketing.mapper.StuDigServiceTradeMapper">
<resultMap id="BaseResultMap" type="com.sztzjy.marketing.entity.StuDigServiceTrade">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="demo_tax_number" jdbcType="VARCHAR" property="demoTaxNumber" />
<result column="demo_type" jdbcType="VARCHAR" property="demoType" />
<result column="demo_leg_person" jdbcType="VARCHAR" property="demoLegPerson" />
<result column="dome_tel" jdbcType="VARCHAR" property="domeTel" />
<result column="dome_pwd" jdbcType="VARCHAR" property="domePwd" />
<result column="dome_code" jdbcType="VARCHAR" property="domeCode" />
<result column="dome_license" jdbcType="VARCHAR" property="domeLicense" />
<result column="dome_model" jdbcType="VARCHAR" property="domeModel" />
<result column="doem_introduce" jdbcType="VARCHAR" property="doemIntroduce" />
<result column="abroad_code" jdbcType="VARCHAR" property="abroadCode" />
<result column="abroad_pwd" jdbcType="VARCHAR" property="abroadPwd" />
<result column="abroad_bus_reg" jdbcType="VARCHAR" property="abroadBusReg" />
<result column="abroad_model" jdbcType="VARCHAR" property="abroadModel" />
<result column="abroad_type" jdbcType="VARCHAR" property="abroadType" />
<result column="abroad_introduce" jdbcType="VARCHAR" property="abroadIntroduce" />
<result column="inquiry" jdbcType="VARCHAR" property="inquiry" />
<result column="user_id" jdbcType="VARCHAR" property="userId" />
<result column="sub_state" jdbcType="INTEGER" property="subState" />
<result column="abroad_person" jdbcType="VARCHAR" property="abroadPerson" />
<result column="abroad_tel" jdbcType="VARCHAR" property="abroadTel" />
<result column="step_five_a" jdbcType="VARCHAR" property="stepFiveA" />
<result column="step_five_b" jdbcType="VARCHAR" property="stepFiveB" />
<result column="step_five_c" jdbcType="VARCHAR" property="stepFiveC" />
<result column="step_five_d" jdbcType="VARCHAR" property="stepFiveD" />
<result column="step_six_a" jdbcType="VARCHAR" property="stepSixA" />
<result column="step_six_b" jdbcType="VARCHAR" property="stepSixB" />
<result column="step_six_c" jdbcType="VARCHAR" property="stepSixC" />
<result column="step_six_d" jdbcType="VARCHAR" property="stepSixD" />
<result column="step_seven" jdbcType="VARCHAR" property="stepSeven" />
<result column="step_ten_a" jdbcType="VARCHAR" property="stepTenA" />
<result column="step_ten_b" jdbcType="VARCHAR" property="stepTenB" />
<result column="step_ten_c" jdbcType="VARCHAR" property="stepTenC" />
<result column="step_ten_d" jdbcType="VARCHAR" property="stepTenD" />
<result column="step_tene_a" jdbcType="VARCHAR" property="stepTeneA" />
<result column="step_tene_b" jdbcType="VARCHAR" property="stepTeneB" />
<result column="step_tene_c" jdbcType="VARCHAR" property="stepTeneC" />
<result column="step_tene_d" jdbcType="VARCHAR" property="stepTeneD" />
</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">
id, demo_tax_number, demo_type, demo_leg_person, dome_tel, dome_pwd, dome_code, dome_license,
dome_model, doem_introduce, abroad_code, abroad_pwd, abroad_bus_reg, abroad_model,
abroad_type, abroad_introduce, inquiry, user_id, sub_state, abroad_person, abroad_tel,
step_five_a, step_five_b, step_five_c, step_five_d, step_six_a, step_six_b, step_six_c,
step_six_d, step_seven, step_ten_a, step_ten_b, step_ten_c, step_ten_d, step_tene_a,
step_tene_b, step_tene_c, step_tene_d
</sql>
<select id="selectByExample" parameterType="com.sztzjy.marketing.entity.StuDigServiceTradeExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from stu_dig_service_trade
<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_dig_service_trade
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from stu_dig_service_trade
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.sztzjy.marketing.entity.StuDigServiceTradeExample">
delete from stu_dig_service_trade
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.sztzjy.marketing.entity.StuDigServiceTrade">
insert into stu_dig_service_trade (id, demo_tax_number, demo_type,
demo_leg_person, dome_tel, dome_pwd,
dome_code, dome_license, dome_model,
doem_introduce, abroad_code, abroad_pwd,
abroad_bus_reg, abroad_model, abroad_type,
abroad_introduce, inquiry, user_id,
sub_state, abroad_person, abroad_tel,
step_five_a, step_five_b, step_five_c,
step_five_d, step_six_a, step_six_b,
step_six_c, step_six_d, step_seven,
step_ten_a, step_ten_b, step_ten_c,
step_ten_d, step_tene_a, step_tene_b,
step_tene_c, step_tene_d)
values (#{id,jdbcType=INTEGER}, #{demoTaxNumber,jdbcType=VARCHAR}, #{demoType,jdbcType=VARCHAR},
#{demoLegPerson,jdbcType=VARCHAR}, #{domeTel,jdbcType=VARCHAR}, #{domePwd,jdbcType=VARCHAR},
#{domeCode,jdbcType=VARCHAR}, #{domeLicense,jdbcType=VARCHAR}, #{domeModel,jdbcType=VARCHAR},
#{doemIntroduce,jdbcType=VARCHAR}, #{abroadCode,jdbcType=VARCHAR}, #{abroadPwd,jdbcType=VARCHAR},
#{abroadBusReg,jdbcType=VARCHAR}, #{abroadModel,jdbcType=VARCHAR}, #{abroadType,jdbcType=VARCHAR},
#{abroadIntroduce,jdbcType=VARCHAR}, #{inquiry,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR},
#{subState,jdbcType=INTEGER}, #{abroadPerson,jdbcType=VARCHAR}, #{abroadTel,jdbcType=VARCHAR},
#{stepFiveA,jdbcType=VARCHAR}, #{stepFiveB,jdbcType=VARCHAR}, #{stepFiveC,jdbcType=VARCHAR},
#{stepFiveD,jdbcType=VARCHAR}, #{stepSixA,jdbcType=VARCHAR}, #{stepSixB,jdbcType=VARCHAR},
#{stepSixC,jdbcType=VARCHAR}, #{stepSixD,jdbcType=VARCHAR}, #{stepSeven,jdbcType=VARCHAR},
#{stepTenA,jdbcType=VARCHAR}, #{stepTenB,jdbcType=VARCHAR}, #{stepTenC,jdbcType=VARCHAR},
#{stepTenD,jdbcType=VARCHAR}, #{stepTeneA,jdbcType=VARCHAR}, #{stepTeneB,jdbcType=VARCHAR},
#{stepTeneC,jdbcType=VARCHAR}, #{stepTeneD,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.sztzjy.marketing.entity.StuDigServiceTrade">
insert into stu_dig_service_trade
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="demoTaxNumber != null">
demo_tax_number,
</if>
<if test="demoType != null">
demo_type,
</if>
<if test="demoLegPerson != null">
demo_leg_person,
</if>
<if test="domeTel != null">
dome_tel,
</if>
<if test="domePwd != null">
dome_pwd,
</if>
<if test="domeCode != null">
dome_code,
</if>
<if test="domeLicense != null">
dome_license,
</if>
<if test="domeModel != null">
dome_model,
</if>
<if test="doemIntroduce != null">
doem_introduce,
</if>
<if test="abroadCode != null">
abroad_code,
</if>
<if test="abroadPwd != null">
abroad_pwd,
</if>
<if test="abroadBusReg != null">
abroad_bus_reg,
</if>
<if test="abroadModel != null">
abroad_model,
</if>
<if test="abroadType != null">
abroad_type,
</if>
<if test="abroadIntroduce != null">
abroad_introduce,
</if>
<if test="inquiry != null">
inquiry,
</if>
<if test="userId != null">
user_id,
</if>
<if test="subState != null">
sub_state,
</if>
<if test="abroadPerson != null">
abroad_person,
</if>
<if test="abroadTel != null">
abroad_tel,
</if>
<if test="stepFiveA != null">
step_five_a,
</if>
<if test="stepFiveB != null">
step_five_b,
</if>
<if test="stepFiveC != null">
step_five_c,
</if>
<if test="stepFiveD != null">
step_five_d,
</if>
<if test="stepSixA != null">
step_six_a,
</if>
<if test="stepSixB != null">
step_six_b,
</if>
<if test="stepSixC != null">
step_six_c,
</if>
<if test="stepSixD != null">
step_six_d,
</if>
<if test="stepSeven != null">
step_seven,
</if>
<if test="stepTenA != null">
step_ten_a,
</if>
<if test="stepTenB != null">
step_ten_b,
</if>
<if test="stepTenC != null">
step_ten_c,
</if>
<if test="stepTenD != null">
step_ten_d,
</if>
<if test="stepTeneA != null">
step_tene_a,
</if>
<if test="stepTeneB != null">
step_tene_b,
</if>
<if test="stepTeneC != null">
step_tene_c,
</if>
<if test="stepTeneD != null">
step_tene_d,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="demoTaxNumber != null">
#{demoTaxNumber,jdbcType=VARCHAR},
</if>
<if test="demoType != null">
#{demoType,jdbcType=VARCHAR},
</if>
<if test="demoLegPerson != null">
#{demoLegPerson,jdbcType=VARCHAR},
</if>
<if test="domeTel != null">
#{domeTel,jdbcType=VARCHAR},
</if>
<if test="domePwd != null">
#{domePwd,jdbcType=VARCHAR},
</if>
<if test="domeCode != null">
#{domeCode,jdbcType=VARCHAR},
</if>
<if test="domeLicense != null">
#{domeLicense,jdbcType=VARCHAR},
</if>
<if test="domeModel != null">
#{domeModel,jdbcType=VARCHAR},
</if>
<if test="doemIntroduce != null">
#{doemIntroduce,jdbcType=VARCHAR},
</if>
<if test="abroadCode != null">
#{abroadCode,jdbcType=VARCHAR},
</if>
<if test="abroadPwd != null">
#{abroadPwd,jdbcType=VARCHAR},
</if>
<if test="abroadBusReg != null">
#{abroadBusReg,jdbcType=VARCHAR},
</if>
<if test="abroadModel != null">
#{abroadModel,jdbcType=VARCHAR},
</if>
<if test="abroadType != null">
#{abroadType,jdbcType=VARCHAR},
</if>
<if test="abroadIntroduce != null">
#{abroadIntroduce,jdbcType=VARCHAR},
</if>
<if test="inquiry != null">
#{inquiry,jdbcType=VARCHAR},
</if>
<if test="userId != null">
#{userId,jdbcType=VARCHAR},
</if>
<if test="subState != null">
#{subState,jdbcType=INTEGER},
</if>
<if test="abroadPerson != null">
#{abroadPerson,jdbcType=VARCHAR},
</if>
<if test="abroadTel != null">
#{abroadTel,jdbcType=VARCHAR},
</if>
<if test="stepFiveA != null">
#{stepFiveA,jdbcType=VARCHAR},
</if>
<if test="stepFiveB != null">
#{stepFiveB,jdbcType=VARCHAR},
</if>
<if test="stepFiveC != null">
#{stepFiveC,jdbcType=VARCHAR},
</if>
<if test="stepFiveD != null">
#{stepFiveD,jdbcType=VARCHAR},
</if>
<if test="stepSixA != null">
#{stepSixA,jdbcType=VARCHAR},
</if>
<if test="stepSixB != null">
#{stepSixB,jdbcType=VARCHAR},
</if>
<if test="stepSixC != null">
#{stepSixC,jdbcType=VARCHAR},
</if>
<if test="stepSixD != null">
#{stepSixD,jdbcType=VARCHAR},
</if>
<if test="stepSeven != null">
#{stepSeven,jdbcType=VARCHAR},
</if>
<if test="stepTenA != null">
#{stepTenA,jdbcType=VARCHAR},
</if>
<if test="stepTenB != null">
#{stepTenB,jdbcType=VARCHAR},
</if>
<if test="stepTenC != null">
#{stepTenC,jdbcType=VARCHAR},
</if>
<if test="stepTenD != null">
#{stepTenD,jdbcType=VARCHAR},
</if>
<if test="stepTeneA != null">
#{stepTeneA,jdbcType=VARCHAR},
</if>
<if test="stepTeneB != null">
#{stepTeneB,jdbcType=VARCHAR},
</if>
<if test="stepTeneC != null">
#{stepTeneC,jdbcType=VARCHAR},
</if>
<if test="stepTeneD != null">
#{stepTeneD,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.sztzjy.marketing.entity.StuDigServiceTradeExample" resultType="java.lang.Long">
select count(*) from stu_dig_service_trade
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update stu_dig_service_trade
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.demoTaxNumber != null">
demo_tax_number = #{record.demoTaxNumber,jdbcType=VARCHAR},
</if>
<if test="record.demoType != null">
demo_type = #{record.demoType,jdbcType=VARCHAR},
</if>
<if test="record.demoLegPerson != null">
demo_leg_person = #{record.demoLegPerson,jdbcType=VARCHAR},
</if>
<if test="record.domeTel != null">
dome_tel = #{record.domeTel,jdbcType=VARCHAR},
</if>
<if test="record.domePwd != null">
dome_pwd = #{record.domePwd,jdbcType=VARCHAR},
</if>
<if test="record.domeCode != null">
dome_code = #{record.domeCode,jdbcType=VARCHAR},
</if>
<if test="record.domeLicense != null">
dome_license = #{record.domeLicense,jdbcType=VARCHAR},
</if>
<if test="record.domeModel != null">
dome_model = #{record.domeModel,jdbcType=VARCHAR},
</if>
<if test="record.doemIntroduce != null">
doem_introduce = #{record.doemIntroduce,jdbcType=VARCHAR},
</if>
<if test="record.abroadCode != null">
abroad_code = #{record.abroadCode,jdbcType=VARCHAR},
</if>
<if test="record.abroadPwd != null">
abroad_pwd = #{record.abroadPwd,jdbcType=VARCHAR},
</if>
<if test="record.abroadBusReg != null">
abroad_bus_reg = #{record.abroadBusReg,jdbcType=VARCHAR},
</if>
<if test="record.abroadModel != null">
abroad_model = #{record.abroadModel,jdbcType=VARCHAR},
</if>
<if test="record.abroadType != null">
abroad_type = #{record.abroadType,jdbcType=VARCHAR},
</if>
<if test="record.abroadIntroduce != null">
abroad_introduce = #{record.abroadIntroduce,jdbcType=VARCHAR},
</if>
<if test="record.inquiry != null">
inquiry = #{record.inquiry,jdbcType=VARCHAR},
</if>
<if test="record.userId != null">
user_id = #{record.userId,jdbcType=VARCHAR},
</if>
<if test="record.subState != null">
sub_state = #{record.subState,jdbcType=INTEGER},
</if>
<if test="record.abroadPerson != null">
abroad_person = #{record.abroadPerson,jdbcType=VARCHAR},
</if>
<if test="record.abroadTel != null">
abroad_tel = #{record.abroadTel,jdbcType=VARCHAR},
</if>
<if test="record.stepFiveA != null">
step_five_a = #{record.stepFiveA,jdbcType=VARCHAR},
</if>
<if test="record.stepFiveB != null">
step_five_b = #{record.stepFiveB,jdbcType=VARCHAR},
</if>
<if test="record.stepFiveC != null">
step_five_c = #{record.stepFiveC,jdbcType=VARCHAR},
</if>
<if test="record.stepFiveD != null">
step_five_d = #{record.stepFiveD,jdbcType=VARCHAR},
</if>
<if test="record.stepSixA != null">
step_six_a = #{record.stepSixA,jdbcType=VARCHAR},
</if>
<if test="record.stepSixB != null">
step_six_b = #{record.stepSixB,jdbcType=VARCHAR},
</if>
<if test="record.stepSixC != null">
step_six_c = #{record.stepSixC,jdbcType=VARCHAR},
</if>
<if test="record.stepSixD != null">
step_six_d = #{record.stepSixD,jdbcType=VARCHAR},
</if>
<if test="record.stepSeven != null">
step_seven = #{record.stepSeven,jdbcType=VARCHAR},
</if>
<if test="record.stepTenA != null">
step_ten_a = #{record.stepTenA,jdbcType=VARCHAR},
</if>
<if test="record.stepTenB != null">
step_ten_b = #{record.stepTenB,jdbcType=VARCHAR},
</if>
<if test="record.stepTenC != null">
step_ten_c = #{record.stepTenC,jdbcType=VARCHAR},
</if>
<if test="record.stepTenD != null">
step_ten_d = #{record.stepTenD,jdbcType=VARCHAR},
</if>
<if test="record.stepTeneA != null">
step_tene_a = #{record.stepTeneA,jdbcType=VARCHAR},
</if>
<if test="record.stepTeneB != null">
step_tene_b = #{record.stepTeneB,jdbcType=VARCHAR},
</if>
<if test="record.stepTeneC != null">
step_tene_c = #{record.stepTeneC,jdbcType=VARCHAR},
</if>
<if test="record.stepTeneD != null">
step_tene_d = #{record.stepTeneD,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update stu_dig_service_trade
set id = #{record.id,jdbcType=INTEGER},
demo_tax_number = #{record.demoTaxNumber,jdbcType=VARCHAR},
demo_type = #{record.demoType,jdbcType=VARCHAR},
demo_leg_person = #{record.demoLegPerson,jdbcType=VARCHAR},
dome_tel = #{record.domeTel,jdbcType=VARCHAR},
dome_pwd = #{record.domePwd,jdbcType=VARCHAR},
dome_code = #{record.domeCode,jdbcType=VARCHAR},
dome_license = #{record.domeLicense,jdbcType=VARCHAR},
dome_model = #{record.domeModel,jdbcType=VARCHAR},
doem_introduce = #{record.doemIntroduce,jdbcType=VARCHAR},
abroad_code = #{record.abroadCode,jdbcType=VARCHAR},
abroad_pwd = #{record.abroadPwd,jdbcType=VARCHAR},
abroad_bus_reg = #{record.abroadBusReg,jdbcType=VARCHAR},
abroad_model = #{record.abroadModel,jdbcType=VARCHAR},
abroad_type = #{record.abroadType,jdbcType=VARCHAR},
abroad_introduce = #{record.abroadIntroduce,jdbcType=VARCHAR},
inquiry = #{record.inquiry,jdbcType=VARCHAR},
user_id = #{record.userId,jdbcType=VARCHAR},
sub_state = #{record.subState,jdbcType=INTEGER},
abroad_person = #{record.abroadPerson,jdbcType=VARCHAR},
abroad_tel = #{record.abroadTel,jdbcType=VARCHAR},
step_five_a = #{record.stepFiveA,jdbcType=VARCHAR},
step_five_b = #{record.stepFiveB,jdbcType=VARCHAR},
step_five_c = #{record.stepFiveC,jdbcType=VARCHAR},
step_five_d = #{record.stepFiveD,jdbcType=VARCHAR},
step_six_a = #{record.stepSixA,jdbcType=VARCHAR},
step_six_b = #{record.stepSixB,jdbcType=VARCHAR},
step_six_c = #{record.stepSixC,jdbcType=VARCHAR},
step_six_d = #{record.stepSixD,jdbcType=VARCHAR},
step_seven = #{record.stepSeven,jdbcType=VARCHAR},
step_ten_a = #{record.stepTenA,jdbcType=VARCHAR},
step_ten_b = #{record.stepTenB,jdbcType=VARCHAR},
step_ten_c = #{record.stepTenC,jdbcType=VARCHAR},
step_ten_d = #{record.stepTenD,jdbcType=VARCHAR},
step_tene_a = #{record.stepTeneA,jdbcType=VARCHAR},
step_tene_b = #{record.stepTeneB,jdbcType=VARCHAR},
step_tene_c = #{record.stepTeneC,jdbcType=VARCHAR},
step_tene_d = #{record.stepTeneD,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.marketing.entity.StuDigServiceTrade">
update stu_dig_service_trade
<set>
<if test="demoTaxNumber != null">
demo_tax_number = #{demoTaxNumber,jdbcType=VARCHAR},
</if>
<if test="demoType != null">
demo_type = #{demoType,jdbcType=VARCHAR},
</if>
<if test="demoLegPerson != null">
demo_leg_person = #{demoLegPerson,jdbcType=VARCHAR},
</if>
<if test="domeTel != null">
dome_tel = #{domeTel,jdbcType=VARCHAR},
</if>
<if test="domePwd != null">
dome_pwd = #{domePwd,jdbcType=VARCHAR},
</if>
<if test="domeCode != null">
dome_code = #{domeCode,jdbcType=VARCHAR},
</if>
<if test="domeLicense != null">
dome_license = #{domeLicense,jdbcType=VARCHAR},
</if>
<if test="domeModel != null">
dome_model = #{domeModel,jdbcType=VARCHAR},
</if>
<if test="doemIntroduce != null">
doem_introduce = #{doemIntroduce,jdbcType=VARCHAR},
</if>
<if test="abroadCode != null">
abroad_code = #{abroadCode,jdbcType=VARCHAR},
</if>
<if test="abroadPwd != null">
abroad_pwd = #{abroadPwd,jdbcType=VARCHAR},
</if>
<if test="abroadBusReg != null">
abroad_bus_reg = #{abroadBusReg,jdbcType=VARCHAR},
</if>
<if test="abroadModel != null">
abroad_model = #{abroadModel,jdbcType=VARCHAR},
</if>
<if test="abroadType != null">
abroad_type = #{abroadType,jdbcType=VARCHAR},
</if>
<if test="abroadIntroduce != null">
abroad_introduce = #{abroadIntroduce,jdbcType=VARCHAR},
</if>
<if test="inquiry != null">
inquiry = #{inquiry,jdbcType=VARCHAR},
</if>
<if test="userId != null">
user_id = #{userId,jdbcType=VARCHAR},
</if>
<if test="subState != null">
sub_state = #{subState,jdbcType=INTEGER},
</if>
<if test="abroadPerson != null">
abroad_person = #{abroadPerson,jdbcType=VARCHAR},
</if>
<if test="abroadTel != null">
abroad_tel = #{abroadTel,jdbcType=VARCHAR},
</if>
<if test="stepFiveA != null">
step_five_a = #{stepFiveA,jdbcType=VARCHAR},
</if>
<if test="stepFiveB != null">
step_five_b = #{stepFiveB,jdbcType=VARCHAR},
</if>
<if test="stepFiveC != null">
step_five_c = #{stepFiveC,jdbcType=VARCHAR},
</if>
<if test="stepFiveD != null">
step_five_d = #{stepFiveD,jdbcType=VARCHAR},
</if>
<if test="stepSixA != null">
step_six_a = #{stepSixA,jdbcType=VARCHAR},
</if>
<if test="stepSixB != null">
step_six_b = #{stepSixB,jdbcType=VARCHAR},
</if>
<if test="stepSixC != null">
step_six_c = #{stepSixC,jdbcType=VARCHAR},
</if>
<if test="stepSixD != null">
step_six_d = #{stepSixD,jdbcType=VARCHAR},
</if>
<if test="stepSeven != null">
step_seven = #{stepSeven,jdbcType=VARCHAR},
</if>
<if test="stepTenA != null">
step_ten_a = #{stepTenA,jdbcType=VARCHAR},
</if>
<if test="stepTenB != null">
step_ten_b = #{stepTenB,jdbcType=VARCHAR},
</if>
<if test="stepTenC != null">
step_ten_c = #{stepTenC,jdbcType=VARCHAR},
</if>
<if test="stepTenD != null">
step_ten_d = #{stepTenD,jdbcType=VARCHAR},
</if>
<if test="stepTeneA != null">
step_tene_a = #{stepTeneA,jdbcType=VARCHAR},
</if>
<if test="stepTeneB != null">
step_tene_b = #{stepTeneB,jdbcType=VARCHAR},
</if>
<if test="stepTeneC != null">
step_tene_c = #{stepTeneC,jdbcType=VARCHAR},
</if>
<if test="stepTeneD != null">
step_tene_d = #{stepTeneD,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.sztzjy.marketing.entity.StuDigServiceTrade">
update stu_dig_service_trade
set demo_tax_number = #{demoTaxNumber,jdbcType=VARCHAR},
demo_type = #{demoType,jdbcType=VARCHAR},
demo_leg_person = #{demoLegPerson,jdbcType=VARCHAR},
dome_tel = #{domeTel,jdbcType=VARCHAR},
dome_pwd = #{domePwd,jdbcType=VARCHAR},
dome_code = #{domeCode,jdbcType=VARCHAR},
dome_license = #{domeLicense,jdbcType=VARCHAR},
dome_model = #{domeModel,jdbcType=VARCHAR},
doem_introduce = #{doemIntroduce,jdbcType=VARCHAR},
abroad_code = #{abroadCode,jdbcType=VARCHAR},
abroad_pwd = #{abroadPwd,jdbcType=VARCHAR},
abroad_bus_reg = #{abroadBusReg,jdbcType=VARCHAR},
abroad_model = #{abroadModel,jdbcType=VARCHAR},
abroad_type = #{abroadType,jdbcType=VARCHAR},
abroad_introduce = #{abroadIntroduce,jdbcType=VARCHAR},
inquiry = #{inquiry,jdbcType=VARCHAR},
user_id = #{userId,jdbcType=VARCHAR},
sub_state = #{subState,jdbcType=INTEGER},
abroad_person = #{abroadPerson,jdbcType=VARCHAR},
abroad_tel = #{abroadTel,jdbcType=VARCHAR},
step_five_a = #{stepFiveA,jdbcType=VARCHAR},
step_five_b = #{stepFiveB,jdbcType=VARCHAR},
step_five_c = #{stepFiveC,jdbcType=VARCHAR},
step_five_d = #{stepFiveD,jdbcType=VARCHAR},
step_six_a = #{stepSixA,jdbcType=VARCHAR},
step_six_b = #{stepSixB,jdbcType=VARCHAR},
step_six_c = #{stepSixC,jdbcType=VARCHAR},
step_six_d = #{stepSixD,jdbcType=VARCHAR},
step_seven = #{stepSeven,jdbcType=VARCHAR},
step_ten_a = #{stepTenA,jdbcType=VARCHAR},
step_ten_b = #{stepTenB,jdbcType=VARCHAR},
step_ten_c = #{stepTenC,jdbcType=VARCHAR},
step_ten_d = #{stepTenD,jdbcType=VARCHAR},
step_tene_a = #{stepTeneA,jdbcType=VARCHAR},
step_tene_b = #{stepTeneB,jdbcType=VARCHAR},
step_tene_c = #{stepTeneC,jdbcType=VARCHAR},
step_tene_d = #{stepTeneD,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>

@ -0,0 +1,512 @@
<?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.marketing.mapper.StuDigitalConfirmationMapper">
<resultMap id="BaseResultMap" type="com.sztzjy.marketing.entity.StuDigitalConfirmation">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="doc_name" jdbcType="VARCHAR" property="docName" />
<result column="doc_type" jdbcType="VARCHAR" property="docType" />
<result column="doc_page" jdbcType="VARCHAR" property="docPage" />
<result column="pub_key" jdbcType="VARCHAR" property="pubKey" />
<result column="pri_key" jdbcType="VARCHAR" property="priKey" />
<result column="block_hash" jdbcType="VARCHAR" property="blockHash" />
<result column="block_high" jdbcType="VARCHAR" property="blockHigh" />
<result column="assets_id" jdbcType="VARCHAR" property="assetsId" />
<result column="introduction" jdbcType="VARCHAR" property="introduction" />
<result column="user_id" jdbcType="VARCHAR" property="userId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="append" jdbcType="VARCHAR" property="append" />
<result column="excessive" jdbcType="VARCHAR" property="excessive" />
<result column="threePage" jdbcType="VARCHAR" property="threepage" />
<result column="fivePage" jdbcType="VARCHAR" property="fivepage" />
<result column="tenPage" jdbcType="VARCHAR" property="tenpage" />
<result column="allPage" jdbcType="VARCHAR" property="allpage" />
<result column="ownership" jdbcType="VARCHAR" property="ownership" />
<result column="sub_state" jdbcType="INTEGER" property="subState" />
<result column="block_size" jdbcType="VARCHAR" property="blockSize" />
<result column="step" jdbcType="VARCHAR" property="step" />
<result column="confirm" jdbcType="VARCHAR" property="confirm" />
</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">
id, doc_name, doc_type, doc_page, pub_key, pri_key, block_hash, block_high, assets_id,
introduction, user_id, create_time, update_time, append, excessive, threePage, fivePage,
tenPage, allPage, ownership, sub_state, block_size, step, confirm
</sql>
<select id="selectByExample" parameterType="com.sztzjy.marketing.entity.StuDigitalConfirmationExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from stu_digital_confirmation
<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_digital_confirmation
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from stu_digital_confirmation
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.sztzjy.marketing.entity.StuDigitalConfirmationExample">
delete from stu_digital_confirmation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.sztzjy.marketing.entity.StuDigitalConfirmation">
insert into stu_digital_confirmation (id, doc_name, doc_type,
doc_page, pub_key, pri_key,
block_hash, block_high, assets_id,
introduction, user_id, create_time,
update_time, append, excessive,
threePage, fivePage, tenPage,
allPage, ownership, sub_state,
block_size, step, confirm
)
values (#{id,jdbcType=INTEGER}, #{docName,jdbcType=VARCHAR}, #{docType,jdbcType=VARCHAR},
#{docPage,jdbcType=VARCHAR}, #{pubKey,jdbcType=VARCHAR}, #{priKey,jdbcType=VARCHAR},
#{blockHash,jdbcType=VARCHAR}, #{blockHigh,jdbcType=VARCHAR}, #{assetsId,jdbcType=VARCHAR},
#{introduction,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{append,jdbcType=VARCHAR}, #{excessive,jdbcType=VARCHAR},
#{threepage,jdbcType=VARCHAR}, #{fivepage,jdbcType=VARCHAR}, #{tenpage,jdbcType=VARCHAR},
#{allpage,jdbcType=VARCHAR}, #{ownership,jdbcType=VARCHAR}, #{subState,jdbcType=INTEGER},
#{blockSize,jdbcType=VARCHAR}, #{step,jdbcType=VARCHAR}, #{confirm,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.sztzjy.marketing.entity.StuDigitalConfirmation">
insert into stu_digital_confirmation
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="docName != null">
doc_name,
</if>
<if test="docType != null">
doc_type,
</if>
<if test="docPage != null">
doc_page,
</if>
<if test="pubKey != null">
pub_key,
</if>
<if test="priKey != null">
pri_key,
</if>
<if test="blockHash != null">
block_hash,
</if>
<if test="blockHigh != null">
block_high,
</if>
<if test="assetsId != null">
assets_id,
</if>
<if test="introduction != null">
introduction,
</if>
<if test="userId != null">
user_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="append != null">
append,
</if>
<if test="excessive != null">
excessive,
</if>
<if test="threepage != null">
threePage,
</if>
<if test="fivepage != null">
fivePage,
</if>
<if test="tenpage != null">
tenPage,
</if>
<if test="allpage != null">
allPage,
</if>
<if test="ownership != null">
ownership,
</if>
<if test="subState != null">
sub_state,
</if>
<if test="blockSize != null">
block_size,
</if>
<if test="step != null">
step,
</if>
<if test="confirm != null">
confirm,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="docName != null">
#{docName,jdbcType=VARCHAR},
</if>
<if test="docType != null">
#{docType,jdbcType=VARCHAR},
</if>
<if test="docPage != null">
#{docPage,jdbcType=VARCHAR},
</if>
<if test="pubKey != null">
#{pubKey,jdbcType=VARCHAR},
</if>
<if test="priKey != null">
#{priKey,jdbcType=VARCHAR},
</if>
<if test="blockHash != null">
#{blockHash,jdbcType=VARCHAR},
</if>
<if test="blockHigh != null">
#{blockHigh,jdbcType=VARCHAR},
</if>
<if test="assetsId != null">
#{assetsId,jdbcType=VARCHAR},
</if>
<if test="introduction != null">
#{introduction,jdbcType=VARCHAR},
</if>
<if test="userId != null">
#{userId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="append != null">
#{append,jdbcType=VARCHAR},
</if>
<if test="excessive != null">
#{excessive,jdbcType=VARCHAR},
</if>
<if test="threepage != null">
#{threepage,jdbcType=VARCHAR},
</if>
<if test="fivepage != null">
#{fivepage,jdbcType=VARCHAR},
</if>
<if test="tenpage != null">
#{tenpage,jdbcType=VARCHAR},
</if>
<if test="allpage != null">
#{allpage,jdbcType=VARCHAR},
</if>
<if test="ownership != null">
#{ownership,jdbcType=VARCHAR},
</if>
<if test="subState != null">
#{subState,jdbcType=INTEGER},
</if>
<if test="blockSize != null">
#{blockSize,jdbcType=VARCHAR},
</if>
<if test="step != null">
#{step,jdbcType=VARCHAR},
</if>
<if test="confirm != null">
#{confirm,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.sztzjy.marketing.entity.StuDigitalConfirmationExample" resultType="java.lang.Long">
select count(*) from stu_digital_confirmation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update stu_digital_confirmation
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.docName != null">
doc_name = #{record.docName,jdbcType=VARCHAR},
</if>
<if test="record.docType != null">
doc_type = #{record.docType,jdbcType=VARCHAR},
</if>
<if test="record.docPage != null">
doc_page = #{record.docPage,jdbcType=VARCHAR},
</if>
<if test="record.pubKey != null">
pub_key = #{record.pubKey,jdbcType=VARCHAR},
</if>
<if test="record.priKey != null">
pri_key = #{record.priKey,jdbcType=VARCHAR},
</if>
<if test="record.blockHash != null">
block_hash = #{record.blockHash,jdbcType=VARCHAR},
</if>
<if test="record.blockHigh != null">
block_high = #{record.blockHigh,jdbcType=VARCHAR},
</if>
<if test="record.assetsId != null">
assets_id = #{record.assetsId,jdbcType=VARCHAR},
</if>
<if test="record.introduction != null">
introduction = #{record.introduction,jdbcType=VARCHAR},
</if>
<if test="record.userId != null">
user_id = #{record.userId,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.append != null">
append = #{record.append,jdbcType=VARCHAR},
</if>
<if test="record.excessive != null">
excessive = #{record.excessive,jdbcType=VARCHAR},
</if>
<if test="record.threepage != null">
threePage = #{record.threepage,jdbcType=VARCHAR},
</if>
<if test="record.fivepage != null">
fivePage = #{record.fivepage,jdbcType=VARCHAR},
</if>
<if test="record.tenpage != null">
tenPage = #{record.tenpage,jdbcType=VARCHAR},
</if>
<if test="record.allpage != null">
allPage = #{record.allpage,jdbcType=VARCHAR},
</if>
<if test="record.ownership != null">
ownership = #{record.ownership,jdbcType=VARCHAR},
</if>
<if test="record.subState != null">
sub_state = #{record.subState,jdbcType=INTEGER},
</if>
<if test="record.blockSize != null">
block_size = #{record.blockSize,jdbcType=VARCHAR},
</if>
<if test="record.step != null">
step = #{record.step,jdbcType=VARCHAR},
</if>
<if test="record.confirm != null">
confirm = #{record.confirm,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update stu_digital_confirmation
set id = #{record.id,jdbcType=INTEGER},
doc_name = #{record.docName,jdbcType=VARCHAR},
doc_type = #{record.docType,jdbcType=VARCHAR},
doc_page = #{record.docPage,jdbcType=VARCHAR},
pub_key = #{record.pubKey,jdbcType=VARCHAR},
pri_key = #{record.priKey,jdbcType=VARCHAR},
block_hash = #{record.blockHash,jdbcType=VARCHAR},
block_high = #{record.blockHigh,jdbcType=VARCHAR},
assets_id = #{record.assetsId,jdbcType=VARCHAR},
introduction = #{record.introduction,jdbcType=VARCHAR},
user_id = #{record.userId,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
append = #{record.append,jdbcType=VARCHAR},
excessive = #{record.excessive,jdbcType=VARCHAR},
threePage = #{record.threepage,jdbcType=VARCHAR},
fivePage = #{record.fivepage,jdbcType=VARCHAR},
tenPage = #{record.tenpage,jdbcType=VARCHAR},
allPage = #{record.allpage,jdbcType=VARCHAR},
ownership = #{record.ownership,jdbcType=VARCHAR},
sub_state = #{record.subState,jdbcType=INTEGER},
block_size = #{record.blockSize,jdbcType=VARCHAR},
step = #{record.step,jdbcType=VARCHAR},
confirm = #{record.confirm,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.marketing.entity.StuDigitalConfirmation">
update stu_digital_confirmation
<set>
<if test="docName != null">
doc_name = #{docName,jdbcType=VARCHAR},
</if>
<if test="docType != null">
doc_type = #{docType,jdbcType=VARCHAR},
</if>
<if test="docPage != null">
doc_page = #{docPage,jdbcType=VARCHAR},
</if>
<if test="pubKey != null">
pub_key = #{pubKey,jdbcType=VARCHAR},
</if>
<if test="priKey != null">
pri_key = #{priKey,jdbcType=VARCHAR},
</if>
<if test="blockHash != null">
block_hash = #{blockHash,jdbcType=VARCHAR},
</if>
<if test="blockHigh != null">
block_high = #{blockHigh,jdbcType=VARCHAR},
</if>
<if test="assetsId != null">
assets_id = #{assetsId,jdbcType=VARCHAR},
</if>
<if test="introduction != null">
introduction = #{introduction,jdbcType=VARCHAR},
</if>
<if test="userId != null">
user_id = #{userId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="append != null">
append = #{append,jdbcType=VARCHAR},
</if>
<if test="excessive != null">
excessive = #{excessive,jdbcType=VARCHAR},
</if>
<if test="threepage != null">
threePage = #{threepage,jdbcType=VARCHAR},
</if>
<if test="fivepage != null">
fivePage = #{fivepage,jdbcType=VARCHAR},
</if>
<if test="tenpage != null">
tenPage = #{tenpage,jdbcType=VARCHAR},
</if>
<if test="allpage != null">
allPage = #{allpage,jdbcType=VARCHAR},
</if>
<if test="ownership != null">
ownership = #{ownership,jdbcType=VARCHAR},
</if>
<if test="subState != null">
sub_state = #{subState,jdbcType=INTEGER},
</if>
<if test="blockSize != null">
block_size = #{blockSize,jdbcType=VARCHAR},
</if>
<if test="step != null">
step = #{step,jdbcType=VARCHAR},
</if>
<if test="confirm != null">
confirm = #{confirm,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.sztzjy.marketing.entity.StuDigitalConfirmation">
update stu_digital_confirmation
set doc_name = #{docName,jdbcType=VARCHAR},
doc_type = #{docType,jdbcType=VARCHAR},
doc_page = #{docPage,jdbcType=VARCHAR},
pub_key = #{pubKey,jdbcType=VARCHAR},
pri_key = #{priKey,jdbcType=VARCHAR},
block_hash = #{blockHash,jdbcType=VARCHAR},
block_high = #{blockHigh,jdbcType=VARCHAR},
assets_id = #{assetsId,jdbcType=VARCHAR},
introduction = #{introduction,jdbcType=VARCHAR},
user_id = #{userId,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
append = #{append,jdbcType=VARCHAR},
excessive = #{excessive,jdbcType=VARCHAR},
threePage = #{threepage,jdbcType=VARCHAR},
fivePage = #{fivepage,jdbcType=VARCHAR},
tenPage = #{tenpage,jdbcType=VARCHAR},
allPage = #{allpage,jdbcType=VARCHAR},
ownership = #{ownership,jdbcType=VARCHAR},
sub_state = #{subState,jdbcType=INTEGER},
block_size = #{blockSize,jdbcType=VARCHAR},
step = #{step,jdbcType=VARCHAR},
confirm = #{confirm,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>

@ -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.marketing.mapper.StuHadoopTrainMapper">
<resultMap id="BaseResultMap" type="com.sztzjy.marketing.entity.StuHadoopTrain">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="user_id" jdbcType="VARCHAR" property="userId" />
<result column="wrong_detail" jdbcType="VARCHAR" property="wrongDetail" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="append" jdbcType="VARCHAR" property="append" />
<result column="state" jdbcType="INTEGER" property="state" />
</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">
id, user_id, wrong_detail, create_time, append, state
</sql>
<select id="selectByExample" parameterType="com.sztzjy.marketing.entity.StuHadoopTrainExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from stu_hadoop_train
<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_hadoop_train
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from stu_hadoop_train
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.sztzjy.marketing.entity.StuHadoopTrainExample">
delete from stu_hadoop_train
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.sztzjy.marketing.entity.StuHadoopTrain">
insert into stu_hadoop_train (id, user_id, wrong_detail,
create_time, append, state
)
values (#{id,jdbcType=INTEGER}, #{userId,jdbcType=VARCHAR}, #{wrongDetail,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{append,jdbcType=VARCHAR}, #{state,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.sztzjy.marketing.entity.StuHadoopTrain">
insert into stu_hadoop_train
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="userId != null">
user_id,
</if>
<if test="wrongDetail != null">
wrong_detail,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="append != null">
append,
</if>
<if test="state != null">
state,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="userId != null">
#{userId,jdbcType=VARCHAR},
</if>
<if test="wrongDetail != null">
#{wrongDetail,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="append != null">
#{append,jdbcType=VARCHAR},
</if>
<if test="state != null">
#{state,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.sztzjy.marketing.entity.StuHadoopTrainExample" resultType="java.lang.Long">
select count(*) from stu_hadoop_train
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update stu_hadoop_train
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.userId != null">
user_id = #{record.userId,jdbcType=VARCHAR},
</if>
<if test="record.wrongDetail != null">
wrong_detail = #{record.wrongDetail,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.append != null">
append = #{record.append,jdbcType=VARCHAR},
</if>
<if test="record.state != null">
state = #{record.state,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update stu_hadoop_train
set id = #{record.id,jdbcType=INTEGER},
user_id = #{record.userId,jdbcType=VARCHAR},
wrong_detail = #{record.wrongDetail,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
append = #{record.append,jdbcType=VARCHAR},
state = #{record.state,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.marketing.entity.StuHadoopTrain">
update stu_hadoop_train
<set>
<if test="userId != null">
user_id = #{userId,jdbcType=VARCHAR},
</if>
<if test="wrongDetail != null">
wrong_detail = #{wrongDetail,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="append != null">
append = #{append,jdbcType=VARCHAR},
</if>
<if test="state != null">
state = #{state,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.sztzjy.marketing.entity.StuHadoopTrain">
update stu_hadoop_train
set user_id = #{userId,jdbcType=VARCHAR},
wrong_detail = #{wrongDetail,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
append = #{append,jdbcType=VARCHAR},
state = #{state,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>

@ -0,0 +1,323 @@
<?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.marketing.mapper.StuImageRecognitionTrainingMapper">
<resultMap id="BaseResultMap" type="com.sztzjy.marketing.entity.StuImageRecognitionTraining">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="stem_content" jdbcType="VARCHAR" property="stemContent" />
<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_f" jdbcType="VARCHAR" property="optionF" />
<result column="correct_answer" jdbcType="VARCHAR" property="correctAnswer" />
<result column="student_answer" jdbcType="VARCHAR" property="studentAnswer" />
<result column="user_id" jdbcType="VARCHAR" property="userId" />
<result column="right_or_wrong" jdbcType="INTEGER" property="rightOrWrong" />
<result column="model" jdbcType="VARCHAR" property="model" />
</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">
id, stem_content, option_a, option_b, option_c, option_d, option_f, correct_answer,
student_answer, user_id, right_or_wrong, model
</sql>
<select id="selectByExample" parameterType="com.sztzjy.marketing.entity.StuImageRecognitionTrainingExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from stu_image_recognition_training
<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_image_recognition_training
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from stu_image_recognition_training
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.sztzjy.marketing.entity.StuImageRecognitionTrainingExample">
delete from stu_image_recognition_training
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.sztzjy.marketing.entity.StuImageRecognitionTraining">
insert into stu_image_recognition_training (id, stem_content, option_a,
option_b, option_c, option_d,
option_f, correct_answer, student_answer,
user_id, right_or_wrong, model
)
values (#{id,jdbcType=INTEGER}, #{stemContent,jdbcType=VARCHAR}, #{optionA,jdbcType=VARCHAR},
#{optionB,jdbcType=VARCHAR}, #{optionC,jdbcType=VARCHAR}, #{optionD,jdbcType=VARCHAR},
#{optionF,jdbcType=VARCHAR}, #{correctAnswer,jdbcType=VARCHAR}, #{studentAnswer,jdbcType=VARCHAR},
#{userId,jdbcType=VARCHAR}, #{rightOrWrong,jdbcType=INTEGER}, #{model,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.sztzjy.marketing.entity.StuImageRecognitionTraining">
insert into stu_image_recognition_training
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="stemContent != null">
stem_content,
</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="optionF != null">
option_f,
</if>
<if test="correctAnswer != null">
correct_answer,
</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="model != null">
model,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="stemContent != null">
#{stemContent,jdbcType=VARCHAR},
</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="optionF != null">
#{optionF,jdbcType=VARCHAR},
</if>
<if test="correctAnswer != null">
#{correctAnswer,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=INTEGER},
</if>
<if test="model != null">
#{model,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.sztzjy.marketing.entity.StuImageRecognitionTrainingExample" resultType="java.lang.Long">
select count(*) from stu_image_recognition_training
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update stu_image_recognition_training
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.stemContent != null">
stem_content = #{record.stemContent,jdbcType=VARCHAR},
</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.optionF != null">
option_f = #{record.optionF,jdbcType=VARCHAR},
</if>
<if test="record.correctAnswer != null">
correct_answer = #{record.correctAnswer,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=INTEGER},
</if>
<if test="record.model != null">
model = #{record.model,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update stu_image_recognition_training
set id = #{record.id,jdbcType=INTEGER},
stem_content = #{record.stemContent,jdbcType=VARCHAR},
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_f = #{record.optionF,jdbcType=VARCHAR},
correct_answer = #{record.correctAnswer,jdbcType=VARCHAR},
student_answer = #{record.studentAnswer,jdbcType=VARCHAR},
user_id = #{record.userId,jdbcType=VARCHAR},
right_or_wrong = #{record.rightOrWrong,jdbcType=INTEGER},
model = #{record.model,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.marketing.entity.StuImageRecognitionTraining">
update stu_image_recognition_training
<set>
<if test="stemContent != null">
stem_content = #{stemContent,jdbcType=VARCHAR},
</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="optionF != null">
option_f = #{optionF,jdbcType=VARCHAR},
</if>
<if test="correctAnswer != null">
correct_answer = #{correctAnswer,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=INTEGER},
</if>
<if test="model != null">
model = #{model,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.sztzjy.marketing.entity.StuImageRecognitionTraining">
update stu_image_recognition_training
set stem_content = #{stemContent,jdbcType=VARCHAR},
option_a = #{optionA,jdbcType=VARCHAR},
option_b = #{optionB,jdbcType=VARCHAR},
option_c = #{optionC,jdbcType=VARCHAR},
option_d = #{optionD,jdbcType=VARCHAR},
option_f = #{optionF,jdbcType=VARCHAR},
correct_answer = #{correctAnswer,jdbcType=VARCHAR},
student_answer = #{studentAnswer,jdbcType=VARCHAR},
user_id = #{userId,jdbcType=VARCHAR},
right_or_wrong = #{rightOrWrong,jdbcType=INTEGER},
model = #{model,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>

@ -0,0 +1,518 @@
<?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.marketing.mapper.StuTrainingOperateStepMapper">
<resultMap id="BaseResultMap" type="com.sztzjy.marketing.entity.StuTrainingOperateStep">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="module" jdbcType="VARCHAR" property="module" />
<result column="user_id" jdbcType="VARCHAR" property="userId" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.marketing.entity.StuTrainingOperateStep">
<result column="field_one" jdbcType="LONGVARCHAR" property="fieldOne" />
<result column="field_two" jdbcType="LONGVARCHAR" property="fieldTwo" />
<result column="field_three" jdbcType="LONGVARCHAR" property="fieldThree" />
<result column="field_four" jdbcType="LONGVARCHAR" property="fieldFour" />
<result column="field_five" jdbcType="LONGVARCHAR" property="fieldFive" />
<result column="field_six" jdbcType="LONGVARCHAR" property="fieldSix" />
<result column="field_seven" jdbcType="LONGVARCHAR" property="fieldSeven" />
<result column="field_eight" jdbcType="LONGVARCHAR" property="fieldEight" />
<result column="field_nine" jdbcType="LONGVARCHAR" property="fieldNine" />
<result column="field_ten" jdbcType="LONGVARCHAR" property="fieldTen" />
<result column="field_eleven" jdbcType="LONGVARCHAR" property="fieldEleven" />
<result column="field_twelve" jdbcType="LONGVARCHAR" property="fieldTwelve" />
<result column="field_thirteen" jdbcType="LONGVARCHAR" property="fieldThirteen" />
<result column="field_fourteen" jdbcType="LONGVARCHAR" property="fieldFourteen" />
<result column="field_fifteen" jdbcType="LONGVARCHAR" property="fieldFifteen" />
<result column="field_sixteen" jdbcType="LONGVARCHAR" property="fieldSixteen" />
<result column="field_seventeen" jdbcType="LONGVARCHAR" property="fieldSeventeen" />
<result column="field_eighteen" jdbcType="LONGVARCHAR" property="fieldEighteen" />
<result column="field_twenty" jdbcType="LONGVARCHAR" property="fieldTwenty" />
</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">
id, module, user_id
</sql>
<sql id="Blob_Column_List">
field_one, field_two, field_three, field_four, field_five, field_six, field_seven,
field_eight, field_nine, field_ten, field_eleven, field_twelve, field_thirteen, field_fourteen,
field_fifteen, field_sixteen, field_seventeen, field_eighteen, field_twenty
</sql>
<select id="selectByExampleWithBLOBs" parameterType="com.sztzjy.marketing.entity.StuTrainingOperateStepExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from stu_training_operate_step
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="com.sztzjy.marketing.entity.StuTrainingOperateStepExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from stu_training_operate_step
<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="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from stu_training_operate_step
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from stu_training_operate_step
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.sztzjy.marketing.entity.StuTrainingOperateStepExample">
delete from stu_training_operate_step
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.sztzjy.marketing.entity.StuTrainingOperateStep">
insert into stu_training_operate_step (id, module, user_id,
field_one, field_two, field_three,
field_four, field_five, field_six,
field_seven, field_eight, field_nine,
field_ten, field_eleven, field_twelve,
field_thirteen, field_fourteen, field_fifteen,
field_sixteen, field_seventeen, field_eighteen,
field_twenty)
values (#{id,jdbcType=INTEGER}, #{module,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR},
#{fieldOne,jdbcType=LONGVARCHAR}, #{fieldTwo,jdbcType=LONGVARCHAR}, #{fieldThree,jdbcType=LONGVARCHAR},
#{fieldFour,jdbcType=LONGVARCHAR}, #{fieldFive,jdbcType=LONGVARCHAR}, #{fieldSix,jdbcType=LONGVARCHAR},
#{fieldSeven,jdbcType=LONGVARCHAR}, #{fieldEight,jdbcType=LONGVARCHAR}, #{fieldNine,jdbcType=LONGVARCHAR},
#{fieldTen,jdbcType=LONGVARCHAR}, #{fieldEleven,jdbcType=LONGVARCHAR}, #{fieldTwelve,jdbcType=LONGVARCHAR},
#{fieldThirteen,jdbcType=LONGVARCHAR}, #{fieldFourteen,jdbcType=LONGVARCHAR}, #{fieldFifteen,jdbcType=LONGVARCHAR},
#{fieldSixteen,jdbcType=LONGVARCHAR}, #{fieldSeventeen,jdbcType=LONGVARCHAR}, #{fieldEighteen,jdbcType=LONGVARCHAR},
#{fieldTwenty,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.sztzjy.marketing.entity.StuTrainingOperateStep">
insert into stu_training_operate_step
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="module != null">
module,
</if>
<if test="userId != null">
user_id,
</if>
<if test="fieldOne != null">
field_one,
</if>
<if test="fieldTwo != null">
field_two,
</if>
<if test="fieldThree != null">
field_three,
</if>
<if test="fieldFour != null">
field_four,
</if>
<if test="fieldFive != null">
field_five,
</if>
<if test="fieldSix != null">
field_six,
</if>
<if test="fieldSeven != null">
field_seven,
</if>
<if test="fieldEight != null">
field_eight,
</if>
<if test="fieldNine != null">
field_nine,
</if>
<if test="fieldTen != null">
field_ten,
</if>
<if test="fieldEleven != null">
field_eleven,
</if>
<if test="fieldTwelve != null">
field_twelve,
</if>
<if test="fieldThirteen != null">
field_thirteen,
</if>
<if test="fieldFourteen != null">
field_fourteen,
</if>
<if test="fieldFifteen != null">
field_fifteen,
</if>
<if test="fieldSixteen != null">
field_sixteen,
</if>
<if test="fieldSeventeen != null">
field_seventeen,
</if>
<if test="fieldEighteen != null">
field_eighteen,
</if>
<if test="fieldTwenty != null">
field_twenty,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="module != null">
#{module,jdbcType=VARCHAR},
</if>
<if test="userId != null">
#{userId,jdbcType=VARCHAR},
</if>
<if test="fieldOne != null">
#{fieldOne,jdbcType=LONGVARCHAR},
</if>
<if test="fieldTwo != null">
#{fieldTwo,jdbcType=LONGVARCHAR},
</if>
<if test="fieldThree != null">
#{fieldThree,jdbcType=LONGVARCHAR},
</if>
<if test="fieldFour != null">
#{fieldFour,jdbcType=LONGVARCHAR},
</if>
<if test="fieldFive != null">
#{fieldFive,jdbcType=LONGVARCHAR},
</if>
<if test="fieldSix != null">
#{fieldSix,jdbcType=LONGVARCHAR},
</if>
<if test="fieldSeven != null">
#{fieldSeven,jdbcType=LONGVARCHAR},
</if>
<if test="fieldEight != null">
#{fieldEight,jdbcType=LONGVARCHAR},
</if>
<if test="fieldNine != null">
#{fieldNine,jdbcType=LONGVARCHAR},
</if>
<if test="fieldTen != null">
#{fieldTen,jdbcType=LONGVARCHAR},
</if>
<if test="fieldEleven != null">
#{fieldEleven,jdbcType=LONGVARCHAR},
</if>
<if test="fieldTwelve != null">
#{fieldTwelve,jdbcType=LONGVARCHAR},
</if>
<if test="fieldThirteen != null">
#{fieldThirteen,jdbcType=LONGVARCHAR},
</if>
<if test="fieldFourteen != null">
#{fieldFourteen,jdbcType=LONGVARCHAR},
</if>
<if test="fieldFifteen != null">
#{fieldFifteen,jdbcType=LONGVARCHAR},
</if>
<if test="fieldSixteen != null">
#{fieldSixteen,jdbcType=LONGVARCHAR},
</if>
<if test="fieldSeventeen != null">
#{fieldSeventeen,jdbcType=LONGVARCHAR},
</if>
<if test="fieldEighteen != null">
#{fieldEighteen,jdbcType=LONGVARCHAR},
</if>
<if test="fieldTwenty != null">
#{fieldTwenty,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.sztzjy.marketing.entity.StuTrainingOperateStepExample" resultType="java.lang.Long">
select count(*) from stu_training_operate_step
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update stu_training_operate_step
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.module != null">
module = #{record.module,jdbcType=VARCHAR},
</if>
<if test="record.userId != null">
user_id = #{record.userId,jdbcType=VARCHAR},
</if>
<if test="record.fieldOne != null">
field_one = #{record.fieldOne,jdbcType=LONGVARCHAR},
</if>
<if test="record.fieldTwo != null">
field_two = #{record.fieldTwo,jdbcType=LONGVARCHAR},
</if>
<if test="record.fieldThree != null">
field_three = #{record.fieldThree,jdbcType=LONGVARCHAR},
</if>
<if test="record.fieldFour != null">
field_four = #{record.fieldFour,jdbcType=LONGVARCHAR},
</if>
<if test="record.fieldFive != null">
field_five = #{record.fieldFive,jdbcType=LONGVARCHAR},
</if>
<if test="record.fieldSix != null">
field_six = #{record.fieldSix,jdbcType=LONGVARCHAR},
</if>
<if test="record.fieldSeven != null">
field_seven = #{record.fieldSeven,jdbcType=LONGVARCHAR},
</if>
<if test="record.fieldEight != null">
field_eight = #{record.fieldEight,jdbcType=LONGVARCHAR},
</if>
<if test="record.fieldNine != null">
field_nine = #{record.fieldNine,jdbcType=LONGVARCHAR},
</if>
<if test="record.fieldTen != null">
field_ten = #{record.fieldTen,jdbcType=LONGVARCHAR},
</if>
<if test="record.fieldEleven != null">
field_eleven = #{record.fieldEleven,jdbcType=LONGVARCHAR},
</if>
<if test="record.fieldTwelve != null">
field_twelve = #{record.fieldTwelve,jdbcType=LONGVARCHAR},
</if>
<if test="record.fieldThirteen != null">
field_thirteen = #{record.fieldThirteen,jdbcType=LONGVARCHAR},
</if>
<if test="record.fieldFourteen != null">
field_fourteen = #{record.fieldFourteen,jdbcType=LONGVARCHAR},
</if>
<if test="record.fieldFifteen != null">
field_fifteen = #{record.fieldFifteen,jdbcType=LONGVARCHAR},
</if>
<if test="record.fieldSixteen != null">
field_sixteen = #{record.fieldSixteen,jdbcType=LONGVARCHAR},
</if>
<if test="record.fieldSeventeen != null">
field_seventeen = #{record.fieldSeventeen,jdbcType=LONGVARCHAR},
</if>
<if test="record.fieldEighteen != null">
field_eighteen = #{record.fieldEighteen,jdbcType=LONGVARCHAR},
</if>
<if test="record.fieldTwenty != null">
field_twenty = #{record.fieldTwenty,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map">
update stu_training_operate_step
set id = #{record.id,jdbcType=INTEGER},
module = #{record.module,jdbcType=VARCHAR},
user_id = #{record.userId,jdbcType=VARCHAR},
field_one = #{record.fieldOne,jdbcType=LONGVARCHAR},
field_two = #{record.fieldTwo,jdbcType=LONGVARCHAR},
field_three = #{record.fieldThree,jdbcType=LONGVARCHAR},
field_four = #{record.fieldFour,jdbcType=LONGVARCHAR},
field_five = #{record.fieldFive,jdbcType=LONGVARCHAR},
field_six = #{record.fieldSix,jdbcType=LONGVARCHAR},
field_seven = #{record.fieldSeven,jdbcType=LONGVARCHAR},
field_eight = #{record.fieldEight,jdbcType=LONGVARCHAR},
field_nine = #{record.fieldNine,jdbcType=LONGVARCHAR},
field_ten = #{record.fieldTen,jdbcType=LONGVARCHAR},
field_eleven = #{record.fieldEleven,jdbcType=LONGVARCHAR},
field_twelve = #{record.fieldTwelve,jdbcType=LONGVARCHAR},
field_thirteen = #{record.fieldThirteen,jdbcType=LONGVARCHAR},
field_fourteen = #{record.fieldFourteen,jdbcType=LONGVARCHAR},
field_fifteen = #{record.fieldFifteen,jdbcType=LONGVARCHAR},
field_sixteen = #{record.fieldSixteen,jdbcType=LONGVARCHAR},
field_seventeen = #{record.fieldSeventeen,jdbcType=LONGVARCHAR},
field_eighteen = #{record.fieldEighteen,jdbcType=LONGVARCHAR},
field_twenty = #{record.fieldTwenty,jdbcType=LONGVARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update stu_training_operate_step
set id = #{record.id,jdbcType=INTEGER},
module = #{record.module,jdbcType=VARCHAR},
user_id = #{record.userId,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.marketing.entity.StuTrainingOperateStep">
update stu_training_operate_step
<set>
<if test="module != null">
module = #{module,jdbcType=VARCHAR},
</if>
<if test="userId != null">
user_id = #{userId,jdbcType=VARCHAR},
</if>
<if test="fieldOne != null">
field_one = #{fieldOne,jdbcType=LONGVARCHAR},
</if>
<if test="fieldTwo != null">
field_two = #{fieldTwo,jdbcType=LONGVARCHAR},
</if>
<if test="fieldThree != null">
field_three = #{fieldThree,jdbcType=LONGVARCHAR},
</if>
<if test="fieldFour != null">
field_four = #{fieldFour,jdbcType=LONGVARCHAR},
</if>
<if test="fieldFive != null">
field_five = #{fieldFive,jdbcType=LONGVARCHAR},
</if>
<if test="fieldSix != null">
field_six = #{fieldSix,jdbcType=LONGVARCHAR},
</if>
<if test="fieldSeven != null">
field_seven = #{fieldSeven,jdbcType=LONGVARCHAR},
</if>
<if test="fieldEight != null">
field_eight = #{fieldEight,jdbcType=LONGVARCHAR},
</if>
<if test="fieldNine != null">
field_nine = #{fieldNine,jdbcType=LONGVARCHAR},
</if>
<if test="fieldTen != null">
field_ten = #{fieldTen,jdbcType=LONGVARCHAR},
</if>
<if test="fieldEleven != null">
field_eleven = #{fieldEleven,jdbcType=LONGVARCHAR},
</if>
<if test="fieldTwelve != null">
field_twelve = #{fieldTwelve,jdbcType=LONGVARCHAR},
</if>
<if test="fieldThirteen != null">
field_thirteen = #{fieldThirteen,jdbcType=LONGVARCHAR},
</if>
<if test="fieldFourteen != null">
field_fourteen = #{fieldFourteen,jdbcType=LONGVARCHAR},
</if>
<if test="fieldFifteen != null">
field_fifteen = #{fieldFifteen,jdbcType=LONGVARCHAR},
</if>
<if test="fieldSixteen != null">
field_sixteen = #{fieldSixteen,jdbcType=LONGVARCHAR},
</if>
<if test="fieldSeventeen != null">
field_seventeen = #{fieldSeventeen,jdbcType=LONGVARCHAR},
</if>
<if test="fieldEighteen != null">
field_eighteen = #{fieldEighteen,jdbcType=LONGVARCHAR},
</if>
<if test="fieldTwenty != null">
field_twenty = #{fieldTwenty,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.sztzjy.marketing.entity.StuTrainingOperateStep">
update stu_training_operate_step
set module = #{module,jdbcType=VARCHAR},
user_id = #{userId,jdbcType=VARCHAR},
field_one = #{fieldOne,jdbcType=LONGVARCHAR},
field_two = #{fieldTwo,jdbcType=LONGVARCHAR},
field_three = #{fieldThree,jdbcType=LONGVARCHAR},
field_four = #{fieldFour,jdbcType=LONGVARCHAR},
field_five = #{fieldFive,jdbcType=LONGVARCHAR},
field_six = #{fieldSix,jdbcType=LONGVARCHAR},
field_seven = #{fieldSeven,jdbcType=LONGVARCHAR},
field_eight = #{fieldEight,jdbcType=LONGVARCHAR},
field_nine = #{fieldNine,jdbcType=LONGVARCHAR},
field_ten = #{fieldTen,jdbcType=LONGVARCHAR},
field_eleven = #{fieldEleven,jdbcType=LONGVARCHAR},
field_twelve = #{fieldTwelve,jdbcType=LONGVARCHAR},
field_thirteen = #{fieldThirteen,jdbcType=LONGVARCHAR},
field_fourteen = #{fieldFourteen,jdbcType=LONGVARCHAR},
field_fifteen = #{fieldFifteen,jdbcType=LONGVARCHAR},
field_sixteen = #{fieldSixteen,jdbcType=LONGVARCHAR},
field_seventeen = #{fieldSeventeen,jdbcType=LONGVARCHAR},
field_eighteen = #{fieldEighteen,jdbcType=LONGVARCHAR},
field_twenty = #{fieldTwenty,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.sztzjy.marketing.entity.StuTrainingOperateStep">
update stu_training_operate_step
set module = #{module,jdbcType=VARCHAR},
user_id = #{userId,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>

@ -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.marketing.mapper.StuTrainingProblemDetailsMapper">
<resultMap id="BaseResultMap" type="com.sztzjy.marketing.entity.StuTrainingProblemDetails">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="user_id" jdbcType="VARCHAR" property="userId" />
<result column="topic_id" jdbcType="INTEGER" property="topicId" />
<result column="stu_answer" jdbcType="VARCHAR" property="stuAnswer" />
<result column="module" jdbcType="VARCHAR" property="module" />
<result column="right_or_wrong" jdbcType="INTEGER" property="rightOrWrong" />
</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">
id, user_id, topic_id, stu_answer, module, right_or_wrong
</sql>
<select id="selectByExample" parameterType="com.sztzjy.marketing.entity.StuTrainingProblemDetailsExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from stu_training_problem_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_training_problem_details
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from stu_training_problem_details
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.sztzjy.marketing.entity.StuTrainingProblemDetailsExample">
delete from stu_training_problem_details
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.sztzjy.marketing.entity.StuTrainingProblemDetails">
insert into stu_training_problem_details (id, user_id, topic_id,
stu_answer, module, right_or_wrong
)
values (#{id,jdbcType=INTEGER}, #{userId,jdbcType=VARCHAR}, #{topicId,jdbcType=INTEGER},
#{stuAnswer,jdbcType=VARCHAR}, #{module,jdbcType=VARCHAR}, #{rightOrWrong,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.sztzjy.marketing.entity.StuTrainingProblemDetails">
insert into stu_training_problem_details
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="userId != null">
user_id,
</if>
<if test="topicId != null">
topic_id,
</if>
<if test="stuAnswer != null">
stu_answer,
</if>
<if test="module != null">
module,
</if>
<if test="rightOrWrong != null">
right_or_wrong,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="userId != null">
#{userId,jdbcType=VARCHAR},
</if>
<if test="topicId != null">
#{topicId,jdbcType=INTEGER},
</if>
<if test="stuAnswer != null">
#{stuAnswer,jdbcType=VARCHAR},
</if>
<if test="module != null">
#{module,jdbcType=VARCHAR},
</if>
<if test="rightOrWrong != null">
#{rightOrWrong,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.sztzjy.marketing.entity.StuTrainingProblemDetailsExample" resultType="java.lang.Long">
select count(*) from stu_training_problem_details
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update stu_training_problem_details
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.userId != null">
user_id = #{record.userId,jdbcType=VARCHAR},
</if>
<if test="record.topicId != null">
topic_id = #{record.topicId,jdbcType=INTEGER},
</if>
<if test="record.stuAnswer != null">
stu_answer = #{record.stuAnswer,jdbcType=VARCHAR},
</if>
<if test="record.module != null">
module = #{record.module,jdbcType=VARCHAR},
</if>
<if test="record.rightOrWrong != null">
right_or_wrong = #{record.rightOrWrong,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update stu_training_problem_details
set id = #{record.id,jdbcType=INTEGER},
user_id = #{record.userId,jdbcType=VARCHAR},
topic_id = #{record.topicId,jdbcType=INTEGER},
stu_answer = #{record.stuAnswer,jdbcType=VARCHAR},
module = #{record.module,jdbcType=VARCHAR},
right_or_wrong = #{record.rightOrWrong,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.marketing.entity.StuTrainingProblemDetails">
update stu_training_problem_details
<set>
<if test="userId != null">
user_id = #{userId,jdbcType=VARCHAR},
</if>
<if test="topicId != null">
topic_id = #{topicId,jdbcType=INTEGER},
</if>
<if test="stuAnswer != null">
stu_answer = #{stuAnswer,jdbcType=VARCHAR},
</if>
<if test="module != null">
module = #{module,jdbcType=VARCHAR},
</if>
<if test="rightOrWrong != null">
right_or_wrong = #{rightOrWrong,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.sztzjy.marketing.entity.StuTrainingProblemDetails">
update stu_training_problem_details
set user_id = #{userId,jdbcType=VARCHAR},
topic_id = #{topicId,jdbcType=INTEGER},
stu_answer = #{stuAnswer,jdbcType=VARCHAR},
module = #{module,jdbcType=VARCHAR},
right_or_wrong = #{rightOrWrong,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
Loading…
Cancel
Save