完成财务报表导入和查询
parent
d3ce0d3e11
commit
f6dc189c59
@ -0,0 +1,136 @@
|
||||
package com.sztzjy.digital_credit.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnore;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
/**
|
||||
*
|
||||
* @author tz
|
||||
* stu_financial_statements
|
||||
*/
|
||||
public class StuFinancialStatements {
|
||||
@ExcelIgnore
|
||||
@ApiModelProperty("id")
|
||||
private Integer id;
|
||||
@ExcelIgnore
|
||||
@ApiModelProperty("归属模块")
|
||||
private String module;
|
||||
|
||||
@ExcelProperty("指标名称")
|
||||
@ApiModelProperty("指标名称")
|
||||
private String indicatorName;
|
||||
@ExcelProperty("2023-12-31")
|
||||
@ApiModelProperty("2023/12/31")
|
||||
private String dateOne;
|
||||
@ExcelProperty("2022-12-31")
|
||||
@ApiModelProperty("2022/12/31")
|
||||
private String dateTwo;
|
||||
@ExcelProperty("2021-12-31")
|
||||
@ApiModelProperty("2021/12/31")
|
||||
private String dateThree;
|
||||
@ExcelIgnore
|
||||
@ApiModelProperty("序号")
|
||||
private Integer serialNumber;
|
||||
@ExcelIgnore
|
||||
@ApiModelProperty("学校ID")
|
||||
private String schoolId;
|
||||
@ExcelIgnore
|
||||
@ApiModelProperty("用户ID")
|
||||
private String userId;
|
||||
@ExcelIgnore
|
||||
@ApiModelProperty("创建时间")
|
||||
private Date createTime;
|
||||
@ExcelIgnore
|
||||
@ApiModelProperty("更新时间")
|
||||
private Date updateTime;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getModule() {
|
||||
return module;
|
||||
}
|
||||
|
||||
public void setModule(String module) {
|
||||
this.module = module == null ? null : module.trim();
|
||||
}
|
||||
|
||||
public String getIndicatorName() {
|
||||
return indicatorName;
|
||||
}
|
||||
|
||||
public void setIndicatorName(String indicatorName) {
|
||||
this.indicatorName = indicatorName == null ? null : indicatorName.trim();
|
||||
}
|
||||
|
||||
public String getDateOne() {
|
||||
return dateOne;
|
||||
}
|
||||
|
||||
public void setDateOne(String dateOne) {
|
||||
this.dateOne = dateOne == null ? null : dateOne.trim();
|
||||
}
|
||||
|
||||
public String getDateTwo() {
|
||||
return dateTwo;
|
||||
}
|
||||
|
||||
public void setDateTwo(String dateTwo) {
|
||||
this.dateTwo = dateTwo == null ? null : dateTwo.trim();
|
||||
}
|
||||
|
||||
public String getDateThree() {
|
||||
return dateThree;
|
||||
}
|
||||
|
||||
public void setDateThree(String dateThree) {
|
||||
this.dateThree = dateThree == null ? null : dateThree.trim();
|
||||
}
|
||||
|
||||
public Integer getSerialNumber() {
|
||||
return serialNumber;
|
||||
}
|
||||
|
||||
public void setSerialNumber(Integer serialNumber) {
|
||||
this.serialNumber = serialNumber;
|
||||
}
|
||||
|
||||
public String getSchoolId() {
|
||||
return schoolId;
|
||||
}
|
||||
|
||||
public void setSchoolId(String schoolId) {
|
||||
this.schoolId = schoolId == null ? null : schoolId.trim();
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId == null ? null : userId.trim();
|
||||
}
|
||||
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public Date getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(Date updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
}
|
@ -0,0 +1,930 @@
|
||||
package com.sztzjy.digital_credit.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class StuFinancialStatementsExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public StuFinancialStatementsExample() {
|
||||
oredCriteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleIsNull() {
|
||||
addCriterion("module is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleIsNotNull() {
|
||||
addCriterion("module is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleEqualTo(String value) {
|
||||
addCriterion("module =", value, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleNotEqualTo(String value) {
|
||||
addCriterion("module <>", value, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleGreaterThan(String value) {
|
||||
addCriterion("module >", value, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("module >=", value, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleLessThan(String value) {
|
||||
addCriterion("module <", value, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleLessThanOrEqualTo(String value) {
|
||||
addCriterion("module <=", value, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleLike(String value) {
|
||||
addCriterion("module like", value, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleNotLike(String value) {
|
||||
addCriterion("module not like", value, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleIn(List<String> values) {
|
||||
addCriterion("module in", values, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleNotIn(List<String> values) {
|
||||
addCriterion("module not in", values, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleBetween(String value1, String value2) {
|
||||
addCriterion("module between", value1, value2, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleNotBetween(String value1, String value2) {
|
||||
addCriterion("module not between", value1, value2, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndicatorNameIsNull() {
|
||||
addCriterion("indicator_name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndicatorNameIsNotNull() {
|
||||
addCriterion("indicator_name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndicatorNameEqualTo(String value) {
|
||||
addCriterion("indicator_name =", value, "indicatorName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndicatorNameNotEqualTo(String value) {
|
||||
addCriterion("indicator_name <>", value, "indicatorName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndicatorNameGreaterThan(String value) {
|
||||
addCriterion("indicator_name >", value, "indicatorName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndicatorNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("indicator_name >=", value, "indicatorName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndicatorNameLessThan(String value) {
|
||||
addCriterion("indicator_name <", value, "indicatorName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndicatorNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("indicator_name <=", value, "indicatorName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndicatorNameLike(String value) {
|
||||
addCriterion("indicator_name like", value, "indicatorName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndicatorNameNotLike(String value) {
|
||||
addCriterion("indicator_name not like", value, "indicatorName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndicatorNameIn(List<String> values) {
|
||||
addCriterion("indicator_name in", values, "indicatorName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndicatorNameNotIn(List<String> values) {
|
||||
addCriterion("indicator_name not in", values, "indicatorName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndicatorNameBetween(String value1, String value2) {
|
||||
addCriterion("indicator_name between", value1, value2, "indicatorName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndicatorNameNotBetween(String value1, String value2) {
|
||||
addCriterion("indicator_name not between", value1, value2, "indicatorName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateOneIsNull() {
|
||||
addCriterion("date_one is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateOneIsNotNull() {
|
||||
addCriterion("date_one is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateOneEqualTo(String value) {
|
||||
addCriterion("date_one =", value, "dateOne");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateOneNotEqualTo(String value) {
|
||||
addCriterion("date_one <>", value, "dateOne");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateOneGreaterThan(String value) {
|
||||
addCriterion("date_one >", value, "dateOne");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateOneGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("date_one >=", value, "dateOne");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateOneLessThan(String value) {
|
||||
addCriterion("date_one <", value, "dateOne");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateOneLessThanOrEqualTo(String value) {
|
||||
addCriterion("date_one <=", value, "dateOne");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateOneLike(String value) {
|
||||
addCriterion("date_one like", value, "dateOne");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateOneNotLike(String value) {
|
||||
addCriterion("date_one not like", value, "dateOne");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateOneIn(List<String> values) {
|
||||
addCriterion("date_one in", values, "dateOne");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateOneNotIn(List<String> values) {
|
||||
addCriterion("date_one not in", values, "dateOne");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateOneBetween(String value1, String value2) {
|
||||
addCriterion("date_one between", value1, value2, "dateOne");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateOneNotBetween(String value1, String value2) {
|
||||
addCriterion("date_one not between", value1, value2, "dateOne");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateTwoIsNull() {
|
||||
addCriterion("date_two is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateTwoIsNotNull() {
|
||||
addCriterion("date_two is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateTwoEqualTo(String value) {
|
||||
addCriterion("date_two =", value, "dateTwo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateTwoNotEqualTo(String value) {
|
||||
addCriterion("date_two <>", value, "dateTwo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateTwoGreaterThan(String value) {
|
||||
addCriterion("date_two >", value, "dateTwo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateTwoGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("date_two >=", value, "dateTwo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateTwoLessThan(String value) {
|
||||
addCriterion("date_two <", value, "dateTwo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateTwoLessThanOrEqualTo(String value) {
|
||||
addCriterion("date_two <=", value, "dateTwo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateTwoLike(String value) {
|
||||
addCriterion("date_two like", value, "dateTwo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateTwoNotLike(String value) {
|
||||
addCriterion("date_two not like", value, "dateTwo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateTwoIn(List<String> values) {
|
||||
addCriterion("date_two in", values, "dateTwo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateTwoNotIn(List<String> values) {
|
||||
addCriterion("date_two not in", values, "dateTwo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateTwoBetween(String value1, String value2) {
|
||||
addCriterion("date_two between", value1, value2, "dateTwo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateTwoNotBetween(String value1, String value2) {
|
||||
addCriterion("date_two not between", value1, value2, "dateTwo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateThreeIsNull() {
|
||||
addCriterion("date_three is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateThreeIsNotNull() {
|
||||
addCriterion("date_three is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateThreeEqualTo(String value) {
|
||||
addCriterion("date_three =", value, "dateThree");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateThreeNotEqualTo(String value) {
|
||||
addCriterion("date_three <>", value, "dateThree");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateThreeGreaterThan(String value) {
|
||||
addCriterion("date_three >", value, "dateThree");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateThreeGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("date_three >=", value, "dateThree");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateThreeLessThan(String value) {
|
||||
addCriterion("date_three <", value, "dateThree");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateThreeLessThanOrEqualTo(String value) {
|
||||
addCriterion("date_three <=", value, "dateThree");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateThreeLike(String value) {
|
||||
addCriterion("date_three like", value, "dateThree");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateThreeNotLike(String value) {
|
||||
addCriterion("date_three not like", value, "dateThree");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateThreeIn(List<String> values) {
|
||||
addCriterion("date_three in", values, "dateThree");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateThreeNotIn(List<String> values) {
|
||||
addCriterion("date_three not in", values, "dateThree");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateThreeBetween(String value1, String value2) {
|
||||
addCriterion("date_three between", value1, value2, "dateThree");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDateThreeNotBetween(String value1, String value2) {
|
||||
addCriterion("date_three not between", value1, value2, "dateThree");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSerialNumberIsNull() {
|
||||
addCriterion("serial_number is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSerialNumberIsNotNull() {
|
||||
addCriterion("serial_number is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSerialNumberEqualTo(Integer value) {
|
||||
addCriterion("serial_number =", value, "serialNumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSerialNumberNotEqualTo(Integer value) {
|
||||
addCriterion("serial_number <>", value, "serialNumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSerialNumberGreaterThan(Integer value) {
|
||||
addCriterion("serial_number >", value, "serialNumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSerialNumberGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("serial_number >=", value, "serialNumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSerialNumberLessThan(Integer value) {
|
||||
addCriterion("serial_number <", value, "serialNumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSerialNumberLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("serial_number <=", value, "serialNumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSerialNumberIn(List<Integer> values) {
|
||||
addCriterion("serial_number in", values, "serialNumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSerialNumberNotIn(List<Integer> values) {
|
||||
addCriterion("serial_number not in", values, "serialNumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSerialNumberBetween(Integer value1, Integer value2) {
|
||||
addCriterion("serial_number between", value1, value2, "serialNumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSerialNumberNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("serial_number not between", value1, value2, "serialNumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdIsNull() {
|
||||
addCriterion("school_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdIsNotNull() {
|
||||
addCriterion("school_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdEqualTo(String value) {
|
||||
addCriterion("school_id =", value, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdNotEqualTo(String value) {
|
||||
addCriterion("school_id <>", value, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdGreaterThan(String value) {
|
||||
addCriterion("school_id >", value, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("school_id >=", value, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdLessThan(String value) {
|
||||
addCriterion("school_id <", value, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdLessThanOrEqualTo(String value) {
|
||||
addCriterion("school_id <=", value, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdLike(String value) {
|
||||
addCriterion("school_id like", value, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdNotLike(String value) {
|
||||
addCriterion("school_id not like", value, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdIn(List<String> values) {
|
||||
addCriterion("school_id in", values, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdNotIn(List<String> values) {
|
||||
addCriterion("school_id not in", values, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdBetween(String value1, String value2) {
|
||||
addCriterion("school_id between", value1, value2, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdNotBetween(String value1, String value2) {
|
||||
addCriterion("school_id not between", value1, value2, "schoolId");
|
||||
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 Criteria andUpdateTimeIsNull() {
|
||||
addCriterion("update_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeIsNotNull() {
|
||||
addCriterion("update_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeEqualTo(Date value) {
|
||||
addCriterion("update_time =", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeNotEqualTo(Date value) {
|
||||
addCriterion("update_time <>", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeGreaterThan(Date value) {
|
||||
addCriterion("update_time >", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("update_time >=", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeLessThan(Date value) {
|
||||
addCriterion("update_time <", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("update_time <=", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeIn(List<Date> values) {
|
||||
addCriterion("update_time in", values, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeNotIn(List<Date> values) {
|
||||
addCriterion("update_time not in", values, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("update_time between", value1, value2, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("update_time not between", value1, value2, "updateTime");
|
||||
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,33 @@
|
||||
package com.sztzjy.digital_credit.mapper;
|
||||
|
||||
import com.sztzjy.digital_credit.entity.StuFinancialStatements;
|
||||
import com.sztzjy.digital_credit.entity.StuFinancialStatementsExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface StuFinancialStatementsMapper {
|
||||
long countByExample(StuFinancialStatementsExample example);
|
||||
|
||||
int deleteByExample(StuFinancialStatementsExample example);
|
||||
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(StuFinancialStatements record);
|
||||
|
||||
int insertSelective(StuFinancialStatements record);
|
||||
|
||||
List<StuFinancialStatements> selectByExample(StuFinancialStatementsExample example);
|
||||
|
||||
StuFinancialStatements selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByExampleSelective(@Param("record") StuFinancialStatements record, @Param("example") StuFinancialStatementsExample example);
|
||||
|
||||
int updateByExample(@Param("record") StuFinancialStatements record, @Param("example") StuFinancialStatementsExample example);
|
||||
|
||||
int updateByPrimaryKeySelective(StuFinancialStatements record);
|
||||
|
||||
int updateByPrimaryKey(StuFinancialStatements record);
|
||||
|
||||
//批量插入
|
||||
void batchInsertExcel(List<StuFinancialStatements> cachedDataList);
|
||||
}
|
@ -0,0 +1,330 @@
|
||||
<?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.digital_credit.mapper.StuFinancialStatementsMapper">
|
||||
<resultMap id="BaseResultMap" type="com.sztzjy.digital_credit.entity.StuFinancialStatements">
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="module" jdbcType="VARCHAR" property="module" />
|
||||
<result column="indicator_name" jdbcType="VARCHAR" property="indicatorName" />
|
||||
<result column="date_one" jdbcType="VARCHAR" property="dateOne" />
|
||||
<result column="date_two" jdbcType="VARCHAR" property="dateTwo" />
|
||||
<result column="date_three" jdbcType="VARCHAR" property="dateThree" />
|
||||
<result column="serial_number" jdbcType="INTEGER" property="serialNumber" />
|
||||
<result column="school_id" jdbcType="VARCHAR" property="schoolId" />
|
||||
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
id, module, indicator_name, date_one, date_two, date_three, serial_number, school_id,
|
||||
user_id, create_time, update_time
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.sztzjy.digital_credit.entity.StuFinancialStatementsExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from stu_financial_statements
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from stu_financial_statements
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from stu_financial_statements
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.sztzjy.digital_credit.entity.StuFinancialStatementsExample">
|
||||
delete from stu_financial_statements
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sztzjy.digital_credit.entity.StuFinancialStatements">
|
||||
insert into stu_financial_statements (id, module, indicator_name,
|
||||
date_one, date_two, date_three,
|
||||
serial_number, school_id, user_id,
|
||||
create_time, update_time)
|
||||
values (#{id,jdbcType=INTEGER}, #{module,jdbcType=VARCHAR}, #{indicatorName,jdbcType=VARCHAR},
|
||||
#{dateOne,jdbcType=VARCHAR}, #{dateTwo,jdbcType=VARCHAR}, #{dateThree,jdbcType=VARCHAR},
|
||||
#{serialNumber,jdbcType=INTEGER}, #{schoolId,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR},
|
||||
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sztzjy.digital_credit.entity.StuFinancialStatements">
|
||||
insert into stu_financial_statements
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="module != null">
|
||||
module,
|
||||
</if>
|
||||
<if test="indicatorName != null">
|
||||
indicator_name,
|
||||
</if>
|
||||
<if test="dateOne != null">
|
||||
date_one,
|
||||
</if>
|
||||
<if test="dateTwo != null">
|
||||
date_two,
|
||||
</if>
|
||||
<if test="dateThree != null">
|
||||
date_three,
|
||||
</if>
|
||||
<if test="serialNumber != null">
|
||||
serial_number,
|
||||
</if>
|
||||
<if test="schoolId != null">
|
||||
school_id,
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="module != null">
|
||||
#{module,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="indicatorName != null">
|
||||
#{indicatorName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="dateOne != null">
|
||||
#{dateOne,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="dateTwo != null">
|
||||
#{dateTwo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="dateThree != null">
|
||||
#{dateThree,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="serialNumber != null">
|
||||
#{serialNumber,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="schoolId != null">
|
||||
#{schoolId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
#{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<select id="countByExample" parameterType="com.sztzjy.digital_credit.entity.StuFinancialStatementsExample" resultType="java.lang.Long">
|
||||
select count(*) from stu_financial_statements
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update stu_financial_statements
|
||||
<set>
|
||||
<if test="record.id != null">
|
||||
id = #{record.id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.module != null">
|
||||
module = #{record.module,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.indicatorName != null">
|
||||
indicator_name = #{record.indicatorName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.dateOne != null">
|
||||
date_one = #{record.dateOne,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.dateTwo != null">
|
||||
date_two = #{record.dateTwo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.dateThree != null">
|
||||
date_three = #{record.dateThree,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.serialNumber != null">
|
||||
serial_number = #{record.serialNumber,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.schoolId != null">
|
||||
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.userId != null">
|
||||
user_id = #{record.userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.createTime != null">
|
||||
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="record.updateTime != null">
|
||||
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update stu_financial_statements
|
||||
set id = #{record.id,jdbcType=INTEGER},
|
||||
module = #{record.module,jdbcType=VARCHAR},
|
||||
indicator_name = #{record.indicatorName,jdbcType=VARCHAR},
|
||||
date_one = #{record.dateOne,jdbcType=VARCHAR},
|
||||
date_two = #{record.dateTwo,jdbcType=VARCHAR},
|
||||
date_three = #{record.dateThree,jdbcType=VARCHAR},
|
||||
serial_number = #{record.serialNumber,jdbcType=INTEGER},
|
||||
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
||||
user_id = #{record.userId,jdbcType=VARCHAR},
|
||||
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.digital_credit.entity.StuFinancialStatements">
|
||||
update stu_financial_statements
|
||||
<set>
|
||||
<if test="module != null">
|
||||
module = #{module,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="indicatorName != null">
|
||||
indicator_name = #{indicatorName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="dateOne != null">
|
||||
date_one = #{dateOne,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="dateTwo != null">
|
||||
date_two = #{dateTwo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="dateThree != null">
|
||||
date_three = #{dateThree,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="serialNumber != null">
|
||||
serial_number = #{serialNumber,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="schoolId != null">
|
||||
school_id = #{schoolId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id = #{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sztzjy.digital_credit.entity.StuFinancialStatements">
|
||||
update stu_financial_statements
|
||||
set module = #{module,jdbcType=VARCHAR},
|
||||
indicator_name = #{indicatorName,jdbcType=VARCHAR},
|
||||
date_one = #{dateOne,jdbcType=VARCHAR},
|
||||
date_two = #{dateTwo,jdbcType=VARCHAR},
|
||||
date_three = #{dateThree,jdbcType=VARCHAR},
|
||||
serial_number = #{serialNumber,jdbcType=INTEGER},
|
||||
school_id = #{schoolId,jdbcType=VARCHAR},
|
||||
user_id = #{userId,jdbcType=VARCHAR},
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<insert id="batchInsertExcel">
|
||||
insert into stu_financial_statements (id, module, indicator_name, date_one, date_two, date_three, serial_number, school_id,
|
||||
user_id, create_time, update_time)
|
||||
values
|
||||
<foreach collection="list" separator="," item="item">
|
||||
(#{item.id,jdbcType=INTEGER}, #{item.module,jdbcType=VARCHAR}, #{item.indicatorName,jdbcType=VARCHAR},
|
||||
#{item.dateOne,jdbcType=VARCHAR}, #{item.dateTwo,jdbcType=VARCHAR}, #{item.dateThree,jdbcType=VARCHAR},
|
||||
#{item.serialNumber,jdbcType=INTEGER}, #{item.schoolId,jdbcType=VARCHAR}, #{item.userId,jdbcType=VARCHAR},
|
||||
#{item.createTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP})
|
||||
</foreach>
|
||||
|
||||
|
||||
|
||||
</insert>
|
||||
|
||||
|
||||
|
||||
</mapper>
|
Loading…
Reference in New Issue