给计量单位表增加三个字段

This commit is contained in:
季圣华
2020-03-27 00:43:31 +08:00
parent f1fba5f705
commit 89d2e29779
7 changed files with 498 additions and 534 deletions

View File

@@ -1,130 +1,72 @@
package com.jsh.erp.datasource.entities;
public class Unit {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_unit.id
*
* @mbggenerated
*/
private Long id;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_unit.UName
*
* @mbggenerated
*/
private String uname;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_unit.tenant_id
*
* @mbggenerated
*/
private String basicUnit;
private String otherUnit;
private Integer ratio;
private Long tenantId;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_unit.delete_Flag
*
* @mbggenerated
*/
private String deleteFlag;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_unit.id
*
* @return the value of jsh_unit.id
*
* @mbggenerated
*/
public Long getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_unit.id
*
* @param id the value for jsh_unit.id
*
* @mbggenerated
*/
public void setId(Long id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_unit.UName
*
* @return the value of jsh_unit.UName
*
* @mbggenerated
*/
public String getUname() {
return uname;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_unit.UName
*
* @param uname the value for jsh_unit.UName
*
* @mbggenerated
*/
public void setUname(String uname) {
this.uname = uname == null ? null : uname.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_unit.tenant_id
*
* @return the value of jsh_unit.tenant_id
*
* @mbggenerated
*/
public String getBasicUnit() {
return basicUnit;
}
public void setBasicUnit(String basicUnit) {
this.basicUnit = basicUnit == null ? null : basicUnit.trim();
}
public String getOtherUnit() {
return otherUnit;
}
public void setOtherUnit(String otherUnit) {
this.otherUnit = otherUnit == null ? null : otherUnit.trim();
}
public Integer getRatio() {
return ratio;
}
public void setRatio(Integer ratio) {
this.ratio = ratio;
}
public Long getTenantId() {
return tenantId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_unit.tenant_id
*
* @param tenantId the value for jsh_unit.tenant_id
*
* @mbggenerated
*/
public void setTenantId(Long tenantId) {
this.tenantId = tenantId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_unit.delete_Flag
*
* @return the value of jsh_unit.delete_Flag
*
* @mbggenerated
*/
public String getDeleteFlag() {
return deleteFlag;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_unit.delete_Flag
*
* @param deleteFlag the value for jsh_unit.delete_Flag
*
* @mbggenerated
*/
public void setDeleteFlag(String deleteFlag) {
this.deleteFlag = deleteFlag == null ? null : deleteFlag.trim();
}

View File

@@ -4,118 +4,46 @@ import java.util.ArrayList;
import java.util.List;
public class UnitExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table jsh_unit
*
* @mbggenerated
*/
protected String orderByClause;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table jsh_unit
*
* @mbggenerated
*/
protected boolean distinct;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table jsh_unit
*
* @mbggenerated
*/
protected List<Criteria> oredCriteria;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table jsh_unit
*
* @mbggenerated
*/
public UnitExample() {
oredCriteria = new ArrayList<Criteria>();
oredCriteria = new ArrayList<>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table jsh_unit
*
* @mbggenerated
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table jsh_unit
*
* @mbggenerated
*/
public String getOrderByClause() {
return orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table jsh_unit
*
* @mbggenerated
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table jsh_unit
*
* @mbggenerated
*/
public boolean isDistinct() {
return distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table jsh_unit
*
* @mbggenerated
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table jsh_unit
*
* @mbggenerated
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table jsh_unit
*
* @mbggenerated
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table jsh_unit
*
* @mbggenerated
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
@@ -124,41 +52,23 @@ public class UnitExample {
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table jsh_unit
*
* @mbggenerated
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table jsh_unit
*
* @mbggenerated
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table jsh_unit
*
* @mbggenerated
*/
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
criteria = new ArrayList<>();
}
public boolean isValid() {
@@ -324,6 +234,206 @@ public class UnitExample {
return (Criteria) this;
}
public Criteria andBasicUnitIsNull() {
addCriterion("basic_unit is null");
return (Criteria) this;
}
public Criteria andBasicUnitIsNotNull() {
addCriterion("basic_unit is not null");
return (Criteria) this;
}
public Criteria andBasicUnitEqualTo(String value) {
addCriterion("basic_unit =", value, "basicUnit");
return (Criteria) this;
}
public Criteria andBasicUnitNotEqualTo(String value) {
addCriterion("basic_unit <>", value, "basicUnit");
return (Criteria) this;
}
public Criteria andBasicUnitGreaterThan(String value) {
addCriterion("basic_unit >", value, "basicUnit");
return (Criteria) this;
}
public Criteria andBasicUnitGreaterThanOrEqualTo(String value) {
addCriterion("basic_unit >=", value, "basicUnit");
return (Criteria) this;
}
public Criteria andBasicUnitLessThan(String value) {
addCriterion("basic_unit <", value, "basicUnit");
return (Criteria) this;
}
public Criteria andBasicUnitLessThanOrEqualTo(String value) {
addCriterion("basic_unit <=", value, "basicUnit");
return (Criteria) this;
}
public Criteria andBasicUnitLike(String value) {
addCriterion("basic_unit like", value, "basicUnit");
return (Criteria) this;
}
public Criteria andBasicUnitNotLike(String value) {
addCriterion("basic_unit not like", value, "basicUnit");
return (Criteria) this;
}
public Criteria andBasicUnitIn(List<String> values) {
addCriterion("basic_unit in", values, "basicUnit");
return (Criteria) this;
}
public Criteria andBasicUnitNotIn(List<String> values) {
addCriterion("basic_unit not in", values, "basicUnit");
return (Criteria) this;
}
public Criteria andBasicUnitBetween(String value1, String value2) {
addCriterion("basic_unit between", value1, value2, "basicUnit");
return (Criteria) this;
}
public Criteria andBasicUnitNotBetween(String value1, String value2) {
addCriterion("basic_unit not between", value1, value2, "basicUnit");
return (Criteria) this;
}
public Criteria andOtherUnitIsNull() {
addCriterion("other_unit is null");
return (Criteria) this;
}
public Criteria andOtherUnitIsNotNull() {
addCriterion("other_unit is not null");
return (Criteria) this;
}
public Criteria andOtherUnitEqualTo(String value) {
addCriterion("other_unit =", value, "otherUnit");
return (Criteria) this;
}
public Criteria andOtherUnitNotEqualTo(String value) {
addCriterion("other_unit <>", value, "otherUnit");
return (Criteria) this;
}
public Criteria andOtherUnitGreaterThan(String value) {
addCriterion("other_unit >", value, "otherUnit");
return (Criteria) this;
}
public Criteria andOtherUnitGreaterThanOrEqualTo(String value) {
addCriterion("other_unit >=", value, "otherUnit");
return (Criteria) this;
}
public Criteria andOtherUnitLessThan(String value) {
addCriterion("other_unit <", value, "otherUnit");
return (Criteria) this;
}
public Criteria andOtherUnitLessThanOrEqualTo(String value) {
addCriterion("other_unit <=", value, "otherUnit");
return (Criteria) this;
}
public Criteria andOtherUnitLike(String value) {
addCriterion("other_unit like", value, "otherUnit");
return (Criteria) this;
}
public Criteria andOtherUnitNotLike(String value) {
addCriterion("other_unit not like", value, "otherUnit");
return (Criteria) this;
}
public Criteria andOtherUnitIn(List<String> values) {
addCriterion("other_unit in", values, "otherUnit");
return (Criteria) this;
}
public Criteria andOtherUnitNotIn(List<String> values) {
addCriterion("other_unit not in", values, "otherUnit");
return (Criteria) this;
}
public Criteria andOtherUnitBetween(String value1, String value2) {
addCriterion("other_unit between", value1, value2, "otherUnit");
return (Criteria) this;
}
public Criteria andOtherUnitNotBetween(String value1, String value2) {
addCriterion("other_unit not between", value1, value2, "otherUnit");
return (Criteria) this;
}
public Criteria andRatioIsNull() {
addCriterion("ratio is null");
return (Criteria) this;
}
public Criteria andRatioIsNotNull() {
addCriterion("ratio is not null");
return (Criteria) this;
}
public Criteria andRatioEqualTo(Integer value) {
addCriterion("ratio =", value, "ratio");
return (Criteria) this;
}
public Criteria andRatioNotEqualTo(Integer value) {
addCriterion("ratio <>", value, "ratio");
return (Criteria) this;
}
public Criteria andRatioGreaterThan(Integer value) {
addCriterion("ratio >", value, "ratio");
return (Criteria) this;
}
public Criteria andRatioGreaterThanOrEqualTo(Integer value) {
addCriterion("ratio >=", value, "ratio");
return (Criteria) this;
}
public Criteria andRatioLessThan(Integer value) {
addCriterion("ratio <", value, "ratio");
return (Criteria) this;
}
public Criteria andRatioLessThanOrEqualTo(Integer value) {
addCriterion("ratio <=", value, "ratio");
return (Criteria) this;
}
public Criteria andRatioIn(List<Integer> values) {
addCriterion("ratio in", values, "ratio");
return (Criteria) this;
}
public Criteria andRatioNotIn(List<Integer> values) {
addCriterion("ratio not in", values, "ratio");
return (Criteria) this;
}
public Criteria andRatioBetween(Integer value1, Integer value2) {
addCriterion("ratio between", value1, value2, "ratio");
return (Criteria) this;
}
public Criteria andRatioNotBetween(Integer value1, Integer value2) {
addCriterion("ratio not between", value1, value2, "ratio");
return (Criteria) this;
}
public Criteria andTenantIdIsNull() {
addCriterion("tenant_id is null");
return (Criteria) this;
@@ -455,25 +565,12 @@ public class UnitExample {
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table jsh_unit
*
* @mbggenerated do_not_delete_during_merge
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table jsh_unit
*
* @mbggenerated
*/
public static class Criterion {
private String condition;

View File

@@ -6,91 +6,25 @@ import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface UnitMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table jsh_unit
*
* @mbggenerated
*/
int countByExample(UnitExample example);
long countByExample(UnitExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table jsh_unit
*
* @mbggenerated
*/
int deleteByExample(UnitExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table jsh_unit
*
* @mbggenerated
*/
int deleteByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table jsh_unit
*
* @mbggenerated
*/
int insert(Unit record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table jsh_unit
*
* @mbggenerated
*/
int insertSelective(Unit record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table jsh_unit
*
* @mbggenerated
*/
List<Unit> selectByExample(UnitExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table jsh_unit
*
* @mbggenerated
*/
Unit selectByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table jsh_unit
*
* @mbggenerated
*/
int updateByExampleSelective(@Param("record") Unit record, @Param("example") UnitExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table jsh_unit
*
* @mbggenerated
*/
int updateByExample(@Param("record") Unit record, @Param("example") UnitExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table jsh_unit
*
* @mbggenerated
*/
int updateByPrimaryKeySelective(Unit record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table jsh_unit
*
* @mbggenerated
*/
int updateByPrimaryKey(Unit record);
}