部分表添加租户id
This commit is contained in:
@@ -1605,4 +1605,17 @@ ALTER TABLE jsh_log DROP FOREIGN KEY FKF2696AA13E226853;
|
|||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
ALTER TABLE jsh_material DROP FOREIGN KEY FK675951272AB6672C;
|
ALTER TABLE jsh_material DROP FOREIGN KEY FK675951272AB6672C;
|
||||||
ALTER TABLE jsh_material DROP FOREIGN KEY jsh_material_ibfk_1;
|
ALTER TABLE jsh_material DROP FOREIGN KEY jsh_material_ibfk_1;
|
||||||
|
-- ----------------------------
|
||||||
|
-- 时间:2019年4月24日
|
||||||
|
-- version:1.0.14
|
||||||
|
-- 此次更新
|
||||||
|
-- 1、批量增加部分表的tenant_id租户字段
|
||||||
|
-- 特别提醒:之后的sql都是在之前基础上迭代,可以对已存在的系统进行数据保留更新
|
||||||
|
-- ----------------------------
|
||||||
|
alter table databasechangelog add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
|
||||||
|
alter table databasechangeloglock add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
|
||||||
|
alter table jsh_app add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
|
||||||
|
alter table jsh_functions add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
|
||||||
|
alter table jsh_materialproperty add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
|
||||||
|
alter table jsh_userbusiness add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@@ -129,6 +129,14 @@ public class App {
|
|||||||
*/
|
*/
|
||||||
private String deleteFlag;
|
private String deleteFlag;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column jsh_app.tenant_id
|
||||||
|
*
|
||||||
|
* @mbggenerated
|
||||||
|
*/
|
||||||
|
private Long tenantId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method was generated by MyBatis Generator.
|
* This method was generated by MyBatis Generator.
|
||||||
* This method returns the value of the database column jsh_app.Id
|
* This method returns the value of the database column jsh_app.Id
|
||||||
@@ -512,4 +520,28 @@ public class App {
|
|||||||
public void setDeleteFlag(String deleteFlag) {
|
public void setDeleteFlag(String deleteFlag) {
|
||||||
this.deleteFlag = deleteFlag == null ? null : deleteFlag.trim();
|
this.deleteFlag = deleteFlag == null ? null : deleteFlag.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column jsh_app.tenant_id
|
||||||
|
*
|
||||||
|
* @return the value of jsh_app.tenant_id
|
||||||
|
*
|
||||||
|
* @mbggenerated
|
||||||
|
*/
|
||||||
|
public Long getTenantId() {
|
||||||
|
return tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column jsh_app.tenant_id
|
||||||
|
*
|
||||||
|
* @param tenantId the value for jsh_app.tenant_id
|
||||||
|
*
|
||||||
|
* @mbggenerated
|
||||||
|
*/
|
||||||
|
public void setTenantId(Long tenantId) {
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -1263,6 +1263,66 @@ public class AppExample {
|
|||||||
addCriterion("delete_Flag not between", value1, value2, "deleteFlag");
|
addCriterion("delete_Flag not between", value1, value2, "deleteFlag");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdIsNull() {
|
||||||
|
addCriterion("tenant_id is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdIsNotNull() {
|
||||||
|
addCriterion("tenant_id is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdEqualTo(Long value) {
|
||||||
|
addCriterion("tenant_id =", value, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdNotEqualTo(Long value) {
|
||||||
|
addCriterion("tenant_id <>", value, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdGreaterThan(Long value) {
|
||||||
|
addCriterion("tenant_id >", value, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdGreaterThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("tenant_id >=", value, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdLessThan(Long value) {
|
||||||
|
addCriterion("tenant_id <", value, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdLessThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("tenant_id <=", value, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdIn(List<Long> values) {
|
||||||
|
addCriterion("tenant_id in", values, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdNotIn(List<Long> values) {
|
||||||
|
addCriterion("tenant_id not in", values, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("tenant_id between", value1, value2, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdNotBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("tenant_id not between", value1, value2, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -89,6 +89,14 @@ public class Functions {
|
|||||||
*/
|
*/
|
||||||
private String deleteFlag;
|
private String deleteFlag;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column jsh_functions.tenant_id
|
||||||
|
*
|
||||||
|
* @mbggenerated
|
||||||
|
*/
|
||||||
|
private Long tenantId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method was generated by MyBatis Generator.
|
* This method was generated by MyBatis Generator.
|
||||||
* This method returns the value of the database column jsh_functions.Id
|
* This method returns the value of the database column jsh_functions.Id
|
||||||
@@ -352,4 +360,28 @@ public class Functions {
|
|||||||
public void setDeleteFlag(String deleteFlag) {
|
public void setDeleteFlag(String deleteFlag) {
|
||||||
this.deleteFlag = deleteFlag == null ? null : deleteFlag.trim();
|
this.deleteFlag = deleteFlag == null ? null : deleteFlag.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column jsh_functions.tenant_id
|
||||||
|
*
|
||||||
|
* @return the value of jsh_functions.tenant_id
|
||||||
|
*
|
||||||
|
* @mbggenerated
|
||||||
|
*/
|
||||||
|
public Long getTenantId() {
|
||||||
|
return tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column jsh_functions.tenant_id
|
||||||
|
*
|
||||||
|
* @param tenantId the value for jsh_functions.tenant_id
|
||||||
|
*
|
||||||
|
* @mbggenerated
|
||||||
|
*/
|
||||||
|
public void setTenantId(Long tenantId) {
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -933,6 +933,66 @@ public class FunctionsExample {
|
|||||||
addCriterion("delete_Flag not between", value1, value2, "deleteFlag");
|
addCriterion("delete_Flag not between", value1, value2, "deleteFlag");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdIsNull() {
|
||||||
|
addCriterion("tenant_id is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdIsNotNull() {
|
||||||
|
addCriterion("tenant_id is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdEqualTo(Long value) {
|
||||||
|
addCriterion("tenant_id =", value, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdNotEqualTo(Long value) {
|
||||||
|
addCriterion("tenant_id <>", value, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdGreaterThan(Long value) {
|
||||||
|
addCriterion("tenant_id >", value, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdGreaterThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("tenant_id >=", value, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdLessThan(Long value) {
|
||||||
|
addCriterion("tenant_id <", value, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdLessThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("tenant_id <=", value, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdIn(List<Long> values) {
|
||||||
|
addCriterion("tenant_id in", values, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdNotIn(List<Long> values) {
|
||||||
|
addCriterion("tenant_id not in", values, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("tenant_id between", value1, value2, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdNotBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("tenant_id not between", value1, value2, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -49,6 +49,14 @@ public class MaterialProperty {
|
|||||||
*/
|
*/
|
||||||
private String deleteFlag;
|
private String deleteFlag;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column jsh_materialproperty.tenant_id
|
||||||
|
*
|
||||||
|
* @mbggenerated
|
||||||
|
*/
|
||||||
|
private Long tenantId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method was generated by MyBatis Generator.
|
* This method was generated by MyBatis Generator.
|
||||||
* This method returns the value of the database column jsh_materialproperty.id
|
* This method returns the value of the database column jsh_materialproperty.id
|
||||||
@@ -192,4 +200,28 @@ public class MaterialProperty {
|
|||||||
public void setDeleteFlag(String deleteFlag) {
|
public void setDeleteFlag(String deleteFlag) {
|
||||||
this.deleteFlag = deleteFlag == null ? null : deleteFlag.trim();
|
this.deleteFlag = deleteFlag == null ? null : deleteFlag.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column jsh_materialproperty.tenant_id
|
||||||
|
*
|
||||||
|
* @return the value of jsh_materialproperty.tenant_id
|
||||||
|
*
|
||||||
|
* @mbggenerated
|
||||||
|
*/
|
||||||
|
public Long getTenantId() {
|
||||||
|
return tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column jsh_materialproperty.tenant_id
|
||||||
|
*
|
||||||
|
* @param tenantId the value for jsh_materialproperty.tenant_id
|
||||||
|
*
|
||||||
|
* @mbggenerated
|
||||||
|
*/
|
||||||
|
public void setTenantId(Long tenantId) {
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -593,6 +593,66 @@ public class MaterialPropertyExample {
|
|||||||
addCriterion("delete_Flag not between", value1, value2, "deleteFlag");
|
addCriterion("delete_Flag not between", value1, value2, "deleteFlag");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdIsNull() {
|
||||||
|
addCriterion("tenant_id is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdIsNotNull() {
|
||||||
|
addCriterion("tenant_id is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdEqualTo(Long value) {
|
||||||
|
addCriterion("tenant_id =", value, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdNotEqualTo(Long value) {
|
||||||
|
addCriterion("tenant_id <>", value, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdGreaterThan(Long value) {
|
||||||
|
addCriterion("tenant_id >", value, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdGreaterThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("tenant_id >=", value, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdLessThan(Long value) {
|
||||||
|
addCriterion("tenant_id <", value, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdLessThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("tenant_id <=", value, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdIn(List<Long> values) {
|
||||||
|
addCriterion("tenant_id in", values, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdNotIn(List<Long> values) {
|
||||||
|
addCriterion("tenant_id not in", values, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("tenant_id between", value1, value2, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdNotBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("tenant_id not between", value1, value2, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -49,6 +49,14 @@ public class UserBusiness {
|
|||||||
*/
|
*/
|
||||||
private String deleteFlag;
|
private String deleteFlag;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This field was generated by MyBatis Generator.
|
||||||
|
* This field corresponds to the database column jsh_userbusiness.tenant_id
|
||||||
|
*
|
||||||
|
* @mbggenerated
|
||||||
|
*/
|
||||||
|
private Long tenantId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method was generated by MyBatis Generator.
|
* This method was generated by MyBatis Generator.
|
||||||
* This method returns the value of the database column jsh_userbusiness.Id
|
* This method returns the value of the database column jsh_userbusiness.Id
|
||||||
@@ -192,4 +200,28 @@ public class UserBusiness {
|
|||||||
public void setDeleteFlag(String deleteFlag) {
|
public void setDeleteFlag(String deleteFlag) {
|
||||||
this.deleteFlag = deleteFlag == null ? null : deleteFlag.trim();
|
this.deleteFlag = deleteFlag == null ? null : deleteFlag.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method returns the value of the database column jsh_userbusiness.tenant_id
|
||||||
|
*
|
||||||
|
* @return the value of jsh_userbusiness.tenant_id
|
||||||
|
*
|
||||||
|
* @mbggenerated
|
||||||
|
*/
|
||||||
|
public Long getTenantId() {
|
||||||
|
return tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method was generated by MyBatis Generator.
|
||||||
|
* This method sets the value of the database column jsh_userbusiness.tenant_id
|
||||||
|
*
|
||||||
|
* @param tenantId the value for jsh_userbusiness.tenant_id
|
||||||
|
*
|
||||||
|
* @mbggenerated
|
||||||
|
*/
|
||||||
|
public void setTenantId(Long tenantId) {
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -603,6 +603,66 @@ public class UserBusinessExample {
|
|||||||
addCriterion("delete_Flag not between", value1, value2, "deleteFlag");
|
addCriterion("delete_Flag not between", value1, value2, "deleteFlag");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdIsNull() {
|
||||||
|
addCriterion("tenant_id is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdIsNotNull() {
|
||||||
|
addCriterion("tenant_id is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdEqualTo(Long value) {
|
||||||
|
addCriterion("tenant_id =", value, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdNotEqualTo(Long value) {
|
||||||
|
addCriterion("tenant_id <>", value, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdGreaterThan(Long value) {
|
||||||
|
addCriterion("tenant_id >", value, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdGreaterThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("tenant_id >=", value, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdLessThan(Long value) {
|
||||||
|
addCriterion("tenant_id <", value, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdLessThanOrEqualTo(Long value) {
|
||||||
|
addCriterion("tenant_id <=", value, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdIn(List<Long> values) {
|
||||||
|
addCriterion("tenant_id in", values, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdNotIn(List<Long> values) {
|
||||||
|
addCriterion("tenant_id not in", values, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("tenant_id between", value1, value2, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andTenantIdNotBetween(Long value1, Long value2) {
|
||||||
|
addCriterion("tenant_id not between", value1, value2, "tenantId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
<result column="Remark" jdbcType="VARCHAR" property="remark" />
|
<result column="Remark" jdbcType="VARCHAR" property="remark" />
|
||||||
<result column="Enabled" jdbcType="BIT" property="enabled" />
|
<result column="Enabled" jdbcType="BIT" property="enabled" />
|
||||||
<result column="delete_Flag" jdbcType="VARCHAR" property="deleteFlag" />
|
<result column="delete_Flag" jdbcType="VARCHAR" property="deleteFlag" />
|
||||||
|
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="Example_Where_Clause">
|
<sql id="Example_Where_Clause">
|
||||||
<!--
|
<!--
|
||||||
@@ -95,7 +96,7 @@
|
|||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
-->
|
-->
|
||||||
Id, Number, Name, Type, Icon, URL, Width, Height, ReSize, OpenMax, Flash, ZL, Sort,
|
Id, Number, Name, Type, Icon, URL, Width, Height, ReSize, OpenMax, Flash, ZL, Sort,
|
||||||
Remark, Enabled, delete_Flag
|
Remark, Enabled, delete_Flag, tenant_id
|
||||||
</sql>
|
</sql>
|
||||||
<select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.AppExample" resultMap="BaseResultMap">
|
<select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.AppExample" resultMap="BaseResultMap">
|
||||||
<!--
|
<!--
|
||||||
@@ -152,12 +153,12 @@
|
|||||||
Type, Icon, URL, Width,
|
Type, Icon, URL, Width,
|
||||||
Height, ReSize, OpenMax, Flash,
|
Height, ReSize, OpenMax, Flash,
|
||||||
ZL, Sort, Remark, Enabled,
|
ZL, Sort, Remark, Enabled,
|
||||||
delete_Flag)
|
delete_Flag, tenant_id)
|
||||||
values (#{id,jdbcType=BIGINT}, #{number,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
|
values (#{id,jdbcType=BIGINT}, #{number,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
|
||||||
#{type,jdbcType=VARCHAR}, #{icon,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, #{width,jdbcType=VARCHAR},
|
#{type,jdbcType=VARCHAR}, #{icon,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, #{width,jdbcType=VARCHAR},
|
||||||
#{height,jdbcType=VARCHAR}, #{resize,jdbcType=BIT}, #{openmax,jdbcType=BIT}, #{flash,jdbcType=BIT},
|
#{height,jdbcType=VARCHAR}, #{resize,jdbcType=BIT}, #{openmax,jdbcType=BIT}, #{flash,jdbcType=BIT},
|
||||||
#{zl,jdbcType=VARCHAR}, #{sort,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{enabled,jdbcType=BIT},
|
#{zl,jdbcType=VARCHAR}, #{sort,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{enabled,jdbcType=BIT},
|
||||||
#{deleteFlag,jdbcType=VARCHAR})
|
#{deleteFlag,jdbcType=VARCHAR}, #{tenantId,jdbcType=BIGINT})
|
||||||
</insert>
|
</insert>
|
||||||
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.App">
|
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.App">
|
||||||
<!--
|
<!--
|
||||||
@@ -214,6 +215,9 @@
|
|||||||
<if test="deleteFlag != null">
|
<if test="deleteFlag != null">
|
||||||
delete_Flag,
|
delete_Flag,
|
||||||
</if>
|
</if>
|
||||||
|
<if test="tenantId != null">
|
||||||
|
tenant_id,
|
||||||
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">
|
<if test="id != null">
|
||||||
@@ -264,6 +268,9 @@
|
|||||||
<if test="deleteFlag != null">
|
<if test="deleteFlag != null">
|
||||||
#{deleteFlag,jdbcType=VARCHAR},
|
#{deleteFlag,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="tenantId != null">
|
||||||
|
#{tenantId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
<select id="countByExample" parameterType="com.jsh.erp.datasource.entities.AppExample" resultType="java.lang.Integer">
|
<select id="countByExample" parameterType="com.jsh.erp.datasource.entities.AppExample" resultType="java.lang.Integer">
|
||||||
@@ -331,6 +338,9 @@
|
|||||||
<if test="record.deleteFlag != null">
|
<if test="record.deleteFlag != null">
|
||||||
delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR},
|
delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="record.tenantId != null">
|
||||||
|
tenant_id = #{record.tenantId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
</set>
|
</set>
|
||||||
<if test="_parameter != null">
|
<if test="_parameter != null">
|
||||||
<include refid="Update_By_Example_Where_Clause" />
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
@@ -357,7 +367,8 @@
|
|||||||
Sort = #{record.sort,jdbcType=VARCHAR},
|
Sort = #{record.sort,jdbcType=VARCHAR},
|
||||||
Remark = #{record.remark,jdbcType=VARCHAR},
|
Remark = #{record.remark,jdbcType=VARCHAR},
|
||||||
Enabled = #{record.enabled,jdbcType=BIT},
|
Enabled = #{record.enabled,jdbcType=BIT},
|
||||||
delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR}
|
delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR},
|
||||||
|
tenant_id = #{record.tenantId,jdbcType=BIGINT}
|
||||||
<if test="_parameter != null">
|
<if test="_parameter != null">
|
||||||
<include refid="Update_By_Example_Where_Clause" />
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
</if>
|
</if>
|
||||||
@@ -414,6 +425,9 @@
|
|||||||
<if test="deleteFlag != null">
|
<if test="deleteFlag != null">
|
||||||
delete_Flag = #{deleteFlag,jdbcType=VARCHAR},
|
delete_Flag = #{deleteFlag,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="tenantId != null">
|
||||||
|
tenant_id = #{tenantId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
</set>
|
</set>
|
||||||
where Id = #{id,jdbcType=BIGINT}
|
where Id = #{id,jdbcType=BIGINT}
|
||||||
</update>
|
</update>
|
||||||
@@ -437,7 +451,8 @@
|
|||||||
Sort = #{sort,jdbcType=VARCHAR},
|
Sort = #{sort,jdbcType=VARCHAR},
|
||||||
Remark = #{remark,jdbcType=VARCHAR},
|
Remark = #{remark,jdbcType=VARCHAR},
|
||||||
Enabled = #{enabled,jdbcType=BIT},
|
Enabled = #{enabled,jdbcType=BIT},
|
||||||
delete_Flag = #{deleteFlag,jdbcType=VARCHAR}
|
delete_Flag = #{deleteFlag,jdbcType=VARCHAR},
|
||||||
|
tenant_id = #{tenantId,jdbcType=BIGINT}
|
||||||
where Id = #{id,jdbcType=BIGINT}
|
where Id = #{id,jdbcType=BIGINT}
|
||||||
</update>
|
</update>
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -17,6 +17,7 @@
|
|||||||
<result column="Type" jdbcType="VARCHAR" property="type" />
|
<result column="Type" jdbcType="VARCHAR" property="type" />
|
||||||
<result column="PushBtn" jdbcType="VARCHAR" property="pushbtn" />
|
<result column="PushBtn" jdbcType="VARCHAR" property="pushbtn" />
|
||||||
<result column="delete_Flag" jdbcType="VARCHAR" property="deleteFlag" />
|
<result column="delete_Flag" jdbcType="VARCHAR" property="deleteFlag" />
|
||||||
|
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="Example_Where_Clause">
|
<sql id="Example_Where_Clause">
|
||||||
<!--
|
<!--
|
||||||
@@ -89,7 +90,8 @@
|
|||||||
WARNING - @mbggenerated
|
WARNING - @mbggenerated
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
-->
|
-->
|
||||||
Id, Number, Name, PNumber, URL, State, Sort, Enabled, Type, PushBtn, delete_Flag
|
Id, Number, Name, PNumber, URL, State, Sort, Enabled, Type, PushBtn, delete_Flag,
|
||||||
|
tenant_id
|
||||||
</sql>
|
</sql>
|
||||||
<select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.FunctionsExample" resultMap="BaseResultMap">
|
<select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.FunctionsExample" resultMap="BaseResultMap">
|
||||||
<!--
|
<!--
|
||||||
@@ -145,11 +147,11 @@
|
|||||||
insert into jsh_functions (Id, Number, Name,
|
insert into jsh_functions (Id, Number, Name,
|
||||||
PNumber, URL, State, Sort,
|
PNumber, URL, State, Sort,
|
||||||
Enabled, Type, PushBtn,
|
Enabled, Type, PushBtn,
|
||||||
delete_Flag)
|
delete_Flag, tenant_id)
|
||||||
values (#{id,jdbcType=BIGINT}, #{number,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
|
values (#{id,jdbcType=BIGINT}, #{number,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
|
||||||
#{pnumber,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, #{state,jdbcType=BIT}, #{sort,jdbcType=VARCHAR},
|
#{pnumber,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, #{state,jdbcType=BIT}, #{sort,jdbcType=VARCHAR},
|
||||||
#{enabled,jdbcType=BIT}, #{type,jdbcType=VARCHAR}, #{pushbtn,jdbcType=VARCHAR},
|
#{enabled,jdbcType=BIT}, #{type,jdbcType=VARCHAR}, #{pushbtn,jdbcType=VARCHAR},
|
||||||
#{deleteFlag,jdbcType=VARCHAR})
|
#{deleteFlag,jdbcType=VARCHAR}, #{tenantId,jdbcType=BIGINT})
|
||||||
</insert>
|
</insert>
|
||||||
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.Functions">
|
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.Functions">
|
||||||
<!--
|
<!--
|
||||||
@@ -191,6 +193,9 @@
|
|||||||
<if test="deleteFlag != null">
|
<if test="deleteFlag != null">
|
||||||
delete_Flag,
|
delete_Flag,
|
||||||
</if>
|
</if>
|
||||||
|
<if test="tenantId != null">
|
||||||
|
tenant_id,
|
||||||
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">
|
<if test="id != null">
|
||||||
@@ -226,6 +231,9 @@
|
|||||||
<if test="deleteFlag != null">
|
<if test="deleteFlag != null">
|
||||||
#{deleteFlag,jdbcType=VARCHAR},
|
#{deleteFlag,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="tenantId != null">
|
||||||
|
#{tenantId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
<select id="countByExample" parameterType="com.jsh.erp.datasource.entities.FunctionsExample" resultType="java.lang.Integer">
|
<select id="countByExample" parameterType="com.jsh.erp.datasource.entities.FunctionsExample" resultType="java.lang.Integer">
|
||||||
@@ -278,6 +286,9 @@
|
|||||||
<if test="record.deleteFlag != null">
|
<if test="record.deleteFlag != null">
|
||||||
delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR},
|
delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="record.tenantId != null">
|
||||||
|
tenant_id = #{record.tenantId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
</set>
|
</set>
|
||||||
<if test="_parameter != null">
|
<if test="_parameter != null">
|
||||||
<include refid="Update_By_Example_Where_Clause" />
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
@@ -299,7 +310,8 @@
|
|||||||
Enabled = #{record.enabled,jdbcType=BIT},
|
Enabled = #{record.enabled,jdbcType=BIT},
|
||||||
Type = #{record.type,jdbcType=VARCHAR},
|
Type = #{record.type,jdbcType=VARCHAR},
|
||||||
PushBtn = #{record.pushbtn,jdbcType=VARCHAR},
|
PushBtn = #{record.pushbtn,jdbcType=VARCHAR},
|
||||||
delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR}
|
delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR},
|
||||||
|
tenant_id = #{record.tenantId,jdbcType=BIGINT}
|
||||||
<if test="_parameter != null">
|
<if test="_parameter != null">
|
||||||
<include refid="Update_By_Example_Where_Clause" />
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
</if>
|
</if>
|
||||||
@@ -341,6 +353,9 @@
|
|||||||
<if test="deleteFlag != null">
|
<if test="deleteFlag != null">
|
||||||
delete_Flag = #{deleteFlag,jdbcType=VARCHAR},
|
delete_Flag = #{deleteFlag,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="tenantId != null">
|
||||||
|
tenant_id = #{tenantId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
</set>
|
</set>
|
||||||
where Id = #{id,jdbcType=BIGINT}
|
where Id = #{id,jdbcType=BIGINT}
|
||||||
</update>
|
</update>
|
||||||
@@ -359,7 +374,8 @@
|
|||||||
Enabled = #{enabled,jdbcType=BIT},
|
Enabled = #{enabled,jdbcType=BIT},
|
||||||
Type = #{type,jdbcType=VARCHAR},
|
Type = #{type,jdbcType=VARCHAR},
|
||||||
PushBtn = #{pushbtn,jdbcType=VARCHAR},
|
PushBtn = #{pushbtn,jdbcType=VARCHAR},
|
||||||
delete_Flag = #{deleteFlag,jdbcType=VARCHAR}
|
delete_Flag = #{deleteFlag,jdbcType=VARCHAR},
|
||||||
|
tenant_id = #{tenantId,jdbcType=BIGINT}
|
||||||
where Id = #{id,jdbcType=BIGINT}
|
where Id = #{id,jdbcType=BIGINT}
|
||||||
</update>
|
</update>
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -12,6 +12,7 @@
|
|||||||
<result column="sort" jdbcType="VARCHAR" property="sort" />
|
<result column="sort" jdbcType="VARCHAR" property="sort" />
|
||||||
<result column="anotherName" jdbcType="VARCHAR" property="anothername" />
|
<result column="anotherName" jdbcType="VARCHAR" property="anothername" />
|
||||||
<result column="delete_Flag" jdbcType="VARCHAR" property="deleteFlag" />
|
<result column="delete_Flag" jdbcType="VARCHAR" property="deleteFlag" />
|
||||||
|
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="Example_Where_Clause">
|
<sql id="Example_Where_Clause">
|
||||||
<!--
|
<!--
|
||||||
@@ -84,7 +85,7 @@
|
|||||||
WARNING - @mbggenerated
|
WARNING - @mbggenerated
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
-->
|
-->
|
||||||
id, nativeName, enabled, sort, anotherName, delete_Flag
|
id, nativeName, enabled, sort, anotherName, delete_Flag, tenant_id
|
||||||
</sql>
|
</sql>
|
||||||
<select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.MaterialPropertyExample" resultMap="BaseResultMap">
|
<select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.MaterialPropertyExample" resultMap="BaseResultMap">
|
||||||
<!--
|
<!--
|
||||||
@@ -138,11 +139,11 @@
|
|||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
-->
|
-->
|
||||||
insert into jsh_materialproperty (id, nativeName, enabled,
|
insert into jsh_materialproperty (id, nativeName, enabled,
|
||||||
sort, anotherName, delete_Flag
|
sort, anotherName, delete_Flag,
|
||||||
)
|
tenant_id)
|
||||||
values (#{id,jdbcType=BIGINT}, #{nativename,jdbcType=VARCHAR}, #{enabled,jdbcType=BIT},
|
values (#{id,jdbcType=BIGINT}, #{nativename,jdbcType=VARCHAR}, #{enabled,jdbcType=BIT},
|
||||||
#{sort,jdbcType=VARCHAR}, #{anothername,jdbcType=VARCHAR}, #{deleteFlag,jdbcType=VARCHAR}
|
#{sort,jdbcType=VARCHAR}, #{anothername,jdbcType=VARCHAR}, #{deleteFlag,jdbcType=VARCHAR},
|
||||||
)
|
#{tenantId,jdbcType=BIGINT})
|
||||||
</insert>
|
</insert>
|
||||||
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.MaterialProperty">
|
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.MaterialProperty">
|
||||||
<!--
|
<!--
|
||||||
@@ -169,6 +170,9 @@
|
|||||||
<if test="deleteFlag != null">
|
<if test="deleteFlag != null">
|
||||||
delete_Flag,
|
delete_Flag,
|
||||||
</if>
|
</if>
|
||||||
|
<if test="tenantId != null">
|
||||||
|
tenant_id,
|
||||||
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">
|
<if test="id != null">
|
||||||
@@ -189,6 +193,9 @@
|
|||||||
<if test="deleteFlag != null">
|
<if test="deleteFlag != null">
|
||||||
#{deleteFlag,jdbcType=VARCHAR},
|
#{deleteFlag,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="tenantId != null">
|
||||||
|
#{tenantId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
<select id="countByExample" parameterType="com.jsh.erp.datasource.entities.MaterialPropertyExample" resultType="java.lang.Integer">
|
<select id="countByExample" parameterType="com.jsh.erp.datasource.entities.MaterialPropertyExample" resultType="java.lang.Integer">
|
||||||
@@ -226,6 +233,9 @@
|
|||||||
<if test="record.deleteFlag != null">
|
<if test="record.deleteFlag != null">
|
||||||
delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR},
|
delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="record.tenantId != null">
|
||||||
|
tenant_id = #{record.tenantId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
</set>
|
</set>
|
||||||
<if test="_parameter != null">
|
<if test="_parameter != null">
|
||||||
<include refid="Update_By_Example_Where_Clause" />
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
@@ -242,7 +252,8 @@
|
|||||||
enabled = #{record.enabled,jdbcType=BIT},
|
enabled = #{record.enabled,jdbcType=BIT},
|
||||||
sort = #{record.sort,jdbcType=VARCHAR},
|
sort = #{record.sort,jdbcType=VARCHAR},
|
||||||
anotherName = #{record.anothername,jdbcType=VARCHAR},
|
anotherName = #{record.anothername,jdbcType=VARCHAR},
|
||||||
delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR}
|
delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR},
|
||||||
|
tenant_id = #{record.tenantId,jdbcType=BIGINT}
|
||||||
<if test="_parameter != null">
|
<if test="_parameter != null">
|
||||||
<include refid="Update_By_Example_Where_Clause" />
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
</if>
|
</if>
|
||||||
@@ -269,6 +280,9 @@
|
|||||||
<if test="deleteFlag != null">
|
<if test="deleteFlag != null">
|
||||||
delete_Flag = #{deleteFlag,jdbcType=VARCHAR},
|
delete_Flag = #{deleteFlag,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="tenantId != null">
|
||||||
|
tenant_id = #{tenantId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
</set>
|
</set>
|
||||||
where id = #{id,jdbcType=BIGINT}
|
where id = #{id,jdbcType=BIGINT}
|
||||||
</update>
|
</update>
|
||||||
@@ -282,7 +296,8 @@
|
|||||||
enabled = #{enabled,jdbcType=BIT},
|
enabled = #{enabled,jdbcType=BIT},
|
||||||
sort = #{sort,jdbcType=VARCHAR},
|
sort = #{sort,jdbcType=VARCHAR},
|
||||||
anotherName = #{anothername,jdbcType=VARCHAR},
|
anotherName = #{anothername,jdbcType=VARCHAR},
|
||||||
delete_Flag = #{deleteFlag,jdbcType=VARCHAR}
|
delete_Flag = #{deleteFlag,jdbcType=VARCHAR},
|
||||||
|
tenant_id = #{tenantId,jdbcType=BIGINT}
|
||||||
where id = #{id,jdbcType=BIGINT}
|
where id = #{id,jdbcType=BIGINT}
|
||||||
</update>
|
</update>
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -12,6 +12,7 @@
|
|||||||
<result column="Value" jdbcType="VARCHAR" property="value" />
|
<result column="Value" jdbcType="VARCHAR" property="value" />
|
||||||
<result column="BtnStr" jdbcType="VARCHAR" property="btnstr" />
|
<result column="BtnStr" jdbcType="VARCHAR" property="btnstr" />
|
||||||
<result column="delete_Flag" jdbcType="VARCHAR" property="deleteFlag" />
|
<result column="delete_Flag" jdbcType="VARCHAR" property="deleteFlag" />
|
||||||
|
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="Example_Where_Clause">
|
<sql id="Example_Where_Clause">
|
||||||
<!--
|
<!--
|
||||||
@@ -84,7 +85,7 @@
|
|||||||
WARNING - @mbggenerated
|
WARNING - @mbggenerated
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
-->
|
-->
|
||||||
Id, Type, KeyId, Value, BtnStr, delete_Flag
|
Id, Type, KeyId, Value, BtnStr, delete_Flag, tenant_id
|
||||||
</sql>
|
</sql>
|
||||||
<select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.UserBusinessExample" resultMap="BaseResultMap">
|
<select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.UserBusinessExample" resultMap="BaseResultMap">
|
||||||
<!--
|
<!--
|
||||||
@@ -138,11 +139,11 @@
|
|||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
This element is automatically generated by MyBatis Generator, do not modify.
|
||||||
-->
|
-->
|
||||||
insert into jsh_userbusiness (Id, Type, KeyId,
|
insert into jsh_userbusiness (Id, Type, KeyId,
|
||||||
Value, BtnStr, delete_Flag
|
Value, BtnStr, delete_Flag,
|
||||||
)
|
tenant_id)
|
||||||
values (#{id,jdbcType=BIGINT}, #{type,jdbcType=VARCHAR}, #{keyid,jdbcType=VARCHAR},
|
values (#{id,jdbcType=BIGINT}, #{type,jdbcType=VARCHAR}, #{keyid,jdbcType=VARCHAR},
|
||||||
#{value,jdbcType=VARCHAR}, #{btnstr,jdbcType=VARCHAR}, #{deleteFlag,jdbcType=VARCHAR}
|
#{value,jdbcType=VARCHAR}, #{btnstr,jdbcType=VARCHAR}, #{deleteFlag,jdbcType=VARCHAR},
|
||||||
)
|
#{tenantId,jdbcType=BIGINT})
|
||||||
</insert>
|
</insert>
|
||||||
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.UserBusiness">
|
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.UserBusiness">
|
||||||
<!--
|
<!--
|
||||||
@@ -169,6 +170,9 @@
|
|||||||
<if test="deleteFlag != null">
|
<if test="deleteFlag != null">
|
||||||
delete_Flag,
|
delete_Flag,
|
||||||
</if>
|
</if>
|
||||||
|
<if test="tenantId != null">
|
||||||
|
tenant_id,
|
||||||
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">
|
<if test="id != null">
|
||||||
@@ -189,6 +193,9 @@
|
|||||||
<if test="deleteFlag != null">
|
<if test="deleteFlag != null">
|
||||||
#{deleteFlag,jdbcType=VARCHAR},
|
#{deleteFlag,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="tenantId != null">
|
||||||
|
#{tenantId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
<select id="countByExample" parameterType="com.jsh.erp.datasource.entities.UserBusinessExample" resultType="java.lang.Integer">
|
<select id="countByExample" parameterType="com.jsh.erp.datasource.entities.UserBusinessExample" resultType="java.lang.Integer">
|
||||||
@@ -226,6 +233,9 @@
|
|||||||
<if test="record.deleteFlag != null">
|
<if test="record.deleteFlag != null">
|
||||||
delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR},
|
delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="record.tenantId != null">
|
||||||
|
tenant_id = #{record.tenantId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
</set>
|
</set>
|
||||||
<if test="_parameter != null">
|
<if test="_parameter != null">
|
||||||
<include refid="Update_By_Example_Where_Clause" />
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
@@ -242,7 +252,8 @@
|
|||||||
KeyId = #{record.keyid,jdbcType=VARCHAR},
|
KeyId = #{record.keyid,jdbcType=VARCHAR},
|
||||||
Value = #{record.value,jdbcType=VARCHAR},
|
Value = #{record.value,jdbcType=VARCHAR},
|
||||||
BtnStr = #{record.btnstr,jdbcType=VARCHAR},
|
BtnStr = #{record.btnstr,jdbcType=VARCHAR},
|
||||||
delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR}
|
delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR},
|
||||||
|
tenant_id = #{record.tenantId,jdbcType=BIGINT}
|
||||||
<if test="_parameter != null">
|
<if test="_parameter != null">
|
||||||
<include refid="Update_By_Example_Where_Clause" />
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
</if>
|
</if>
|
||||||
@@ -269,6 +280,9 @@
|
|||||||
<if test="deleteFlag != null">
|
<if test="deleteFlag != null">
|
||||||
delete_Flag = #{deleteFlag,jdbcType=VARCHAR},
|
delete_Flag = #{deleteFlag,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="tenantId != null">
|
||||||
|
tenant_id = #{tenantId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
</set>
|
</set>
|
||||||
where Id = #{id,jdbcType=BIGINT}
|
where Id = #{id,jdbcType=BIGINT}
|
||||||
</update>
|
</update>
|
||||||
@@ -282,7 +296,8 @@
|
|||||||
KeyId = #{keyid,jdbcType=VARCHAR},
|
KeyId = #{keyid,jdbcType=VARCHAR},
|
||||||
Value = #{value,jdbcType=VARCHAR},
|
Value = #{value,jdbcType=VARCHAR},
|
||||||
BtnStr = #{btnstr,jdbcType=VARCHAR},
|
BtnStr = #{btnstr,jdbcType=VARCHAR},
|
||||||
delete_Flag = #{deleteFlag,jdbcType=VARCHAR}
|
delete_Flag = #{deleteFlag,jdbcType=VARCHAR},
|
||||||
|
tenant_id = #{tenantId,jdbcType=BIGINT}
|
||||||
where Id = #{id,jdbcType=BIGINT}
|
where Id = #{id,jdbcType=BIGINT}
|
||||||
</update>
|
</update>
|
||||||
</mapper>
|
</mapper>
|
||||||
Reference in New Issue
Block a user