diff --git a/src/main/java/com/ccsens/braintraining/BrainTrainingApplication.java b/src/main/java/com/ccsens/braintraining/BrainTrainingApplication.java index 1025534..83b0c03 100644 --- a/src/main/java/com/ccsens/braintraining/BrainTrainingApplication.java +++ b/src/main/java/com/ccsens/braintraining/BrainTrainingApplication.java @@ -6,6 +6,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.web.servlet.ServletComponentScan; import org.springframework.cache.annotation.EnableCaching; import org.springframework.context.annotation.ComponentScan; +import org.springframework.scheduling.annotation.EnableAsync; /** * @description: @@ -15,6 +16,7 @@ import org.springframework.context.annotation.ComponentScan; @MapperScan(basePackages = {"com.ccsens.braintraining.persist.*"}) @ServletComponentScan @EnableCaching +@EnableAsync @SpringBootApplication @ComponentScan(basePackages = {"com.ccsens"}) public class BrainTrainingApplication { diff --git a/src/main/java/com/ccsens/braintraining/api/BrainController.java b/src/main/java/com/ccsens/braintraining/api/BrainController.java new file mode 100644 index 0000000..5779fe8 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/api/BrainController.java @@ -0,0 +1,53 @@ +package com.ccsens.braintraining.api; + +import com.ccsens.braintraining.annotation.MustLogin; +import com.ccsens.braintraining.bean.dto.BrainDto; +import com.ccsens.braintraining.bean.vo.BrainVo; +import com.ccsens.braintraining.service.IBrainService; +import com.ccsens.util.JsonResponse; +import com.ccsens.util.bean.dto.QueryDto; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +/** + * @description: + * @author: whj + * @time: 2022/3/25 8:46 + */ +@Api(tags = "脑力测评相关" ) +@RestController +@RequestMapping("/brain") +@Slf4j +public class BrainController { + + @Resource + private IBrainService brainService; + + @MustLogin + @ApiOperation(value = "脑力测评生成") + @RequestMapping(value = "/generate", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse generate(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("脑力测评生成:{}", params); + BrainVo.Active active = brainService.generateTest(params.getParam(), params.getUserId()); + log.info("脑力测评生成结束:{}", active); + return JsonResponse.newInstance().ok(active); + } + @MustLogin + @ApiOperation(value = "查询指定类型题目") + @RequestMapping(value = "/queryByClassify", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse queryByClassify(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("查询指定类型题目:{}", params); + BrainVo.QuestionClassify classify = brainService.queryByClassify(params.getParam(), params.getUserId()); + log.info("查询指定类型题目结束:{}", classify); + return JsonResponse.newInstance().ok(classify); + } +} diff --git a/src/main/java/com/ccsens/braintraining/api/CarouselController.java b/src/main/java/com/ccsens/braintraining/api/CarouselController.java index 3b20a4f..3b9b6fb 100644 --- a/src/main/java/com/ccsens/braintraining/api/CarouselController.java +++ b/src/main/java/com/ccsens/braintraining/api/CarouselController.java @@ -1,10 +1,14 @@ package com.ccsens.braintraining.api; +import com.ccsens.braintraining.bean.dto.CarouselDto; import com.ccsens.braintraining.bean.vo.CarouselVo; import com.ccsens.braintraining.service.ICarouselService; import com.ccsens.util.JsonResponse; +import com.ccsens.util.bean.dto.QueryDto; import io.swagger.annotations.*; import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; @@ -32,9 +36,9 @@ public class CarouselController { @ApiImplicitParam(name = "json", value = "查询大屏轮播图", required = true) }) @RequestMapping(value="/show", method = RequestMethod.POST) - public JsonResponse show(){ - log.info("查询大屏轮播图"); - List result = carouselService.show(); + public JsonResponse show(@ApiParam @Validated @RequestBody QueryDto params){ + log.info("查询大屏轮播图:{}", params); + List result = carouselService.show(params.getParam()); log.info("查询大屏轮播图结果:{}", result); return JsonResponse.newInstance().ok(result); } diff --git a/src/main/java/com/ccsens/braintraining/api/RaffleController.java b/src/main/java/com/ccsens/braintraining/api/RaffleController.java index 8335e3c..a82d296 100644 --- a/src/main/java/com/ccsens/braintraining/api/RaffleController.java +++ b/src/main/java/com/ccsens/braintraining/api/RaffleController.java @@ -58,7 +58,7 @@ public class RaffleController { @RequestMapping(value = "/draw", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) public JsonResponse draw(@ApiParam @Validated @RequestBody QueryDto params) { log.info("抽奖:{}", params); - RaffleVo.Prize prize = raffleService.draw(params.getParam(), params.getUserId()); + RaffleVo.Prize prize = raffleService.draw(params.getParam(), params.getUserId(), params.getToken(), params.getDeviceId()); log.info("{}抽奖:{}结束:{}", params.getUserId(), params.getParam().getActiveId(), prize); return JsonResponse.newInstance().ok(prize); } diff --git a/src/main/java/com/ccsens/braintraining/bean/dto/BrainDto.java b/src/main/java/com/ccsens/braintraining/bean/dto/BrainDto.java new file mode 100644 index 0000000..aade24a --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/dto/BrainDto.java @@ -0,0 +1,33 @@ +package com.ccsens.braintraining.bean.dto; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import javax.validation.constraints.NotNull; + +/** + * @description: + * @author: whj + * @time: 2022/3/25 9:01 + */ +public class BrainDto { + @Data + @ApiModel("脑力训练活动-请求") + public class Equipment { + @NotNull(message="请输入设备信息") + @ApiModelProperty("设备ID") + private Long equipmentId; + } + + @Data + @ApiModel("脑力训练活动-请求") + public class Question { + @ApiModelProperty("活动用户ID") + private Long activeUserId; + @ApiModelProperty("分类ID") + private Long classifyId; +// @ApiModelProperty("上一题结束的原因 0:无上一题 1:完成切换 2:到时切换") +// private Byte finishReason = 0; + } +} diff --git a/src/main/java/com/ccsens/braintraining/bean/dto/CarouselDto.java b/src/main/java/com/ccsens/braintraining/bean/dto/CarouselDto.java index f497f9a..839affb 100644 --- a/src/main/java/com/ccsens/braintraining/bean/dto/CarouselDto.java +++ b/src/main/java/com/ccsens/braintraining/bean/dto/CarouselDto.java @@ -1,6 +1,10 @@ package com.ccsens.braintraining.bean.dto; import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import javax.validation.constraints.NotNull; /** * @description: @@ -9,6 +13,12 @@ import io.swagger.annotations.ApiModel; */ public class CarouselDto { - + @ApiModel("设备轮播图-请求") + @Data + public static class Equipment { + @NotNull(message="请输入设备信息") + @ApiModelProperty("设备ID") + private Long equipmentId = 0L; + } } diff --git a/src/main/java/com/ccsens/braintraining/bean/po/AssistCarousel.java b/src/main/java/com/ccsens/braintraining/bean/po/AssistCarousel.java index dabbf4f..71b2e70 100644 --- a/src/main/java/com/ccsens/braintraining/bean/po/AssistCarousel.java +++ b/src/main/java/com/ccsens/braintraining/bean/po/AssistCarousel.java @@ -6,6 +6,8 @@ import java.util.Date; public class AssistCarousel implements Serializable { private Long id; + private Long equipmentId; + private String url; private String jumpUrl; @@ -38,6 +40,14 @@ public class AssistCarousel implements Serializable { this.id = id; } + public Long getEquipmentId() { + return equipmentId; + } + + public void setEquipmentId(Long equipmentId) { + this.equipmentId = equipmentId; + } + public String getUrl() { return url; } @@ -133,6 +143,7 @@ public class AssistCarousel implements Serializable { sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); + sb.append(", equipmentId=").append(equipmentId); sb.append(", url=").append(url); sb.append(", jumpUrl=").append(jumpUrl); sb.append(", param=").append(param); diff --git a/src/main/java/com/ccsens/braintraining/bean/po/AssistCarouselExample.java b/src/main/java/com/ccsens/braintraining/bean/po/AssistCarouselExample.java index d602642..0825b47 100644 --- a/src/main/java/com/ccsens/braintraining/bean/po/AssistCarouselExample.java +++ b/src/main/java/com/ccsens/braintraining/bean/po/AssistCarouselExample.java @@ -165,6 +165,66 @@ public class AssistCarouselExample { return (Criteria) this; } + public Criteria andEquipmentIdIsNull() { + addCriterion("equipment_id is null"); + return (Criteria) this; + } + + public Criteria andEquipmentIdIsNotNull() { + addCriterion("equipment_id is not null"); + return (Criteria) this; + } + + public Criteria andEquipmentIdEqualTo(Long value) { + addCriterion("equipment_id =", value, "equipmentId"); + return (Criteria) this; + } + + public Criteria andEquipmentIdNotEqualTo(Long value) { + addCriterion("equipment_id <>", value, "equipmentId"); + return (Criteria) this; + } + + public Criteria andEquipmentIdGreaterThan(Long value) { + addCriterion("equipment_id >", value, "equipmentId"); + return (Criteria) this; + } + + public Criteria andEquipmentIdGreaterThanOrEqualTo(Long value) { + addCriterion("equipment_id >=", value, "equipmentId"); + return (Criteria) this; + } + + public Criteria andEquipmentIdLessThan(Long value) { + addCriterion("equipment_id <", value, "equipmentId"); + return (Criteria) this; + } + + public Criteria andEquipmentIdLessThanOrEqualTo(Long value) { + addCriterion("equipment_id <=", value, "equipmentId"); + return (Criteria) this; + } + + public Criteria andEquipmentIdIn(List values) { + addCriterion("equipment_id in", values, "equipmentId"); + return (Criteria) this; + } + + public Criteria andEquipmentIdNotIn(List values) { + addCriterion("equipment_id not in", values, "equipmentId"); + return (Criteria) this; + } + + public Criteria andEquipmentIdBetween(Long value1, Long value2) { + addCriterion("equipment_id between", value1, value2, "equipmentId"); + return (Criteria) this; + } + + public Criteria andEquipmentIdNotBetween(Long value1, Long value2) { + addCriterion("equipment_id not between", value1, value2, "equipmentId"); + return (Criteria) this; + } + public Criteria andUrlIsNull() { addCriterion("url is null"); return (Criteria) this; diff --git a/src/main/java/com/ccsens/braintraining/bean/po/AssistEquipment.java b/src/main/java/com/ccsens/braintraining/bean/po/AssistEquipment.java new file mode 100644 index 0000000..5262d5c --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/po/AssistEquipment.java @@ -0,0 +1,95 @@ +package com.ccsens.braintraining.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class AssistEquipment implements Serializable { + private Long id; + + private Long officialId; + + private String name; + + private String description; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getOfficialId() { + return officialId; + } + + public void setOfficialId(Long officialId) { + this.officialId = officialId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name == null ? null : name.trim(); + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description == null ? null : description.trim(); + } + + public Date getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Date createdAt) { + this.createdAt = createdAt; + } + + public Date getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(Date updatedAt) { + this.updatedAt = updatedAt; + } + + public Byte getRecStatus() { + return recStatus; + } + + public void setRecStatus(Byte recStatus) { + this.recStatus = recStatus; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", officialId=").append(officialId); + sb.append(", name=").append(name); + sb.append(", description=").append(description); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/bean/po/AssistEquipmentExample.java b/src/main/java/com/ccsens/braintraining/bean/po/AssistEquipmentExample.java new file mode 100644 index 0000000..52ae0a5 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/po/AssistEquipmentExample.java @@ -0,0 +1,641 @@ +package com.ccsens.braintraining.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class AssistEquipmentExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public AssistEquipmentExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andOfficialIdIsNull() { + addCriterion("official_id is null"); + return (Criteria) this; + } + + public Criteria andOfficialIdIsNotNull() { + addCriterion("official_id is not null"); + return (Criteria) this; + } + + public Criteria andOfficialIdEqualTo(Long value) { + addCriterion("official_id =", value, "officialId"); + return (Criteria) this; + } + + public Criteria andOfficialIdNotEqualTo(Long value) { + addCriterion("official_id <>", value, "officialId"); + return (Criteria) this; + } + + public Criteria andOfficialIdGreaterThan(Long value) { + addCriterion("official_id >", value, "officialId"); + return (Criteria) this; + } + + public Criteria andOfficialIdGreaterThanOrEqualTo(Long value) { + addCriterion("official_id >=", value, "officialId"); + return (Criteria) this; + } + + public Criteria andOfficialIdLessThan(Long value) { + addCriterion("official_id <", value, "officialId"); + return (Criteria) this; + } + + public Criteria andOfficialIdLessThanOrEqualTo(Long value) { + addCriterion("official_id <=", value, "officialId"); + return (Criteria) this; + } + + public Criteria andOfficialIdIn(List values) { + addCriterion("official_id in", values, "officialId"); + return (Criteria) this; + } + + public Criteria andOfficialIdNotIn(List values) { + addCriterion("official_id not in", values, "officialId"); + return (Criteria) this; + } + + public Criteria andOfficialIdBetween(Long value1, Long value2) { + addCriterion("official_id between", value1, value2, "officialId"); + return (Criteria) this; + } + + public Criteria andOfficialIdNotBetween(Long value1, Long value2) { + addCriterion("official_id not between", value1, value2, "officialId"); + return (Criteria) this; + } + + public Criteria andNameIsNull() { + addCriterion("name is null"); + return (Criteria) this; + } + + public Criteria andNameIsNotNull() { + addCriterion("name is not null"); + return (Criteria) this; + } + + public Criteria andNameEqualTo(String value) { + addCriterion("name =", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotEqualTo(String value) { + addCriterion("name <>", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThan(String value) { + addCriterion("name >", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThanOrEqualTo(String value) { + addCriterion("name >=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThan(String value) { + addCriterion("name <", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThanOrEqualTo(String value) { + addCriterion("name <=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLike(String value) { + addCriterion("name like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotLike(String value) { + addCriterion("name not like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameIn(List values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List values) { + addCriterion("name not in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameBetween(String value1, String value2) { + addCriterion("name between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andNameNotBetween(String value1, String value2) { + addCriterion("name not between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andDescriptionIsNull() { + addCriterion("description is null"); + return (Criteria) this; + } + + public Criteria andDescriptionIsNotNull() { + addCriterion("description is not null"); + return (Criteria) this; + } + + public Criteria andDescriptionEqualTo(String value) { + addCriterion("description =", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotEqualTo(String value) { + addCriterion("description <>", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionGreaterThan(String value) { + addCriterion("description >", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionGreaterThanOrEqualTo(String value) { + addCriterion("description >=", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionLessThan(String value) { + addCriterion("description <", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionLessThanOrEqualTo(String value) { + addCriterion("description <=", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionLike(String value) { + addCriterion("description like", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotLike(String value) { + addCriterion("description not like", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionIn(List values) { + addCriterion("description in", values, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotIn(List values) { + addCriterion("description not in", values, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionBetween(String value1, String value2) { + addCriterion("description between", value1, value2, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotBetween(String value1, String value2) { + addCriterion("description not between", value1, value2, "description"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/bean/po/AssistOfficial.java b/src/main/java/com/ccsens/braintraining/bean/po/AssistOfficial.java new file mode 100644 index 0000000..51a8253 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/po/AssistOfficial.java @@ -0,0 +1,139 @@ +package com.ccsens.braintraining.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class AssistOfficial implements Serializable { + private Long id; + + private String name; + + private String code; + + private String description; + + private String appId; + + private String secret; + + private String developerId; + + private String templateId; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name == null ? null : name.trim(); + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code == null ? null : code.trim(); + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description == null ? null : description.trim(); + } + + public String getAppId() { + return appId; + } + + public void setAppId(String appId) { + this.appId = appId == null ? null : appId.trim(); + } + + public String getSecret() { + return secret; + } + + public void setSecret(String secret) { + this.secret = secret == null ? null : secret.trim(); + } + + public String getDeveloperId() { + return developerId; + } + + public void setDeveloperId(String developerId) { + this.developerId = developerId == null ? null : developerId.trim(); + } + + public String getTemplateId() { + return templateId; + } + + public void setTemplateId(String templateId) { + this.templateId = templateId == null ? null : templateId.trim(); + } + + public Date getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Date createdAt) { + this.createdAt = createdAt; + } + + public Date getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(Date updatedAt) { + this.updatedAt = updatedAt; + } + + public Byte getRecStatus() { + return recStatus; + } + + public void setRecStatus(Byte recStatus) { + this.recStatus = recStatus; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", name=").append(name); + sb.append(", code=").append(code); + sb.append(", description=").append(description); + sb.append(", appId=").append(appId); + sb.append(", secret=").append(secret); + sb.append(", developerId=").append(developerId); + sb.append(", templateId=").append(templateId); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/bean/po/AssistOfficialExample.java b/src/main/java/com/ccsens/braintraining/bean/po/AssistOfficialExample.java new file mode 100644 index 0000000..f6f9f2f --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/po/AssistOfficialExample.java @@ -0,0 +1,931 @@ +package com.ccsens.braintraining.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class AssistOfficialExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public AssistOfficialExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andNameIsNull() { + addCriterion("name is null"); + return (Criteria) this; + } + + public Criteria andNameIsNotNull() { + addCriterion("name is not null"); + return (Criteria) this; + } + + public Criteria andNameEqualTo(String value) { + addCriterion("name =", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotEqualTo(String value) { + addCriterion("name <>", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThan(String value) { + addCriterion("name >", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThanOrEqualTo(String value) { + addCriterion("name >=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThan(String value) { + addCriterion("name <", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThanOrEqualTo(String value) { + addCriterion("name <=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLike(String value) { + addCriterion("name like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotLike(String value) { + addCriterion("name not like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameIn(List values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List values) { + addCriterion("name not in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameBetween(String value1, String value2) { + addCriterion("name between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andNameNotBetween(String value1, String value2) { + addCriterion("name not between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andCodeIsNull() { + addCriterion("code is null"); + return (Criteria) this; + } + + public Criteria andCodeIsNotNull() { + addCriterion("code is not null"); + return (Criteria) this; + } + + public Criteria andCodeEqualTo(String value) { + addCriterion("code =", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotEqualTo(String value) { + addCriterion("code <>", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeGreaterThan(String value) { + addCriterion("code >", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeGreaterThanOrEqualTo(String value) { + addCriterion("code >=", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeLessThan(String value) { + addCriterion("code <", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeLessThanOrEqualTo(String value) { + addCriterion("code <=", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeLike(String value) { + addCriterion("code like", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotLike(String value) { + addCriterion("code not like", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeIn(List values) { + addCriterion("code in", values, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotIn(List values) { + addCriterion("code not in", values, "code"); + return (Criteria) this; + } + + public Criteria andCodeBetween(String value1, String value2) { + addCriterion("code between", value1, value2, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotBetween(String value1, String value2) { + addCriterion("code not between", value1, value2, "code"); + return (Criteria) this; + } + + public Criteria andDescriptionIsNull() { + addCriterion("description is null"); + return (Criteria) this; + } + + public Criteria andDescriptionIsNotNull() { + addCriterion("description is not null"); + return (Criteria) this; + } + + public Criteria andDescriptionEqualTo(String value) { + addCriterion("description =", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotEqualTo(String value) { + addCriterion("description <>", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionGreaterThan(String value) { + addCriterion("description >", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionGreaterThanOrEqualTo(String value) { + addCriterion("description >=", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionLessThan(String value) { + addCriterion("description <", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionLessThanOrEqualTo(String value) { + addCriterion("description <=", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionLike(String value) { + addCriterion("description like", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotLike(String value) { + addCriterion("description not like", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionIn(List values) { + addCriterion("description in", values, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotIn(List values) { + addCriterion("description not in", values, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionBetween(String value1, String value2) { + addCriterion("description between", value1, value2, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotBetween(String value1, String value2) { + addCriterion("description not between", value1, value2, "description"); + return (Criteria) this; + } + + public Criteria andAppIdIsNull() { + addCriterion("app_id is null"); + return (Criteria) this; + } + + public Criteria andAppIdIsNotNull() { + addCriterion("app_id is not null"); + return (Criteria) this; + } + + public Criteria andAppIdEqualTo(String value) { + addCriterion("app_id =", value, "appId"); + return (Criteria) this; + } + + public Criteria andAppIdNotEqualTo(String value) { + addCriterion("app_id <>", value, "appId"); + return (Criteria) this; + } + + public Criteria andAppIdGreaterThan(String value) { + addCriterion("app_id >", value, "appId"); + return (Criteria) this; + } + + public Criteria andAppIdGreaterThanOrEqualTo(String value) { + addCriterion("app_id >=", value, "appId"); + return (Criteria) this; + } + + public Criteria andAppIdLessThan(String value) { + addCriterion("app_id <", value, "appId"); + return (Criteria) this; + } + + public Criteria andAppIdLessThanOrEqualTo(String value) { + addCriterion("app_id <=", value, "appId"); + return (Criteria) this; + } + + public Criteria andAppIdLike(String value) { + addCriterion("app_id like", value, "appId"); + return (Criteria) this; + } + + public Criteria andAppIdNotLike(String value) { + addCriterion("app_id not like", value, "appId"); + return (Criteria) this; + } + + public Criteria andAppIdIn(List values) { + addCriterion("app_id in", values, "appId"); + return (Criteria) this; + } + + public Criteria andAppIdNotIn(List values) { + addCriterion("app_id not in", values, "appId"); + return (Criteria) this; + } + + public Criteria andAppIdBetween(String value1, String value2) { + addCriterion("app_id between", value1, value2, "appId"); + return (Criteria) this; + } + + public Criteria andAppIdNotBetween(String value1, String value2) { + addCriterion("app_id not between", value1, value2, "appId"); + return (Criteria) this; + } + + public Criteria andSecretIsNull() { + addCriterion("secret is null"); + return (Criteria) this; + } + + public Criteria andSecretIsNotNull() { + addCriterion("secret is not null"); + return (Criteria) this; + } + + public Criteria andSecretEqualTo(String value) { + addCriterion("secret =", value, "secret"); + return (Criteria) this; + } + + public Criteria andSecretNotEqualTo(String value) { + addCriterion("secret <>", value, "secret"); + return (Criteria) this; + } + + public Criteria andSecretGreaterThan(String value) { + addCriterion("secret >", value, "secret"); + return (Criteria) this; + } + + public Criteria andSecretGreaterThanOrEqualTo(String value) { + addCriterion("secret >=", value, "secret"); + return (Criteria) this; + } + + public Criteria andSecretLessThan(String value) { + addCriterion("secret <", value, "secret"); + return (Criteria) this; + } + + public Criteria andSecretLessThanOrEqualTo(String value) { + addCriterion("secret <=", value, "secret"); + return (Criteria) this; + } + + public Criteria andSecretLike(String value) { + addCriterion("secret like", value, "secret"); + return (Criteria) this; + } + + public Criteria andSecretNotLike(String value) { + addCriterion("secret not like", value, "secret"); + return (Criteria) this; + } + + public Criteria andSecretIn(List values) { + addCriterion("secret in", values, "secret"); + return (Criteria) this; + } + + public Criteria andSecretNotIn(List values) { + addCriterion("secret not in", values, "secret"); + return (Criteria) this; + } + + public Criteria andSecretBetween(String value1, String value2) { + addCriterion("secret between", value1, value2, "secret"); + return (Criteria) this; + } + + public Criteria andSecretNotBetween(String value1, String value2) { + addCriterion("secret not between", value1, value2, "secret"); + return (Criteria) this; + } + + public Criteria andDeveloperIdIsNull() { + addCriterion("developer_id is null"); + return (Criteria) this; + } + + public Criteria andDeveloperIdIsNotNull() { + addCriterion("developer_id is not null"); + return (Criteria) this; + } + + public Criteria andDeveloperIdEqualTo(String value) { + addCriterion("developer_id =", value, "developerId"); + return (Criteria) this; + } + + public Criteria andDeveloperIdNotEqualTo(String value) { + addCriterion("developer_id <>", value, "developerId"); + return (Criteria) this; + } + + public Criteria andDeveloperIdGreaterThan(String value) { + addCriterion("developer_id >", value, "developerId"); + return (Criteria) this; + } + + public Criteria andDeveloperIdGreaterThanOrEqualTo(String value) { + addCriterion("developer_id >=", value, "developerId"); + return (Criteria) this; + } + + public Criteria andDeveloperIdLessThan(String value) { + addCriterion("developer_id <", value, "developerId"); + return (Criteria) this; + } + + public Criteria andDeveloperIdLessThanOrEqualTo(String value) { + addCriterion("developer_id <=", value, "developerId"); + return (Criteria) this; + } + + public Criteria andDeveloperIdLike(String value) { + addCriterion("developer_id like", value, "developerId"); + return (Criteria) this; + } + + public Criteria andDeveloperIdNotLike(String value) { + addCriterion("developer_id not like", value, "developerId"); + return (Criteria) this; + } + + public Criteria andDeveloperIdIn(List values) { + addCriterion("developer_id in", values, "developerId"); + return (Criteria) this; + } + + public Criteria andDeveloperIdNotIn(List values) { + addCriterion("developer_id not in", values, "developerId"); + return (Criteria) this; + } + + public Criteria andDeveloperIdBetween(String value1, String value2) { + addCriterion("developer_id between", value1, value2, "developerId"); + return (Criteria) this; + } + + public Criteria andDeveloperIdNotBetween(String value1, String value2) { + addCriterion("developer_id not between", value1, value2, "developerId"); + return (Criteria) this; + } + + public Criteria andTemplateIdIsNull() { + addCriterion("template_id is null"); + return (Criteria) this; + } + + public Criteria andTemplateIdIsNotNull() { + addCriterion("template_id is not null"); + return (Criteria) this; + } + + public Criteria andTemplateIdEqualTo(String value) { + addCriterion("template_id =", value, "templateId"); + return (Criteria) this; + } + + public Criteria andTemplateIdNotEqualTo(String value) { + addCriterion("template_id <>", value, "templateId"); + return (Criteria) this; + } + + public Criteria andTemplateIdGreaterThan(String value) { + addCriterion("template_id >", value, "templateId"); + return (Criteria) this; + } + + public Criteria andTemplateIdGreaterThanOrEqualTo(String value) { + addCriterion("template_id >=", value, "templateId"); + return (Criteria) this; + } + + public Criteria andTemplateIdLessThan(String value) { + addCriterion("template_id <", value, "templateId"); + return (Criteria) this; + } + + public Criteria andTemplateIdLessThanOrEqualTo(String value) { + addCriterion("template_id <=", value, "templateId"); + return (Criteria) this; + } + + public Criteria andTemplateIdLike(String value) { + addCriterion("template_id like", value, "templateId"); + return (Criteria) this; + } + + public Criteria andTemplateIdNotLike(String value) { + addCriterion("template_id not like", value, "templateId"); + return (Criteria) this; + } + + public Criteria andTemplateIdIn(List values) { + addCriterion("template_id in", values, "templateId"); + return (Criteria) this; + } + + public Criteria andTemplateIdNotIn(List values) { + addCriterion("template_id not in", values, "templateId"); + return (Criteria) this; + } + + public Criteria andTemplateIdBetween(String value1, String value2) { + addCriterion("template_id between", value1, value2, "templateId"); + return (Criteria) this; + } + + public Criteria andTemplateIdNotBetween(String value1, String value2) { + addCriterion("template_id not between", value1, value2, "templateId"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/bean/po/AssistOfficialUser.java b/src/main/java/com/ccsens/braintraining/bean/po/AssistOfficialUser.java new file mode 100644 index 0000000..35a2ccf --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/po/AssistOfficialUser.java @@ -0,0 +1,106 @@ +package com.ccsens.braintraining.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class AssistOfficialUser implements Serializable { + private Long id; + + private Long officialId; + + private Long userId; + + private Byte attentionStatus; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private String openId; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getOfficialId() { + return officialId; + } + + public void setOfficialId(Long officialId) { + this.officialId = officialId; + } + + public Long getUserId() { + return userId; + } + + public void setUserId(Long userId) { + this.userId = userId; + } + + public Byte getAttentionStatus() { + return attentionStatus; + } + + public void setAttentionStatus(Byte attentionStatus) { + this.attentionStatus = attentionStatus; + } + + public Date getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Date createdAt) { + this.createdAt = createdAt; + } + + public Date getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(Date updatedAt) { + this.updatedAt = updatedAt; + } + + public Byte getRecStatus() { + return recStatus; + } + + public void setRecStatus(Byte recStatus) { + this.recStatus = recStatus; + } + + public String getOpenId() { + return openId; + } + + public void setOpenId(String openId) { + this.openId = openId == null ? null : openId.trim(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", officialId=").append(officialId); + sb.append(", userId=").append(userId); + sb.append(", attentionStatus=").append(attentionStatus); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append(", openId=").append(openId); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/bean/po/AssistOfficialUserExample.java b/src/main/java/com/ccsens/braintraining/bean/po/AssistOfficialUserExample.java new file mode 100644 index 0000000..52abd26 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/po/AssistOfficialUserExample.java @@ -0,0 +1,691 @@ +package com.ccsens.braintraining.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class AssistOfficialUserExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public AssistOfficialUserExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andOfficialIdIsNull() { + addCriterion("official_id is null"); + return (Criteria) this; + } + + public Criteria andOfficialIdIsNotNull() { + addCriterion("official_id is not null"); + return (Criteria) this; + } + + public Criteria andOfficialIdEqualTo(Long value) { + addCriterion("official_id =", value, "officialId"); + return (Criteria) this; + } + + public Criteria andOfficialIdNotEqualTo(Long value) { + addCriterion("official_id <>", value, "officialId"); + return (Criteria) this; + } + + public Criteria andOfficialIdGreaterThan(Long value) { + addCriterion("official_id >", value, "officialId"); + return (Criteria) this; + } + + public Criteria andOfficialIdGreaterThanOrEqualTo(Long value) { + addCriterion("official_id >=", value, "officialId"); + return (Criteria) this; + } + + public Criteria andOfficialIdLessThan(Long value) { + addCriterion("official_id <", value, "officialId"); + return (Criteria) this; + } + + public Criteria andOfficialIdLessThanOrEqualTo(Long value) { + addCriterion("official_id <=", value, "officialId"); + return (Criteria) this; + } + + public Criteria andOfficialIdIn(List values) { + addCriterion("official_id in", values, "officialId"); + return (Criteria) this; + } + + public Criteria andOfficialIdNotIn(List values) { + addCriterion("official_id not in", values, "officialId"); + return (Criteria) this; + } + + public Criteria andOfficialIdBetween(Long value1, Long value2) { + addCriterion("official_id between", value1, value2, "officialId"); + return (Criteria) this; + } + + public Criteria andOfficialIdNotBetween(Long value1, Long value2) { + addCriterion("official_id not between", value1, value2, "officialId"); + 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(Long value) { + addCriterion("user_id =", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotEqualTo(Long value) { + addCriterion("user_id <>", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThan(Long value) { + addCriterion("user_id >", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThanOrEqualTo(Long value) { + addCriterion("user_id >=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThan(Long value) { + addCriterion("user_id <", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThanOrEqualTo(Long value) { + addCriterion("user_id <=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdIn(List values) { + addCriterion("user_id in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotIn(List values) { + addCriterion("user_id not in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdBetween(Long value1, Long value2) { + addCriterion("user_id between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotBetween(Long value1, Long value2) { + addCriterion("user_id not between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andAttentionStatusIsNull() { + addCriterion("attention_status is null"); + return (Criteria) this; + } + + public Criteria andAttentionStatusIsNotNull() { + addCriterion("attention_status is not null"); + return (Criteria) this; + } + + public Criteria andAttentionStatusEqualTo(Byte value) { + addCriterion("attention_status =", value, "attentionStatus"); + return (Criteria) this; + } + + public Criteria andAttentionStatusNotEqualTo(Byte value) { + addCriterion("attention_status <>", value, "attentionStatus"); + return (Criteria) this; + } + + public Criteria andAttentionStatusGreaterThan(Byte value) { + addCriterion("attention_status >", value, "attentionStatus"); + return (Criteria) this; + } + + public Criteria andAttentionStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("attention_status >=", value, "attentionStatus"); + return (Criteria) this; + } + + public Criteria andAttentionStatusLessThan(Byte value) { + addCriterion("attention_status <", value, "attentionStatus"); + return (Criteria) this; + } + + public Criteria andAttentionStatusLessThanOrEqualTo(Byte value) { + addCriterion("attention_status <=", value, "attentionStatus"); + return (Criteria) this; + } + + public Criteria andAttentionStatusIn(List values) { + addCriterion("attention_status in", values, "attentionStatus"); + return (Criteria) this; + } + + public Criteria andAttentionStatusNotIn(List values) { + addCriterion("attention_status not in", values, "attentionStatus"); + return (Criteria) this; + } + + public Criteria andAttentionStatusBetween(Byte value1, Byte value2) { + addCriterion("attention_status between", value1, value2, "attentionStatus"); + return (Criteria) this; + } + + public Criteria andAttentionStatusNotBetween(Byte value1, Byte value2) { + addCriterion("attention_status not between", value1, value2, "attentionStatus"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andOpenIdIsNull() { + addCriterion("open_id is null"); + return (Criteria) this; + } + + public Criteria andOpenIdIsNotNull() { + addCriterion("open_id is not null"); + return (Criteria) this; + } + + public Criteria andOpenIdEqualTo(String value) { + addCriterion("open_id =", value, "openId"); + return (Criteria) this; + } + + public Criteria andOpenIdNotEqualTo(String value) { + addCriterion("open_id <>", value, "openId"); + return (Criteria) this; + } + + public Criteria andOpenIdGreaterThan(String value) { + addCriterion("open_id >", value, "openId"); + return (Criteria) this; + } + + public Criteria andOpenIdGreaterThanOrEqualTo(String value) { + addCriterion("open_id >=", value, "openId"); + return (Criteria) this; + } + + public Criteria andOpenIdLessThan(String value) { + addCriterion("open_id <", value, "openId"); + return (Criteria) this; + } + + public Criteria andOpenIdLessThanOrEqualTo(String value) { + addCriterion("open_id <=", value, "openId"); + return (Criteria) this; + } + + public Criteria andOpenIdLike(String value) { + addCriterion("open_id like", value, "openId"); + return (Criteria) this; + } + + public Criteria andOpenIdNotLike(String value) { + addCriterion("open_id not like", value, "openId"); + return (Criteria) this; + } + + public Criteria andOpenIdIn(List values) { + addCriterion("open_id in", values, "openId"); + return (Criteria) this; + } + + public Criteria andOpenIdNotIn(List values) { + addCriterion("open_id not in", values, "openId"); + return (Criteria) this; + } + + public Criteria andOpenIdBetween(String value1, String value2) { + addCriterion("open_id between", value1, value2, "openId"); + return (Criteria) this; + } + + public Criteria andOpenIdNotBetween(String value1, String value2) { + addCriterion("open_id not between", value1, value2, "openId"); + 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/bean/po/TrainActive.java b/src/main/java/com/ccsens/braintraining/bean/po/TrainActive.java new file mode 100644 index 0000000..fad62f4 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/po/TrainActive.java @@ -0,0 +1,128 @@ +package com.ccsens.braintraining.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class TrainActive implements Serializable { + private Long id; + + private Long equipmentId; + + private String name; + + private String description; + + private Long startTime; + + private Long endTime; + + private Long operator; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getEquipmentId() { + return equipmentId; + } + + public void setEquipmentId(Long equipmentId) { + this.equipmentId = equipmentId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name == null ? null : name.trim(); + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description == null ? null : description.trim(); + } + + public Long getStartTime() { + return startTime; + } + + public void setStartTime(Long startTime) { + this.startTime = startTime; + } + + public Long getEndTime() { + return endTime; + } + + public void setEndTime(Long endTime) { + this.endTime = endTime; + } + + public Long getOperator() { + return operator; + } + + public void setOperator(Long operator) { + this.operator = operator; + } + + public Date getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Date createdAt) { + this.createdAt = createdAt; + } + + public Date getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(Date updatedAt) { + this.updatedAt = updatedAt; + } + + public Byte getRecStatus() { + return recStatus; + } + + public void setRecStatus(Byte recStatus) { + this.recStatus = recStatus; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", equipmentId=").append(equipmentId); + sb.append(", name=").append(name); + sb.append(", description=").append(description); + sb.append(", startTime=").append(startTime); + sb.append(", endTime=").append(endTime); + sb.append(", operator=").append(operator); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/bean/po/TrainActiveExample.java b/src/main/java/com/ccsens/braintraining/bean/po/TrainActiveExample.java new file mode 100644 index 0000000..23843c1 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/po/TrainActiveExample.java @@ -0,0 +1,821 @@ +package com.ccsens.braintraining.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class TrainActiveExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public TrainActiveExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andEquipmentIdIsNull() { + addCriterion("equipment_id is null"); + return (Criteria) this; + } + + public Criteria andEquipmentIdIsNotNull() { + addCriterion("equipment_id is not null"); + return (Criteria) this; + } + + public Criteria andEquipmentIdEqualTo(Long value) { + addCriterion("equipment_id =", value, "equipmentId"); + return (Criteria) this; + } + + public Criteria andEquipmentIdNotEqualTo(Long value) { + addCriterion("equipment_id <>", value, "equipmentId"); + return (Criteria) this; + } + + public Criteria andEquipmentIdGreaterThan(Long value) { + addCriterion("equipment_id >", value, "equipmentId"); + return (Criteria) this; + } + + public Criteria andEquipmentIdGreaterThanOrEqualTo(Long value) { + addCriterion("equipment_id >=", value, "equipmentId"); + return (Criteria) this; + } + + public Criteria andEquipmentIdLessThan(Long value) { + addCriterion("equipment_id <", value, "equipmentId"); + return (Criteria) this; + } + + public Criteria andEquipmentIdLessThanOrEqualTo(Long value) { + addCriterion("equipment_id <=", value, "equipmentId"); + return (Criteria) this; + } + + public Criteria andEquipmentIdIn(List values) { + addCriterion("equipment_id in", values, "equipmentId"); + return (Criteria) this; + } + + public Criteria andEquipmentIdNotIn(List values) { + addCriterion("equipment_id not in", values, "equipmentId"); + return (Criteria) this; + } + + public Criteria andEquipmentIdBetween(Long value1, Long value2) { + addCriterion("equipment_id between", value1, value2, "equipmentId"); + return (Criteria) this; + } + + public Criteria andEquipmentIdNotBetween(Long value1, Long value2) { + addCriterion("equipment_id not between", value1, value2, "equipmentId"); + return (Criteria) this; + } + + public Criteria andNameIsNull() { + addCriterion("name is null"); + return (Criteria) this; + } + + public Criteria andNameIsNotNull() { + addCriterion("name is not null"); + return (Criteria) this; + } + + public Criteria andNameEqualTo(String value) { + addCriterion("name =", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotEqualTo(String value) { + addCriterion("name <>", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThan(String value) { + addCriterion("name >", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThanOrEqualTo(String value) { + addCriterion("name >=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThan(String value) { + addCriterion("name <", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThanOrEqualTo(String value) { + addCriterion("name <=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLike(String value) { + addCriterion("name like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotLike(String value) { + addCriterion("name not like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameIn(List values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List values) { + addCriterion("name not in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameBetween(String value1, String value2) { + addCriterion("name between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andNameNotBetween(String value1, String value2) { + addCriterion("name not between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andDescriptionIsNull() { + addCriterion("description is null"); + return (Criteria) this; + } + + public Criteria andDescriptionIsNotNull() { + addCriterion("description is not null"); + return (Criteria) this; + } + + public Criteria andDescriptionEqualTo(String value) { + addCriterion("description =", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotEqualTo(String value) { + addCriterion("description <>", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionGreaterThan(String value) { + addCriterion("description >", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionGreaterThanOrEqualTo(String value) { + addCriterion("description >=", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionLessThan(String value) { + addCriterion("description <", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionLessThanOrEqualTo(String value) { + addCriterion("description <=", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionLike(String value) { + addCriterion("description like", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotLike(String value) { + addCriterion("description not like", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionIn(List values) { + addCriterion("description in", values, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotIn(List values) { + addCriterion("description not in", values, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionBetween(String value1, String value2) { + addCriterion("description between", value1, value2, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotBetween(String value1, String value2) { + addCriterion("description not between", value1, value2, "description"); + return (Criteria) this; + } + + public Criteria andStartTimeIsNull() { + addCriterion("start_time is null"); + return (Criteria) this; + } + + public Criteria andStartTimeIsNotNull() { + addCriterion("start_time is not null"); + return (Criteria) this; + } + + public Criteria andStartTimeEqualTo(Long value) { + addCriterion("start_time =", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeNotEqualTo(Long value) { + addCriterion("start_time <>", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeGreaterThan(Long value) { + addCriterion("start_time >", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeGreaterThanOrEqualTo(Long value) { + addCriterion("start_time >=", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeLessThan(Long value) { + addCriterion("start_time <", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeLessThanOrEqualTo(Long value) { + addCriterion("start_time <=", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeIn(List values) { + addCriterion("start_time in", values, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeNotIn(List values) { + addCriterion("start_time not in", values, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeBetween(Long value1, Long value2) { + addCriterion("start_time between", value1, value2, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeNotBetween(Long value1, Long value2) { + addCriterion("start_time not between", value1, value2, "startTime"); + return (Criteria) this; + } + + public Criteria andEndTimeIsNull() { + addCriterion("end_time is null"); + return (Criteria) this; + } + + public Criteria andEndTimeIsNotNull() { + addCriterion("end_time is not null"); + return (Criteria) this; + } + + public Criteria andEndTimeEqualTo(Long value) { + addCriterion("end_time =", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeNotEqualTo(Long value) { + addCriterion("end_time <>", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeGreaterThan(Long value) { + addCriterion("end_time >", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeGreaterThanOrEqualTo(Long value) { + addCriterion("end_time >=", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeLessThan(Long value) { + addCriterion("end_time <", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeLessThanOrEqualTo(Long value) { + addCriterion("end_time <=", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeIn(List values) { + addCriterion("end_time in", values, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeNotIn(List values) { + addCriterion("end_time not in", values, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeBetween(Long value1, Long value2) { + addCriterion("end_time between", value1, value2, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeNotBetween(Long value1, Long value2) { + addCriterion("end_time not between", value1, value2, "endTime"); + return (Criteria) this; + } + + public Criteria andOperatorIsNull() { + addCriterion("operator is null"); + return (Criteria) this; + } + + public Criteria andOperatorIsNotNull() { + addCriterion("operator is not null"); + return (Criteria) this; + } + + public Criteria andOperatorEqualTo(Long value) { + addCriterion("operator =", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotEqualTo(Long value) { + addCriterion("operator <>", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThan(Long value) { + addCriterion("operator >", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThanOrEqualTo(Long value) { + addCriterion("operator >=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThan(Long value) { + addCriterion("operator <", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThanOrEqualTo(Long value) { + addCriterion("operator <=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorIn(List values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List values) { + addCriterion("operator not in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorBetween(Long value1, Long value2) { + addCriterion("operator between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotBetween(Long value1, Long value2) { + addCriterion("operator not between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/bean/po/TrainActiveLog.java b/src/main/java/com/ccsens/braintraining/bean/po/TrainActiveLog.java new file mode 100644 index 0000000..6a5317e --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/po/TrainActiveLog.java @@ -0,0 +1,139 @@ +package com.ccsens.braintraining.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class TrainActiveLog implements Serializable { + private Long id; + + private Long activeUserId; + + private Long classifyId; + + private Long questionId; + + private String optionContent; + + private Long time; + + private Byte operationType; + + private Long operator; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getActiveUserId() { + return activeUserId; + } + + public void setActiveUserId(Long activeUserId) { + this.activeUserId = activeUserId; + } + + public Long getClassifyId() { + return classifyId; + } + + public void setClassifyId(Long classifyId) { + this.classifyId = classifyId; + } + + public Long getQuestionId() { + return questionId; + } + + public void setQuestionId(Long questionId) { + this.questionId = questionId; + } + + public String getOptionContent() { + return optionContent; + } + + public void setOptionContent(String optionContent) { + this.optionContent = optionContent == null ? null : optionContent.trim(); + } + + public Long getTime() { + return time; + } + + public void setTime(Long time) { + this.time = time; + } + + public Byte getOperationType() { + return operationType; + } + + public void setOperationType(Byte operationType) { + this.operationType = operationType; + } + + public Long getOperator() { + return operator; + } + + public void setOperator(Long operator) { + this.operator = operator; + } + + public Date getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Date createdAt) { + this.createdAt = createdAt; + } + + public Date getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(Date updatedAt) { + this.updatedAt = updatedAt; + } + + public Byte getRecStatus() { + return recStatus; + } + + public void setRecStatus(Byte recStatus) { + this.recStatus = recStatus; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", activeUserId=").append(activeUserId); + sb.append(", classifyId=").append(classifyId); + sb.append(", questionId=").append(questionId); + sb.append(", optionContent=").append(optionContent); + sb.append(", time=").append(time); + sb.append(", operationType=").append(operationType); + sb.append(", operator=").append(operator); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/bean/po/TrainActiveLogExample.java b/src/main/java/com/ccsens/braintraining/bean/po/TrainActiveLogExample.java new file mode 100644 index 0000000..eadb5e6 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/po/TrainActiveLogExample.java @@ -0,0 +1,871 @@ +package com.ccsens.braintraining.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class TrainActiveLogExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public TrainActiveLogExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andActiveUserIdIsNull() { + addCriterion("active_user_id is null"); + return (Criteria) this; + } + + public Criteria andActiveUserIdIsNotNull() { + addCriterion("active_user_id is not null"); + return (Criteria) this; + } + + public Criteria andActiveUserIdEqualTo(Long value) { + addCriterion("active_user_id =", value, "activeUserId"); + return (Criteria) this; + } + + public Criteria andActiveUserIdNotEqualTo(Long value) { + addCriterion("active_user_id <>", value, "activeUserId"); + return (Criteria) this; + } + + public Criteria andActiveUserIdGreaterThan(Long value) { + addCriterion("active_user_id >", value, "activeUserId"); + return (Criteria) this; + } + + public Criteria andActiveUserIdGreaterThanOrEqualTo(Long value) { + addCriterion("active_user_id >=", value, "activeUserId"); + return (Criteria) this; + } + + public Criteria andActiveUserIdLessThan(Long value) { + addCriterion("active_user_id <", value, "activeUserId"); + return (Criteria) this; + } + + public Criteria andActiveUserIdLessThanOrEqualTo(Long value) { + addCriterion("active_user_id <=", value, "activeUserId"); + return (Criteria) this; + } + + public Criteria andActiveUserIdIn(List values) { + addCriterion("active_user_id in", values, "activeUserId"); + return (Criteria) this; + } + + public Criteria andActiveUserIdNotIn(List values) { + addCriterion("active_user_id not in", values, "activeUserId"); + return (Criteria) this; + } + + public Criteria andActiveUserIdBetween(Long value1, Long value2) { + addCriterion("active_user_id between", value1, value2, "activeUserId"); + return (Criteria) this; + } + + public Criteria andActiveUserIdNotBetween(Long value1, Long value2) { + addCriterion("active_user_id not between", value1, value2, "activeUserId"); + return (Criteria) this; + } + + public Criteria andClassifyIdIsNull() { + addCriterion("classify_id is null"); + return (Criteria) this; + } + + public Criteria andClassifyIdIsNotNull() { + addCriterion("classify_id is not null"); + return (Criteria) this; + } + + public Criteria andClassifyIdEqualTo(Long value) { + addCriterion("classify_id =", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdNotEqualTo(Long value) { + addCriterion("classify_id <>", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdGreaterThan(Long value) { + addCriterion("classify_id >", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdGreaterThanOrEqualTo(Long value) { + addCriterion("classify_id >=", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdLessThan(Long value) { + addCriterion("classify_id <", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdLessThanOrEqualTo(Long value) { + addCriterion("classify_id <=", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdIn(List values) { + addCriterion("classify_id in", values, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdNotIn(List values) { + addCriterion("classify_id not in", values, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdBetween(Long value1, Long value2) { + addCriterion("classify_id between", value1, value2, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdNotBetween(Long value1, Long value2) { + addCriterion("classify_id not between", value1, value2, "classifyId"); + return (Criteria) this; + } + + public Criteria andQuestionIdIsNull() { + addCriterion("question_id is null"); + return (Criteria) this; + } + + public Criteria andQuestionIdIsNotNull() { + addCriterion("question_id is not null"); + return (Criteria) this; + } + + public Criteria andQuestionIdEqualTo(Long value) { + addCriterion("question_id =", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdNotEqualTo(Long value) { + addCriterion("question_id <>", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdGreaterThan(Long value) { + addCriterion("question_id >", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdGreaterThanOrEqualTo(Long value) { + addCriterion("question_id >=", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdLessThan(Long value) { + addCriterion("question_id <", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdLessThanOrEqualTo(Long value) { + addCriterion("question_id <=", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdIn(List values) { + addCriterion("question_id in", values, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdNotIn(List values) { + addCriterion("question_id not in", values, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdBetween(Long value1, Long value2) { + addCriterion("question_id between", value1, value2, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdNotBetween(Long value1, Long value2) { + addCriterion("question_id not between", value1, value2, "questionId"); + return (Criteria) this; + } + + public Criteria andOptionContentIsNull() { + addCriterion("option_content is null"); + return (Criteria) this; + } + + public Criteria andOptionContentIsNotNull() { + addCriterion("option_content is not null"); + return (Criteria) this; + } + + public Criteria andOptionContentEqualTo(String value) { + addCriterion("option_content =", value, "optionContent"); + return (Criteria) this; + } + + public Criteria andOptionContentNotEqualTo(String value) { + addCriterion("option_content <>", value, "optionContent"); + return (Criteria) this; + } + + public Criteria andOptionContentGreaterThan(String value) { + addCriterion("option_content >", value, "optionContent"); + return (Criteria) this; + } + + public Criteria andOptionContentGreaterThanOrEqualTo(String value) { + addCriterion("option_content >=", value, "optionContent"); + return (Criteria) this; + } + + public Criteria andOptionContentLessThan(String value) { + addCriterion("option_content <", value, "optionContent"); + return (Criteria) this; + } + + public Criteria andOptionContentLessThanOrEqualTo(String value) { + addCriterion("option_content <=", value, "optionContent"); + return (Criteria) this; + } + + public Criteria andOptionContentLike(String value) { + addCriterion("option_content like", value, "optionContent"); + return (Criteria) this; + } + + public Criteria andOptionContentNotLike(String value) { + addCriterion("option_content not like", value, "optionContent"); + return (Criteria) this; + } + + public Criteria andOptionContentIn(List values) { + addCriterion("option_content in", values, "optionContent"); + return (Criteria) this; + } + + public Criteria andOptionContentNotIn(List values) { + addCriterion("option_content not in", values, "optionContent"); + return (Criteria) this; + } + + public Criteria andOptionContentBetween(String value1, String value2) { + addCriterion("option_content between", value1, value2, "optionContent"); + return (Criteria) this; + } + + public Criteria andOptionContentNotBetween(String value1, String value2) { + addCriterion("option_content not between", value1, value2, "optionContent"); + return (Criteria) this; + } + + public Criteria andTimeIsNull() { + addCriterion("time is null"); + return (Criteria) this; + } + + public Criteria andTimeIsNotNull() { + addCriterion("time is not null"); + return (Criteria) this; + } + + public Criteria andTimeEqualTo(Long value) { + addCriterion("time =", value, "time"); + return (Criteria) this; + } + + public Criteria andTimeNotEqualTo(Long value) { + addCriterion("time <>", value, "time"); + return (Criteria) this; + } + + public Criteria andTimeGreaterThan(Long value) { + addCriterion("time >", value, "time"); + return (Criteria) this; + } + + public Criteria andTimeGreaterThanOrEqualTo(Long value) { + addCriterion("time >=", value, "time"); + return (Criteria) this; + } + + public Criteria andTimeLessThan(Long value) { + addCriterion("time <", value, "time"); + return (Criteria) this; + } + + public Criteria andTimeLessThanOrEqualTo(Long value) { + addCriterion("time <=", value, "time"); + return (Criteria) this; + } + + public Criteria andTimeIn(List values) { + addCriterion("time in", values, "time"); + return (Criteria) this; + } + + public Criteria andTimeNotIn(List values) { + addCriterion("time not in", values, "time"); + return (Criteria) this; + } + + public Criteria andTimeBetween(Long value1, Long value2) { + addCriterion("time between", value1, value2, "time"); + return (Criteria) this; + } + + public Criteria andTimeNotBetween(Long value1, Long value2) { + addCriterion("time not between", value1, value2, "time"); + return (Criteria) this; + } + + public Criteria andOperationTypeIsNull() { + addCriterion("operation_type is null"); + return (Criteria) this; + } + + public Criteria andOperationTypeIsNotNull() { + addCriterion("operation_type is not null"); + return (Criteria) this; + } + + public Criteria andOperationTypeEqualTo(Byte value) { + addCriterion("operation_type =", value, "operationType"); + return (Criteria) this; + } + + public Criteria andOperationTypeNotEqualTo(Byte value) { + addCriterion("operation_type <>", value, "operationType"); + return (Criteria) this; + } + + public Criteria andOperationTypeGreaterThan(Byte value) { + addCriterion("operation_type >", value, "operationType"); + return (Criteria) this; + } + + public Criteria andOperationTypeGreaterThanOrEqualTo(Byte value) { + addCriterion("operation_type >=", value, "operationType"); + return (Criteria) this; + } + + public Criteria andOperationTypeLessThan(Byte value) { + addCriterion("operation_type <", value, "operationType"); + return (Criteria) this; + } + + public Criteria andOperationTypeLessThanOrEqualTo(Byte value) { + addCriterion("operation_type <=", value, "operationType"); + return (Criteria) this; + } + + public Criteria andOperationTypeIn(List values) { + addCriterion("operation_type in", values, "operationType"); + return (Criteria) this; + } + + public Criteria andOperationTypeNotIn(List values) { + addCriterion("operation_type not in", values, "operationType"); + return (Criteria) this; + } + + public Criteria andOperationTypeBetween(Byte value1, Byte value2) { + addCriterion("operation_type between", value1, value2, "operationType"); + return (Criteria) this; + } + + public Criteria andOperationTypeNotBetween(Byte value1, Byte value2) { + addCriterion("operation_type not between", value1, value2, "operationType"); + return (Criteria) this; + } + + public Criteria andOperatorIsNull() { + addCriterion("operator is null"); + return (Criteria) this; + } + + public Criteria andOperatorIsNotNull() { + addCriterion("operator is not null"); + return (Criteria) this; + } + + public Criteria andOperatorEqualTo(Long value) { + addCriterion("operator =", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotEqualTo(Long value) { + addCriterion("operator <>", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThan(Long value) { + addCriterion("operator >", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThanOrEqualTo(Long value) { + addCriterion("operator >=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThan(Long value) { + addCriterion("operator <", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThanOrEqualTo(Long value) { + addCriterion("operator <=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorIn(List values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List values) { + addCriterion("operator not in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorBetween(Long value1, Long value2) { + addCriterion("operator between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotBetween(Long value1, Long value2) { + addCriterion("operator not between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/bean/po/TrainActiveQuestion.java b/src/main/java/com/ccsens/braintraining/bean/po/TrainActiveQuestion.java new file mode 100644 index 0000000..f7740f5 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/po/TrainActiveQuestion.java @@ -0,0 +1,128 @@ +package com.ccsens.braintraining.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class TrainActiveQuestion implements Serializable { + private Long id; + + private Long activeUserId; + + private Long classifyId; + + private Long questionId; + + private String questionContent; + + private String questionAnswer; + + private Long operator; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getActiveUserId() { + return activeUserId; + } + + public void setActiveUserId(Long activeUserId) { + this.activeUserId = activeUserId; + } + + public Long getClassifyId() { + return classifyId; + } + + public void setClassifyId(Long classifyId) { + this.classifyId = classifyId; + } + + public Long getQuestionId() { + return questionId; + } + + public void setQuestionId(Long questionId) { + this.questionId = questionId; + } + + public String getQuestionContent() { + return questionContent; + } + + public void setQuestionContent(String questionContent) { + this.questionContent = questionContent == null ? null : questionContent.trim(); + } + + public String getQuestionAnswer() { + return questionAnswer; + } + + public void setQuestionAnswer(String questionAnswer) { + this.questionAnswer = questionAnswer == null ? null : questionAnswer.trim(); + } + + public Long getOperator() { + return operator; + } + + public void setOperator(Long operator) { + this.operator = operator; + } + + public Date getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Date createdAt) { + this.createdAt = createdAt; + } + + public Date getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(Date updatedAt) { + this.updatedAt = updatedAt; + } + + public Byte getRecStatus() { + return recStatus; + } + + public void setRecStatus(Byte recStatus) { + this.recStatus = recStatus; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", activeUserId=").append(activeUserId); + sb.append(", classifyId=").append(classifyId); + sb.append(", questionId=").append(questionId); + sb.append(", questionContent=").append(questionContent); + sb.append(", questionAnswer=").append(questionAnswer); + sb.append(", operator=").append(operator); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/bean/po/TrainActiveQuestionExample.java b/src/main/java/com/ccsens/braintraining/bean/po/TrainActiveQuestionExample.java new file mode 100644 index 0000000..38e2a15 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/po/TrainActiveQuestionExample.java @@ -0,0 +1,821 @@ +package com.ccsens.braintraining.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class TrainActiveQuestionExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public TrainActiveQuestionExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andActiveUserIdIsNull() { + addCriterion("active_user_id is null"); + return (Criteria) this; + } + + public Criteria andActiveUserIdIsNotNull() { + addCriterion("active_user_id is not null"); + return (Criteria) this; + } + + public Criteria andActiveUserIdEqualTo(Long value) { + addCriterion("active_user_id =", value, "activeUserId"); + return (Criteria) this; + } + + public Criteria andActiveUserIdNotEqualTo(Long value) { + addCriterion("active_user_id <>", value, "activeUserId"); + return (Criteria) this; + } + + public Criteria andActiveUserIdGreaterThan(Long value) { + addCriterion("active_user_id >", value, "activeUserId"); + return (Criteria) this; + } + + public Criteria andActiveUserIdGreaterThanOrEqualTo(Long value) { + addCriterion("active_user_id >=", value, "activeUserId"); + return (Criteria) this; + } + + public Criteria andActiveUserIdLessThan(Long value) { + addCriterion("active_user_id <", value, "activeUserId"); + return (Criteria) this; + } + + public Criteria andActiveUserIdLessThanOrEqualTo(Long value) { + addCriterion("active_user_id <=", value, "activeUserId"); + return (Criteria) this; + } + + public Criteria andActiveUserIdIn(List values) { + addCriterion("active_user_id in", values, "activeUserId"); + return (Criteria) this; + } + + public Criteria andActiveUserIdNotIn(List values) { + addCriterion("active_user_id not in", values, "activeUserId"); + return (Criteria) this; + } + + public Criteria andActiveUserIdBetween(Long value1, Long value2) { + addCriterion("active_user_id between", value1, value2, "activeUserId"); + return (Criteria) this; + } + + public Criteria andActiveUserIdNotBetween(Long value1, Long value2) { + addCriterion("active_user_id not between", value1, value2, "activeUserId"); + return (Criteria) this; + } + + public Criteria andClassifyIdIsNull() { + addCriterion("classify_id is null"); + return (Criteria) this; + } + + public Criteria andClassifyIdIsNotNull() { + addCriterion("classify_id is not null"); + return (Criteria) this; + } + + public Criteria andClassifyIdEqualTo(Long value) { + addCriterion("classify_id =", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdNotEqualTo(Long value) { + addCriterion("classify_id <>", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdGreaterThan(Long value) { + addCriterion("classify_id >", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdGreaterThanOrEqualTo(Long value) { + addCriterion("classify_id >=", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdLessThan(Long value) { + addCriterion("classify_id <", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdLessThanOrEqualTo(Long value) { + addCriterion("classify_id <=", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdIn(List values) { + addCriterion("classify_id in", values, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdNotIn(List values) { + addCriterion("classify_id not in", values, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdBetween(Long value1, Long value2) { + addCriterion("classify_id between", value1, value2, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdNotBetween(Long value1, Long value2) { + addCriterion("classify_id not between", value1, value2, "classifyId"); + return (Criteria) this; + } + + public Criteria andQuestionIdIsNull() { + addCriterion("question_id is null"); + return (Criteria) this; + } + + public Criteria andQuestionIdIsNotNull() { + addCriterion("question_id is not null"); + return (Criteria) this; + } + + public Criteria andQuestionIdEqualTo(Long value) { + addCriterion("question_id =", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdNotEqualTo(Long value) { + addCriterion("question_id <>", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdGreaterThan(Long value) { + addCriterion("question_id >", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdGreaterThanOrEqualTo(Long value) { + addCriterion("question_id >=", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdLessThan(Long value) { + addCriterion("question_id <", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdLessThanOrEqualTo(Long value) { + addCriterion("question_id <=", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdIn(List values) { + addCriterion("question_id in", values, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdNotIn(List values) { + addCriterion("question_id not in", values, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdBetween(Long value1, Long value2) { + addCriterion("question_id between", value1, value2, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdNotBetween(Long value1, Long value2) { + addCriterion("question_id not between", value1, value2, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionContentIsNull() { + addCriterion("question_content is null"); + return (Criteria) this; + } + + public Criteria andQuestionContentIsNotNull() { + addCriterion("question_content is not null"); + return (Criteria) this; + } + + public Criteria andQuestionContentEqualTo(String value) { + addCriterion("question_content =", value, "questionContent"); + return (Criteria) this; + } + + public Criteria andQuestionContentNotEqualTo(String value) { + addCriterion("question_content <>", value, "questionContent"); + return (Criteria) this; + } + + public Criteria andQuestionContentGreaterThan(String value) { + addCriterion("question_content >", value, "questionContent"); + return (Criteria) this; + } + + public Criteria andQuestionContentGreaterThanOrEqualTo(String value) { + addCriterion("question_content >=", value, "questionContent"); + return (Criteria) this; + } + + public Criteria andQuestionContentLessThan(String value) { + addCriterion("question_content <", value, "questionContent"); + return (Criteria) this; + } + + public Criteria andQuestionContentLessThanOrEqualTo(String value) { + addCriterion("question_content <=", value, "questionContent"); + return (Criteria) this; + } + + public Criteria andQuestionContentLike(String value) { + addCriterion("question_content like", value, "questionContent"); + return (Criteria) this; + } + + public Criteria andQuestionContentNotLike(String value) { + addCriterion("question_content not like", value, "questionContent"); + return (Criteria) this; + } + + public Criteria andQuestionContentIn(List values) { + addCriterion("question_content in", values, "questionContent"); + return (Criteria) this; + } + + public Criteria andQuestionContentNotIn(List values) { + addCriterion("question_content not in", values, "questionContent"); + return (Criteria) this; + } + + public Criteria andQuestionContentBetween(String value1, String value2) { + addCriterion("question_content between", value1, value2, "questionContent"); + return (Criteria) this; + } + + public Criteria andQuestionContentNotBetween(String value1, String value2) { + addCriterion("question_content not between", value1, value2, "questionContent"); + return (Criteria) this; + } + + public Criteria andQuestionAnswerIsNull() { + addCriterion("question_answer is null"); + return (Criteria) this; + } + + public Criteria andQuestionAnswerIsNotNull() { + addCriterion("question_answer is not null"); + return (Criteria) this; + } + + public Criteria andQuestionAnswerEqualTo(String value) { + addCriterion("question_answer =", value, "questionAnswer"); + return (Criteria) this; + } + + public Criteria andQuestionAnswerNotEqualTo(String value) { + addCriterion("question_answer <>", value, "questionAnswer"); + return (Criteria) this; + } + + public Criteria andQuestionAnswerGreaterThan(String value) { + addCriterion("question_answer >", value, "questionAnswer"); + return (Criteria) this; + } + + public Criteria andQuestionAnswerGreaterThanOrEqualTo(String value) { + addCriterion("question_answer >=", value, "questionAnswer"); + return (Criteria) this; + } + + public Criteria andQuestionAnswerLessThan(String value) { + addCriterion("question_answer <", value, "questionAnswer"); + return (Criteria) this; + } + + public Criteria andQuestionAnswerLessThanOrEqualTo(String value) { + addCriterion("question_answer <=", value, "questionAnswer"); + return (Criteria) this; + } + + public Criteria andQuestionAnswerLike(String value) { + addCriterion("question_answer like", value, "questionAnswer"); + return (Criteria) this; + } + + public Criteria andQuestionAnswerNotLike(String value) { + addCriterion("question_answer not like", value, "questionAnswer"); + return (Criteria) this; + } + + public Criteria andQuestionAnswerIn(List values) { + addCriterion("question_answer in", values, "questionAnswer"); + return (Criteria) this; + } + + public Criteria andQuestionAnswerNotIn(List values) { + addCriterion("question_answer not in", values, "questionAnswer"); + return (Criteria) this; + } + + public Criteria andQuestionAnswerBetween(String value1, String value2) { + addCriterion("question_answer between", value1, value2, "questionAnswer"); + return (Criteria) this; + } + + public Criteria andQuestionAnswerNotBetween(String value1, String value2) { + addCriterion("question_answer not between", value1, value2, "questionAnswer"); + return (Criteria) this; + } + + public Criteria andOperatorIsNull() { + addCriterion("operator is null"); + return (Criteria) this; + } + + public Criteria andOperatorIsNotNull() { + addCriterion("operator is not null"); + return (Criteria) this; + } + + public Criteria andOperatorEqualTo(Long value) { + addCriterion("operator =", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotEqualTo(Long value) { + addCriterion("operator <>", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThan(Long value) { + addCriterion("operator >", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThanOrEqualTo(Long value) { + addCriterion("operator >=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThan(Long value) { + addCriterion("operator <", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThanOrEqualTo(Long value) { + addCriterion("operator <=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorIn(List values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List values) { + addCriterion("operator not in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorBetween(Long value1, Long value2) { + addCriterion("operator between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotBetween(Long value1, Long value2) { + addCriterion("operator not between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/bean/po/TrainActiveScore.java b/src/main/java/com/ccsens/braintraining/bean/po/TrainActiveScore.java new file mode 100644 index 0000000..22a090b --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/po/TrainActiveScore.java @@ -0,0 +1,117 @@ +package com.ccsens.braintraining.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class TrainActiveScore implements Serializable { + private Long id; + + private Long activeUserId; + + private Long classifyId; + + private Long questionId; + + private Integer score; + + private Long operator; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getActiveUserId() { + return activeUserId; + } + + public void setActiveUserId(Long activeUserId) { + this.activeUserId = activeUserId; + } + + public Long getClassifyId() { + return classifyId; + } + + public void setClassifyId(Long classifyId) { + this.classifyId = classifyId; + } + + public Long getQuestionId() { + return questionId; + } + + public void setQuestionId(Long questionId) { + this.questionId = questionId; + } + + public Integer getScore() { + return score; + } + + public void setScore(Integer score) { + this.score = score; + } + + public Long getOperator() { + return operator; + } + + public void setOperator(Long operator) { + this.operator = operator; + } + + public Date getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Date createdAt) { + this.createdAt = createdAt; + } + + public Date getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(Date updatedAt) { + this.updatedAt = updatedAt; + } + + public Byte getRecStatus() { + return recStatus; + } + + public void setRecStatus(Byte recStatus) { + this.recStatus = recStatus; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", activeUserId=").append(activeUserId); + sb.append(", classifyId=").append(classifyId); + sb.append(", questionId=").append(questionId); + sb.append(", score=").append(score); + sb.append(", operator=").append(operator); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/bean/po/TrainActiveScoreExample.java b/src/main/java/com/ccsens/braintraining/bean/po/TrainActiveScoreExample.java new file mode 100644 index 0000000..cbdd9cf --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/po/TrainActiveScoreExample.java @@ -0,0 +1,741 @@ +package com.ccsens.braintraining.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class TrainActiveScoreExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public TrainActiveScoreExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andActiveUserIdIsNull() { + addCriterion("active_user_id is null"); + return (Criteria) this; + } + + public Criteria andActiveUserIdIsNotNull() { + addCriterion("active_user_id is not null"); + return (Criteria) this; + } + + public Criteria andActiveUserIdEqualTo(Long value) { + addCriterion("active_user_id =", value, "activeUserId"); + return (Criteria) this; + } + + public Criteria andActiveUserIdNotEqualTo(Long value) { + addCriterion("active_user_id <>", value, "activeUserId"); + return (Criteria) this; + } + + public Criteria andActiveUserIdGreaterThan(Long value) { + addCriterion("active_user_id >", value, "activeUserId"); + return (Criteria) this; + } + + public Criteria andActiveUserIdGreaterThanOrEqualTo(Long value) { + addCriterion("active_user_id >=", value, "activeUserId"); + return (Criteria) this; + } + + public Criteria andActiveUserIdLessThan(Long value) { + addCriterion("active_user_id <", value, "activeUserId"); + return (Criteria) this; + } + + public Criteria andActiveUserIdLessThanOrEqualTo(Long value) { + addCriterion("active_user_id <=", value, "activeUserId"); + return (Criteria) this; + } + + public Criteria andActiveUserIdIn(List values) { + addCriterion("active_user_id in", values, "activeUserId"); + return (Criteria) this; + } + + public Criteria andActiveUserIdNotIn(List values) { + addCriterion("active_user_id not in", values, "activeUserId"); + return (Criteria) this; + } + + public Criteria andActiveUserIdBetween(Long value1, Long value2) { + addCriterion("active_user_id between", value1, value2, "activeUserId"); + return (Criteria) this; + } + + public Criteria andActiveUserIdNotBetween(Long value1, Long value2) { + addCriterion("active_user_id not between", value1, value2, "activeUserId"); + return (Criteria) this; + } + + public Criteria andClassifyIdIsNull() { + addCriterion("classify_id is null"); + return (Criteria) this; + } + + public Criteria andClassifyIdIsNotNull() { + addCriterion("classify_id is not null"); + return (Criteria) this; + } + + public Criteria andClassifyIdEqualTo(Long value) { + addCriterion("classify_id =", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdNotEqualTo(Long value) { + addCriterion("classify_id <>", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdGreaterThan(Long value) { + addCriterion("classify_id >", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdGreaterThanOrEqualTo(Long value) { + addCriterion("classify_id >=", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdLessThan(Long value) { + addCriterion("classify_id <", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdLessThanOrEqualTo(Long value) { + addCriterion("classify_id <=", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdIn(List values) { + addCriterion("classify_id in", values, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdNotIn(List values) { + addCriterion("classify_id not in", values, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdBetween(Long value1, Long value2) { + addCriterion("classify_id between", value1, value2, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdNotBetween(Long value1, Long value2) { + addCriterion("classify_id not between", value1, value2, "classifyId"); + return (Criteria) this; + } + + public Criteria andQuestionIdIsNull() { + addCriterion("question_id is null"); + return (Criteria) this; + } + + public Criteria andQuestionIdIsNotNull() { + addCriterion("question_id is not null"); + return (Criteria) this; + } + + public Criteria andQuestionIdEqualTo(Long value) { + addCriterion("question_id =", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdNotEqualTo(Long value) { + addCriterion("question_id <>", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdGreaterThan(Long value) { + addCriterion("question_id >", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdGreaterThanOrEqualTo(Long value) { + addCriterion("question_id >=", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdLessThan(Long value) { + addCriterion("question_id <", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdLessThanOrEqualTo(Long value) { + addCriterion("question_id <=", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdIn(List values) { + addCriterion("question_id in", values, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdNotIn(List values) { + addCriterion("question_id not in", values, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdBetween(Long value1, Long value2) { + addCriterion("question_id between", value1, value2, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdNotBetween(Long value1, Long value2) { + addCriterion("question_id not between", value1, value2, "questionId"); + return (Criteria) this; + } + + public Criteria andScoreIsNull() { + addCriterion("score is null"); + return (Criteria) this; + } + + public Criteria andScoreIsNotNull() { + addCriterion("score is not null"); + return (Criteria) this; + } + + public Criteria andScoreEqualTo(Integer value) { + addCriterion("score =", value, "score"); + return (Criteria) this; + } + + public Criteria andScoreNotEqualTo(Integer value) { + addCriterion("score <>", value, "score"); + return (Criteria) this; + } + + public Criteria andScoreGreaterThan(Integer value) { + addCriterion("score >", value, "score"); + return (Criteria) this; + } + + public Criteria andScoreGreaterThanOrEqualTo(Integer value) { + addCriterion("score >=", value, "score"); + return (Criteria) this; + } + + public Criteria andScoreLessThan(Integer value) { + addCriterion("score <", value, "score"); + return (Criteria) this; + } + + public Criteria andScoreLessThanOrEqualTo(Integer value) { + addCriterion("score <=", value, "score"); + return (Criteria) this; + } + + public Criteria andScoreIn(List values) { + addCriterion("score in", values, "score"); + return (Criteria) this; + } + + public Criteria andScoreNotIn(List values) { + addCriterion("score not in", values, "score"); + return (Criteria) this; + } + + public Criteria andScoreBetween(Integer value1, Integer value2) { + addCriterion("score between", value1, value2, "score"); + return (Criteria) this; + } + + public Criteria andScoreNotBetween(Integer value1, Integer value2) { + addCriterion("score not between", value1, value2, "score"); + return (Criteria) this; + } + + public Criteria andOperatorIsNull() { + addCriterion("operator is null"); + return (Criteria) this; + } + + public Criteria andOperatorIsNotNull() { + addCriterion("operator is not null"); + return (Criteria) this; + } + + public Criteria andOperatorEqualTo(Long value) { + addCriterion("operator =", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotEqualTo(Long value) { + addCriterion("operator <>", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThan(Long value) { + addCriterion("operator >", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThanOrEqualTo(Long value) { + addCriterion("operator >=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThan(Long value) { + addCriterion("operator <", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThanOrEqualTo(Long value) { + addCriterion("operator <=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorIn(List values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List values) { + addCriterion("operator not in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorBetween(Long value1, Long value2) { + addCriterion("operator between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotBetween(Long value1, Long value2) { + addCriterion("operator not between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/bean/po/TrainActiveUser.java b/src/main/java/com/ccsens/braintraining/bean/po/TrainActiveUser.java new file mode 100644 index 0000000..a9aed82 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/po/TrainActiveUser.java @@ -0,0 +1,106 @@ +package com.ccsens.braintraining.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class TrainActiveUser implements Serializable { + private Long id; + + private Long activeId; + + private Long userId; + + private Byte finishStatus; + + private Long operator; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getActiveId() { + return activeId; + } + + public void setActiveId(Long activeId) { + this.activeId = activeId; + } + + public Long getUserId() { + return userId; + } + + public void setUserId(Long userId) { + this.userId = userId; + } + + public Byte getFinishStatus() { + return finishStatus; + } + + public void setFinishStatus(Byte finishStatus) { + this.finishStatus = finishStatus; + } + + public Long getOperator() { + return operator; + } + + public void setOperator(Long operator) { + this.operator = operator; + } + + public Date getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Date createdAt) { + this.createdAt = createdAt; + } + + public Date getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(Date updatedAt) { + this.updatedAt = updatedAt; + } + + public Byte getRecStatus() { + return recStatus; + } + + public void setRecStatus(Byte recStatus) { + this.recStatus = recStatus; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", activeId=").append(activeId); + sb.append(", userId=").append(userId); + sb.append(", finishStatus=").append(finishStatus); + sb.append(", operator=").append(operator); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/bean/po/TrainActiveUserExample.java b/src/main/java/com/ccsens/braintraining/bean/po/TrainActiveUserExample.java new file mode 100644 index 0000000..08111b0 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/po/TrainActiveUserExample.java @@ -0,0 +1,681 @@ +package com.ccsens.braintraining.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class TrainActiveUserExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public TrainActiveUserExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andActiveIdIsNull() { + addCriterion("active_id is null"); + return (Criteria) this; + } + + public Criteria andActiveIdIsNotNull() { + addCriterion("active_id is not null"); + return (Criteria) this; + } + + public Criteria andActiveIdEqualTo(Long value) { + addCriterion("active_id =", value, "activeId"); + return (Criteria) this; + } + + public Criteria andActiveIdNotEqualTo(Long value) { + addCriterion("active_id <>", value, "activeId"); + return (Criteria) this; + } + + public Criteria andActiveIdGreaterThan(Long value) { + addCriterion("active_id >", value, "activeId"); + return (Criteria) this; + } + + public Criteria andActiveIdGreaterThanOrEqualTo(Long value) { + addCriterion("active_id >=", value, "activeId"); + return (Criteria) this; + } + + public Criteria andActiveIdLessThan(Long value) { + addCriterion("active_id <", value, "activeId"); + return (Criteria) this; + } + + public Criteria andActiveIdLessThanOrEqualTo(Long value) { + addCriterion("active_id <=", value, "activeId"); + return (Criteria) this; + } + + public Criteria andActiveIdIn(List values) { + addCriterion("active_id in", values, "activeId"); + return (Criteria) this; + } + + public Criteria andActiveIdNotIn(List values) { + addCriterion("active_id not in", values, "activeId"); + return (Criteria) this; + } + + public Criteria andActiveIdBetween(Long value1, Long value2) { + addCriterion("active_id between", value1, value2, "activeId"); + return (Criteria) this; + } + + public Criteria andActiveIdNotBetween(Long value1, Long value2) { + addCriterion("active_id not between", value1, value2, "activeId"); + 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(Long value) { + addCriterion("user_id =", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotEqualTo(Long value) { + addCriterion("user_id <>", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThan(Long value) { + addCriterion("user_id >", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThanOrEqualTo(Long value) { + addCriterion("user_id >=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThan(Long value) { + addCriterion("user_id <", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThanOrEqualTo(Long value) { + addCriterion("user_id <=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdIn(List values) { + addCriterion("user_id in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotIn(List values) { + addCriterion("user_id not in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdBetween(Long value1, Long value2) { + addCriterion("user_id between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotBetween(Long value1, Long value2) { + addCriterion("user_id not between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andFinishStatusIsNull() { + addCriterion("finish_status is null"); + return (Criteria) this; + } + + public Criteria andFinishStatusIsNotNull() { + addCriterion("finish_status is not null"); + return (Criteria) this; + } + + public Criteria andFinishStatusEqualTo(Byte value) { + addCriterion("finish_status =", value, "finishStatus"); + return (Criteria) this; + } + + public Criteria andFinishStatusNotEqualTo(Byte value) { + addCriterion("finish_status <>", value, "finishStatus"); + return (Criteria) this; + } + + public Criteria andFinishStatusGreaterThan(Byte value) { + addCriterion("finish_status >", value, "finishStatus"); + return (Criteria) this; + } + + public Criteria andFinishStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("finish_status >=", value, "finishStatus"); + return (Criteria) this; + } + + public Criteria andFinishStatusLessThan(Byte value) { + addCriterion("finish_status <", value, "finishStatus"); + return (Criteria) this; + } + + public Criteria andFinishStatusLessThanOrEqualTo(Byte value) { + addCriterion("finish_status <=", value, "finishStatus"); + return (Criteria) this; + } + + public Criteria andFinishStatusIn(List values) { + addCriterion("finish_status in", values, "finishStatus"); + return (Criteria) this; + } + + public Criteria andFinishStatusNotIn(List values) { + addCriterion("finish_status not in", values, "finishStatus"); + return (Criteria) this; + } + + public Criteria andFinishStatusBetween(Byte value1, Byte value2) { + addCriterion("finish_status between", value1, value2, "finishStatus"); + return (Criteria) this; + } + + public Criteria andFinishStatusNotBetween(Byte value1, Byte value2) { + addCriterion("finish_status not between", value1, value2, "finishStatus"); + return (Criteria) this; + } + + public Criteria andOperatorIsNull() { + addCriterion("operator is null"); + return (Criteria) this; + } + + public Criteria andOperatorIsNotNull() { + addCriterion("operator is not null"); + return (Criteria) this; + } + + public Criteria andOperatorEqualTo(Long value) { + addCriterion("operator =", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotEqualTo(Long value) { + addCriterion("operator <>", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThan(Long value) { + addCriterion("operator >", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThanOrEqualTo(Long value) { + addCriterion("operator >=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThan(Long value) { + addCriterion("operator <", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThanOrEqualTo(Long value) { + addCriterion("operator <=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorIn(List values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List values) { + addCriterion("operator not in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorBetween(Long value1, Long value2) { + addCriterion("operator between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotBetween(Long value1, Long value2) { + addCriterion("operator not between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/bean/po/TrainClassify.java b/src/main/java/com/ccsens/braintraining/bean/po/TrainClassify.java new file mode 100644 index 0000000..d45d980 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/po/TrainClassify.java @@ -0,0 +1,117 @@ +package com.ccsens.braintraining.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class TrainClassify implements Serializable { + private Long id; + + private Long parentId; + + private String code; + + private String name; + + private Byte capacity; + + private Long operator; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getParentId() { + return parentId; + } + + public void setParentId(Long parentId) { + this.parentId = parentId; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code == null ? null : code.trim(); + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name == null ? null : name.trim(); + } + + public Byte getCapacity() { + return capacity; + } + + public void setCapacity(Byte capacity) { + this.capacity = capacity; + } + + public Long getOperator() { + return operator; + } + + public void setOperator(Long operator) { + this.operator = operator; + } + + public Date getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Date createdAt) { + this.createdAt = createdAt; + } + + public Date getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(Date updatedAt) { + this.updatedAt = updatedAt; + } + + public Byte getRecStatus() { + return recStatus; + } + + public void setRecStatus(Byte recStatus) { + this.recStatus = recStatus; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", parentId=").append(parentId); + sb.append(", code=").append(code); + sb.append(", name=").append(name); + sb.append(", capacity=").append(capacity); + sb.append(", operator=").append(operator); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/bean/po/TrainClassifyExample.java b/src/main/java/com/ccsens/braintraining/bean/po/TrainClassifyExample.java new file mode 100644 index 0000000..b4a3057 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/po/TrainClassifyExample.java @@ -0,0 +1,761 @@ +package com.ccsens.braintraining.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class TrainClassifyExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public TrainClassifyExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andParentIdIsNull() { + addCriterion("parent_id is null"); + return (Criteria) this; + } + + public Criteria andParentIdIsNotNull() { + addCriterion("parent_id is not null"); + return (Criteria) this; + } + + public Criteria andParentIdEqualTo(Long value) { + addCriterion("parent_id =", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdNotEqualTo(Long value) { + addCriterion("parent_id <>", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdGreaterThan(Long value) { + addCriterion("parent_id >", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdGreaterThanOrEqualTo(Long value) { + addCriterion("parent_id >=", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdLessThan(Long value) { + addCriterion("parent_id <", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdLessThanOrEqualTo(Long value) { + addCriterion("parent_id <=", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdIn(List values) { + addCriterion("parent_id in", values, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdNotIn(List values) { + addCriterion("parent_id not in", values, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdBetween(Long value1, Long value2) { + addCriterion("parent_id between", value1, value2, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdNotBetween(Long value1, Long value2) { + addCriterion("parent_id not between", value1, value2, "parentId"); + return (Criteria) this; + } + + public Criteria andCodeIsNull() { + addCriterion("code is null"); + return (Criteria) this; + } + + public Criteria andCodeIsNotNull() { + addCriterion("code is not null"); + return (Criteria) this; + } + + public Criteria andCodeEqualTo(String value) { + addCriterion("code =", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotEqualTo(String value) { + addCriterion("code <>", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeGreaterThan(String value) { + addCriterion("code >", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeGreaterThanOrEqualTo(String value) { + addCriterion("code >=", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeLessThan(String value) { + addCriterion("code <", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeLessThanOrEqualTo(String value) { + addCriterion("code <=", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeLike(String value) { + addCriterion("code like", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotLike(String value) { + addCriterion("code not like", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeIn(List values) { + addCriterion("code in", values, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotIn(List values) { + addCriterion("code not in", values, "code"); + return (Criteria) this; + } + + public Criteria andCodeBetween(String value1, String value2) { + addCriterion("code between", value1, value2, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotBetween(String value1, String value2) { + addCriterion("code not between", value1, value2, "code"); + return (Criteria) this; + } + + public Criteria andNameIsNull() { + addCriterion("name is null"); + return (Criteria) this; + } + + public Criteria andNameIsNotNull() { + addCriterion("name is not null"); + return (Criteria) this; + } + + public Criteria andNameEqualTo(String value) { + addCriterion("name =", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotEqualTo(String value) { + addCriterion("name <>", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThan(String value) { + addCriterion("name >", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThanOrEqualTo(String value) { + addCriterion("name >=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThan(String value) { + addCriterion("name <", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThanOrEqualTo(String value) { + addCriterion("name <=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLike(String value) { + addCriterion("name like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotLike(String value) { + addCriterion("name not like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameIn(List values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List values) { + addCriterion("name not in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameBetween(String value1, String value2) { + addCriterion("name between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andNameNotBetween(String value1, String value2) { + addCriterion("name not between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andCapacityIsNull() { + addCriterion("capacity is null"); + return (Criteria) this; + } + + public Criteria andCapacityIsNotNull() { + addCriterion("capacity is not null"); + return (Criteria) this; + } + + public Criteria andCapacityEqualTo(Byte value) { + addCriterion("capacity =", value, "capacity"); + return (Criteria) this; + } + + public Criteria andCapacityNotEqualTo(Byte value) { + addCriterion("capacity <>", value, "capacity"); + return (Criteria) this; + } + + public Criteria andCapacityGreaterThan(Byte value) { + addCriterion("capacity >", value, "capacity"); + return (Criteria) this; + } + + public Criteria andCapacityGreaterThanOrEqualTo(Byte value) { + addCriterion("capacity >=", value, "capacity"); + return (Criteria) this; + } + + public Criteria andCapacityLessThan(Byte value) { + addCriterion("capacity <", value, "capacity"); + return (Criteria) this; + } + + public Criteria andCapacityLessThanOrEqualTo(Byte value) { + addCriterion("capacity <=", value, "capacity"); + return (Criteria) this; + } + + public Criteria andCapacityIn(List values) { + addCriterion("capacity in", values, "capacity"); + return (Criteria) this; + } + + public Criteria andCapacityNotIn(List values) { + addCriterion("capacity not in", values, "capacity"); + return (Criteria) this; + } + + public Criteria andCapacityBetween(Byte value1, Byte value2) { + addCriterion("capacity between", value1, value2, "capacity"); + return (Criteria) this; + } + + public Criteria andCapacityNotBetween(Byte value1, Byte value2) { + addCriterion("capacity not between", value1, value2, "capacity"); + return (Criteria) this; + } + + public Criteria andOperatorIsNull() { + addCriterion("operator is null"); + return (Criteria) this; + } + + public Criteria andOperatorIsNotNull() { + addCriterion("operator is not null"); + return (Criteria) this; + } + + public Criteria andOperatorEqualTo(Long value) { + addCriterion("operator =", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotEqualTo(Long value) { + addCriterion("operator <>", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThan(Long value) { + addCriterion("operator >", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThanOrEqualTo(Long value) { + addCriterion("operator >=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThan(Long value) { + addCriterion("operator <", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThanOrEqualTo(Long value) { + addCriterion("operator <=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorIn(List values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List values) { + addCriterion("operator not in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorBetween(Long value1, Long value2) { + addCriterion("operator between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotBetween(Long value1, Long value2) { + addCriterion("operator not between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/bean/po/TrainQuestion.java b/src/main/java/com/ccsens/braintraining/bean/po/TrainQuestion.java new file mode 100644 index 0000000..6c745f2 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/po/TrainQuestion.java @@ -0,0 +1,106 @@ +package com.ccsens.braintraining.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class TrainQuestion implements Serializable { + private Long id; + + private Long classifyId; + + private Byte grade; + + private Integer sort; + + private Long operator; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getClassifyId() { + return classifyId; + } + + public void setClassifyId(Long classifyId) { + this.classifyId = classifyId; + } + + public Byte getGrade() { + return grade; + } + + public void setGrade(Byte grade) { + this.grade = grade; + } + + public Integer getSort() { + return sort; + } + + public void setSort(Integer sort) { + this.sort = sort; + } + + public Long getOperator() { + return operator; + } + + public void setOperator(Long operator) { + this.operator = operator; + } + + public Date getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Date createdAt) { + this.createdAt = createdAt; + } + + public Date getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(Date updatedAt) { + this.updatedAt = updatedAt; + } + + public Byte getRecStatus() { + return recStatus; + } + + public void setRecStatus(Byte recStatus) { + this.recStatus = recStatus; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", classifyId=").append(classifyId); + sb.append(", grade=").append(grade); + sb.append(", sort=").append(sort); + sb.append(", operator=").append(operator); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/bean/po/TrainQuestionAnswer.java b/src/main/java/com/ccsens/braintraining/bean/po/TrainQuestionAnswer.java new file mode 100644 index 0000000..2a51758 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/po/TrainQuestionAnswer.java @@ -0,0 +1,117 @@ +package com.ccsens.braintraining.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class TrainQuestionAnswer implements Serializable { + private Long id; + + private Long questionId; + + private String content; + + private Byte optionType; + + private Integer sort; + + private Long operator; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getQuestionId() { + return questionId; + } + + public void setQuestionId(Long questionId) { + this.questionId = questionId; + } + + public String getContent() { + return content; + } + + public void setContent(String content) { + this.content = content == null ? null : content.trim(); + } + + public Byte getOptionType() { + return optionType; + } + + public void setOptionType(Byte optionType) { + this.optionType = optionType; + } + + public Integer getSort() { + return sort; + } + + public void setSort(Integer sort) { + this.sort = sort; + } + + public Long getOperator() { + return operator; + } + + public void setOperator(Long operator) { + this.operator = operator; + } + + public Date getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Date createdAt) { + this.createdAt = createdAt; + } + + public Date getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(Date updatedAt) { + this.updatedAt = updatedAt; + } + + public Byte getRecStatus() { + return recStatus; + } + + public void setRecStatus(Byte recStatus) { + this.recStatus = recStatus; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", questionId=").append(questionId); + sb.append(", content=").append(content); + sb.append(", optionType=").append(optionType); + sb.append(", sort=").append(sort); + sb.append(", operator=").append(operator); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/bean/po/TrainQuestionAnswerExample.java b/src/main/java/com/ccsens/braintraining/bean/po/TrainQuestionAnswerExample.java new file mode 100644 index 0000000..b50a8a5 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/po/TrainQuestionAnswerExample.java @@ -0,0 +1,751 @@ +package com.ccsens.braintraining.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class TrainQuestionAnswerExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public TrainQuestionAnswerExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andQuestionIdIsNull() { + addCriterion("question_id is null"); + return (Criteria) this; + } + + public Criteria andQuestionIdIsNotNull() { + addCriterion("question_id is not null"); + return (Criteria) this; + } + + public Criteria andQuestionIdEqualTo(Long value) { + addCriterion("question_id =", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdNotEqualTo(Long value) { + addCriterion("question_id <>", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdGreaterThan(Long value) { + addCriterion("question_id >", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdGreaterThanOrEqualTo(Long value) { + addCriterion("question_id >=", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdLessThan(Long value) { + addCriterion("question_id <", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdLessThanOrEqualTo(Long value) { + addCriterion("question_id <=", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdIn(List values) { + addCriterion("question_id in", values, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdNotIn(List values) { + addCriterion("question_id not in", values, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdBetween(Long value1, Long value2) { + addCriterion("question_id between", value1, value2, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdNotBetween(Long value1, Long value2) { + addCriterion("question_id not between", value1, value2, "questionId"); + return (Criteria) this; + } + + public Criteria andContentIsNull() { + addCriterion("content is null"); + return (Criteria) this; + } + + public Criteria andContentIsNotNull() { + addCriterion("content is not null"); + return (Criteria) this; + } + + public Criteria andContentEqualTo(String value) { + addCriterion("content =", value, "content"); + return (Criteria) this; + } + + public Criteria andContentNotEqualTo(String value) { + addCriterion("content <>", value, "content"); + return (Criteria) this; + } + + public Criteria andContentGreaterThan(String value) { + addCriterion("content >", value, "content"); + return (Criteria) this; + } + + public Criteria andContentGreaterThanOrEqualTo(String value) { + addCriterion("content >=", value, "content"); + return (Criteria) this; + } + + public Criteria andContentLessThan(String value) { + addCriterion("content <", value, "content"); + return (Criteria) this; + } + + public Criteria andContentLessThanOrEqualTo(String value) { + addCriterion("content <=", value, "content"); + return (Criteria) this; + } + + public Criteria andContentLike(String value) { + addCriterion("content like", value, "content"); + return (Criteria) this; + } + + public Criteria andContentNotLike(String value) { + addCriterion("content not like", value, "content"); + return (Criteria) this; + } + + public Criteria andContentIn(List values) { + addCriterion("content in", values, "content"); + return (Criteria) this; + } + + public Criteria andContentNotIn(List values) { + addCriterion("content not in", values, "content"); + return (Criteria) this; + } + + public Criteria andContentBetween(String value1, String value2) { + addCriterion("content between", value1, value2, "content"); + return (Criteria) this; + } + + public Criteria andContentNotBetween(String value1, String value2) { + addCriterion("content not between", value1, value2, "content"); + return (Criteria) this; + } + + public Criteria andOptionTypeIsNull() { + addCriterion("option_type is null"); + return (Criteria) this; + } + + public Criteria andOptionTypeIsNotNull() { + addCriterion("option_type is not null"); + return (Criteria) this; + } + + public Criteria andOptionTypeEqualTo(Byte value) { + addCriterion("option_type =", value, "optionType"); + return (Criteria) this; + } + + public Criteria andOptionTypeNotEqualTo(Byte value) { + addCriterion("option_type <>", value, "optionType"); + return (Criteria) this; + } + + public Criteria andOptionTypeGreaterThan(Byte value) { + addCriterion("option_type >", value, "optionType"); + return (Criteria) this; + } + + public Criteria andOptionTypeGreaterThanOrEqualTo(Byte value) { + addCriterion("option_type >=", value, "optionType"); + return (Criteria) this; + } + + public Criteria andOptionTypeLessThan(Byte value) { + addCriterion("option_type <", value, "optionType"); + return (Criteria) this; + } + + public Criteria andOptionTypeLessThanOrEqualTo(Byte value) { + addCriterion("option_type <=", value, "optionType"); + return (Criteria) this; + } + + public Criteria andOptionTypeIn(List values) { + addCriterion("option_type in", values, "optionType"); + return (Criteria) this; + } + + public Criteria andOptionTypeNotIn(List values) { + addCriterion("option_type not in", values, "optionType"); + return (Criteria) this; + } + + public Criteria andOptionTypeBetween(Byte value1, Byte value2) { + addCriterion("option_type between", value1, value2, "optionType"); + return (Criteria) this; + } + + public Criteria andOptionTypeNotBetween(Byte value1, Byte value2) { + addCriterion("option_type not between", value1, value2, "optionType"); + return (Criteria) this; + } + + public Criteria andSortIsNull() { + addCriterion("sort is null"); + return (Criteria) this; + } + + public Criteria andSortIsNotNull() { + addCriterion("sort is not null"); + return (Criteria) this; + } + + public Criteria andSortEqualTo(Integer value) { + addCriterion("sort =", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotEqualTo(Integer value) { + addCriterion("sort <>", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortGreaterThan(Integer value) { + addCriterion("sort >", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortGreaterThanOrEqualTo(Integer value) { + addCriterion("sort >=", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortLessThan(Integer value) { + addCriterion("sort <", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortLessThanOrEqualTo(Integer value) { + addCriterion("sort <=", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortIn(List values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List values) { + addCriterion("sort not in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortBetween(Integer value1, Integer value2) { + addCriterion("sort between", value1, value2, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotBetween(Integer value1, Integer value2) { + addCriterion("sort not between", value1, value2, "sort"); + return (Criteria) this; + } + + public Criteria andOperatorIsNull() { + addCriterion("operator is null"); + return (Criteria) this; + } + + public Criteria andOperatorIsNotNull() { + addCriterion("operator is not null"); + return (Criteria) this; + } + + public Criteria andOperatorEqualTo(Long value) { + addCriterion("operator =", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotEqualTo(Long value) { + addCriterion("operator <>", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThan(Long value) { + addCriterion("operator >", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThanOrEqualTo(Long value) { + addCriterion("operator >=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThan(Long value) { + addCriterion("operator <", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThanOrEqualTo(Long value) { + addCriterion("operator <=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorIn(List values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List values) { + addCriterion("operator not in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorBetween(Long value1, Long value2) { + addCriterion("operator between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotBetween(Long value1, Long value2) { + addCriterion("operator not between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/bean/po/TrainQuestionContent.java b/src/main/java/com/ccsens/braintraining/bean/po/TrainQuestionContent.java new file mode 100644 index 0000000..0b30daf --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/po/TrainQuestionContent.java @@ -0,0 +1,117 @@ +package com.ccsens.braintraining.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class TrainQuestionContent implements Serializable { + private Long id; + + private Long questionId; + + private String content; + + private Byte showType; + + private Integer sort; + + private Long operator; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getQuestionId() { + return questionId; + } + + public void setQuestionId(Long questionId) { + this.questionId = questionId; + } + + public String getContent() { + return content; + } + + public void setContent(String content) { + this.content = content == null ? null : content.trim(); + } + + public Byte getShowType() { + return showType; + } + + public void setShowType(Byte showType) { + this.showType = showType; + } + + public Integer getSort() { + return sort; + } + + public void setSort(Integer sort) { + this.sort = sort; + } + + public Long getOperator() { + return operator; + } + + public void setOperator(Long operator) { + this.operator = operator; + } + + public Date getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Date createdAt) { + this.createdAt = createdAt; + } + + public Date getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(Date updatedAt) { + this.updatedAt = updatedAt; + } + + public Byte getRecStatus() { + return recStatus; + } + + public void setRecStatus(Byte recStatus) { + this.recStatus = recStatus; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", questionId=").append(questionId); + sb.append(", content=").append(content); + sb.append(", showType=").append(showType); + sb.append(", sort=").append(sort); + sb.append(", operator=").append(operator); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/bean/po/TrainQuestionContentExample.java b/src/main/java/com/ccsens/braintraining/bean/po/TrainQuestionContentExample.java new file mode 100644 index 0000000..88f6bb9 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/po/TrainQuestionContentExample.java @@ -0,0 +1,751 @@ +package com.ccsens.braintraining.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class TrainQuestionContentExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public TrainQuestionContentExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andQuestionIdIsNull() { + addCriterion("question_id is null"); + return (Criteria) this; + } + + public Criteria andQuestionIdIsNotNull() { + addCriterion("question_id is not null"); + return (Criteria) this; + } + + public Criteria andQuestionIdEqualTo(Long value) { + addCriterion("question_id =", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdNotEqualTo(Long value) { + addCriterion("question_id <>", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdGreaterThan(Long value) { + addCriterion("question_id >", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdGreaterThanOrEqualTo(Long value) { + addCriterion("question_id >=", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdLessThan(Long value) { + addCriterion("question_id <", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdLessThanOrEqualTo(Long value) { + addCriterion("question_id <=", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdIn(List values) { + addCriterion("question_id in", values, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdNotIn(List values) { + addCriterion("question_id not in", values, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdBetween(Long value1, Long value2) { + addCriterion("question_id between", value1, value2, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdNotBetween(Long value1, Long value2) { + addCriterion("question_id not between", value1, value2, "questionId"); + return (Criteria) this; + } + + public Criteria andContentIsNull() { + addCriterion("content is null"); + return (Criteria) this; + } + + public Criteria andContentIsNotNull() { + addCriterion("content is not null"); + return (Criteria) this; + } + + public Criteria andContentEqualTo(String value) { + addCriterion("content =", value, "content"); + return (Criteria) this; + } + + public Criteria andContentNotEqualTo(String value) { + addCriterion("content <>", value, "content"); + return (Criteria) this; + } + + public Criteria andContentGreaterThan(String value) { + addCriterion("content >", value, "content"); + return (Criteria) this; + } + + public Criteria andContentGreaterThanOrEqualTo(String value) { + addCriterion("content >=", value, "content"); + return (Criteria) this; + } + + public Criteria andContentLessThan(String value) { + addCriterion("content <", value, "content"); + return (Criteria) this; + } + + public Criteria andContentLessThanOrEqualTo(String value) { + addCriterion("content <=", value, "content"); + return (Criteria) this; + } + + public Criteria andContentLike(String value) { + addCriterion("content like", value, "content"); + return (Criteria) this; + } + + public Criteria andContentNotLike(String value) { + addCriterion("content not like", value, "content"); + return (Criteria) this; + } + + public Criteria andContentIn(List values) { + addCriterion("content in", values, "content"); + return (Criteria) this; + } + + public Criteria andContentNotIn(List values) { + addCriterion("content not in", values, "content"); + return (Criteria) this; + } + + public Criteria andContentBetween(String value1, String value2) { + addCriterion("content between", value1, value2, "content"); + return (Criteria) this; + } + + public Criteria andContentNotBetween(String value1, String value2) { + addCriterion("content not between", value1, value2, "content"); + return (Criteria) this; + } + + public Criteria andShowTypeIsNull() { + addCriterion("show_type is null"); + return (Criteria) this; + } + + public Criteria andShowTypeIsNotNull() { + addCriterion("show_type is not null"); + return (Criteria) this; + } + + public Criteria andShowTypeEqualTo(Byte value) { + addCriterion("show_type =", value, "showType"); + return (Criteria) this; + } + + public Criteria andShowTypeNotEqualTo(Byte value) { + addCriterion("show_type <>", value, "showType"); + return (Criteria) this; + } + + public Criteria andShowTypeGreaterThan(Byte value) { + addCriterion("show_type >", value, "showType"); + return (Criteria) this; + } + + public Criteria andShowTypeGreaterThanOrEqualTo(Byte value) { + addCriterion("show_type >=", value, "showType"); + return (Criteria) this; + } + + public Criteria andShowTypeLessThan(Byte value) { + addCriterion("show_type <", value, "showType"); + return (Criteria) this; + } + + public Criteria andShowTypeLessThanOrEqualTo(Byte value) { + addCriterion("show_type <=", value, "showType"); + return (Criteria) this; + } + + public Criteria andShowTypeIn(List values) { + addCriterion("show_type in", values, "showType"); + return (Criteria) this; + } + + public Criteria andShowTypeNotIn(List values) { + addCriterion("show_type not in", values, "showType"); + return (Criteria) this; + } + + public Criteria andShowTypeBetween(Byte value1, Byte value2) { + addCriterion("show_type between", value1, value2, "showType"); + return (Criteria) this; + } + + public Criteria andShowTypeNotBetween(Byte value1, Byte value2) { + addCriterion("show_type not between", value1, value2, "showType"); + return (Criteria) this; + } + + public Criteria andSortIsNull() { + addCriterion("sort is null"); + return (Criteria) this; + } + + public Criteria andSortIsNotNull() { + addCriterion("sort is not null"); + return (Criteria) this; + } + + public Criteria andSortEqualTo(Integer value) { + addCriterion("sort =", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotEqualTo(Integer value) { + addCriterion("sort <>", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortGreaterThan(Integer value) { + addCriterion("sort >", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortGreaterThanOrEqualTo(Integer value) { + addCriterion("sort >=", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortLessThan(Integer value) { + addCriterion("sort <", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortLessThanOrEqualTo(Integer value) { + addCriterion("sort <=", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortIn(List values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List values) { + addCriterion("sort not in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortBetween(Integer value1, Integer value2) { + addCriterion("sort between", value1, value2, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotBetween(Integer value1, Integer value2) { + addCriterion("sort not between", value1, value2, "sort"); + return (Criteria) this; + } + + public Criteria andOperatorIsNull() { + addCriterion("operator is null"); + return (Criteria) this; + } + + public Criteria andOperatorIsNotNull() { + addCriterion("operator is not null"); + return (Criteria) this; + } + + public Criteria andOperatorEqualTo(Long value) { + addCriterion("operator =", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotEqualTo(Long value) { + addCriterion("operator <>", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThan(Long value) { + addCriterion("operator >", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThanOrEqualTo(Long value) { + addCriterion("operator >=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThan(Long value) { + addCriterion("operator <", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThanOrEqualTo(Long value) { + addCriterion("operator <=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorIn(List values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List values) { + addCriterion("operator not in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorBetween(Long value1, Long value2) { + addCriterion("operator between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotBetween(Long value1, Long value2) { + addCriterion("operator not between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/bean/po/TrainQuestionExample.java b/src/main/java/com/ccsens/braintraining/bean/po/TrainQuestionExample.java new file mode 100644 index 0000000..40011be --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/po/TrainQuestionExample.java @@ -0,0 +1,681 @@ +package com.ccsens.braintraining.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class TrainQuestionExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public TrainQuestionExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andClassifyIdIsNull() { + addCriterion("classify_id is null"); + return (Criteria) this; + } + + public Criteria andClassifyIdIsNotNull() { + addCriterion("classify_id is not null"); + return (Criteria) this; + } + + public Criteria andClassifyIdEqualTo(Long value) { + addCriterion("classify_id =", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdNotEqualTo(Long value) { + addCriterion("classify_id <>", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdGreaterThan(Long value) { + addCriterion("classify_id >", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdGreaterThanOrEqualTo(Long value) { + addCriterion("classify_id >=", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdLessThan(Long value) { + addCriterion("classify_id <", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdLessThanOrEqualTo(Long value) { + addCriterion("classify_id <=", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdIn(List values) { + addCriterion("classify_id in", values, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdNotIn(List values) { + addCriterion("classify_id not in", values, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdBetween(Long value1, Long value2) { + addCriterion("classify_id between", value1, value2, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdNotBetween(Long value1, Long value2) { + addCriterion("classify_id not between", value1, value2, "classifyId"); + return (Criteria) this; + } + + public Criteria andGradeIsNull() { + addCriterion("grade is null"); + return (Criteria) this; + } + + public Criteria andGradeIsNotNull() { + addCriterion("grade is not null"); + return (Criteria) this; + } + + public Criteria andGradeEqualTo(Byte value) { + addCriterion("grade =", value, "grade"); + return (Criteria) this; + } + + public Criteria andGradeNotEqualTo(Byte value) { + addCriterion("grade <>", value, "grade"); + return (Criteria) this; + } + + public Criteria andGradeGreaterThan(Byte value) { + addCriterion("grade >", value, "grade"); + return (Criteria) this; + } + + public Criteria andGradeGreaterThanOrEqualTo(Byte value) { + addCriterion("grade >=", value, "grade"); + return (Criteria) this; + } + + public Criteria andGradeLessThan(Byte value) { + addCriterion("grade <", value, "grade"); + return (Criteria) this; + } + + public Criteria andGradeLessThanOrEqualTo(Byte value) { + addCriterion("grade <=", value, "grade"); + return (Criteria) this; + } + + public Criteria andGradeIn(List values) { + addCriterion("grade in", values, "grade"); + return (Criteria) this; + } + + public Criteria andGradeNotIn(List values) { + addCriterion("grade not in", values, "grade"); + return (Criteria) this; + } + + public Criteria andGradeBetween(Byte value1, Byte value2) { + addCriterion("grade between", value1, value2, "grade"); + return (Criteria) this; + } + + public Criteria andGradeNotBetween(Byte value1, Byte value2) { + addCriterion("grade not between", value1, value2, "grade"); + return (Criteria) this; + } + + public Criteria andSortIsNull() { + addCriterion("sort is null"); + return (Criteria) this; + } + + public Criteria andSortIsNotNull() { + addCriterion("sort is not null"); + return (Criteria) this; + } + + public Criteria andSortEqualTo(Integer value) { + addCriterion("sort =", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotEqualTo(Integer value) { + addCriterion("sort <>", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortGreaterThan(Integer value) { + addCriterion("sort >", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortGreaterThanOrEqualTo(Integer value) { + addCriterion("sort >=", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortLessThan(Integer value) { + addCriterion("sort <", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortLessThanOrEqualTo(Integer value) { + addCriterion("sort <=", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortIn(List values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List values) { + addCriterion("sort not in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortBetween(Integer value1, Integer value2) { + addCriterion("sort between", value1, value2, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotBetween(Integer value1, Integer value2) { + addCriterion("sort not between", value1, value2, "sort"); + return (Criteria) this; + } + + public Criteria andOperatorIsNull() { + addCriterion("operator is null"); + return (Criteria) this; + } + + public Criteria andOperatorIsNotNull() { + addCriterion("operator is not null"); + return (Criteria) this; + } + + public Criteria andOperatorEqualTo(Long value) { + addCriterion("operator =", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotEqualTo(Long value) { + addCriterion("operator <>", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThan(Long value) { + addCriterion("operator >", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThanOrEqualTo(Long value) { + addCriterion("operator >=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThan(Long value) { + addCriterion("operator <", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThanOrEqualTo(Long value) { + addCriterion("operator <=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorIn(List values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List values) { + addCriterion("operator not in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorBetween(Long value1, Long value2) { + addCriterion("operator between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotBetween(Long value1, Long value2) { + addCriterion("operator not between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/bean/po/TrainQuestionOption.java b/src/main/java/com/ccsens/braintraining/bean/po/TrainQuestionOption.java new file mode 100644 index 0000000..0c99dba --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/po/TrainQuestionOption.java @@ -0,0 +1,128 @@ +package com.ccsens.braintraining.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class TrainQuestionOption implements Serializable { + private Long id; + + private Long questionId; + + private String content; + + private Byte showType; + + private Byte pageType; + + private Integer sort; + + private Long operator; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getQuestionId() { + return questionId; + } + + public void setQuestionId(Long questionId) { + this.questionId = questionId; + } + + public String getContent() { + return content; + } + + public void setContent(String content) { + this.content = content == null ? null : content.trim(); + } + + public Byte getShowType() { + return showType; + } + + public void setShowType(Byte showType) { + this.showType = showType; + } + + public Byte getPageType() { + return pageType; + } + + public void setPageType(Byte pageType) { + this.pageType = pageType; + } + + public Integer getSort() { + return sort; + } + + public void setSort(Integer sort) { + this.sort = sort; + } + + public Long getOperator() { + return operator; + } + + public void setOperator(Long operator) { + this.operator = operator; + } + + public Date getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Date createdAt) { + this.createdAt = createdAt; + } + + public Date getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(Date updatedAt) { + this.updatedAt = updatedAt; + } + + public Byte getRecStatus() { + return recStatus; + } + + public void setRecStatus(Byte recStatus) { + this.recStatus = recStatus; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", questionId=").append(questionId); + sb.append(", content=").append(content); + sb.append(", showType=").append(showType); + sb.append(", pageType=").append(pageType); + sb.append(", sort=").append(sort); + sb.append(", operator=").append(operator); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/bean/po/TrainQuestionOptionExample.java b/src/main/java/com/ccsens/braintraining/bean/po/TrainQuestionOptionExample.java new file mode 100644 index 0000000..e11f73f --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/po/TrainQuestionOptionExample.java @@ -0,0 +1,811 @@ +package com.ccsens.braintraining.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class TrainQuestionOptionExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public TrainQuestionOptionExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andQuestionIdIsNull() { + addCriterion("question_id is null"); + return (Criteria) this; + } + + public Criteria andQuestionIdIsNotNull() { + addCriterion("question_id is not null"); + return (Criteria) this; + } + + public Criteria andQuestionIdEqualTo(Long value) { + addCriterion("question_id =", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdNotEqualTo(Long value) { + addCriterion("question_id <>", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdGreaterThan(Long value) { + addCriterion("question_id >", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdGreaterThanOrEqualTo(Long value) { + addCriterion("question_id >=", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdLessThan(Long value) { + addCriterion("question_id <", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdLessThanOrEqualTo(Long value) { + addCriterion("question_id <=", value, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdIn(List values) { + addCriterion("question_id in", values, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdNotIn(List values) { + addCriterion("question_id not in", values, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdBetween(Long value1, Long value2) { + addCriterion("question_id between", value1, value2, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdNotBetween(Long value1, Long value2) { + addCriterion("question_id not between", value1, value2, "questionId"); + return (Criteria) this; + } + + public Criteria andContentIsNull() { + addCriterion("content is null"); + return (Criteria) this; + } + + public Criteria andContentIsNotNull() { + addCriterion("content is not null"); + return (Criteria) this; + } + + public Criteria andContentEqualTo(String value) { + addCriterion("content =", value, "content"); + return (Criteria) this; + } + + public Criteria andContentNotEqualTo(String value) { + addCriterion("content <>", value, "content"); + return (Criteria) this; + } + + public Criteria andContentGreaterThan(String value) { + addCriterion("content >", value, "content"); + return (Criteria) this; + } + + public Criteria andContentGreaterThanOrEqualTo(String value) { + addCriterion("content >=", value, "content"); + return (Criteria) this; + } + + public Criteria andContentLessThan(String value) { + addCriterion("content <", value, "content"); + return (Criteria) this; + } + + public Criteria andContentLessThanOrEqualTo(String value) { + addCriterion("content <=", value, "content"); + return (Criteria) this; + } + + public Criteria andContentLike(String value) { + addCriterion("content like", value, "content"); + return (Criteria) this; + } + + public Criteria andContentNotLike(String value) { + addCriterion("content not like", value, "content"); + return (Criteria) this; + } + + public Criteria andContentIn(List values) { + addCriterion("content in", values, "content"); + return (Criteria) this; + } + + public Criteria andContentNotIn(List values) { + addCriterion("content not in", values, "content"); + return (Criteria) this; + } + + public Criteria andContentBetween(String value1, String value2) { + addCriterion("content between", value1, value2, "content"); + return (Criteria) this; + } + + public Criteria andContentNotBetween(String value1, String value2) { + addCriterion("content not between", value1, value2, "content"); + return (Criteria) this; + } + + public Criteria andShowTypeIsNull() { + addCriterion("show_type is null"); + return (Criteria) this; + } + + public Criteria andShowTypeIsNotNull() { + addCriterion("show_type is not null"); + return (Criteria) this; + } + + public Criteria andShowTypeEqualTo(Byte value) { + addCriterion("show_type =", value, "showType"); + return (Criteria) this; + } + + public Criteria andShowTypeNotEqualTo(Byte value) { + addCriterion("show_type <>", value, "showType"); + return (Criteria) this; + } + + public Criteria andShowTypeGreaterThan(Byte value) { + addCriterion("show_type >", value, "showType"); + return (Criteria) this; + } + + public Criteria andShowTypeGreaterThanOrEqualTo(Byte value) { + addCriterion("show_type >=", value, "showType"); + return (Criteria) this; + } + + public Criteria andShowTypeLessThan(Byte value) { + addCriterion("show_type <", value, "showType"); + return (Criteria) this; + } + + public Criteria andShowTypeLessThanOrEqualTo(Byte value) { + addCriterion("show_type <=", value, "showType"); + return (Criteria) this; + } + + public Criteria andShowTypeIn(List values) { + addCriterion("show_type in", values, "showType"); + return (Criteria) this; + } + + public Criteria andShowTypeNotIn(List values) { + addCriterion("show_type not in", values, "showType"); + return (Criteria) this; + } + + public Criteria andShowTypeBetween(Byte value1, Byte value2) { + addCriterion("show_type between", value1, value2, "showType"); + return (Criteria) this; + } + + public Criteria andShowTypeNotBetween(Byte value1, Byte value2) { + addCriterion("show_type not between", value1, value2, "showType"); + return (Criteria) this; + } + + public Criteria andPageTypeIsNull() { + addCriterion("page_type is null"); + return (Criteria) this; + } + + public Criteria andPageTypeIsNotNull() { + addCriterion("page_type is not null"); + return (Criteria) this; + } + + public Criteria andPageTypeEqualTo(Byte value) { + addCriterion("page_type =", value, "pageType"); + return (Criteria) this; + } + + public Criteria andPageTypeNotEqualTo(Byte value) { + addCriterion("page_type <>", value, "pageType"); + return (Criteria) this; + } + + public Criteria andPageTypeGreaterThan(Byte value) { + addCriterion("page_type >", value, "pageType"); + return (Criteria) this; + } + + public Criteria andPageTypeGreaterThanOrEqualTo(Byte value) { + addCriterion("page_type >=", value, "pageType"); + return (Criteria) this; + } + + public Criteria andPageTypeLessThan(Byte value) { + addCriterion("page_type <", value, "pageType"); + return (Criteria) this; + } + + public Criteria andPageTypeLessThanOrEqualTo(Byte value) { + addCriterion("page_type <=", value, "pageType"); + return (Criteria) this; + } + + public Criteria andPageTypeIn(List values) { + addCriterion("page_type in", values, "pageType"); + return (Criteria) this; + } + + public Criteria andPageTypeNotIn(List values) { + addCriterion("page_type not in", values, "pageType"); + return (Criteria) this; + } + + public Criteria andPageTypeBetween(Byte value1, Byte value2) { + addCriterion("page_type between", value1, value2, "pageType"); + return (Criteria) this; + } + + public Criteria andPageTypeNotBetween(Byte value1, Byte value2) { + addCriterion("page_type not between", value1, value2, "pageType"); + return (Criteria) this; + } + + public Criteria andSortIsNull() { + addCriterion("sort is null"); + return (Criteria) this; + } + + public Criteria andSortIsNotNull() { + addCriterion("sort is not null"); + return (Criteria) this; + } + + public Criteria andSortEqualTo(Integer value) { + addCriterion("sort =", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotEqualTo(Integer value) { + addCriterion("sort <>", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortGreaterThan(Integer value) { + addCriterion("sort >", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortGreaterThanOrEqualTo(Integer value) { + addCriterion("sort >=", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortLessThan(Integer value) { + addCriterion("sort <", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortLessThanOrEqualTo(Integer value) { + addCriterion("sort <=", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortIn(List values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List values) { + addCriterion("sort not in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortBetween(Integer value1, Integer value2) { + addCriterion("sort between", value1, value2, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotBetween(Integer value1, Integer value2) { + addCriterion("sort not between", value1, value2, "sort"); + return (Criteria) this; + } + + public Criteria andOperatorIsNull() { + addCriterion("operator is null"); + return (Criteria) this; + } + + public Criteria andOperatorIsNotNull() { + addCriterion("operator is not null"); + return (Criteria) this; + } + + public Criteria andOperatorEqualTo(Long value) { + addCriterion("operator =", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotEqualTo(Long value) { + addCriterion("operator <>", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThan(Long value) { + addCriterion("operator >", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThanOrEqualTo(Long value) { + addCriterion("operator >=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThan(Long value) { + addCriterion("operator <", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThanOrEqualTo(Long value) { + addCriterion("operator <=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorIn(List values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List values) { + addCriterion("operator not in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorBetween(Long value1, Long value2) { + addCriterion("operator between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotBetween(Long value1, Long value2) { + addCriterion("operator not between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/bean/po/TrainRuleGenerate.java b/src/main/java/com/ccsens/braintraining/bean/po/TrainRuleGenerate.java new file mode 100644 index 0000000..3532054 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/po/TrainRuleGenerate.java @@ -0,0 +1,139 @@ +package com.ccsens.braintraining.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class TrainRuleGenerate implements Serializable { + private Long id; + + private Long activeId; + + private Long classifyId; + + private Byte generate; + + private String generateParam; + + private Integer duration; + + private Integer sort; + + private Long operator; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getActiveId() { + return activeId; + } + + public void setActiveId(Long activeId) { + this.activeId = activeId; + } + + public Long getClassifyId() { + return classifyId; + } + + public void setClassifyId(Long classifyId) { + this.classifyId = classifyId; + } + + public Byte getGenerate() { + return generate; + } + + public void setGenerate(Byte generate) { + this.generate = generate; + } + + public String getGenerateParam() { + return generateParam; + } + + public void setGenerateParam(String generateParam) { + this.generateParam = generateParam == null ? null : generateParam.trim(); + } + + public Integer getDuration() { + return duration; + } + + public void setDuration(Integer duration) { + this.duration = duration; + } + + public Integer getSort() { + return sort; + } + + public void setSort(Integer sort) { + this.sort = sort; + } + + public Long getOperator() { + return operator; + } + + public void setOperator(Long operator) { + this.operator = operator; + } + + public Date getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Date createdAt) { + this.createdAt = createdAt; + } + + public Date getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(Date updatedAt) { + this.updatedAt = updatedAt; + } + + public Byte getRecStatus() { + return recStatus; + } + + public void setRecStatus(Byte recStatus) { + this.recStatus = recStatus; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", activeId=").append(activeId); + sb.append(", classifyId=").append(classifyId); + sb.append(", generate=").append(generate); + sb.append(", generateParam=").append(generateParam); + sb.append(", duration=").append(duration); + sb.append(", sort=").append(sort); + sb.append(", operator=").append(operator); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/bean/po/TrainRuleGenerateExample.java b/src/main/java/com/ccsens/braintraining/bean/po/TrainRuleGenerateExample.java new file mode 100644 index 0000000..bd10034 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/po/TrainRuleGenerateExample.java @@ -0,0 +1,871 @@ +package com.ccsens.braintraining.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class TrainRuleGenerateExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public TrainRuleGenerateExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andActiveIdIsNull() { + addCriterion("active_id is null"); + return (Criteria) this; + } + + public Criteria andActiveIdIsNotNull() { + addCriterion("active_id is not null"); + return (Criteria) this; + } + + public Criteria andActiveIdEqualTo(Long value) { + addCriterion("active_id =", value, "activeId"); + return (Criteria) this; + } + + public Criteria andActiveIdNotEqualTo(Long value) { + addCriterion("active_id <>", value, "activeId"); + return (Criteria) this; + } + + public Criteria andActiveIdGreaterThan(Long value) { + addCriterion("active_id >", value, "activeId"); + return (Criteria) this; + } + + public Criteria andActiveIdGreaterThanOrEqualTo(Long value) { + addCriterion("active_id >=", value, "activeId"); + return (Criteria) this; + } + + public Criteria andActiveIdLessThan(Long value) { + addCriterion("active_id <", value, "activeId"); + return (Criteria) this; + } + + public Criteria andActiveIdLessThanOrEqualTo(Long value) { + addCriterion("active_id <=", value, "activeId"); + return (Criteria) this; + } + + public Criteria andActiveIdIn(List values) { + addCriterion("active_id in", values, "activeId"); + return (Criteria) this; + } + + public Criteria andActiveIdNotIn(List values) { + addCriterion("active_id not in", values, "activeId"); + return (Criteria) this; + } + + public Criteria andActiveIdBetween(Long value1, Long value2) { + addCriterion("active_id between", value1, value2, "activeId"); + return (Criteria) this; + } + + public Criteria andActiveIdNotBetween(Long value1, Long value2) { + addCriterion("active_id not between", value1, value2, "activeId"); + return (Criteria) this; + } + + public Criteria andClassifyIdIsNull() { + addCriterion("classify_id is null"); + return (Criteria) this; + } + + public Criteria andClassifyIdIsNotNull() { + addCriterion("classify_id is not null"); + return (Criteria) this; + } + + public Criteria andClassifyIdEqualTo(Long value) { + addCriterion("classify_id =", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdNotEqualTo(Long value) { + addCriterion("classify_id <>", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdGreaterThan(Long value) { + addCriterion("classify_id >", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdGreaterThanOrEqualTo(Long value) { + addCriterion("classify_id >=", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdLessThan(Long value) { + addCriterion("classify_id <", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdLessThanOrEqualTo(Long value) { + addCriterion("classify_id <=", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdIn(List values) { + addCriterion("classify_id in", values, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdNotIn(List values) { + addCriterion("classify_id not in", values, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdBetween(Long value1, Long value2) { + addCriterion("classify_id between", value1, value2, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdNotBetween(Long value1, Long value2) { + addCriterion("classify_id not between", value1, value2, "classifyId"); + return (Criteria) this; + } + + public Criteria andGenerateIsNull() { + addCriterion("generate is null"); + return (Criteria) this; + } + + public Criteria andGenerateIsNotNull() { + addCriterion("generate is not null"); + return (Criteria) this; + } + + public Criteria andGenerateEqualTo(Byte value) { + addCriterion("generate =", value, "generate"); + return (Criteria) this; + } + + public Criteria andGenerateNotEqualTo(Byte value) { + addCriterion("generate <>", value, "generate"); + return (Criteria) this; + } + + public Criteria andGenerateGreaterThan(Byte value) { + addCriterion("generate >", value, "generate"); + return (Criteria) this; + } + + public Criteria andGenerateGreaterThanOrEqualTo(Byte value) { + addCriterion("generate >=", value, "generate"); + return (Criteria) this; + } + + public Criteria andGenerateLessThan(Byte value) { + addCriterion("generate <", value, "generate"); + return (Criteria) this; + } + + public Criteria andGenerateLessThanOrEqualTo(Byte value) { + addCriterion("generate <=", value, "generate"); + return (Criteria) this; + } + + public Criteria andGenerateIn(List values) { + addCriterion("generate in", values, "generate"); + return (Criteria) this; + } + + public Criteria andGenerateNotIn(List values) { + addCriterion("generate not in", values, "generate"); + return (Criteria) this; + } + + public Criteria andGenerateBetween(Byte value1, Byte value2) { + addCriterion("generate between", value1, value2, "generate"); + return (Criteria) this; + } + + public Criteria andGenerateNotBetween(Byte value1, Byte value2) { + addCriterion("generate not between", value1, value2, "generate"); + return (Criteria) this; + } + + public Criteria andGenerateParamIsNull() { + addCriterion("generate_param is null"); + return (Criteria) this; + } + + public Criteria andGenerateParamIsNotNull() { + addCriterion("generate_param is not null"); + return (Criteria) this; + } + + public Criteria andGenerateParamEqualTo(String value) { + addCriterion("generate_param =", value, "generateParam"); + return (Criteria) this; + } + + public Criteria andGenerateParamNotEqualTo(String value) { + addCriterion("generate_param <>", value, "generateParam"); + return (Criteria) this; + } + + public Criteria andGenerateParamGreaterThan(String value) { + addCriterion("generate_param >", value, "generateParam"); + return (Criteria) this; + } + + public Criteria andGenerateParamGreaterThanOrEqualTo(String value) { + addCriterion("generate_param >=", value, "generateParam"); + return (Criteria) this; + } + + public Criteria andGenerateParamLessThan(String value) { + addCriterion("generate_param <", value, "generateParam"); + return (Criteria) this; + } + + public Criteria andGenerateParamLessThanOrEqualTo(String value) { + addCriterion("generate_param <=", value, "generateParam"); + return (Criteria) this; + } + + public Criteria andGenerateParamLike(String value) { + addCriterion("generate_param like", value, "generateParam"); + return (Criteria) this; + } + + public Criteria andGenerateParamNotLike(String value) { + addCriterion("generate_param not like", value, "generateParam"); + return (Criteria) this; + } + + public Criteria andGenerateParamIn(List values) { + addCriterion("generate_param in", values, "generateParam"); + return (Criteria) this; + } + + public Criteria andGenerateParamNotIn(List values) { + addCriterion("generate_param not in", values, "generateParam"); + return (Criteria) this; + } + + public Criteria andGenerateParamBetween(String value1, String value2) { + addCriterion("generate_param between", value1, value2, "generateParam"); + return (Criteria) this; + } + + public Criteria andGenerateParamNotBetween(String value1, String value2) { + addCriterion("generate_param not between", value1, value2, "generateParam"); + return (Criteria) this; + } + + public Criteria andDurationIsNull() { + addCriterion("duration is null"); + return (Criteria) this; + } + + public Criteria andDurationIsNotNull() { + addCriterion("duration is not null"); + return (Criteria) this; + } + + public Criteria andDurationEqualTo(Integer value) { + addCriterion("duration =", value, "duration"); + return (Criteria) this; + } + + public Criteria andDurationNotEqualTo(Integer value) { + addCriterion("duration <>", value, "duration"); + return (Criteria) this; + } + + public Criteria andDurationGreaterThan(Integer value) { + addCriterion("duration >", value, "duration"); + return (Criteria) this; + } + + public Criteria andDurationGreaterThanOrEqualTo(Integer value) { + addCriterion("duration >=", value, "duration"); + return (Criteria) this; + } + + public Criteria andDurationLessThan(Integer value) { + addCriterion("duration <", value, "duration"); + return (Criteria) this; + } + + public Criteria andDurationLessThanOrEqualTo(Integer value) { + addCriterion("duration <=", value, "duration"); + return (Criteria) this; + } + + public Criteria andDurationIn(List values) { + addCriterion("duration in", values, "duration"); + return (Criteria) this; + } + + public Criteria andDurationNotIn(List values) { + addCriterion("duration not in", values, "duration"); + return (Criteria) this; + } + + public Criteria andDurationBetween(Integer value1, Integer value2) { + addCriterion("duration between", value1, value2, "duration"); + return (Criteria) this; + } + + public Criteria andDurationNotBetween(Integer value1, Integer value2) { + addCriterion("duration not between", value1, value2, "duration"); + return (Criteria) this; + } + + public Criteria andSortIsNull() { + addCriterion("sort is null"); + return (Criteria) this; + } + + public Criteria andSortIsNotNull() { + addCriterion("sort is not null"); + return (Criteria) this; + } + + public Criteria andSortEqualTo(Integer value) { + addCriterion("sort =", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotEqualTo(Integer value) { + addCriterion("sort <>", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortGreaterThan(Integer value) { + addCriterion("sort >", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortGreaterThanOrEqualTo(Integer value) { + addCriterion("sort >=", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortLessThan(Integer value) { + addCriterion("sort <", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortLessThanOrEqualTo(Integer value) { + addCriterion("sort <=", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortIn(List values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List values) { + addCriterion("sort not in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortBetween(Integer value1, Integer value2) { + addCriterion("sort between", value1, value2, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotBetween(Integer value1, Integer value2) { + addCriterion("sort not between", value1, value2, "sort"); + return (Criteria) this; + } + + public Criteria andOperatorIsNull() { + addCriterion("operator is null"); + return (Criteria) this; + } + + public Criteria andOperatorIsNotNull() { + addCriterion("operator is not null"); + return (Criteria) this; + } + + public Criteria andOperatorEqualTo(Long value) { + addCriterion("operator =", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotEqualTo(Long value) { + addCriterion("operator <>", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThan(Long value) { + addCriterion("operator >", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThanOrEqualTo(Long value) { + addCriterion("operator >=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThan(Long value) { + addCriterion("operator <", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThanOrEqualTo(Long value) { + addCriterion("operator <=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorIn(List values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List values) { + addCriterion("operator not in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorBetween(Long value1, Long value2) { + addCriterion("operator between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotBetween(Long value1, Long value2) { + addCriterion("operator not between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/bean/po/TrainRuleScore.java b/src/main/java/com/ccsens/braintraining/bean/po/TrainRuleScore.java new file mode 100644 index 0000000..5612ca9 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/po/TrainRuleScore.java @@ -0,0 +1,117 @@ +package com.ccsens.braintraining.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class TrainRuleScore implements Serializable { + private Long id; + + private String code; + + private Long classifyId; + + private Byte calculateType; + + private String calculateParam; + + private Long operator; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code == null ? null : code.trim(); + } + + public Long getClassifyId() { + return classifyId; + } + + public void setClassifyId(Long classifyId) { + this.classifyId = classifyId; + } + + public Byte getCalculateType() { + return calculateType; + } + + public void setCalculateType(Byte calculateType) { + this.calculateType = calculateType; + } + + public String getCalculateParam() { + return calculateParam; + } + + public void setCalculateParam(String calculateParam) { + this.calculateParam = calculateParam == null ? null : calculateParam.trim(); + } + + public Long getOperator() { + return operator; + } + + public void setOperator(Long operator) { + this.operator = operator; + } + + public Date getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Date createdAt) { + this.createdAt = createdAt; + } + + public Date getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(Date updatedAt) { + this.updatedAt = updatedAt; + } + + public Byte getRecStatus() { + return recStatus; + } + + public void setRecStatus(Byte recStatus) { + this.recStatus = recStatus; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", code=").append(code); + sb.append(", classifyId=").append(classifyId); + sb.append(", calculateType=").append(calculateType); + sb.append(", calculateParam=").append(calculateParam); + sb.append(", operator=").append(operator); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/bean/po/TrainRuleScoreExample.java b/src/main/java/com/ccsens/braintraining/bean/po/TrainRuleScoreExample.java new file mode 100644 index 0000000..de03a46 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/po/TrainRuleScoreExample.java @@ -0,0 +1,761 @@ +package com.ccsens.braintraining.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class TrainRuleScoreExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public TrainRuleScoreExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andCodeIsNull() { + addCriterion("code is null"); + return (Criteria) this; + } + + public Criteria andCodeIsNotNull() { + addCriterion("code is not null"); + return (Criteria) this; + } + + public Criteria andCodeEqualTo(String value) { + addCriterion("code =", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotEqualTo(String value) { + addCriterion("code <>", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeGreaterThan(String value) { + addCriterion("code >", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeGreaterThanOrEqualTo(String value) { + addCriterion("code >=", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeLessThan(String value) { + addCriterion("code <", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeLessThanOrEqualTo(String value) { + addCriterion("code <=", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeLike(String value) { + addCriterion("code like", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotLike(String value) { + addCriterion("code not like", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeIn(List values) { + addCriterion("code in", values, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotIn(List values) { + addCriterion("code not in", values, "code"); + return (Criteria) this; + } + + public Criteria andCodeBetween(String value1, String value2) { + addCriterion("code between", value1, value2, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotBetween(String value1, String value2) { + addCriterion("code not between", value1, value2, "code"); + return (Criteria) this; + } + + public Criteria andClassifyIdIsNull() { + addCriterion("classify_id is null"); + return (Criteria) this; + } + + public Criteria andClassifyIdIsNotNull() { + addCriterion("classify_id is not null"); + return (Criteria) this; + } + + public Criteria andClassifyIdEqualTo(Long value) { + addCriterion("classify_id =", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdNotEqualTo(Long value) { + addCriterion("classify_id <>", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdGreaterThan(Long value) { + addCriterion("classify_id >", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdGreaterThanOrEqualTo(Long value) { + addCriterion("classify_id >=", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdLessThan(Long value) { + addCriterion("classify_id <", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdLessThanOrEqualTo(Long value) { + addCriterion("classify_id <=", value, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdIn(List values) { + addCriterion("classify_id in", values, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdNotIn(List values) { + addCriterion("classify_id not in", values, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdBetween(Long value1, Long value2) { + addCriterion("classify_id between", value1, value2, "classifyId"); + return (Criteria) this; + } + + public Criteria andClassifyIdNotBetween(Long value1, Long value2) { + addCriterion("classify_id not between", value1, value2, "classifyId"); + return (Criteria) this; + } + + public Criteria andCalculateTypeIsNull() { + addCriterion("calculate_type is null"); + return (Criteria) this; + } + + public Criteria andCalculateTypeIsNotNull() { + addCriterion("calculate_type is not null"); + return (Criteria) this; + } + + public Criteria andCalculateTypeEqualTo(Byte value) { + addCriterion("calculate_type =", value, "calculateType"); + return (Criteria) this; + } + + public Criteria andCalculateTypeNotEqualTo(Byte value) { + addCriterion("calculate_type <>", value, "calculateType"); + return (Criteria) this; + } + + public Criteria andCalculateTypeGreaterThan(Byte value) { + addCriterion("calculate_type >", value, "calculateType"); + return (Criteria) this; + } + + public Criteria andCalculateTypeGreaterThanOrEqualTo(Byte value) { + addCriterion("calculate_type >=", value, "calculateType"); + return (Criteria) this; + } + + public Criteria andCalculateTypeLessThan(Byte value) { + addCriterion("calculate_type <", value, "calculateType"); + return (Criteria) this; + } + + public Criteria andCalculateTypeLessThanOrEqualTo(Byte value) { + addCriterion("calculate_type <=", value, "calculateType"); + return (Criteria) this; + } + + public Criteria andCalculateTypeIn(List values) { + addCriterion("calculate_type in", values, "calculateType"); + return (Criteria) this; + } + + public Criteria andCalculateTypeNotIn(List values) { + addCriterion("calculate_type not in", values, "calculateType"); + return (Criteria) this; + } + + public Criteria andCalculateTypeBetween(Byte value1, Byte value2) { + addCriterion("calculate_type between", value1, value2, "calculateType"); + return (Criteria) this; + } + + public Criteria andCalculateTypeNotBetween(Byte value1, Byte value2) { + addCriterion("calculate_type not between", value1, value2, "calculateType"); + return (Criteria) this; + } + + public Criteria andCalculateParamIsNull() { + addCriterion("calculate_param is null"); + return (Criteria) this; + } + + public Criteria andCalculateParamIsNotNull() { + addCriterion("calculate_param is not null"); + return (Criteria) this; + } + + public Criteria andCalculateParamEqualTo(String value) { + addCriterion("calculate_param =", value, "calculateParam"); + return (Criteria) this; + } + + public Criteria andCalculateParamNotEqualTo(String value) { + addCriterion("calculate_param <>", value, "calculateParam"); + return (Criteria) this; + } + + public Criteria andCalculateParamGreaterThan(String value) { + addCriterion("calculate_param >", value, "calculateParam"); + return (Criteria) this; + } + + public Criteria andCalculateParamGreaterThanOrEqualTo(String value) { + addCriterion("calculate_param >=", value, "calculateParam"); + return (Criteria) this; + } + + public Criteria andCalculateParamLessThan(String value) { + addCriterion("calculate_param <", value, "calculateParam"); + return (Criteria) this; + } + + public Criteria andCalculateParamLessThanOrEqualTo(String value) { + addCriterion("calculate_param <=", value, "calculateParam"); + return (Criteria) this; + } + + public Criteria andCalculateParamLike(String value) { + addCriterion("calculate_param like", value, "calculateParam"); + return (Criteria) this; + } + + public Criteria andCalculateParamNotLike(String value) { + addCriterion("calculate_param not like", value, "calculateParam"); + return (Criteria) this; + } + + public Criteria andCalculateParamIn(List values) { + addCriterion("calculate_param in", values, "calculateParam"); + return (Criteria) this; + } + + public Criteria andCalculateParamNotIn(List values) { + addCriterion("calculate_param not in", values, "calculateParam"); + return (Criteria) this; + } + + public Criteria andCalculateParamBetween(String value1, String value2) { + addCriterion("calculate_param between", value1, value2, "calculateParam"); + return (Criteria) this; + } + + public Criteria andCalculateParamNotBetween(String value1, String value2) { + addCriterion("calculate_param not between", value1, value2, "calculateParam"); + return (Criteria) this; + } + + public Criteria andOperatorIsNull() { + addCriterion("operator is null"); + return (Criteria) this; + } + + public Criteria andOperatorIsNotNull() { + addCriterion("operator is not null"); + return (Criteria) this; + } + + public Criteria andOperatorEqualTo(Long value) { + addCriterion("operator =", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotEqualTo(Long value) { + addCriterion("operator <>", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThan(Long value) { + addCriterion("operator >", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThanOrEqualTo(Long value) { + addCriterion("operator >=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThan(Long value) { + addCriterion("operator <", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThanOrEqualTo(Long value) { + addCriterion("operator <=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorIn(List values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List values) { + addCriterion("operator not in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorBetween(Long value1, Long value2) { + addCriterion("operator between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotBetween(Long value1, Long value2) { + addCriterion("operator not between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/bean/vo/BrainVo.java b/src/main/java/com/ccsens/braintraining/bean/vo/BrainVo.java new file mode 100644 index 0000000..b107212 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/vo/BrainVo.java @@ -0,0 +1,159 @@ +package com.ccsens.braintraining.bean.vo; + +import cn.hutool.core.collection.CollectionUtil; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import com.ccsens.braintraining.bean.po.TrainActiveQuestion; +import com.ccsens.braintraining.util.BrainTrainingCodeError; +import com.ccsens.braintraining.util.BrainTrainingConstant; +import com.ccsens.util.exception.BaseException; +import com.fasterxml.jackson.annotation.JsonIgnore; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.util.ArrayList; +import java.util.List; + +/** + * @description: + * @author: whj + * @time: 2022/3/25 9:01 + */ +public class BrainVo { + @Data + @ApiModel("脑力测评活动-返回") + public static class Active { + @ApiModelProperty("活动用户ID") + private Long activeUserId; + @ApiModelProperty("题目类型和类型ID") + private List classifies; + + public Active(){} + public Active(Long id, List rules){ + this.activeUserId = id; + if (CollectionUtil.isEmpty(rules)) { + return; + } + this.classifies = new ArrayList<>(); + rules.forEach(rule -> { + Classify classify = new Classify(); + classify.setClassifyId(rule.getClassifyId()); + classify.setClassifyCode(rule.getClassifyCode()); + classify.setClassifyName(rule.getClassifyName()); + this.classifies.add(classify); + }); + } + + } + @Data + @ApiModel("题目分类信息-返回") + public static class Classify { + @ApiModelProperty("训练分类ID") + private Long classifyId; + @ApiModelProperty("类型code") + private String classifyCode; + @ApiModelProperty("类型名字") + private String classifyName; + } + @Data + @ApiModel("组题规则-返回") + public static class GenerateRule{ + @ApiModelProperty("规则ID") + private Long id; + @ApiModelProperty("活动ID") + private Long activeId; + @ApiModelProperty("分类ID") + private Long classifyId; + @ApiModelProperty("组题规则:0:全部随机 1:子类随机 2.各等级随机 3:连续减法") + private Byte generate; + @ApiModelProperty("组题参数") + private String generateParam; + @ApiModelProperty("倒计时时长") + private Integer duration; + @ApiModelProperty("分类code") + private String classifyCode; + @ApiModelProperty("分类名字") + private String classifyName; + } + + @Data + @ApiModel("分类+训练题目-返回") + public static class QuestionClassify { + @ApiModelProperty("分类ID") + private Long classifyId; + @ApiModelProperty("分类code") + private String classifyCode; + @ApiModelProperty("倒计时时长,单位:秒") + private Integer duration; + @ApiModelProperty("题目") + private List questions; + @JsonIgnore + @ApiModelProperty("生成题目") + private Byte generate; + @JsonIgnore + @ApiModelProperty("生成题目的参数") + private String generateParam; + @ApiModelProperty("共多少道题") + private Integer total; + + public Integer getTotal() { + if (total != null || generate == null) { + return total; + } + total = 0; + switch (generate) { + case BrainTrainingConstant.Train.RULE_GENERATE_RANDOM: + RuleGenerateVo.Random random = JSONObject.parseObject(generateParam, RuleGenerateVo.Random.class); + total = random.getNum(); + break; + case BrainTrainingConstant.Train.RULE_GENERATE_CHILD_RANDOM: + List childRandom = JSONArray.parseArray(generateParam, RuleGenerateVo.ChildRandom.class); + for (RuleGenerateVo.ChildRandom r: childRandom) { + total += r.getNum(); + } + break; + case BrainTrainingConstant.Train.RULE_GENERATE_GRADE_RANDOM: + List gradeRandom = JSONArray.parseArray(generateParam, RuleGenerateVo.GradeRandom.class); + for (RuleGenerateVo.GradeRandom r: gradeRandom) { + total += r.getNum(); + } + break; + case BrainTrainingConstant.Train.RULE_GENERATE_CONTINUE_SUB: + RuleGenerateVo.ContinuousSub continueSub = JSONObject.parseObject(generateParam, RuleGenerateVo.ContinuousSub.class); + total = continueSub.getNum(); + break; + default: + throw new BaseException(BrainTrainingCodeError.SETTING_ERROR); + } + return total; + } + } + + @Data + @ApiModel("训练题目-返回") + public static class Question { + @ApiModelProperty("题目ID") + private Long questionId; + @ApiModelProperty("题干") + private List contents; + @ApiModelProperty("选项") + private List options; + } + + @Data + @ApiModel("题干-返回") + public static class QuestionContent { + private Long contentId; + private String content; + private Byte showType; + } + + @Data + @ApiModel("选项-返回") + private static class QuestionOption { + private Long optionId; + private String content; + private Byte showType; + } +} diff --git a/src/main/java/com/ccsens/braintraining/bean/vo/RuleGenerateVo.java b/src/main/java/com/ccsens/braintraining/bean/vo/RuleGenerateVo.java new file mode 100644 index 0000000..0ff8f08 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/bean/vo/RuleGenerateVo.java @@ -0,0 +1,53 @@ +package com.ccsens.braintraining.bean.vo; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * @description: + * @author: whj + * @time: 2022/3/25 9:54 + */ +public class RuleGenerateVo { + + @Data + @ApiModel("组题规则-全部随机") + public static class Random{ + @ApiModelProperty("共生成几题") + private int num; + } + + @Data + @ApiModel("组题规则-子类随机") + public static class ChildRandom{ + @ApiModelProperty("类型ID") + private Long classifyId; + @ApiModelProperty("生成几题") + private int num; + } + @Data + @ApiModel("组题规则-等级随机") + public static class GradeRandom{ + @ApiModelProperty("类型") + private byte grade; + @ApiModelProperty("生成几题") + private int num; + } + @Data + @ApiModel("组题规则-连续减法") + public static class ContinuousSub{ + @ApiModelProperty("生成几题") + private int num; + @ApiModelProperty("被减数最大,包含") + private int minuendMax; + @ApiModelProperty("被减数最小,包含") + private int minuendMin; + @ApiModelProperty("减数最小,包含") + private int subtrahendMax; + @ApiModelProperty("减数最大,包含") + private int subtrahendMin; + @ApiModelProperty("减数不能是m,n") + private String nonNums; + } +} diff --git a/src/main/java/com/ccsens/braintraining/bean/vo/TallVo.java b/src/main/java/com/ccsens/braintraining/bean/vo/TallVo.java index 746febc..31eee47 100644 --- a/src/main/java/com/ccsens/braintraining/bean/vo/TallVo.java +++ b/src/main/java/com/ccsens/braintraining/bean/vo/TallVo.java @@ -17,5 +17,7 @@ public class TallVo { private Long userId; @ApiModelProperty("是否关注公众号 0未关注 1已关注") private byte status; + @ApiModelProperty("openId") + private String openId; } } diff --git a/src/main/java/com/ccsens/braintraining/persist/dao/BrainDao.java b/src/main/java/com/ccsens/braintraining/persist/dao/BrainDao.java new file mode 100644 index 0000000..0a284e5 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/persist/dao/BrainDao.java @@ -0,0 +1,66 @@ +package com.ccsens.braintraining.persist.dao; + +import com.ccsens.braintraining.bean.po.TrainActiveQuestion; +import com.ccsens.braintraining.bean.vo.BrainVo; +import com.ccsens.braintraining.bean.vo.RuleGenerateVo; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * @author: whj + * @time: 2022/3/25 9:00 + */ +public interface BrainDao { + /** + * 查询该类型下的随机若干道题目 + * @param activeId 类型ID + * @param num 题目数量 + * @return 题目ID + */ + List queryRandom(@Param("activeId") Long activeId, @Param("num") int num); + + /** + * 查询指定类型下的随机若干道题目 + * @param childRandom 类型和题目数量 + * @return 题目ID + */ + List queryChildRandom(List childRandom); + + /** + * 查询指定类型下指定等级的的随机若干道题 + * @param activeId 类型 + * @param gradeRandom 等级和题目数量 + * @return 题目ID + */ + List queryGradeRandom(@Param("activeId") Long activeId, @Param("list") List gradeRandom); + + /** + * 根据活动ID查询活动信息 + * @param activeId 活动ID + * @return 活动信息 + */ + List queryGenerateRules(@Param("activeId") Long activeId); + + /** + * 批量添加题目 + * @param questions 题目信息 + */ + void batchInsertActiveQuestion(@Param("list") List questions); + + /** + * 获取指定活动、指定类型的分数 + * @param activeUserId 活动 + * @param classifyId 类型 + * @return 分数 + */ + Integer getScore(@Param("activeUserId") Long activeUserId, @Param("classifyId") Long classifyId); + + /** + * 查询题目信息 + * @param activeUserId 用户活动 + * @param classifyId 类型 + * @return 题目 + */ + BrainVo.QuestionClassify getQuestion(@Param("activeUserId") Long activeUserId, @Param("classifyId") Long classifyId); +} diff --git a/src/main/java/com/ccsens/braintraining/persist/dao/CarouselDao.java b/src/main/java/com/ccsens/braintraining/persist/dao/CarouselDao.java index 509a3fa..4ad2b09 100644 --- a/src/main/java/com/ccsens/braintraining/persist/dao/CarouselDao.java +++ b/src/main/java/com/ccsens/braintraining/persist/dao/CarouselDao.java @@ -1,6 +1,7 @@ package com.ccsens.braintraining.persist.dao; import com.ccsens.braintraining.bean.vo.CarouselVo; +import org.apache.ibatis.annotations.Param; import java.util.List; @@ -11,7 +12,8 @@ import java.util.List; public interface CarouselDao { /** * 查询大屏轮播图 - * @return 轮播 + * @param equipmentId 设备ID + * @return 轮播图 */ - List queryShow(); + List queryShow(@Param("equipmentId") Long equipmentId); } diff --git a/src/main/java/com/ccsens/braintraining/persist/dao/RaffleDao.java b/src/main/java/com/ccsens/braintraining/persist/dao/RaffleDao.java index 4ee41c3..21f7d4a 100644 --- a/src/main/java/com/ccsens/braintraining/persist/dao/RaffleDao.java +++ b/src/main/java/com/ccsens/braintraining/persist/dao/RaffleDao.java @@ -1,5 +1,6 @@ package com.ccsens.braintraining.persist.dao; +import com.ccsens.braintraining.bean.po.AssistOfficial; import com.ccsens.braintraining.bean.po.RaffleActive; import com.ccsens.braintraining.bean.po.RaffleTask; import com.ccsens.braintraining.bean.vo.RaffleVo; @@ -69,4 +70,11 @@ public interface RaffleDao { * @return */ Integer countSubscribe(@Param("taskId") Long taskId, @Param("userId")Long userId); + + /** + * 根据活动ID查询对应的设备关联的微信公众号信息 + * @param activeId 活动ID + * @return 公众号信息 + */ + AssistOfficial getAppMsg(@Param("activeId") Long activeId); } diff --git a/src/main/java/com/ccsens/braintraining/persist/mapper/AssistEquipmentMapper.java b/src/main/java/com/ccsens/braintraining/persist/mapper/AssistEquipmentMapper.java new file mode 100644 index 0000000..353a8c0 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/persist/mapper/AssistEquipmentMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.braintraining.persist.mapper; + +import com.ccsens.braintraining.bean.po.AssistEquipment; +import com.ccsens.braintraining.bean.po.AssistEquipmentExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface AssistEquipmentMapper { + long countByExample(AssistEquipmentExample example); + + int deleteByExample(AssistEquipmentExample example); + + int deleteByPrimaryKey(Long id); + + int insert(AssistEquipment record); + + int insertSelective(AssistEquipment record); + + List selectByExample(AssistEquipmentExample example); + + AssistEquipment selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") AssistEquipment record, @Param("example") AssistEquipmentExample example); + + int updateByExample(@Param("record") AssistEquipment record, @Param("example") AssistEquipmentExample example); + + int updateByPrimaryKeySelective(AssistEquipment record); + + int updateByPrimaryKey(AssistEquipment record); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/persist/mapper/AssistOfficialMapper.java b/src/main/java/com/ccsens/braintraining/persist/mapper/AssistOfficialMapper.java new file mode 100644 index 0000000..deffd3e --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/persist/mapper/AssistOfficialMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.braintraining.persist.mapper; + +import com.ccsens.braintraining.bean.po.AssistOfficial; +import com.ccsens.braintraining.bean.po.AssistOfficialExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface AssistOfficialMapper { + long countByExample(AssistOfficialExample example); + + int deleteByExample(AssistOfficialExample example); + + int deleteByPrimaryKey(Long id); + + int insert(AssistOfficial record); + + int insertSelective(AssistOfficial record); + + List selectByExample(AssistOfficialExample example); + + AssistOfficial selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") AssistOfficial record, @Param("example") AssistOfficialExample example); + + int updateByExample(@Param("record") AssistOfficial record, @Param("example") AssistOfficialExample example); + + int updateByPrimaryKeySelective(AssistOfficial record); + + int updateByPrimaryKey(AssistOfficial record); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/persist/mapper/AssistOfficialUserMapper.java b/src/main/java/com/ccsens/braintraining/persist/mapper/AssistOfficialUserMapper.java new file mode 100644 index 0000000..177366a --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/persist/mapper/AssistOfficialUserMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.braintraining.persist.mapper; + +import com.ccsens.braintraining.bean.po.AssistOfficialUser; +import com.ccsens.braintraining.bean.po.AssistOfficialUserExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface AssistOfficialUserMapper { + long countByExample(AssistOfficialUserExample example); + + int deleteByExample(AssistOfficialUserExample example); + + int deleteByPrimaryKey(Long id); + + int insert(AssistOfficialUser record); + + int insertSelective(AssistOfficialUser record); + + List selectByExample(AssistOfficialUserExample example); + + AssistOfficialUser selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") AssistOfficialUser record, @Param("example") AssistOfficialUserExample example); + + int updateByExample(@Param("record") AssistOfficialUser record, @Param("example") AssistOfficialUserExample example); + + int updateByPrimaryKeySelective(AssistOfficialUser record); + + int updateByPrimaryKey(AssistOfficialUser record); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/persist/mapper/TrainActiveLogMapper.java b/src/main/java/com/ccsens/braintraining/persist/mapper/TrainActiveLogMapper.java new file mode 100644 index 0000000..7133794 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/persist/mapper/TrainActiveLogMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.braintraining.persist.mapper; + +import com.ccsens.braintraining.bean.po.TrainActiveLog; +import com.ccsens.braintraining.bean.po.TrainActiveLogExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TrainActiveLogMapper { + long countByExample(TrainActiveLogExample example); + + int deleteByExample(TrainActiveLogExample example); + + int deleteByPrimaryKey(Long id); + + int insert(TrainActiveLog record); + + int insertSelective(TrainActiveLog record); + + List selectByExample(TrainActiveLogExample example); + + TrainActiveLog selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") TrainActiveLog record, @Param("example") TrainActiveLogExample example); + + int updateByExample(@Param("record") TrainActiveLog record, @Param("example") TrainActiveLogExample example); + + int updateByPrimaryKeySelective(TrainActiveLog record); + + int updateByPrimaryKey(TrainActiveLog record); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/persist/mapper/TrainActiveMapper.java b/src/main/java/com/ccsens/braintraining/persist/mapper/TrainActiveMapper.java new file mode 100644 index 0000000..98a0c75 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/persist/mapper/TrainActiveMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.braintraining.persist.mapper; + +import com.ccsens.braintraining.bean.po.TrainActive; +import com.ccsens.braintraining.bean.po.TrainActiveExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TrainActiveMapper { + long countByExample(TrainActiveExample example); + + int deleteByExample(TrainActiveExample example); + + int deleteByPrimaryKey(Long id); + + int insert(TrainActive record); + + int insertSelective(TrainActive record); + + List selectByExample(TrainActiveExample example); + + TrainActive selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") TrainActive record, @Param("example") TrainActiveExample example); + + int updateByExample(@Param("record") TrainActive record, @Param("example") TrainActiveExample example); + + int updateByPrimaryKeySelective(TrainActive record); + + int updateByPrimaryKey(TrainActive record); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/persist/mapper/TrainActiveQuestionMapper.java b/src/main/java/com/ccsens/braintraining/persist/mapper/TrainActiveQuestionMapper.java new file mode 100644 index 0000000..476a908 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/persist/mapper/TrainActiveQuestionMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.braintraining.persist.mapper; + +import com.ccsens.braintraining.bean.po.TrainActiveQuestion; +import com.ccsens.braintraining.bean.po.TrainActiveQuestionExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TrainActiveQuestionMapper { + long countByExample(TrainActiveQuestionExample example); + + int deleteByExample(TrainActiveQuestionExample example); + + int deleteByPrimaryKey(Long id); + + int insert(TrainActiveQuestion record); + + int insertSelective(TrainActiveQuestion record); + + List selectByExample(TrainActiveQuestionExample example); + + TrainActiveQuestion selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") TrainActiveQuestion record, @Param("example") TrainActiveQuestionExample example); + + int updateByExample(@Param("record") TrainActiveQuestion record, @Param("example") TrainActiveQuestionExample example); + + int updateByPrimaryKeySelective(TrainActiveQuestion record); + + int updateByPrimaryKey(TrainActiveQuestion record); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/persist/mapper/TrainActiveScoreMapper.java b/src/main/java/com/ccsens/braintraining/persist/mapper/TrainActiveScoreMapper.java new file mode 100644 index 0000000..1b76e26 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/persist/mapper/TrainActiveScoreMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.braintraining.persist.mapper; + +import com.ccsens.braintraining.bean.po.TrainActiveScore; +import com.ccsens.braintraining.bean.po.TrainActiveScoreExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TrainActiveScoreMapper { + long countByExample(TrainActiveScoreExample example); + + int deleteByExample(TrainActiveScoreExample example); + + int deleteByPrimaryKey(Long id); + + int insert(TrainActiveScore record); + + int insertSelective(TrainActiveScore record); + + List selectByExample(TrainActiveScoreExample example); + + TrainActiveScore selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") TrainActiveScore record, @Param("example") TrainActiveScoreExample example); + + int updateByExample(@Param("record") TrainActiveScore record, @Param("example") TrainActiveScoreExample example); + + int updateByPrimaryKeySelective(TrainActiveScore record); + + int updateByPrimaryKey(TrainActiveScore record); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/persist/mapper/TrainActiveUserMapper.java b/src/main/java/com/ccsens/braintraining/persist/mapper/TrainActiveUserMapper.java new file mode 100644 index 0000000..27f081f --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/persist/mapper/TrainActiveUserMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.braintraining.persist.mapper; + +import com.ccsens.braintraining.bean.po.TrainActiveUser; +import com.ccsens.braintraining.bean.po.TrainActiveUserExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TrainActiveUserMapper { + long countByExample(TrainActiveUserExample example); + + int deleteByExample(TrainActiveUserExample example); + + int deleteByPrimaryKey(Long id); + + int insert(TrainActiveUser record); + + int insertSelective(TrainActiveUser record); + + List selectByExample(TrainActiveUserExample example); + + TrainActiveUser selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") TrainActiveUser record, @Param("example") TrainActiveUserExample example); + + int updateByExample(@Param("record") TrainActiveUser record, @Param("example") TrainActiveUserExample example); + + int updateByPrimaryKeySelective(TrainActiveUser record); + + int updateByPrimaryKey(TrainActiveUser record); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/persist/mapper/TrainClassifyMapper.java b/src/main/java/com/ccsens/braintraining/persist/mapper/TrainClassifyMapper.java new file mode 100644 index 0000000..85d5a44 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/persist/mapper/TrainClassifyMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.braintraining.persist.mapper; + +import com.ccsens.braintraining.bean.po.TrainClassify; +import com.ccsens.braintraining.bean.po.TrainClassifyExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TrainClassifyMapper { + long countByExample(TrainClassifyExample example); + + int deleteByExample(TrainClassifyExample example); + + int deleteByPrimaryKey(Long id); + + int insert(TrainClassify record); + + int insertSelective(TrainClassify record); + + List selectByExample(TrainClassifyExample example); + + TrainClassify selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") TrainClassify record, @Param("example") TrainClassifyExample example); + + int updateByExample(@Param("record") TrainClassify record, @Param("example") TrainClassifyExample example); + + int updateByPrimaryKeySelective(TrainClassify record); + + int updateByPrimaryKey(TrainClassify record); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/persist/mapper/TrainQuestionAnswerMapper.java b/src/main/java/com/ccsens/braintraining/persist/mapper/TrainQuestionAnswerMapper.java new file mode 100644 index 0000000..c9f6b14 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/persist/mapper/TrainQuestionAnswerMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.braintraining.persist.mapper; + +import com.ccsens.braintraining.bean.po.TrainQuestionAnswer; +import com.ccsens.braintraining.bean.po.TrainQuestionAnswerExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TrainQuestionAnswerMapper { + long countByExample(TrainQuestionAnswerExample example); + + int deleteByExample(TrainQuestionAnswerExample example); + + int deleteByPrimaryKey(Long id); + + int insert(TrainQuestionAnswer record); + + int insertSelective(TrainQuestionAnswer record); + + List selectByExample(TrainQuestionAnswerExample example); + + TrainQuestionAnswer selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") TrainQuestionAnswer record, @Param("example") TrainQuestionAnswerExample example); + + int updateByExample(@Param("record") TrainQuestionAnswer record, @Param("example") TrainQuestionAnswerExample example); + + int updateByPrimaryKeySelective(TrainQuestionAnswer record); + + int updateByPrimaryKey(TrainQuestionAnswer record); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/persist/mapper/TrainQuestionContentMapper.java b/src/main/java/com/ccsens/braintraining/persist/mapper/TrainQuestionContentMapper.java new file mode 100644 index 0000000..132c6d1 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/persist/mapper/TrainQuestionContentMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.braintraining.persist.mapper; + +import com.ccsens.braintraining.bean.po.TrainQuestionContent; +import com.ccsens.braintraining.bean.po.TrainQuestionContentExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TrainQuestionContentMapper { + long countByExample(TrainQuestionContentExample example); + + int deleteByExample(TrainQuestionContentExample example); + + int deleteByPrimaryKey(Long id); + + int insert(TrainQuestionContent record); + + int insertSelective(TrainQuestionContent record); + + List selectByExample(TrainQuestionContentExample example); + + TrainQuestionContent selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") TrainQuestionContent record, @Param("example") TrainQuestionContentExample example); + + int updateByExample(@Param("record") TrainQuestionContent record, @Param("example") TrainQuestionContentExample example); + + int updateByPrimaryKeySelective(TrainQuestionContent record); + + int updateByPrimaryKey(TrainQuestionContent record); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/persist/mapper/TrainQuestionMapper.java b/src/main/java/com/ccsens/braintraining/persist/mapper/TrainQuestionMapper.java new file mode 100644 index 0000000..e41f83d --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/persist/mapper/TrainQuestionMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.braintraining.persist.mapper; + +import com.ccsens.braintraining.bean.po.TrainQuestion; +import com.ccsens.braintraining.bean.po.TrainQuestionExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TrainQuestionMapper { + long countByExample(TrainQuestionExample example); + + int deleteByExample(TrainQuestionExample example); + + int deleteByPrimaryKey(Long id); + + int insert(TrainQuestion record); + + int insertSelective(TrainQuestion record); + + List selectByExample(TrainQuestionExample example); + + TrainQuestion selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") TrainQuestion record, @Param("example") TrainQuestionExample example); + + int updateByExample(@Param("record") TrainQuestion record, @Param("example") TrainQuestionExample example); + + int updateByPrimaryKeySelective(TrainQuestion record); + + int updateByPrimaryKey(TrainQuestion record); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/persist/mapper/TrainQuestionOptionMapper.java b/src/main/java/com/ccsens/braintraining/persist/mapper/TrainQuestionOptionMapper.java new file mode 100644 index 0000000..d2029e3 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/persist/mapper/TrainQuestionOptionMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.braintraining.persist.mapper; + +import com.ccsens.braintraining.bean.po.TrainQuestionOption; +import com.ccsens.braintraining.bean.po.TrainQuestionOptionExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TrainQuestionOptionMapper { + long countByExample(TrainQuestionOptionExample example); + + int deleteByExample(TrainQuestionOptionExample example); + + int deleteByPrimaryKey(Long id); + + int insert(TrainQuestionOption record); + + int insertSelective(TrainQuestionOption record); + + List selectByExample(TrainQuestionOptionExample example); + + TrainQuestionOption selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") TrainQuestionOption record, @Param("example") TrainQuestionOptionExample example); + + int updateByExample(@Param("record") TrainQuestionOption record, @Param("example") TrainQuestionOptionExample example); + + int updateByPrimaryKeySelective(TrainQuestionOption record); + + int updateByPrimaryKey(TrainQuestionOption record); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/persist/mapper/TrainRuleGenerateMapper.java b/src/main/java/com/ccsens/braintraining/persist/mapper/TrainRuleGenerateMapper.java new file mode 100644 index 0000000..a2cda1a --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/persist/mapper/TrainRuleGenerateMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.braintraining.persist.mapper; + +import com.ccsens.braintraining.bean.po.TrainRuleGenerate; +import com.ccsens.braintraining.bean.po.TrainRuleGenerateExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TrainRuleGenerateMapper { + long countByExample(TrainRuleGenerateExample example); + + int deleteByExample(TrainRuleGenerateExample example); + + int deleteByPrimaryKey(Long id); + + int insert(TrainRuleGenerate record); + + int insertSelective(TrainRuleGenerate record); + + List selectByExample(TrainRuleGenerateExample example); + + TrainRuleGenerate selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") TrainRuleGenerate record, @Param("example") TrainRuleGenerateExample example); + + int updateByExample(@Param("record") TrainRuleGenerate record, @Param("example") TrainRuleGenerateExample example); + + int updateByPrimaryKeySelective(TrainRuleGenerate record); + + int updateByPrimaryKey(TrainRuleGenerate record); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/persist/mapper/TrainRuleScoreMapper.java b/src/main/java/com/ccsens/braintraining/persist/mapper/TrainRuleScoreMapper.java new file mode 100644 index 0000000..164c73e --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/persist/mapper/TrainRuleScoreMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.braintraining.persist.mapper; + +import com.ccsens.braintraining.bean.po.TrainRuleScore; +import com.ccsens.braintraining.bean.po.TrainRuleScoreExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TrainRuleScoreMapper { + long countByExample(TrainRuleScoreExample example); + + int deleteByExample(TrainRuleScoreExample example); + + int deleteByPrimaryKey(Long id); + + int insert(TrainRuleScore record); + + int insertSelective(TrainRuleScore record); + + List selectByExample(TrainRuleScoreExample example); + + TrainRuleScore selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") TrainRuleScore record, @Param("example") TrainRuleScoreExample example); + + int updateByExample(@Param("record") TrainRuleScore record, @Param("example") TrainRuleScoreExample example); + + int updateByPrimaryKeySelective(TrainRuleScore record); + + int updateByPrimaryKey(TrainRuleScore record); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/braintraining/service/AsyncService.java b/src/main/java/com/ccsens/braintraining/service/AsyncService.java new file mode 100644 index 0000000..e85433b --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/service/AsyncService.java @@ -0,0 +1,142 @@ +package com.ccsens.braintraining.service; + +import cn.hutool.core.collection.CollectionUtil; +import cn.hutool.core.lang.Snowflake; +import cn.hutool.core.util.StrUtil; +import cn.hutool.http.HttpResponse; +import cn.hutool.http.HttpUtil; +import com.alibaba.fastjson.JSONObject; +import com.ccsens.braintraining.bean.dto.TallDto; +import com.ccsens.braintraining.bean.po.*; +import com.ccsens.braintraining.bean.vo.TallVo; +import com.ccsens.braintraining.persist.dao.RaffleDao; +import com.ccsens.braintraining.persist.mapper.AssistOfficialUserMapper; +import com.ccsens.braintraining.persist.mapper.RafflePrizeMapper; +import com.ccsens.braintraining.util.BrainTrainingCodeError; +import com.ccsens.braintraining.util.BrainTrainingConstant; +import com.ccsens.util.bean.dto.QueryDto; +import com.ccsens.wechatutil.bean.dto.WxTemplateMessage; +import com.ccsens.wechatutil.wxofficial.OfficialAccountMessageUtil; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.scheduling.annotation.Async; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Propagation; +import org.springframework.transaction.annotation.Transactional; + +import javax.annotation.Resource; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * @description: + * @author: whj + * @time: 2022/3/21 17:07 + */ +@Slf4j +@Async +@Service +@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) +public class AsyncService implements IAsyncService { + + @Value("${url.subscriptWx}") + private String subscriptWxUrl; + @Resource + private Snowflake snowflake; + @Resource + private RafflePrizeMapper rafflePrizeMapper; + @Resource + private RaffleDao raffleDao; + @Resource + private AssistOfficialUserMapper assistOfficialUserMapper; + + @Override + public void sendPrize(Long activeId, Long userId, Long prizeId, String token, String deviceId) { + // 判断奖品是否是谢谢惠顾 + RafflePrize prize = rafflePrizeMapper.selectByPrimaryKey(prizeId); + log.info("奖品信息:{}", prize); + if (prize == null || prize.getType() == BrainTrainingConstant.Raffle.PRIZE_TYPE_THANKS) { + return; + } + AssistOfficial official = raffleDao.getAppMsg(activeId); + if(official == null || StrUtil.isEmpty(official.getAppId())) { + log.info("未找到公众号信息:{}", official); + return; + } + // 查找本地的用户对应的openId + AssistOfficialUserExample userExample = new AssistOfficialUserExample(); + userExample.createCriteria().andOfficialIdEqualTo(official.getId()).andUserIdEqualTo(userId); + userExample.setOrderByClause("id desc limit 1"); + List users = assistOfficialUserMapper.selectByExample(userExample); + if (CollectionUtil.isNotEmpty(users) && StrUtil.isNotEmpty(users.get(0).getOpenId())) { + // 发送消息 + sendWxMsg(official.getAppId(), official.getSecret(), official.getTemplateId(), users.get(0).getOpenId(), prize.getName()); + return; + } + // 通过远程查找openId + TallVo.UserOfficial wxMsg = getWxMsg(token, deviceId, official.getAppId()); + if (wxMsg == null || wxMsg.getStatus() == BrainTrainingConstant.User.SUBSCRIPT_NO + || StrUtil.isEmpty(wxMsg.getOpenId())) { + return; + } + // 发送消息 + sendWxMsg(official.getAppId(), official.getSecret(), official.getTemplateId(), wxMsg.getOpenId(), prize.getName()); + // 存储对象 + AssistOfficialUser user = new AssistOfficialUser(); + user.setId(snowflake.nextId()); + user.setOfficialId(official.getId()); + user.setUserId(userId); + user.setOpenId(wxMsg.getOpenId()); + user.setAttentionStatus(wxMsg.getStatus()); + assistOfficialUserMapper.insertSelective(user); + } + + private void sendWxMsg(String appId, String appSecret, String templateId, String openId, String name) { + if (true) {return;} + // TODO 待填充 + WxTemplateMessage message = new WxTemplateMessage(); + message.setTouser(openId); + // templateId:内容类似于:恭喜您抽中了XXX,快去看一看吧 + message.setTemplate_id(templateId); + message.setUrl("跳转路径"); + Map data = new HashMap<>(2); + data.put("first", new WxTemplateMessage.TemplateSettings(name)); + message.setData(data); + List messages = new ArrayList<>(); + messages.add(message); + OfficialAccountMessageUtil.officialMessage(messages, appId, appSecret); + } + + /*** + * 查询用户有无关注该公众号 + * @param token 用户token + * @param deviceId 用户设备ID + * @param appId 公众号appID + * @return 用户关注公众号情况 + */ + private TallVo.UserOfficial getWxMsg(String token, String deviceId, String appId) { + QueryDto dto = new QueryDto<>(); + TallDto.Tencent tencent = new TallDto.Tencent(); + tencent.setAppId(appId); + dto.setParam(tencent); + log.info("调用查询接口, dto:{}, token:{}", dto, token); + HttpResponse execute = HttpUtil.createPost(subscriptWxUrl) + .header(BrainTrainingConstant.User.AUTHORIZATION, token) + .header(BrainTrainingConstant.User.DEVICE_ID, deviceId) + .body(JSONObject.toJSONString(dto)).execute(); + log.info("调用判断用户是否关注公众号接口的结果:{}", execute); + String html = " actives = trainActiveMapper.selectByExample(activeExample); + log.info("脑力活动信息:{}", actives); + if (CollectionUtil.isEmpty(actives)) { + throw new BaseException(BrainTrainingCodeError.BRAIN_ACTIVE_NOT_OPEN); + } + TrainActive active = actives.get(0); + // 查询规则 + List rules = brainDao.queryGenerateRules(active.getId()); + if (CollectionUtil.isEmpty(rules)) { + throw new BaseException(BrainTrainingCodeError.BRAIN_ACTIVE_RULE_NO); + } + // 创建用户活动关系 + TrainActiveUser activeUser = new TrainActiveUser(); + activeUser.setId(snowflake.nextId()); + activeUser.setActiveId(active.getId()); + activeUser.setUserId(userId); + trainActiveUserMapper.insertSelective(activeUser); + // 遍历规则,查询试题 + List questions = new ArrayList<>(); + rules.forEach(rule -> generateQuestion(userId, active, questions, rule)); + // 批量添加题库内容 + if (CollectionUtil.isNotEmpty(questions)) { + log.info("批量生成活动题目"); + brainDao.batchInsertActiveQuestion(questions); + } + return new BrainVo.Active(active.getId(), rules); + } + + @Override + public BrainVo.QuestionClassify queryByClassify(BrainDto.Question param, Long userId) { + long now = System.currentTimeMillis(); + // 判断是否已经做过 + Integer score = brainDao.getScore(param.getActiveUserId(), param.getClassifyId()); + log.info("参数:{},{},分数:{}", param.getActiveUserId(), param.getClassifyId(), score); + if (score != null) { + throw new BaseException(BrainTrainingCodeError.BRAIN_ACTIVE_QUESTION_ANSWER_YES); + } + // 查询题目 + BrainVo.QuestionClassify question = brainDao.getQuestion(param.getActiveUserId(), param.getClassifyId()); + // 记录日志 + TrainActiveLog log = new TrainActiveLog(); + log.setId(snowflake.nextId()); + log.setActiveUserId(param.getActiveUserId()); + log.setClassifyId(param.getClassifyId()); + log.setTime(System.currentTimeMillis()); + log.setOperationType(BrainTrainingConstant.Train.LOG_OPERATE_QUERY); + log.setOperator(userId); + trainActiveLogMapper.insertSelective(log); + return question; + } + + /** + * 按照规则生成题目,并添加到questions中 + * @param userId 操作者ID + * @param active 活动信息 + * @param questions 题目 + * @param rule 规则 + */ + private void generateQuestion(Long userId, TrainActive active, List questions, BrainVo.GenerateRule rule) { + switch (rule.getGenerate()) { + case BrainTrainingConstant.Train.RULE_GENERATE_RANDOM: + RuleGenerateVo.Random random = JSONObject.parseObject(rule.getGenerateParam(), RuleGenerateVo.Random.class); + List randomIds = brainDao.queryRandom(rule.getActiveId(), random.getNum()); + addQuestion(questions, randomIds, active.getId(), userId); + break; + case BrainTrainingConstant.Train.RULE_GENERATE_CHILD_RANDOM: + List childRandom = JSONArray.parseArray(rule.getGenerateParam(), RuleGenerateVo.ChildRandom.class); + List childRandomIds = brainDao.queryChildRandom(childRandom); + addQuestion(questions, childRandomIds, active.getId(), userId); + break; + case BrainTrainingConstant.Train.RULE_GENERATE_GRADE_RANDOM: + List gradeRandom = JSONArray.parseArray(rule.getGenerateParam(), RuleGenerateVo.GradeRandom.class); + List ids = brainDao.queryGradeRandom(rule.getActiveId(), gradeRandom); + addQuestion(questions, ids, active.getId(), userId); + break; + case BrainTrainingConstant.Train.RULE_GENERATE_CONTINUE_SUB: + RuleGenerateVo.ContinuousSub continueSub = JSONObject.parseObject(rule.getGenerateParam(), RuleGenerateVo.ContinuousSub.class); + TrainActiveQuestion question = initContinueSubQuestion(active.getId(), rule.getClassifyId(), continueSub, userId); + questions.add(question); + break; + default: + throw new BaseException(BrainTrainingCodeError.SETTING_ERROR); + } + } + + private TrainActiveQuestion initContinueSubQuestion(Long activeUserId, Long classifyId, RuleGenerateVo.ContinuousSub continueSub, Long userId) { + Random randomNum = new Random(); + // 在指定范围内随机生成被减数 + int minuend = randomNum.nextInt(continueSub.getMinuendMax() - continueSub.getMinuendMin() + 1) + continueSub.getMinuendMin(); + // 在指定范围内随机生成被减数 + int subtrahend = randomNum.nextInt(continueSub.getSubtrahendMax() - continueSub.getSubtrahendMin() + 1) + continueSub.getSubtrahendMin(); + TrainActiveQuestion question = new TrainActiveQuestion(); + question.setId(snowflake.nextId()); + question.setActiveUserId(activeUserId); + question.setClassifyId(classifyId); + question.setQuestionId(0L); + question.setQuestionContent(minuend + BrainTrainingConstant.Train.SYMBOL_SUB + subtrahend); + question.setQuestionAnswer(minuend - subtrahend + ""); + question.setOperator(userId); + return question; + } + + private void addQuestion(List questions, List questionIds, Long activeUserId, Long userId) { + if (CollectionUtil.isEmpty(questionIds)) { + log.info("没有查找到题目,不添加该题型的题目"); + return; + } + questionIds.forEach(id -> { + TrainActiveQuestion question = new TrainActiveQuestion(); + question.setId(snowflake.nextId()); + question.setActiveUserId(activeUserId); + question.setQuestionId(id); + question.setOperator(userId); + question.setQuestionContent(""); + question.setQuestionAnswer(""); + questions.add(question); + }); + } +} diff --git a/src/main/java/com/ccsens/braintraining/service/CarouselService.java b/src/main/java/com/ccsens/braintraining/service/CarouselService.java index 2d89475..34878b8 100644 --- a/src/main/java/com/ccsens/braintraining/service/CarouselService.java +++ b/src/main/java/com/ccsens/braintraining/service/CarouselService.java @@ -1,5 +1,6 @@ package com.ccsens.braintraining.service; +import com.ccsens.braintraining.bean.dto.CarouselDto; import com.ccsens.braintraining.bean.vo.CarouselVo; import com.ccsens.braintraining.persist.dao.CarouselDao; import lombok.extern.slf4j.Slf4j; @@ -23,7 +24,7 @@ public class CarouselService implements ICarouselService { private CarouselDao carouselDao; @Override - public List show() { - return carouselDao.queryShow(); + public List show(CarouselDto.Equipment param) { + return carouselDao.queryShow(param.getEquipmentId()); } } diff --git a/src/main/java/com/ccsens/braintraining/service/IAsyncService.java b/src/main/java/com/ccsens/braintraining/service/IAsyncService.java new file mode 100644 index 0000000..2f92d88 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/service/IAsyncService.java @@ -0,0 +1,19 @@ +package com.ccsens.braintraining.service; + +import com.ccsens.braintraining.bean.vo.RaffleVo; + +/** + * @author: whj + * @time: 2022/3/21 17:05 + */ +public interface IAsyncService { + /** + * 给用户推送中奖信息 + * @param activeId 活动ID + * @param userId 用户ID + * @param prizeId 奖品ID + * @param token token + * @param deviceId 设备ID + */ + void sendPrize(Long activeId, Long userId, Long prizeId, String token, String deviceId); +} diff --git a/src/main/java/com/ccsens/braintraining/service/IBrainService.java b/src/main/java/com/ccsens/braintraining/service/IBrainService.java new file mode 100644 index 0000000..d52d5e5 --- /dev/null +++ b/src/main/java/com/ccsens/braintraining/service/IBrainService.java @@ -0,0 +1,28 @@ +package com.ccsens.braintraining.service; + +import com.ccsens.braintraining.bean.dto.BrainDto; +import com.ccsens.braintraining.bean.vo.BrainVo; +import com.ccsens.util.bean.dto.QueryDto; + +/** + * @author: whj + * @time: 2022/3/25 8:58 + */ +public interface IBrainService { + + /** + * 为当前用户生成一套脑力测评题目 + * @param param 设备信息 + * @param userId 操作人ID + * @return 生成的脑力测评 + */ + BrainVo.Active generateTest(BrainDto.Equipment param, Long userId); + + /** + * 查询用户某次活动中指定类型的题目 + * @param param 活动用户+类型 + * @param userId 用户 + * @return 题目信息 + */ + BrainVo.QuestionClassify queryByClassify(BrainDto.Question param, Long userId); +} diff --git a/src/main/java/com/ccsens/braintraining/service/ICarouselService.java b/src/main/java/com/ccsens/braintraining/service/ICarouselService.java index 4ab4ea4..9de3594 100644 --- a/src/main/java/com/ccsens/braintraining/service/ICarouselService.java +++ b/src/main/java/com/ccsens/braintraining/service/ICarouselService.java @@ -1,5 +1,6 @@ package com.ccsens.braintraining.service; +import com.ccsens.braintraining.bean.dto.CarouselDto; import com.ccsens.braintraining.bean.vo.CarouselVo; import java.util.List; @@ -11,7 +12,9 @@ import java.util.List; public interface ICarouselService { /** * 查询大屏轮播图 + * @param param 设备信息 * @return + * */ - List show(); + List show(CarouselDto.Equipment param); } diff --git a/src/main/java/com/ccsens/braintraining/service/IRaffleService.java b/src/main/java/com/ccsens/braintraining/service/IRaffleService.java index cf95d93..0c628d6 100644 --- a/src/main/java/com/ccsens/braintraining/service/IRaffleService.java +++ b/src/main/java/com/ccsens/braintraining/service/IRaffleService.java @@ -31,7 +31,7 @@ public interface IRaffleService { * @param userId 用户ID * @return 奖品 */ - RaffleVo.Prize draw(RaffleDto.ActiveId param, Long userId); + RaffleVo.Prize draw(RaffleDto.ActiveId param, Long userId, String token, String deviceId); /** * 查询用户的中奖纪录 diff --git a/src/main/java/com/ccsens/braintraining/service/RaffleService.java b/src/main/java/com/ccsens/braintraining/service/RaffleService.java index 4e55858..c251331 100644 --- a/src/main/java/com/ccsens/braintraining/service/RaffleService.java +++ b/src/main/java/com/ccsens/braintraining/service/RaffleService.java @@ -22,7 +22,6 @@ import com.ccsens.braintraining.util.BrainTrainingConstant; import com.ccsens.util.WebConstant; import com.ccsens.util.bean.dto.QueryDto; import com.ccsens.util.exception.BaseException; -import com.ccsens.wechatutil.bean.dto.WxTemplateMessage; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import lombok.extern.slf4j.Slf4j; @@ -59,6 +58,8 @@ public class RaffleService implements IRaffleService { private RaffleTimesMapper raffleTimesMapper; @Resource private RaffleTaskParamMapper raffleTaskParamMapper; + @Resource + private IAsyncService asyncService; @@ -81,7 +82,7 @@ public class RaffleService implements IRaffleService { } @Override - public RaffleVo.Prize draw(RaffleDto.ActiveId param, Long userId) { + public RaffleVo.Prize draw(RaffleDto.ActiveId param, Long userId, String token, String deviceId) { // 判断抽奖是否在活动期 RaffleActive active = raffleActiveMapper.selectByPrimaryKey(param.getActiveId()); @@ -131,7 +132,8 @@ public class RaffleService implements IRaffleService { raffleRecordMapper.insertSelective(record); // 设置奖品剩余数-1 raffleDao.decreasePrize(prize.getPrizeId()); - + // TODO 通知 + asyncService.sendPrize(param.getActiveId(), userId, prize.getPrizeId(), token, deviceId); return prize; } } @@ -151,7 +153,7 @@ public class RaffleService implements IRaffleService { if (task == null) { throw new BaseException(BrainTrainingCodeError.RAFFLE_ACTIVE_NOT_OPEN); } - // 判断有没有今天检查的结果 + // 判断有没有检查的结果 RaffleTimesExample timesExample = new RaffleTimesExample(); timesExample.createCriteria().andTaskIdEqualTo(param.getTaskId()).andUserIdEqualTo(userId) .andFinishTypeEqualTo(BrainTrainingConstant.Raffle.TASK_FINISH_NO); @@ -295,7 +297,6 @@ public class RaffleService implements IRaffleService { tokenMap.put(BrainTrainingConstant.User.AUTHORIZATION, token); tokenMap.put(BrainTrainingConstant.User.DEVICE_ID, deviceId); HttpResponse execute = HttpUtil.createPost(subscriptWxUrl).addHeaders(tokenMap).body(JSONObject.toJSONString(dto)).execute(); - log.info("http:{}", HttpUtil.createPost(subscriptWxUrl).addHeaders(tokenMap).body(JSONObject.toJSONString(dto))); log.info("调用判断用户是否关注公众号接口的结果:{}", execute); if (execute == null || StrUtil.isEmpty(execute.body()) || execute.body().contains(" + + + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO t_train_active_question ( id, active_user_id, classify_id, question_id, question_content, question_answer, operator ) + VALUES + + (#{id}, #{activeUserId}, #{classifyId}, #{questionId}, #{questionContent}, #{questionAnswer}, #{operator}) + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/mapper_dao/CarouselDao.xml b/src/main/resources/mapper_dao/CarouselDao.xml index c18d61b..7e867ec 100644 --- a/src/main/resources/mapper_dao/CarouselDao.xml +++ b/src/main/resources/mapper_dao/CarouselDao.xml @@ -11,7 +11,8 @@ FROM t_assist_carousel WHERE - rec_status = 0 + equipment_id in (0, #{equipmentId}) + and rec_status = 0 ORDER BY sort ASC diff --git a/src/main/resources/mapper_dao/RaffleDao.xml b/src/main/resources/mapper_dao/RaffleDao.xml index 32037ca..97579cc 100644 --- a/src/main/resources/mapper_dao/RaffleDao.xml +++ b/src/main/resources/mapper_dao/RaffleDao.xml @@ -209,4 +209,19 @@ AND t.rec_status = 0 + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/AssistCarouselMapper.xml b/src/main/resources/mapper_raw/AssistCarouselMapper.xml index c748644..1192e0e 100644 --- a/src/main/resources/mapper_raw/AssistCarouselMapper.xml +++ b/src/main/resources/mapper_raw/AssistCarouselMapper.xml @@ -3,6 +3,7 @@ + @@ -74,8 +75,8 @@ - id, url, jump_url, param, type, show_position, show_page, sort, operator, created_at, - updated_at, rec_status + id, equipment_id, url, jump_url, param, type, show_position, show_page, sort, operator, + created_at, updated_at, rec_status + select + + distinct + + + from t_assist_equipment + + + + + order by ${orderByClause} + + + + + delete from t_assist_equipment + where id = #{id,jdbcType=BIGINT} + + + delete from t_assist_equipment + + + + + + insert into t_assist_equipment (id, official_id, name, + description, created_at, updated_at, + rec_status) + values (#{id,jdbcType=BIGINT}, #{officialId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, + #{description,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}) + + + insert into t_assist_equipment + + + id, + + + official_id, + + + name, + + + description, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{officialId,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{description,jdbcType=VARCHAR}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_assist_equipment + + + id = #{record.id,jdbcType=BIGINT}, + + + official_id = #{record.officialId,jdbcType=BIGINT}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + description = #{record.description,jdbcType=VARCHAR}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_assist_equipment + set id = #{record.id,jdbcType=BIGINT}, + official_id = #{record.officialId,jdbcType=BIGINT}, + name = #{record.name,jdbcType=VARCHAR}, + description = #{record.description,jdbcType=VARCHAR}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_assist_equipment + + + official_id = #{officialId,jdbcType=BIGINT}, + + + name = #{name,jdbcType=VARCHAR}, + + + description = #{description,jdbcType=VARCHAR}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_assist_equipment + set official_id = #{officialId,jdbcType=BIGINT}, + name = #{name,jdbcType=VARCHAR}, + description = #{description,jdbcType=VARCHAR}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/AssistOfficialMapper.xml b/src/main/resources/mapper_raw/AssistOfficialMapper.xml new file mode 100644 index 0000000..cddb083 --- /dev/null +++ b/src/main/resources/mapper_raw/AssistOfficialMapper.xml @@ -0,0 +1,306 @@ + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, name, code, description, app_id, secret, developer_id, template_id, created_at, + updated_at, rec_status + + + + + delete from t_assist_official + where id = #{id,jdbcType=BIGINT} + + + delete from t_assist_official + + + + + + insert into t_assist_official (id, name, code, + description, app_id, secret, + developer_id, template_id, created_at, + updated_at, rec_status) + values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, + #{description,jdbcType=VARCHAR}, #{appId,jdbcType=VARCHAR}, #{secret,jdbcType=VARCHAR}, + #{developerId,jdbcType=VARCHAR}, #{templateId,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, + #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) + + + insert into t_assist_official + + + id, + + + name, + + + code, + + + description, + + + app_id, + + + secret, + + + developer_id, + + + template_id, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{code,jdbcType=VARCHAR}, + + + #{description,jdbcType=VARCHAR}, + + + #{appId,jdbcType=VARCHAR}, + + + #{secret,jdbcType=VARCHAR}, + + + #{developerId,jdbcType=VARCHAR}, + + + #{templateId,jdbcType=VARCHAR}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_assist_official + + + id = #{record.id,jdbcType=BIGINT}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + code = #{record.code,jdbcType=VARCHAR}, + + + description = #{record.description,jdbcType=VARCHAR}, + + + app_id = #{record.appId,jdbcType=VARCHAR}, + + + secret = #{record.secret,jdbcType=VARCHAR}, + + + developer_id = #{record.developerId,jdbcType=VARCHAR}, + + + template_id = #{record.templateId,jdbcType=VARCHAR}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_assist_official + set id = #{record.id,jdbcType=BIGINT}, + name = #{record.name,jdbcType=VARCHAR}, + code = #{record.code,jdbcType=VARCHAR}, + description = #{record.description,jdbcType=VARCHAR}, + app_id = #{record.appId,jdbcType=VARCHAR}, + secret = #{record.secret,jdbcType=VARCHAR}, + developer_id = #{record.developerId,jdbcType=VARCHAR}, + template_id = #{record.templateId,jdbcType=VARCHAR}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_assist_official + + + name = #{name,jdbcType=VARCHAR}, + + + code = #{code,jdbcType=VARCHAR}, + + + description = #{description,jdbcType=VARCHAR}, + + + app_id = #{appId,jdbcType=VARCHAR}, + + + secret = #{secret,jdbcType=VARCHAR}, + + + developer_id = #{developerId,jdbcType=VARCHAR}, + + + template_id = #{templateId,jdbcType=VARCHAR}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_assist_official + set name = #{name,jdbcType=VARCHAR}, + code = #{code,jdbcType=VARCHAR}, + description = #{description,jdbcType=VARCHAR}, + app_id = #{appId,jdbcType=VARCHAR}, + secret = #{secret,jdbcType=VARCHAR}, + developer_id = #{developerId,jdbcType=VARCHAR}, + template_id = #{templateId,jdbcType=VARCHAR}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/AssistOfficialUserMapper.xml b/src/main/resources/mapper_raw/AssistOfficialUserMapper.xml new file mode 100644 index 0000000..7bfd84d --- /dev/null +++ b/src/main/resources/mapper_raw/AssistOfficialUserMapper.xml @@ -0,0 +1,258 @@ + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, official_id, user_id, attention_status, created_at, updated_at, rec_status, open_id + + + + + delete from t_assist_official_user + where id = #{id,jdbcType=BIGINT} + + + delete from t_assist_official_user + + + + + + insert into t_assist_official_user (id, official_id, user_id, + attention_status, created_at, updated_at, + rec_status, open_id) + values (#{id,jdbcType=BIGINT}, #{officialId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, + #{attentionStatus,jdbcType=TINYINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}, #{openId,jdbcType=VARCHAR}) + + + insert into t_assist_official_user + + + id, + + + official_id, + + + user_id, + + + attention_status, + + + created_at, + + + updated_at, + + + rec_status, + + + open_id, + + + + + #{id,jdbcType=BIGINT}, + + + #{officialId,jdbcType=BIGINT}, + + + #{userId,jdbcType=BIGINT}, + + + #{attentionStatus,jdbcType=TINYINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + #{openId,jdbcType=VARCHAR}, + + + + + + update t_assist_official_user + + + id = #{record.id,jdbcType=BIGINT}, + + + official_id = #{record.officialId,jdbcType=BIGINT}, + + + user_id = #{record.userId,jdbcType=BIGINT}, + + + attention_status = #{record.attentionStatus,jdbcType=TINYINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + open_id = #{record.openId,jdbcType=VARCHAR}, + + + + + + + + update t_assist_official_user + set id = #{record.id,jdbcType=BIGINT}, + official_id = #{record.officialId,jdbcType=BIGINT}, + user_id = #{record.userId,jdbcType=BIGINT}, + attention_status = #{record.attentionStatus,jdbcType=TINYINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT}, + open_id = #{record.openId,jdbcType=VARCHAR} + + + + + + update t_assist_official_user + + + official_id = #{officialId,jdbcType=BIGINT}, + + + user_id = #{userId,jdbcType=BIGINT}, + + + attention_status = #{attentionStatus,jdbcType=TINYINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + open_id = #{openId,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_assist_official_user + set official_id = #{officialId,jdbcType=BIGINT}, + user_id = #{userId,jdbcType=BIGINT}, + attention_status = #{attentionStatus,jdbcType=TINYINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT}, + open_id = #{openId,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/TrainActiveLogMapper.xml b/src/main/resources/mapper_raw/TrainActiveLogMapper.xml new file mode 100644 index 0000000..bb1e40f --- /dev/null +++ b/src/main/resources/mapper_raw/TrainActiveLogMapper.xml @@ -0,0 +1,306 @@ + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, active_user_id, classify_id, question_id, option_content, time, operation_type, + operator, created_at, updated_at, rec_status + + + + + delete from t_train_active_log + where id = #{id,jdbcType=BIGINT} + + + delete from t_train_active_log + + + + + + insert into t_train_active_log (id, active_user_id, classify_id, + question_id, option_content, time, + operation_type, operator, created_at, + updated_at, rec_status) + values (#{id,jdbcType=BIGINT}, #{activeUserId,jdbcType=BIGINT}, #{classifyId,jdbcType=BIGINT}, + #{questionId,jdbcType=BIGINT}, #{optionContent,jdbcType=VARCHAR}, #{time,jdbcType=BIGINT}, + #{operationType,jdbcType=TINYINT}, #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, + #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) + + + insert into t_train_active_log + + + id, + + + active_user_id, + + + classify_id, + + + question_id, + + + option_content, + + + time, + + + operation_type, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{activeUserId,jdbcType=BIGINT}, + + + #{classifyId,jdbcType=BIGINT}, + + + #{questionId,jdbcType=BIGINT}, + + + #{optionContent,jdbcType=VARCHAR}, + + + #{time,jdbcType=BIGINT}, + + + #{operationType,jdbcType=TINYINT}, + + + #{operator,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_train_active_log + + + id = #{record.id,jdbcType=BIGINT}, + + + active_user_id = #{record.activeUserId,jdbcType=BIGINT}, + + + classify_id = #{record.classifyId,jdbcType=BIGINT}, + + + question_id = #{record.questionId,jdbcType=BIGINT}, + + + option_content = #{record.optionContent,jdbcType=VARCHAR}, + + + time = #{record.time,jdbcType=BIGINT}, + + + operation_type = #{record.operationType,jdbcType=TINYINT}, + + + operator = #{record.operator,jdbcType=BIGINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_train_active_log + set id = #{record.id,jdbcType=BIGINT}, + active_user_id = #{record.activeUserId,jdbcType=BIGINT}, + classify_id = #{record.classifyId,jdbcType=BIGINT}, + question_id = #{record.questionId,jdbcType=BIGINT}, + option_content = #{record.optionContent,jdbcType=VARCHAR}, + time = #{record.time,jdbcType=BIGINT}, + operation_type = #{record.operationType,jdbcType=TINYINT}, + operator = #{record.operator,jdbcType=BIGINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_train_active_log + + + active_user_id = #{activeUserId,jdbcType=BIGINT}, + + + classify_id = #{classifyId,jdbcType=BIGINT}, + + + question_id = #{questionId,jdbcType=BIGINT}, + + + option_content = #{optionContent,jdbcType=VARCHAR}, + + + time = #{time,jdbcType=BIGINT}, + + + operation_type = #{operationType,jdbcType=TINYINT}, + + + operator = #{operator,jdbcType=BIGINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_train_active_log + set active_user_id = #{activeUserId,jdbcType=BIGINT}, + classify_id = #{classifyId,jdbcType=BIGINT}, + question_id = #{questionId,jdbcType=BIGINT}, + option_content = #{optionContent,jdbcType=VARCHAR}, + time = #{time,jdbcType=BIGINT}, + operation_type = #{operationType,jdbcType=TINYINT}, + operator = #{operator,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/TrainActiveMapper.xml b/src/main/resources/mapper_raw/TrainActiveMapper.xml new file mode 100644 index 0000000..45fc9b4 --- /dev/null +++ b/src/main/resources/mapper_raw/TrainActiveMapper.xml @@ -0,0 +1,291 @@ + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, equipment_id, name, description, start_time, end_time, operator, created_at, + updated_at, rec_status + + + + + delete from t_train_active + where id = #{id,jdbcType=BIGINT} + + + delete from t_train_active + + + + + + insert into t_train_active (id, equipment_id, name, + description, start_time, end_time, + operator, created_at, updated_at, + rec_status) + values (#{id,jdbcType=BIGINT}, #{equipmentId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, + #{description,jdbcType=VARCHAR}, #{startTime,jdbcType=BIGINT}, #{endTime,jdbcType=BIGINT}, + #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}) + + + insert into t_train_active + + + id, + + + equipment_id, + + + name, + + + description, + + + start_time, + + + end_time, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{equipmentId,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{description,jdbcType=VARCHAR}, + + + #{startTime,jdbcType=BIGINT}, + + + #{endTime,jdbcType=BIGINT}, + + + #{operator,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_train_active + + + id = #{record.id,jdbcType=BIGINT}, + + + equipment_id = #{record.equipmentId,jdbcType=BIGINT}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + description = #{record.description,jdbcType=VARCHAR}, + + + start_time = #{record.startTime,jdbcType=BIGINT}, + + + end_time = #{record.endTime,jdbcType=BIGINT}, + + + operator = #{record.operator,jdbcType=BIGINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_train_active + set id = #{record.id,jdbcType=BIGINT}, + equipment_id = #{record.equipmentId,jdbcType=BIGINT}, + name = #{record.name,jdbcType=VARCHAR}, + description = #{record.description,jdbcType=VARCHAR}, + start_time = #{record.startTime,jdbcType=BIGINT}, + end_time = #{record.endTime,jdbcType=BIGINT}, + operator = #{record.operator,jdbcType=BIGINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_train_active + + + equipment_id = #{equipmentId,jdbcType=BIGINT}, + + + name = #{name,jdbcType=VARCHAR}, + + + description = #{description,jdbcType=VARCHAR}, + + + start_time = #{startTime,jdbcType=BIGINT}, + + + end_time = #{endTime,jdbcType=BIGINT}, + + + operator = #{operator,jdbcType=BIGINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_train_active + set equipment_id = #{equipmentId,jdbcType=BIGINT}, + name = #{name,jdbcType=VARCHAR}, + description = #{description,jdbcType=VARCHAR}, + start_time = #{startTime,jdbcType=BIGINT}, + end_time = #{endTime,jdbcType=BIGINT}, + operator = #{operator,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/TrainActiveQuestionMapper.xml b/src/main/resources/mapper_raw/TrainActiveQuestionMapper.xml new file mode 100644 index 0000000..47396ed --- /dev/null +++ b/src/main/resources/mapper_raw/TrainActiveQuestionMapper.xml @@ -0,0 +1,291 @@ + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, active_user_id, classify_id, question_id, question_content, question_answer, + operator, created_at, updated_at, rec_status + + + + + delete from t_train_active_question + where id = #{id,jdbcType=BIGINT} + + + delete from t_train_active_question + + + + + + insert into t_train_active_question (id, active_user_id, classify_id, + question_id, question_content, question_answer, + operator, created_at, updated_at, + rec_status) + values (#{id,jdbcType=BIGINT}, #{activeUserId,jdbcType=BIGINT}, #{classifyId,jdbcType=BIGINT}, + #{questionId,jdbcType=BIGINT}, #{questionContent,jdbcType=VARCHAR}, #{questionAnswer,jdbcType=VARCHAR}, + #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}) + + + insert into t_train_active_question + + + id, + + + active_user_id, + + + classify_id, + + + question_id, + + + question_content, + + + question_answer, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{activeUserId,jdbcType=BIGINT}, + + + #{classifyId,jdbcType=BIGINT}, + + + #{questionId,jdbcType=BIGINT}, + + + #{questionContent,jdbcType=VARCHAR}, + + + #{questionAnswer,jdbcType=VARCHAR}, + + + #{operator,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_train_active_question + + + id = #{record.id,jdbcType=BIGINT}, + + + active_user_id = #{record.activeUserId,jdbcType=BIGINT}, + + + classify_id = #{record.classifyId,jdbcType=BIGINT}, + + + question_id = #{record.questionId,jdbcType=BIGINT}, + + + question_content = #{record.questionContent,jdbcType=VARCHAR}, + + + question_answer = #{record.questionAnswer,jdbcType=VARCHAR}, + + + operator = #{record.operator,jdbcType=BIGINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_train_active_question + set id = #{record.id,jdbcType=BIGINT}, + active_user_id = #{record.activeUserId,jdbcType=BIGINT}, + classify_id = #{record.classifyId,jdbcType=BIGINT}, + question_id = #{record.questionId,jdbcType=BIGINT}, + question_content = #{record.questionContent,jdbcType=VARCHAR}, + question_answer = #{record.questionAnswer,jdbcType=VARCHAR}, + operator = #{record.operator,jdbcType=BIGINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_train_active_question + + + active_user_id = #{activeUserId,jdbcType=BIGINT}, + + + classify_id = #{classifyId,jdbcType=BIGINT}, + + + question_id = #{questionId,jdbcType=BIGINT}, + + + question_content = #{questionContent,jdbcType=VARCHAR}, + + + question_answer = #{questionAnswer,jdbcType=VARCHAR}, + + + operator = #{operator,jdbcType=BIGINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_train_active_question + set active_user_id = #{activeUserId,jdbcType=BIGINT}, + classify_id = #{classifyId,jdbcType=BIGINT}, + question_id = #{questionId,jdbcType=BIGINT}, + question_content = #{questionContent,jdbcType=VARCHAR}, + question_answer = #{questionAnswer,jdbcType=VARCHAR}, + operator = #{operator,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/TrainActiveScoreMapper.xml b/src/main/resources/mapper_raw/TrainActiveScoreMapper.xml new file mode 100644 index 0000000..b8043f7 --- /dev/null +++ b/src/main/resources/mapper_raw/TrainActiveScoreMapper.xml @@ -0,0 +1,276 @@ + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, active_user_id, classify_id, question_id, score, operator, created_at, updated_at, + rec_status + + + + + delete from t_train_active_score + where id = #{id,jdbcType=BIGINT} + + + delete from t_train_active_score + + + + + + insert into t_train_active_score (id, active_user_id, classify_id, + question_id, score, operator, + created_at, updated_at, rec_status + ) + values (#{id,jdbcType=BIGINT}, #{activeUserId,jdbcType=BIGINT}, #{classifyId,jdbcType=BIGINT}, + #{questionId,jdbcType=BIGINT}, #{score,jdbcType=INTEGER}, #{operator,jdbcType=BIGINT}, + #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} + ) + + + insert into t_train_active_score + + + id, + + + active_user_id, + + + classify_id, + + + question_id, + + + score, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{activeUserId,jdbcType=BIGINT}, + + + #{classifyId,jdbcType=BIGINT}, + + + #{questionId,jdbcType=BIGINT}, + + + #{score,jdbcType=INTEGER}, + + + #{operator,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_train_active_score + + + id = #{record.id,jdbcType=BIGINT}, + + + active_user_id = #{record.activeUserId,jdbcType=BIGINT}, + + + classify_id = #{record.classifyId,jdbcType=BIGINT}, + + + question_id = #{record.questionId,jdbcType=BIGINT}, + + + score = #{record.score,jdbcType=INTEGER}, + + + operator = #{record.operator,jdbcType=BIGINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_train_active_score + set id = #{record.id,jdbcType=BIGINT}, + active_user_id = #{record.activeUserId,jdbcType=BIGINT}, + classify_id = #{record.classifyId,jdbcType=BIGINT}, + question_id = #{record.questionId,jdbcType=BIGINT}, + score = #{record.score,jdbcType=INTEGER}, + operator = #{record.operator,jdbcType=BIGINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_train_active_score + + + active_user_id = #{activeUserId,jdbcType=BIGINT}, + + + classify_id = #{classifyId,jdbcType=BIGINT}, + + + question_id = #{questionId,jdbcType=BIGINT}, + + + score = #{score,jdbcType=INTEGER}, + + + operator = #{operator,jdbcType=BIGINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_train_active_score + set active_user_id = #{activeUserId,jdbcType=BIGINT}, + classify_id = #{classifyId,jdbcType=BIGINT}, + question_id = #{questionId,jdbcType=BIGINT}, + score = #{score,jdbcType=INTEGER}, + operator = #{operator,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/TrainActiveUserMapper.xml b/src/main/resources/mapper_raw/TrainActiveUserMapper.xml new file mode 100644 index 0000000..4337b08 --- /dev/null +++ b/src/main/resources/mapper_raw/TrainActiveUserMapper.xml @@ -0,0 +1,258 @@ + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, active_id, user_id, finish_status, operator, created_at, updated_at, rec_status + + + + + delete from t_train_active_user + where id = #{id,jdbcType=BIGINT} + + + delete from t_train_active_user + + + + + + insert into t_train_active_user (id, active_id, user_id, + finish_status, operator, created_at, + updated_at, rec_status) + values (#{id,jdbcType=BIGINT}, #{activeId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, + #{finishStatus,jdbcType=TINYINT}, #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, + #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) + + + insert into t_train_active_user + + + id, + + + active_id, + + + user_id, + + + finish_status, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{activeId,jdbcType=BIGINT}, + + + #{userId,jdbcType=BIGINT}, + + + #{finishStatus,jdbcType=TINYINT}, + + + #{operator,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_train_active_user + + + id = #{record.id,jdbcType=BIGINT}, + + + active_id = #{record.activeId,jdbcType=BIGINT}, + + + user_id = #{record.userId,jdbcType=BIGINT}, + + + finish_status = #{record.finishStatus,jdbcType=TINYINT}, + + + operator = #{record.operator,jdbcType=BIGINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_train_active_user + set id = #{record.id,jdbcType=BIGINT}, + active_id = #{record.activeId,jdbcType=BIGINT}, + user_id = #{record.userId,jdbcType=BIGINT}, + finish_status = #{record.finishStatus,jdbcType=TINYINT}, + operator = #{record.operator,jdbcType=BIGINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_train_active_user + + + active_id = #{activeId,jdbcType=BIGINT}, + + + user_id = #{userId,jdbcType=BIGINT}, + + + finish_status = #{finishStatus,jdbcType=TINYINT}, + + + operator = #{operator,jdbcType=BIGINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_train_active_user + set active_id = #{activeId,jdbcType=BIGINT}, + user_id = #{userId,jdbcType=BIGINT}, + finish_status = #{finishStatus,jdbcType=TINYINT}, + operator = #{operator,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/TrainClassifyMapper.xml b/src/main/resources/mapper_raw/TrainClassifyMapper.xml new file mode 100644 index 0000000..fad4abb --- /dev/null +++ b/src/main/resources/mapper_raw/TrainClassifyMapper.xml @@ -0,0 +1,275 @@ + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, parent_id, code, name, capacity, operator, created_at, updated_at, rec_status + + + + + delete from t_train_classify + where id = #{id,jdbcType=BIGINT} + + + delete from t_train_classify + + + + + + insert into t_train_classify (id, parent_id, code, + name, capacity, operator, + created_at, updated_at, rec_status + ) + values (#{id,jdbcType=BIGINT}, #{parentId,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, + #{name,jdbcType=VARCHAR}, #{capacity,jdbcType=TINYINT}, #{operator,jdbcType=BIGINT}, + #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} + ) + + + insert into t_train_classify + + + id, + + + parent_id, + + + code, + + + name, + + + capacity, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{parentId,jdbcType=BIGINT}, + + + #{code,jdbcType=VARCHAR}, + + + #{name,jdbcType=VARCHAR}, + + + #{capacity,jdbcType=TINYINT}, + + + #{operator,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_train_classify + + + id = #{record.id,jdbcType=BIGINT}, + + + parent_id = #{record.parentId,jdbcType=BIGINT}, + + + code = #{record.code,jdbcType=VARCHAR}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + capacity = #{record.capacity,jdbcType=TINYINT}, + + + operator = #{record.operator,jdbcType=BIGINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_train_classify + set id = #{record.id,jdbcType=BIGINT}, + parent_id = #{record.parentId,jdbcType=BIGINT}, + code = #{record.code,jdbcType=VARCHAR}, + name = #{record.name,jdbcType=VARCHAR}, + capacity = #{record.capacity,jdbcType=TINYINT}, + operator = #{record.operator,jdbcType=BIGINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_train_classify + + + parent_id = #{parentId,jdbcType=BIGINT}, + + + code = #{code,jdbcType=VARCHAR}, + + + name = #{name,jdbcType=VARCHAR}, + + + capacity = #{capacity,jdbcType=TINYINT}, + + + operator = #{operator,jdbcType=BIGINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_train_classify + set parent_id = #{parentId,jdbcType=BIGINT}, + code = #{code,jdbcType=VARCHAR}, + name = #{name,jdbcType=VARCHAR}, + capacity = #{capacity,jdbcType=TINYINT}, + operator = #{operator,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/TrainQuestionAnswerMapper.xml b/src/main/resources/mapper_raw/TrainQuestionAnswerMapper.xml new file mode 100644 index 0000000..618ad8b --- /dev/null +++ b/src/main/resources/mapper_raw/TrainQuestionAnswerMapper.xml @@ -0,0 +1,275 @@ + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, question_id, content, option_type, sort, operator, created_at, updated_at, rec_status + + + + + delete from t_train_question_answer + where id = #{id,jdbcType=BIGINT} + + + delete from t_train_question_answer + + + + + + insert into t_train_question_answer (id, question_id, content, + option_type, sort, operator, + created_at, updated_at, rec_status + ) + values (#{id,jdbcType=BIGINT}, #{questionId,jdbcType=BIGINT}, #{content,jdbcType=VARCHAR}, + #{optionType,jdbcType=TINYINT}, #{sort,jdbcType=INTEGER}, #{operator,jdbcType=BIGINT}, + #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} + ) + + + insert into t_train_question_answer + + + id, + + + question_id, + + + content, + + + option_type, + + + sort, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{questionId,jdbcType=BIGINT}, + + + #{content,jdbcType=VARCHAR}, + + + #{optionType,jdbcType=TINYINT}, + + + #{sort,jdbcType=INTEGER}, + + + #{operator,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_train_question_answer + + + id = #{record.id,jdbcType=BIGINT}, + + + question_id = #{record.questionId,jdbcType=BIGINT}, + + + content = #{record.content,jdbcType=VARCHAR}, + + + option_type = #{record.optionType,jdbcType=TINYINT}, + + + sort = #{record.sort,jdbcType=INTEGER}, + + + operator = #{record.operator,jdbcType=BIGINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_train_question_answer + set id = #{record.id,jdbcType=BIGINT}, + question_id = #{record.questionId,jdbcType=BIGINT}, + content = #{record.content,jdbcType=VARCHAR}, + option_type = #{record.optionType,jdbcType=TINYINT}, + sort = #{record.sort,jdbcType=INTEGER}, + operator = #{record.operator,jdbcType=BIGINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_train_question_answer + + + question_id = #{questionId,jdbcType=BIGINT}, + + + content = #{content,jdbcType=VARCHAR}, + + + option_type = #{optionType,jdbcType=TINYINT}, + + + sort = #{sort,jdbcType=INTEGER}, + + + operator = #{operator,jdbcType=BIGINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_train_question_answer + set question_id = #{questionId,jdbcType=BIGINT}, + content = #{content,jdbcType=VARCHAR}, + option_type = #{optionType,jdbcType=TINYINT}, + sort = #{sort,jdbcType=INTEGER}, + operator = #{operator,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/TrainQuestionContentMapper.xml b/src/main/resources/mapper_raw/TrainQuestionContentMapper.xml new file mode 100644 index 0000000..b223c84 --- /dev/null +++ b/src/main/resources/mapper_raw/TrainQuestionContentMapper.xml @@ -0,0 +1,275 @@ + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, question_id, content, show_type, sort, operator, created_at, updated_at, rec_status + + + + + delete from t_train_question_content + where id = #{id,jdbcType=BIGINT} + + + delete from t_train_question_content + + + + + + insert into t_train_question_content (id, question_id, content, + show_type, sort, operator, + created_at, updated_at, rec_status + ) + values (#{id,jdbcType=BIGINT}, #{questionId,jdbcType=BIGINT}, #{content,jdbcType=VARCHAR}, + #{showType,jdbcType=TINYINT}, #{sort,jdbcType=INTEGER}, #{operator,jdbcType=BIGINT}, + #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} + ) + + + insert into t_train_question_content + + + id, + + + question_id, + + + content, + + + show_type, + + + sort, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{questionId,jdbcType=BIGINT}, + + + #{content,jdbcType=VARCHAR}, + + + #{showType,jdbcType=TINYINT}, + + + #{sort,jdbcType=INTEGER}, + + + #{operator,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_train_question_content + + + id = #{record.id,jdbcType=BIGINT}, + + + question_id = #{record.questionId,jdbcType=BIGINT}, + + + content = #{record.content,jdbcType=VARCHAR}, + + + show_type = #{record.showType,jdbcType=TINYINT}, + + + sort = #{record.sort,jdbcType=INTEGER}, + + + operator = #{record.operator,jdbcType=BIGINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_train_question_content + set id = #{record.id,jdbcType=BIGINT}, + question_id = #{record.questionId,jdbcType=BIGINT}, + content = #{record.content,jdbcType=VARCHAR}, + show_type = #{record.showType,jdbcType=TINYINT}, + sort = #{record.sort,jdbcType=INTEGER}, + operator = #{record.operator,jdbcType=BIGINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_train_question_content + + + question_id = #{questionId,jdbcType=BIGINT}, + + + content = #{content,jdbcType=VARCHAR}, + + + show_type = #{showType,jdbcType=TINYINT}, + + + sort = #{sort,jdbcType=INTEGER}, + + + operator = #{operator,jdbcType=BIGINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_train_question_content + set question_id = #{questionId,jdbcType=BIGINT}, + content = #{content,jdbcType=VARCHAR}, + show_type = #{showType,jdbcType=TINYINT}, + sort = #{sort,jdbcType=INTEGER}, + operator = #{operator,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/TrainQuestionMapper.xml b/src/main/resources/mapper_raw/TrainQuestionMapper.xml new file mode 100644 index 0000000..503d31f --- /dev/null +++ b/src/main/resources/mapper_raw/TrainQuestionMapper.xml @@ -0,0 +1,258 @@ + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, classify_id, grade, sort, operator, created_at, updated_at, rec_status + + + + + delete from t_train_question + where id = #{id,jdbcType=BIGINT} + + + delete from t_train_question + + + + + + insert into t_train_question (id, classify_id, grade, + sort, operator, created_at, + updated_at, rec_status) + values (#{id,jdbcType=BIGINT}, #{classifyId,jdbcType=BIGINT}, #{grade,jdbcType=TINYINT}, + #{sort,jdbcType=INTEGER}, #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, + #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) + + + insert into t_train_question + + + id, + + + classify_id, + + + grade, + + + sort, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{classifyId,jdbcType=BIGINT}, + + + #{grade,jdbcType=TINYINT}, + + + #{sort,jdbcType=INTEGER}, + + + #{operator,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_train_question + + + id = #{record.id,jdbcType=BIGINT}, + + + classify_id = #{record.classifyId,jdbcType=BIGINT}, + + + grade = #{record.grade,jdbcType=TINYINT}, + + + sort = #{record.sort,jdbcType=INTEGER}, + + + operator = #{record.operator,jdbcType=BIGINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_train_question + set id = #{record.id,jdbcType=BIGINT}, + classify_id = #{record.classifyId,jdbcType=BIGINT}, + grade = #{record.grade,jdbcType=TINYINT}, + sort = #{record.sort,jdbcType=INTEGER}, + operator = #{record.operator,jdbcType=BIGINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_train_question + + + classify_id = #{classifyId,jdbcType=BIGINT}, + + + grade = #{grade,jdbcType=TINYINT}, + + + sort = #{sort,jdbcType=INTEGER}, + + + operator = #{operator,jdbcType=BIGINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_train_question + set classify_id = #{classifyId,jdbcType=BIGINT}, + grade = #{grade,jdbcType=TINYINT}, + sort = #{sort,jdbcType=INTEGER}, + operator = #{operator,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/TrainQuestionOptionMapper.xml b/src/main/resources/mapper_raw/TrainQuestionOptionMapper.xml new file mode 100644 index 0000000..377d2fb --- /dev/null +++ b/src/main/resources/mapper_raw/TrainQuestionOptionMapper.xml @@ -0,0 +1,291 @@ + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, question_id, content, show_type, page_type, sort, operator, created_at, updated_at, + rec_status + + + + + delete from t_train_question_option + where id = #{id,jdbcType=BIGINT} + + + delete from t_train_question_option + + + + + + insert into t_train_question_option (id, question_id, content, + show_type, page_type, sort, + operator, created_at, updated_at, + rec_status) + values (#{id,jdbcType=BIGINT}, #{questionId,jdbcType=BIGINT}, #{content,jdbcType=VARCHAR}, + #{showType,jdbcType=TINYINT}, #{pageType,jdbcType=TINYINT}, #{sort,jdbcType=INTEGER}, + #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}) + + + insert into t_train_question_option + + + id, + + + question_id, + + + content, + + + show_type, + + + page_type, + + + sort, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{questionId,jdbcType=BIGINT}, + + + #{content,jdbcType=VARCHAR}, + + + #{showType,jdbcType=TINYINT}, + + + #{pageType,jdbcType=TINYINT}, + + + #{sort,jdbcType=INTEGER}, + + + #{operator,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_train_question_option + + + id = #{record.id,jdbcType=BIGINT}, + + + question_id = #{record.questionId,jdbcType=BIGINT}, + + + content = #{record.content,jdbcType=VARCHAR}, + + + show_type = #{record.showType,jdbcType=TINYINT}, + + + page_type = #{record.pageType,jdbcType=TINYINT}, + + + sort = #{record.sort,jdbcType=INTEGER}, + + + operator = #{record.operator,jdbcType=BIGINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_train_question_option + set id = #{record.id,jdbcType=BIGINT}, + question_id = #{record.questionId,jdbcType=BIGINT}, + content = #{record.content,jdbcType=VARCHAR}, + show_type = #{record.showType,jdbcType=TINYINT}, + page_type = #{record.pageType,jdbcType=TINYINT}, + sort = #{record.sort,jdbcType=INTEGER}, + operator = #{record.operator,jdbcType=BIGINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_train_question_option + + + question_id = #{questionId,jdbcType=BIGINT}, + + + content = #{content,jdbcType=VARCHAR}, + + + show_type = #{showType,jdbcType=TINYINT}, + + + page_type = #{pageType,jdbcType=TINYINT}, + + + sort = #{sort,jdbcType=INTEGER}, + + + operator = #{operator,jdbcType=BIGINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_train_question_option + set question_id = #{questionId,jdbcType=BIGINT}, + content = #{content,jdbcType=VARCHAR}, + show_type = #{showType,jdbcType=TINYINT}, + page_type = #{pageType,jdbcType=TINYINT}, + sort = #{sort,jdbcType=INTEGER}, + operator = #{operator,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/TrainRuleGenerateMapper.xml b/src/main/resources/mapper_raw/TrainRuleGenerateMapper.xml new file mode 100644 index 0000000..05e7c9d --- /dev/null +++ b/src/main/resources/mapper_raw/TrainRuleGenerateMapper.xml @@ -0,0 +1,306 @@ + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, active_id, classify_id, generate, generate_param, duration, sort, operator, created_at, + updated_at, rec_status + + + + + delete from t_train_rule_generate + where id = #{id,jdbcType=BIGINT} + + + delete from t_train_rule_generate + + + + + + insert into t_train_rule_generate (id, active_id, classify_id, + generate, generate_param, duration, + sort, operator, created_at, + updated_at, rec_status) + values (#{id,jdbcType=BIGINT}, #{activeId,jdbcType=BIGINT}, #{classifyId,jdbcType=BIGINT}, + #{generate,jdbcType=TINYINT}, #{generateParam,jdbcType=VARCHAR}, #{duration,jdbcType=INTEGER}, + #{sort,jdbcType=INTEGER}, #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, + #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) + + + insert into t_train_rule_generate + + + id, + + + active_id, + + + classify_id, + + + generate, + + + generate_param, + + + duration, + + + sort, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{activeId,jdbcType=BIGINT}, + + + #{classifyId,jdbcType=BIGINT}, + + + #{generate,jdbcType=TINYINT}, + + + #{generateParam,jdbcType=VARCHAR}, + + + #{duration,jdbcType=INTEGER}, + + + #{sort,jdbcType=INTEGER}, + + + #{operator,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_train_rule_generate + + + id = #{record.id,jdbcType=BIGINT}, + + + active_id = #{record.activeId,jdbcType=BIGINT}, + + + classify_id = #{record.classifyId,jdbcType=BIGINT}, + + + generate = #{record.generate,jdbcType=TINYINT}, + + + generate_param = #{record.generateParam,jdbcType=VARCHAR}, + + + duration = #{record.duration,jdbcType=INTEGER}, + + + sort = #{record.sort,jdbcType=INTEGER}, + + + operator = #{record.operator,jdbcType=BIGINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_train_rule_generate + set id = #{record.id,jdbcType=BIGINT}, + active_id = #{record.activeId,jdbcType=BIGINT}, + classify_id = #{record.classifyId,jdbcType=BIGINT}, + generate = #{record.generate,jdbcType=TINYINT}, + generate_param = #{record.generateParam,jdbcType=VARCHAR}, + duration = #{record.duration,jdbcType=INTEGER}, + sort = #{record.sort,jdbcType=INTEGER}, + operator = #{record.operator,jdbcType=BIGINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_train_rule_generate + + + active_id = #{activeId,jdbcType=BIGINT}, + + + classify_id = #{classifyId,jdbcType=BIGINT}, + + + generate = #{generate,jdbcType=TINYINT}, + + + generate_param = #{generateParam,jdbcType=VARCHAR}, + + + duration = #{duration,jdbcType=INTEGER}, + + + sort = #{sort,jdbcType=INTEGER}, + + + operator = #{operator,jdbcType=BIGINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_train_rule_generate + set active_id = #{activeId,jdbcType=BIGINT}, + classify_id = #{classifyId,jdbcType=BIGINT}, + generate = #{generate,jdbcType=TINYINT}, + generate_param = #{generateParam,jdbcType=VARCHAR}, + duration = #{duration,jdbcType=INTEGER}, + sort = #{sort,jdbcType=INTEGER}, + operator = #{operator,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/TrainRuleScoreMapper.xml b/src/main/resources/mapper_raw/TrainRuleScoreMapper.xml new file mode 100644 index 0000000..184d01e --- /dev/null +++ b/src/main/resources/mapper_raw/TrainRuleScoreMapper.xml @@ -0,0 +1,276 @@ + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, code, classify_id, calculate_type, calculate_param, operator, created_at, updated_at, + rec_status + + + + + delete from t_train_rule_score + where id = #{id,jdbcType=BIGINT} + + + delete from t_train_rule_score + + + + + + insert into t_train_rule_score (id, code, classify_id, + calculate_type, calculate_param, operator, + created_at, updated_at, rec_status + ) + values (#{id,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, #{classifyId,jdbcType=BIGINT}, + #{calculateType,jdbcType=TINYINT}, #{calculateParam,jdbcType=VARCHAR}, #{operator,jdbcType=BIGINT}, + #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} + ) + + + insert into t_train_rule_score + + + id, + + + code, + + + classify_id, + + + calculate_type, + + + calculate_param, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{code,jdbcType=VARCHAR}, + + + #{classifyId,jdbcType=BIGINT}, + + + #{calculateType,jdbcType=TINYINT}, + + + #{calculateParam,jdbcType=VARCHAR}, + + + #{operator,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_train_rule_score + + + id = #{record.id,jdbcType=BIGINT}, + + + code = #{record.code,jdbcType=VARCHAR}, + + + classify_id = #{record.classifyId,jdbcType=BIGINT}, + + + calculate_type = #{record.calculateType,jdbcType=TINYINT}, + + + calculate_param = #{record.calculateParam,jdbcType=VARCHAR}, + + + operator = #{record.operator,jdbcType=BIGINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_train_rule_score + set id = #{record.id,jdbcType=BIGINT}, + code = #{record.code,jdbcType=VARCHAR}, + classify_id = #{record.classifyId,jdbcType=BIGINT}, + calculate_type = #{record.calculateType,jdbcType=TINYINT}, + calculate_param = #{record.calculateParam,jdbcType=VARCHAR}, + operator = #{record.operator,jdbcType=BIGINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_train_rule_score + + + code = #{code,jdbcType=VARCHAR}, + + + classify_id = #{classifyId,jdbcType=BIGINT}, + + + calculate_type = #{calculateType,jdbcType=TINYINT}, + + + calculate_param = #{calculateParam,jdbcType=VARCHAR}, + + + operator = #{operator,jdbcType=BIGINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_train_rule_score + set code = #{code,jdbcType=VARCHAR}, + classify_id = #{classifyId,jdbcType=BIGINT}, + calculate_type = #{calculateType,jdbcType=TINYINT}, + calculate_param = #{calculateParam,jdbcType=VARCHAR}, + operator = #{operator,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/src/main/resources/mbg.xml b/src/main/resources/mbg.xml index 7646367..5163c52 100644 --- a/src/main/resources/mbg.xml +++ b/src/main/resources/mbg.xml @@ -55,7 +55,7 @@ - + +
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file