添加重新实训
parent
3a4f1bb917
commit
59c460b5d0
@ -0,0 +1,55 @@
|
||||
package com.sztzjy.block_finance.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class StuSupplyRecordDetails {
|
||||
private String id;
|
||||
|
||||
private Integer errorNumber;
|
||||
|
||||
private Double scoreDetail;
|
||||
|
||||
private String userId;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id == null ? null : id.trim();
|
||||
}
|
||||
|
||||
public Integer getErrorNumber() {
|
||||
return errorNumber;
|
||||
}
|
||||
|
||||
public void setErrorNumber(Integer errorNumber) {
|
||||
this.errorNumber = errorNumber;
|
||||
}
|
||||
|
||||
public Double getScoreDetail() {
|
||||
return scoreDetail;
|
||||
}
|
||||
|
||||
public void setScoreDetail(Double scoreDetail) {
|
||||
this.scoreDetail = scoreDetail;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId == null ? null : userId.trim();
|
||||
}
|
||||
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
}
|
@ -0,0 +1,520 @@
|
||||
package com.sztzjy.block_finance.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class StuSupplyRecordDetailsExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public StuSupplyRecordDetailsExample() {
|
||||
oredCriteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(String value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(String value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(String value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(String value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(String value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLike(String value) {
|
||||
addCriterion("id like", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotLike(String value) {
|
||||
addCriterion("id not like", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<String> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<String> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(String value1, String value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(String value1, String value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andErrorNumberIsNull() {
|
||||
addCriterion("error_number is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andErrorNumberIsNotNull() {
|
||||
addCriterion("error_number is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andErrorNumberEqualTo(Integer value) {
|
||||
addCriterion("error_number =", value, "errorNumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andErrorNumberNotEqualTo(Integer value) {
|
||||
addCriterion("error_number <>", value, "errorNumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andErrorNumberGreaterThan(Integer value) {
|
||||
addCriterion("error_number >", value, "errorNumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andErrorNumberGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("error_number >=", value, "errorNumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andErrorNumberLessThan(Integer value) {
|
||||
addCriterion("error_number <", value, "errorNumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andErrorNumberLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("error_number <=", value, "errorNumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andErrorNumberIn(List<Integer> values) {
|
||||
addCriterion("error_number in", values, "errorNumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andErrorNumberNotIn(List<Integer> values) {
|
||||
addCriterion("error_number not in", values, "errorNumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andErrorNumberBetween(Integer value1, Integer value2) {
|
||||
addCriterion("error_number between", value1, value2, "errorNumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andErrorNumberNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("error_number not between", value1, value2, "errorNumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andScoreDetailIsNull() {
|
||||
addCriterion("score_detail is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andScoreDetailIsNotNull() {
|
||||
addCriterion("score_detail is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andScoreDetailEqualTo(Double value) {
|
||||
addCriterion("score_detail =", value, "scoreDetail");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andScoreDetailNotEqualTo(Double value) {
|
||||
addCriterion("score_detail <>", value, "scoreDetail");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andScoreDetailGreaterThan(Double value) {
|
||||
addCriterion("score_detail >", value, "scoreDetail");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andScoreDetailGreaterThanOrEqualTo(Double value) {
|
||||
addCriterion("score_detail >=", value, "scoreDetail");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andScoreDetailLessThan(Double value) {
|
||||
addCriterion("score_detail <", value, "scoreDetail");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andScoreDetailLessThanOrEqualTo(Double value) {
|
||||
addCriterion("score_detail <=", value, "scoreDetail");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andScoreDetailIn(List<Double> values) {
|
||||
addCriterion("score_detail in", values, "scoreDetail");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andScoreDetailNotIn(List<Double> values) {
|
||||
addCriterion("score_detail not in", values, "scoreDetail");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andScoreDetailBetween(Double value1, Double value2) {
|
||||
addCriterion("score_detail between", value1, value2, "scoreDetail");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andScoreDetailNotBetween(Double value1, Double value2) {
|
||||
addCriterion("score_detail not between", value1, value2, "scoreDetail");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdIsNull() {
|
||||
addCriterion("user_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdIsNotNull() {
|
||||
addCriterion("user_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdEqualTo(String value) {
|
||||
addCriterion("user_id =", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotEqualTo(String value) {
|
||||
addCriterion("user_id <>", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdGreaterThan(String value) {
|
||||
addCriterion("user_id >", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("user_id >=", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdLessThan(String value) {
|
||||
addCriterion("user_id <", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdLessThanOrEqualTo(String value) {
|
||||
addCriterion("user_id <=", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdLike(String value) {
|
||||
addCriterion("user_id like", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotLike(String value) {
|
||||
addCriterion("user_id not like", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdIn(List<String> values) {
|
||||
addCriterion("user_id in", values, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotIn(List<String> values) {
|
||||
addCriterion("user_id not in", values, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdBetween(String value1, String value2) {
|
||||
addCriterion("user_id between", value1, value2, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotBetween(String value1, String value2) {
|
||||
addCriterion("user_id not between", value1, value2, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNull() {
|
||||
addCriterion("create_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNotNull() {
|
||||
addCriterion("create_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeEqualTo(Date value) {
|
||||
addCriterion("create_time =", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotEqualTo(Date value) {
|
||||
addCriterion("create_time <>", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThan(Date value) {
|
||||
addCriterion("create_time >", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time >=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThan(Date value) {
|
||||
addCriterion("create_time <", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time <=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIn(List<Date> values) {
|
||||
addCriterion("create_time in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotIn(List<Date> values) {
|
||||
addCriterion("create_time not in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time not between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.sztzjy.block_finance.mappers;
|
||||
|
||||
import com.sztzjy.block_finance.entity.StuJoinNodeBySupply;
|
||||
import com.sztzjy.block_finance.entity.StuJoinNodeBySupplyExample;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
@Mapper
|
||||
public interface StuJoinNodeBySupplyMapper {
|
||||
long countByExample(StuJoinNodeBySupplyExample example);
|
||||
|
||||
int deleteByExample(StuJoinNodeBySupplyExample example);
|
||||
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(StuJoinNodeBySupply record);
|
||||
|
||||
int insertSelective(StuJoinNodeBySupply record);
|
||||
|
||||
List<StuJoinNodeBySupply> selectByExample(StuJoinNodeBySupplyExample example);
|
||||
|
||||
StuJoinNodeBySupply selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByExampleSelective(@Param("record") StuJoinNodeBySupply record, @Param("example") StuJoinNodeBySupplyExample example);
|
||||
|
||||
int updateByExample(@Param("record") StuJoinNodeBySupply record, @Param("example") StuJoinNodeBySupplyExample example);
|
||||
|
||||
int updateByPrimaryKeySelective(StuJoinNodeBySupply record);
|
||||
|
||||
int updateByPrimaryKey(StuJoinNodeBySupply record);
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.sztzjy.block_finance.mappers;
|
||||
|
||||
import com.sztzjy.block_finance.entity.StuSupplyRecordDetails;
|
||||
import com.sztzjy.block_finance.entity.StuSupplyRecordDetailsExample;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
@Mapper
|
||||
public interface StuSupplyRecordDetailsMapper {
|
||||
long countByExample(StuSupplyRecordDetailsExample example);
|
||||
|
||||
int deleteByExample(StuSupplyRecordDetailsExample example);
|
||||
|
||||
int deleteByPrimaryKey(String id);
|
||||
|
||||
int insert(StuSupplyRecordDetails record);
|
||||
|
||||
int insertSelective(StuSupplyRecordDetails record);
|
||||
|
||||
List<StuSupplyRecordDetails> selectByExample(StuSupplyRecordDetailsExample example);
|
||||
|
||||
StuSupplyRecordDetails selectByPrimaryKey(String id);
|
||||
|
||||
int updateByExampleSelective(@Param("record") StuSupplyRecordDetails record, @Param("example") StuSupplyRecordDetailsExample example);
|
||||
|
||||
int updateByExample(@Param("record") StuSupplyRecordDetails record, @Param("example") StuSupplyRecordDetailsExample example);
|
||||
|
||||
int updateByPrimaryKeySelective(StuSupplyRecordDetails record);
|
||||
|
||||
int updateByPrimaryKey(StuSupplyRecordDetails record);
|
||||
}
|
@ -1,32 +0,0 @@
|
||||
package com.sztzjy.block_finance.mappers;
|
||||
|
||||
import com.sztzjy.block_finance.entity.stuJoinNode;
|
||||
import com.sztzjy.block_finance.entity.stuJoinNodeExample;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
@Mapper
|
||||
public interface stuJoinNodeMapper {
|
||||
long countByExample(stuJoinNodeExample example);
|
||||
|
||||
int deleteByExample(stuJoinNodeExample example);
|
||||
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(stuJoinNode record);
|
||||
|
||||
int insertSelective(stuJoinNode record);
|
||||
|
||||
List<stuJoinNode> selectByExample(stuJoinNodeExample example);
|
||||
|
||||
stuJoinNode selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByExampleSelective(@Param("record") stuJoinNode record, @Param("example") stuJoinNodeExample example);
|
||||
|
||||
int updateByExample(@Param("record") stuJoinNode record, @Param("example") stuJoinNodeExample example);
|
||||
|
||||
int updateByPrimaryKeySelective(stuJoinNode record);
|
||||
|
||||
int updateByPrimaryKey(stuJoinNode record);
|
||||
}
|
@ -0,0 +1,211 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.sztzjy.block_finance.mappers.StuSupplyRecordDetailsMapper">
|
||||
<resultMap id="BaseResultMap" type="com.sztzjy.block_finance.entity.StuSupplyRecordDetails">
|
||||
<id column="id" jdbcType="VARCHAR" property="id" />
|
||||
<result column="error_number" jdbcType="INTEGER" property="errorNumber" />
|
||||
<result column="score_detail" jdbcType="DOUBLE" property="scoreDetail" />
|
||||
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
id, error_number, score_detail, user_id, create_time
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.sztzjy.block_finance.entity.StuSupplyRecordDetailsExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from stu_supply_record_details
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from stu_supply_record_details
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from stu_supply_record_details
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.sztzjy.block_finance.entity.StuSupplyRecordDetailsExample">
|
||||
delete from stu_supply_record_details
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sztzjy.block_finance.entity.StuSupplyRecordDetails">
|
||||
insert into stu_supply_record_details (id, error_number, score_detail,
|
||||
user_id, create_time)
|
||||
values (#{id,jdbcType=VARCHAR}, #{errorNumber,jdbcType=INTEGER}, #{scoreDetail,jdbcType=DOUBLE},
|
||||
#{userId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sztzjy.block_finance.entity.StuSupplyRecordDetails">
|
||||
insert into stu_supply_record_details
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="errorNumber != null">
|
||||
error_number,
|
||||
</if>
|
||||
<if test="scoreDetail != null">
|
||||
score_detail,
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="errorNumber != null">
|
||||
#{errorNumber,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="scoreDetail != null">
|
||||
#{scoreDetail,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
#{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.sztzjy.block_finance.entity.StuSupplyRecordDetailsExample" resultType="java.lang.Long">
|
||||
select count(*) from stu_supply_record_details
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update stu_supply_record_details
|
||||
<set>
|
||||
<if test="record.id != null">
|
||||
id = #{record.id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.errorNumber != null">
|
||||
error_number = #{record.errorNumber,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.scoreDetail != null">
|
||||
score_detail = #{record.scoreDetail,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="record.userId != null">
|
||||
user_id = #{record.userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.createTime != null">
|
||||
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update stu_supply_record_details
|
||||
set id = #{record.id,jdbcType=VARCHAR},
|
||||
error_number = #{record.errorNumber,jdbcType=INTEGER},
|
||||
score_detail = #{record.scoreDetail,jdbcType=DOUBLE},
|
||||
user_id = #{record.userId,jdbcType=VARCHAR},
|
||||
create_time = #{record.createTime,jdbcType=TIMESTAMP}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.block_finance.entity.StuSupplyRecordDetails">
|
||||
update stu_supply_record_details
|
||||
<set>
|
||||
<if test="errorNumber != null">
|
||||
error_number = #{errorNumber,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="scoreDetail != null">
|
||||
score_detail = #{scoreDetail,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id = #{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sztzjy.block_finance.entity.StuSupplyRecordDetails">
|
||||
update stu_supply_record_details
|
||||
set error_number = #{errorNumber,jdbcType=INTEGER},
|
||||
score_detail = #{scoreDetail,jdbcType=DOUBLE},
|
||||
user_id = #{userId,jdbcType=VARCHAR},
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP}
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
</mapper>
|
Loading…
Reference in New Issue