Commit 45d86452 by guojuxing

自定义字段列表添加字段:是否是列表/筛选支持 标志

parent 1b088c64
package com.gic.enterprise.dao.mapper;
import com.gic.enterprise.entity.TabEnterpriseInit;
public interface TabEnterpriseInitMapper {
/**
* 根据主键删除
*
* @param enterpriseInitId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer enterpriseInitId);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insert(TabEnterpriseInit record);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insertSelective(TabEnterpriseInit record);
/**
* 根据主键查询
*
* @param enterpriseInitId 主键
* @return 实体对象
*/
TabEnterpriseInit selectByPrimaryKey(Integer enterpriseInitId);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKeySelective(TabEnterpriseInit record);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKey(TabEnterpriseInit record);
}
\ No newline at end of file
package com.gic.enterprise.dao.mapper;
import com.gic.enterprise.entity.TabEnterprise;
public interface TabEnterpriseMapper {
/**
* 根据主键删除
*
* @param enterpriseId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer enterpriseId);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insert(TabEnterprise record);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insertSelective(TabEnterprise record);
/**
* 根据主键查询
*
* @param enterpriseId 主键
* @return 实体对象
*/
TabEnterprise selectByPrimaryKey(Integer enterpriseId);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKeySelective(TabEnterprise record);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKey(TabEnterprise record);
}
\ No newline at end of file
package com.gic.enterprise.entity;
import java.util.Date;
/**
* tab_enterprise
*/
public class TabEnterprise {
/**
* 企业主键
*/
private Integer enterpriseId;
/**
* 商户名称
*/
private String enterpriseName;
/**
* 公司名称
*/
private String companyName;
/**
*
*/
private String logo;
/**
*
*/
private String areaId;
/**
* 详细地址
*/
private String address;
/**
* 状态;1有效; 0无效;2停用
*/
private Integer status;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
/**
* 是否完成初始化
*/
private Integer isInitComplete;
public Integer getEnterpriseId() {
return enterpriseId;
}
public void setEnterpriseId(Integer enterpriseId) {
this.enterpriseId = enterpriseId;
}
public String getEnterpriseName() {
return enterpriseName;
}
public void setEnterpriseName(String enterpriseName) {
this.enterpriseName = enterpriseName;
}
public String getCompanyName() {
return companyName;
}
public void setCompanyName(String companyName) {
this.companyName = companyName;
}
public String getLogo() {
return logo;
}
public void setLogo(String logo) {
this.logo = logo;
}
public String getAreaId() {
return areaId;
}
public void setAreaId(String areaId) {
this.areaId = areaId;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
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;
}
public Integer getIsInitComplete() {
return isInitComplete;
}
public void setIsInitComplete(Integer isInitComplete) {
this.isInitComplete = isInitComplete;
}
}
\ No newline at end of file
package com.gic.enterprise.entity;
import java.util.Date;
/**
* tab_enterprise_init
*/
public class TabEnterpriseInit {
/**
*
*/
private Integer enterpriseInitId;
/**
* 配置信息名称
*/
private String configName;
/**
* 前往商户后台的url
*/
private String configUrl;
/**
* 父级ID
*/
private Integer parentId;
/**
*
*/
private Integer enterpriseId;
/**
*
*/
private Integer sort;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
/**
* 配置代码
*/
private String configCode;
/**
* 层级,用于排序
*/
private Integer level;
/**
* 是否初始化 1:已经初始化 0:为初始化
*/
private Integer isInitConfig;
public Integer getEnterpriseInitId() {
return enterpriseInitId;
}
public void setEnterpriseInitId(Integer enterpriseInitId) {
this.enterpriseInitId = enterpriseInitId;
}
public String getConfigName() {
return configName;
}
public void setConfigName(String configName) {
this.configName = configName;
}
public String getConfigUrl() {
return configUrl;
}
public void setConfigUrl(String configUrl) {
this.configUrl = configUrl;
}
public Integer getParentId() {
return parentId;
}
public void setParentId(Integer parentId) {
this.parentId = parentId;
}
public Integer getEnterpriseId() {
return enterpriseId;
}
public void setEnterpriseId(Integer enterpriseId) {
this.enterpriseId = enterpriseId;
}
public Integer getSort() {
return sort;
}
public void setSort(Integer sort) {
this.sort = sort;
}
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;
}
public String getConfigCode() {
return configCode;
}
public void setConfigCode(String configCode) {
this.configCode = configCode;
}
public Integer getLevel() {
return level;
}
public void setLevel(Integer level) {
this.level = level;
}
public Integer getIsInitConfig() {
return isInitConfig;
}
public void setIsInitConfig(Integer isInitConfig) {
this.isInitConfig = isInitConfig;
}
}
\ No newline at end of file
<?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.gic.enterprise.dao.mapper.TabEnterpriseInitMapper">
<resultMap id="BaseResultMap" type="com.gic.enterprise.entity.TabEnterpriseInit">
<id column="enterprise_init_id" jdbcType="INTEGER" property="enterpriseInitId" />
<result column="config_name" jdbcType="VARCHAR" property="configName" />
<result column="config_url" jdbcType="VARCHAR" property="configUrl" />
<result column="parent_id" jdbcType="INTEGER" property="parentId" />
<result column="enterprise_id" jdbcType="INTEGER" property="enterpriseId" />
<result column="sort" jdbcType="INTEGER" property="sort" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="config_code" jdbcType="VARCHAR" property="configCode" />
<result column="level" jdbcType="INTEGER" property="level" />
<result column="is_init_config" jdbcType="INTEGER" property="isInitConfig" />
</resultMap>
<sql id="Base_Column_List">
enterprise_init_id, config_name, config_url, parent_id, enterprise_id, sort, create_time,
update_time, config_code, level, is_init_config
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from tab_enterprise_init
where enterprise_init_id = #{enterpriseInitId,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tab_enterprise_init
where enterprise_init_id = #{enterpriseInitId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.gic.enterprise.entity.TabEnterpriseInit">
insert into tab_enterprise_init (enterprise_init_id, config_name, config_url,
parent_id, enterprise_id, sort,
create_time, update_time, config_code,
level, is_init_config)
values (#{enterpriseInitId,jdbcType=INTEGER}, #{configName,jdbcType=VARCHAR}, #{configUrl,jdbcType=VARCHAR},
#{parentId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{configCode,jdbcType=VARCHAR},
#{level,jdbcType=INTEGER}, #{isInitConfig,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.gic.enterprise.entity.TabEnterpriseInit">
insert into tab_enterprise_init
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="enterpriseInitId != null">
enterprise_init_id,
</if>
<if test="configName != null">
config_name,
</if>
<if test="configUrl != null">
config_url,
</if>
<if test="parentId != null">
parent_id,
</if>
<if test="enterpriseId != null">
enterprise_id,
</if>
<if test="sort != null">
sort,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="configCode != null">
config_code,
</if>
<if test="level != null">
level,
</if>
<if test="isInitConfig != null">
is_init_config,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="enterpriseInitId != null">
#{enterpriseInitId,jdbcType=INTEGER},
</if>
<if test="configName != null">
#{configName,jdbcType=VARCHAR},
</if>
<if test="configUrl != null">
#{configUrl,jdbcType=VARCHAR},
</if>
<if test="parentId != null">
#{parentId,jdbcType=INTEGER},
</if>
<if test="enterpriseId != null">
#{enterpriseId,jdbcType=INTEGER},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="configCode != null">
#{configCode,jdbcType=VARCHAR},
</if>
<if test="level != null">
#{level,jdbcType=INTEGER},
</if>
<if test="isInitConfig != null">
#{isInitConfig,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.gic.enterprise.entity.TabEnterpriseInit">
update tab_enterprise_init
<set>
<if test="configName != null">
config_name = #{configName,jdbcType=VARCHAR},
</if>
<if test="configUrl != null">
config_url = #{configUrl,jdbcType=VARCHAR},
</if>
<if test="parentId != null">
parent_id = #{parentId,jdbcType=INTEGER},
</if>
<if test="enterpriseId != null">
enterprise_id = #{enterpriseId,jdbcType=INTEGER},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="configCode != null">
config_code = #{configCode,jdbcType=VARCHAR},
</if>
<if test="level != null">
level = #{level,jdbcType=INTEGER},
</if>
<if test="isInitConfig != null">
is_init_config = #{isInitConfig,jdbcType=INTEGER},
</if>
</set>
where enterprise_init_id = #{enterpriseInitId,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gic.enterprise.entity.TabEnterpriseInit">
update tab_enterprise_init
set config_name = #{configName,jdbcType=VARCHAR},
config_url = #{configUrl,jdbcType=VARCHAR},
parent_id = #{parentId,jdbcType=INTEGER},
enterprise_id = #{enterpriseId,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
config_code = #{configCode,jdbcType=VARCHAR},
level = #{level,jdbcType=INTEGER},
is_init_config = #{isInitConfig,jdbcType=INTEGER}
where enterprise_init_id = #{enterpriseInitId,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
<?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.gic.enterprise.dao.mapper.TabEnterpriseMapper">
<resultMap id="BaseResultMap" type="com.gic.enterprise.entity.TabEnterprise">
<id column="enterprise_id" jdbcType="INTEGER" property="enterpriseId" />
<result column="enterprise_name" jdbcType="VARCHAR" property="enterpriseName" />
<result column="company_name" jdbcType="VARCHAR" property="companyName" />
<result column="logo" jdbcType="VARCHAR" property="logo" />
<result column="area_id" jdbcType="VARCHAR" property="areaId" />
<result column="address" jdbcType="VARCHAR" property="address" />
<result column="status" jdbcType="INTEGER" property="status" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="is_init_complete" jdbcType="INTEGER" property="isInitComplete" />
</resultMap>
<sql id="Base_Column_List">
enterprise_id, enterprise_name, company_name, logo, area_id, address, status, create_time,
update_time, is_init_complete
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from tab_enterprise
where enterprise_id = #{enterpriseId,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tab_enterprise
where enterprise_id = #{enterpriseId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.gic.enterprise.entity.TabEnterprise">
insert into tab_enterprise (enterprise_id, enterprise_name, company_name,
logo, area_id, address,
status, create_time, update_time,
is_init_complete)
values (#{enterpriseId,jdbcType=INTEGER}, #{enterpriseName,jdbcType=VARCHAR}, #{companyName,jdbcType=VARCHAR},
#{logo,jdbcType=VARCHAR}, #{areaId,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR},
#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{isInitComplete,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.gic.enterprise.entity.TabEnterprise">
insert into tab_enterprise
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="enterpriseId != null">
enterprise_id,
</if>
<if test="enterpriseName != null">
enterprise_name,
</if>
<if test="companyName != null">
company_name,
</if>
<if test="logo != null">
logo,
</if>
<if test="areaId != null">
area_id,
</if>
<if test="address != null">
address,
</if>
<if test="status != null">
status,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="isInitComplete != null">
is_init_complete,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="enterpriseId != null">
#{enterpriseId,jdbcType=INTEGER},
</if>
<if test="enterpriseName != null">
#{enterpriseName,jdbcType=VARCHAR},
</if>
<if test="companyName != null">
#{companyName,jdbcType=VARCHAR},
</if>
<if test="logo != null">
#{logo,jdbcType=VARCHAR},
</if>
<if test="areaId != null">
#{areaId,jdbcType=VARCHAR},
</if>
<if test="address != null">
#{address,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="isInitComplete != null">
#{isInitComplete,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.gic.enterprise.entity.TabEnterprise">
update tab_enterprise
<set>
<if test="enterpriseName != null">
enterprise_name = #{enterpriseName,jdbcType=VARCHAR},
</if>
<if test="companyName != null">
company_name = #{companyName,jdbcType=VARCHAR},
</if>
<if test="logo != null">
logo = #{logo,jdbcType=VARCHAR},
</if>
<if test="areaId != null">
area_id = #{areaId,jdbcType=VARCHAR},
</if>
<if test="address != null">
address = #{address,jdbcType=VARCHAR},
</if>
<if test="status != null">
status = #{status,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="isInitComplete != null">
is_init_complete = #{isInitComplete,jdbcType=INTEGER},
</if>
</set>
where enterprise_id = #{enterpriseId,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gic.enterprise.entity.TabEnterprise">
update tab_enterprise
set enterprise_name = #{enterpriseName,jdbcType=VARCHAR},
company_name = #{companyName,jdbcType=VARCHAR},
logo = #{logo,jdbcType=VARCHAR},
area_id = #{areaId,jdbcType=VARCHAR},
address = #{address,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
is_init_complete = #{isInitComplete,jdbcType=INTEGER}
where enterprise_id = #{enterpriseId,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment