Commit d1dc95a4 by huangZW

新表创建

parent c7949cdb
package com.gic.haoban.manage.service.dao.mapper;
import com.gic.haoban.manage.service.entity.TabHaobanApplicationSetting;
public interface ApplicationSettingMapper {
int deleteByPrimaryKey(String settingId);
int insert(TabHaobanApplicationSetting record);
int insertSelective(TabHaobanApplicationSetting record);
TabHaobanApplicationSetting selectByPrimaryKey(String settingId);
int updateByPrimaryKeySelective(TabHaobanApplicationSetting record);
int updateByPrimaryKey(TabHaobanApplicationSetting record);
}
\ No newline at end of file
package com.gic.haoban.manage.service.dao.mapper;
import com.gic.haoban.manage.service.entity.TabHaobanAudit;
public interface AuditMapper {
int deleteByPrimaryKey(Integer auditId);
int insert(TabHaobanAudit record);
int insertSelective(TabHaobanAudit record);
TabHaobanAudit selectByPrimaryKey(Integer auditId);
int updateByPrimaryKeySelective(TabHaobanAudit record);
int updateByPrimaryKeyWithBLOBs(TabHaobanAudit record);
int updateByPrimaryKey(TabHaobanAudit record);
}
\ No newline at end of file
package com.gic.haoban.manage.service.dao.mapper;
import com.gic.haoban.manage.service.entity.TabHaobanAuditSetting;
public interface AuditSettingMapper {
int deleteByPrimaryKey(String settingId);
int insert(TabHaobanAuditSetting record);
int insertSelective(TabHaobanAuditSetting record);
TabHaobanAuditSetting selectByPrimaryKey(String settingId);
int updateByPrimaryKeySelective(TabHaobanAuditSetting record);
int updateByPrimaryKey(TabHaobanAuditSetting record);
}
\ No newline at end of file
package com.gic.haoban.manage.service.dao.mapper;
import com.gic.haoban.manage.service.entity.TabHaobanDict;
public interface DictMapper {
int deleteByPrimaryKey(String dictId);
int insert(TabHaobanDict record);
int insertSelective(TabHaobanDict record);
TabHaobanDict selectByPrimaryKey(String dictId);
int updateByPrimaryKeySelective(TabHaobanDict record);
int updateByPrimaryKeyWithBLOBs(TabHaobanDict record);
int updateByPrimaryKey(TabHaobanDict record);
}
\ No newline at end of file
package com.gic.haoban.manage.service.entity;
import java.io.Serializable;
import java.util.Date;
public class TabHaobanApplicationSetting implements Serializable {
private String settingId;
private String applicationId;
private String wxEnterpriseId;
private Integer statusFlag;
private Integer openFlag;
private Date createTime;
private Date updateTime;
private static final long serialVersionUID = 1L;
public String getSettingId() {
return settingId;
}
public void setSettingId(String settingId) {
this.settingId = settingId == null ? null : settingId.trim();
}
public String getApplicationId() {
return applicationId;
}
public void setApplicationId(String applicationId) {
this.applicationId = applicationId == null ? null : applicationId.trim();
}
public String getWxEnterpriseId() {
return wxEnterpriseId;
}
public void setWxEnterpriseId(String wxEnterpriseId) {
this.wxEnterpriseId = wxEnterpriseId == null ? null : wxEnterpriseId.trim();
}
public Integer getStatusFlag() {
return statusFlag;
}
public void setStatusFlag(Integer statusFlag) {
this.statusFlag = statusFlag;
}
public Integer getOpenFlag() {
return openFlag;
}
public void setOpenFlag(Integer openFlag) {
this.openFlag = openFlag;
}
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;
}
}
\ No newline at end of file
package com.gic.haoban.manage.service.entity;
import java.io.Serializable;
import java.util.Date;
public class TabHaobanAudit implements Serializable {
private Integer auditId;
private Integer auditType;
private String commitName;
private Integer commitStaffId;
private String commitStaffName;
private String commitStaffImg;
private String commitStoreId;
private String changeField;
private Date commitTime;
private String enterpriseId;
private String auditName;
private Integer auditStatus;
private String auditReason;
private String oldValue;
private String newValue;
private static final long serialVersionUID = 1L;
public Integer getAuditId() {
return auditId;
}
public void setAuditId(Integer auditId) {
this.auditId = auditId;
}
public Integer getAuditType() {
return auditType;
}
public void setAuditType(Integer auditType) {
this.auditType = auditType;
}
public String getCommitName() {
return commitName;
}
public void setCommitName(String commitName) {
this.commitName = commitName == null ? null : commitName.trim();
}
public Integer getCommitStaffId() {
return commitStaffId;
}
public void setCommitStaffId(Integer commitStaffId) {
this.commitStaffId = commitStaffId;
}
public String getCommitStaffName() {
return commitStaffName;
}
public void setCommitStaffName(String commitStaffName) {
this.commitStaffName = commitStaffName == null ? null : commitStaffName.trim();
}
public String getCommitStaffImg() {
return commitStaffImg;
}
public void setCommitStaffImg(String commitStaffImg) {
this.commitStaffImg = commitStaffImg == null ? null : commitStaffImg.trim();
}
public String getCommitStoreId() {
return commitStoreId;
}
public void setCommitStoreId(String commitStoreId) {
this.commitStoreId = commitStoreId == null ? null : commitStoreId.trim();
}
public String getChangeField() {
return changeField;
}
public void setChangeField(String changeField) {
this.changeField = changeField == null ? null : changeField.trim();
}
public Date getCommitTime() {
return commitTime;
}
public void setCommitTime(Date commitTime) {
this.commitTime = commitTime;
}
public String getEnterpriseId() {
return enterpriseId;
}
public void setEnterpriseId(String enterpriseId) {
this.enterpriseId = enterpriseId == null ? null : enterpriseId.trim();
}
public String getAuditName() {
return auditName;
}
public void setAuditName(String auditName) {
this.auditName = auditName == null ? null : auditName.trim();
}
public Integer getAuditStatus() {
return auditStatus;
}
public void setAuditStatus(Integer auditStatus) {
this.auditStatus = auditStatus;
}
public String getAuditReason() {
return auditReason;
}
public void setAuditReason(String auditReason) {
this.auditReason = auditReason == null ? null : auditReason.trim();
}
public String getOldValue() {
return oldValue;
}
public void setOldValue(String oldValue) {
this.oldValue = oldValue == null ? null : oldValue.trim();
}
public String getNewValue() {
return newValue;
}
public void setNewValue(String newValue) {
this.newValue = newValue == null ? null : newValue.trim();
}
}
\ No newline at end of file
package com.gic.haoban.manage.service.entity;
import java.io.Serializable;
import java.util.Date;
public class TabHaobanAuditSetting implements Serializable {
private String settingId;
private String wxEntepriseId;
private Integer auditFlag;
private Date createTime;
private Date updateTime;
private Integer statusFlag;
private static final long serialVersionUID = 1L;
public String getSettingId() {
return settingId;
}
public void setSettingId(String settingId) {
this.settingId = settingId == null ? null : settingId.trim();
}
public String getWxEntepriseId() {
return wxEntepriseId;
}
public void setWxEntepriseId(String wxEntepriseId) {
this.wxEntepriseId = wxEntepriseId == null ? null : wxEntepriseId.trim();
}
public Integer getAuditFlag() {
return auditFlag;
}
public void setAuditFlag(Integer auditFlag) {
this.auditFlag = auditFlag;
}
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 getStatusFlag() {
return statusFlag;
}
public void setStatusFlag(Integer statusFlag) {
this.statusFlag = statusFlag;
}
}
\ No newline at end of file
package com.gic.haoban.manage.service.entity;
import java.io.Serializable;
public class TabHaobanDict implements Serializable {
private String dictId;
private String dictName;
private String dictKey;
private String dictTitle;
private String dictDesc;
private String dictContent;
private static final long serialVersionUID = 1L;
public String getDictId() {
return dictId;
}
public void setDictId(String dictId) {
this.dictId = dictId == null ? null : dictId.trim();
}
public String getDictName() {
return dictName;
}
public void setDictName(String dictName) {
this.dictName = dictName == null ? null : dictName.trim();
}
public String getDictKey() {
return dictKey;
}
public void setDictKey(String dictKey) {
this.dictKey = dictKey == null ? null : dictKey.trim();
}
public String getDictTitle() {
return dictTitle;
}
public void setDictTitle(String dictTitle) {
this.dictTitle = dictTitle == null ? null : dictTitle.trim();
}
public String getDictDesc() {
return dictDesc;
}
public void setDictDesc(String dictDesc) {
this.dictDesc = dictDesc == null ? null : dictDesc.trim();
}
public String getDictContent() {
return dictContent;
}
public void setDictContent(String dictContent) {
this.dictContent = dictContent == null ? null : dictContent.trim();
}
}
\ 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.haoban.manage.service.dao.mapper.ApplicationSettingMapper" >
<resultMap id="BaseResultMap" type="com.gic.haoban.manage.service.entity.TabHaobanApplicationSetting" >
<id column="setting_id" property="settingId" jdbcType="VARCHAR" />
<result column="application_id" property="applicationId" jdbcType="VARCHAR" />
<result column="wx_enterprise_id" property="wxEnterpriseId" jdbcType="VARCHAR" />
<result column="status_flag" property="statusFlag" jdbcType="INTEGER" />
<result column="open_flag" property="openFlag" jdbcType="INTEGER" />
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
<result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
</resultMap>
<sql id="Base_Column_List" >
setting_id, application_id, wx_enterprise_id, status_flag, open_flag, create_time,
update_time
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tab_haoban_application_setting
where setting_id = #{settingId,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from tab_haoban_application_setting
where setting_id = #{settingId,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.gic.haoban.manage.service.entity.TabHaobanApplicationSetting" >
insert into tab_haoban_application_setting (setting_id, application_id, wx_enterprise_id,
status_flag, open_flag, create_time,
update_time)
values (#{settingId,jdbcType=VARCHAR}, #{applicationId,jdbcType=VARCHAR}, #{wxEnterpriseId,jdbcType=VARCHAR},
#{statusFlag,jdbcType=INTEGER}, #{openFlag,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.gic.haoban.manage.service.entity.TabHaobanApplicationSetting" >
insert into tab_haoban_application_setting
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="settingId != null" >
setting_id,
</if>
<if test="applicationId != null" >
application_id,
</if>
<if test="wxEnterpriseId != null" >
wx_enterprise_id,
</if>
<if test="statusFlag != null" >
status_flag,
</if>
<if test="openFlag != null" >
open_flag,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="updateTime != null" >
update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="settingId != null" >
#{settingId,jdbcType=VARCHAR},
</if>
<if test="applicationId != null" >
#{applicationId,jdbcType=VARCHAR},
</if>
<if test="wxEnterpriseId != null" >
#{wxEnterpriseId,jdbcType=VARCHAR},
</if>
<if test="statusFlag != null" >
#{statusFlag,jdbcType=INTEGER},
</if>
<if test="openFlag != null" >
#{openFlag,jdbcType=INTEGER},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null" >
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.gic.haoban.manage.service.entity.TabHaobanApplicationSetting" >
update tab_haoban_application_setting
<set >
<if test="applicationId != null" >
application_id = #{applicationId,jdbcType=VARCHAR},
</if>
<if test="wxEnterpriseId != null" >
wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR},
</if>
<if test="statusFlag != null" >
status_flag = #{statusFlag,jdbcType=INTEGER},
</if>
<if test="openFlag != null" >
open_flag = #{openFlag,jdbcType=INTEGER},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null" >
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
</set>
where setting_id = #{settingId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.gic.haoban.manage.service.entity.TabHaobanApplicationSetting" >
update tab_haoban_application_setting
set application_id = #{applicationId,jdbcType=VARCHAR},
wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR},
status_flag = #{statusFlag,jdbcType=INTEGER},
open_flag = #{openFlag,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where setting_id = #{settingId,jdbcType=VARCHAR}
</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.haoban.manage.service.dao.mapper.AuditMapper" >
<resultMap id="BaseResultMap" type="com.gic.haoban.manage.service.entity.TabHaobanAudit" >
<id column="audit_id" property="auditId" jdbcType="INTEGER" />
<result column="audit_type" property="auditType" jdbcType="INTEGER" />
<result column="commit_name" property="commitName" jdbcType="VARCHAR" />
<result column="commit_staff_id" property="commitStaffId" jdbcType="INTEGER" />
<result column="commit_staff_name" property="commitStaffName" jdbcType="VARCHAR" />
<result column="commit_staff_img" property="commitStaffImg" jdbcType="VARCHAR" />
<result column="commit_store_id" property="commitStoreId" jdbcType="VARCHAR" />
<result column="change_field" property="changeField" jdbcType="VARCHAR" />
<result column="commit_time" property="commitTime" jdbcType="TIMESTAMP" />
<result column="enterprise_id" property="enterpriseId" jdbcType="VARCHAR" />
<result column="audit_name" property="auditName" jdbcType="VARCHAR" />
<result column="audit_status" property="auditStatus" jdbcType="INTEGER" />
<result column="audit_reason" property="auditReason" jdbcType="VARCHAR" />
</resultMap>
<resultMap id="ResultMapWithBLOBs" type="com.gic.haoban.manage.service.entity.TabHaobanAudit" extends="BaseResultMap" >
<result column="old_value" property="oldValue" jdbcType="LONGVARCHAR" />
<result column="new_value" property="newValue" jdbcType="LONGVARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
audit_id, audit_type, commit_name, commit_staff_id, commit_staff_name, commit_staff_img,
commit_store_id, change_field, commit_time, enterprise_id, audit_name, audit_status,
audit_reason
</sql>
<sql id="Blob_Column_List" >
old_value, new_value
</sql>
<select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from tab_haoban_audit
where audit_id = #{auditId,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from tab_haoban_audit
where audit_id = #{auditId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.gic.haoban.manage.service.entity.TabHaobanAudit" >
insert into tab_haoban_audit (audit_id, audit_type, commit_name,
commit_staff_id, commit_staff_name, commit_staff_img,
commit_store_id, change_field, commit_time,
enterprise_id, audit_name, audit_status,
audit_reason, old_value, new_value
)
values (#{auditId,jdbcType=INTEGER}, #{auditType,jdbcType=INTEGER}, #{commitName,jdbcType=VARCHAR},
#{commitStaffId,jdbcType=INTEGER}, #{commitStaffName,jdbcType=VARCHAR}, #{commitStaffImg,jdbcType=VARCHAR},
#{commitStoreId,jdbcType=VARCHAR}, #{changeField,jdbcType=VARCHAR}, #{commitTime,jdbcType=TIMESTAMP},
#{enterpriseId,jdbcType=VARCHAR}, #{auditName,jdbcType=VARCHAR}, #{auditStatus,jdbcType=INTEGER},
#{auditReason,jdbcType=VARCHAR}, #{oldValue,jdbcType=LONGVARCHAR}, #{newValue,jdbcType=LONGVARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.gic.haoban.manage.service.entity.TabHaobanAudit" >
insert into tab_haoban_audit
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="auditId != null" >
audit_id,
</if>
<if test="auditType != null" >
audit_type,
</if>
<if test="commitName != null" >
commit_name,
</if>
<if test="commitStaffId != null" >
commit_staff_id,
</if>
<if test="commitStaffName != null" >
commit_staff_name,
</if>
<if test="commitStaffImg != null" >
commit_staff_img,
</if>
<if test="commitStoreId != null" >
commit_store_id,
</if>
<if test="changeField != null" >
change_field,
</if>
<if test="commitTime != null" >
commit_time,
</if>
<if test="enterpriseId != null" >
enterprise_id,
</if>
<if test="auditName != null" >
audit_name,
</if>
<if test="auditStatus != null" >
audit_status,
</if>
<if test="auditReason != null" >
audit_reason,
</if>
<if test="oldValue != null" >
old_value,
</if>
<if test="newValue != null" >
new_value,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="auditId != null" >
#{auditId,jdbcType=INTEGER},
</if>
<if test="auditType != null" >
#{auditType,jdbcType=INTEGER},
</if>
<if test="commitName != null" >
#{commitName,jdbcType=VARCHAR},
</if>
<if test="commitStaffId != null" >
#{commitStaffId,jdbcType=INTEGER},
</if>
<if test="commitStaffName != null" >
#{commitStaffName,jdbcType=VARCHAR},
</if>
<if test="commitStaffImg != null" >
#{commitStaffImg,jdbcType=VARCHAR},
</if>
<if test="commitStoreId != null" >
#{commitStoreId,jdbcType=VARCHAR},
</if>
<if test="changeField != null" >
#{changeField,jdbcType=VARCHAR},
</if>
<if test="commitTime != null" >
#{commitTime,jdbcType=TIMESTAMP},
</if>
<if test="enterpriseId != null" >
#{enterpriseId,jdbcType=VARCHAR},
</if>
<if test="auditName != null" >
#{auditName,jdbcType=VARCHAR},
</if>
<if test="auditStatus != null" >
#{auditStatus,jdbcType=INTEGER},
</if>
<if test="auditReason != null" >
#{auditReason,jdbcType=VARCHAR},
</if>
<if test="oldValue != null" >
#{oldValue,jdbcType=LONGVARCHAR},
</if>
<if test="newValue != null" >
#{newValue,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.gic.haoban.manage.service.entity.TabHaobanAudit" >
update tab_haoban_audit
<set >
<if test="auditType != null" >
audit_type = #{auditType,jdbcType=INTEGER},
</if>
<if test="commitName != null" >
commit_name = #{commitName,jdbcType=VARCHAR},
</if>
<if test="commitStaffId != null" >
commit_staff_id = #{commitStaffId,jdbcType=INTEGER},
</if>
<if test="commitStaffName != null" >
commit_staff_name = #{commitStaffName,jdbcType=VARCHAR},
</if>
<if test="commitStaffImg != null" >
commit_staff_img = #{commitStaffImg,jdbcType=VARCHAR},
</if>
<if test="commitStoreId != null" >
commit_store_id = #{commitStoreId,jdbcType=VARCHAR},
</if>
<if test="changeField != null" >
change_field = #{changeField,jdbcType=VARCHAR},
</if>
<if test="commitTime != null" >
commit_time = #{commitTime,jdbcType=TIMESTAMP},
</if>
<if test="enterpriseId != null" >
enterprise_id = #{enterpriseId,jdbcType=VARCHAR},
</if>
<if test="auditName != null" >
audit_name = #{auditName,jdbcType=VARCHAR},
</if>
<if test="auditStatus != null" >
audit_status = #{auditStatus,jdbcType=INTEGER},
</if>
<if test="auditReason != null" >
audit_reason = #{auditReason,jdbcType=VARCHAR},
</if>
<if test="oldValue != null" >
old_value = #{oldValue,jdbcType=LONGVARCHAR},
</if>
<if test="newValue != null" >
new_value = #{newValue,jdbcType=LONGVARCHAR},
</if>
</set>
where audit_id = #{auditId,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.gic.haoban.manage.service.entity.TabHaobanAudit" >
update tab_haoban_audit
set audit_type = #{auditType,jdbcType=INTEGER},
commit_name = #{commitName,jdbcType=VARCHAR},
commit_staff_id = #{commitStaffId,jdbcType=INTEGER},
commit_staff_name = #{commitStaffName,jdbcType=VARCHAR},
commit_staff_img = #{commitStaffImg,jdbcType=VARCHAR},
commit_store_id = #{commitStoreId,jdbcType=VARCHAR},
change_field = #{changeField,jdbcType=VARCHAR},
commit_time = #{commitTime,jdbcType=TIMESTAMP},
enterprise_id = #{enterpriseId,jdbcType=VARCHAR},
audit_name = #{auditName,jdbcType=VARCHAR},
audit_status = #{auditStatus,jdbcType=INTEGER},
audit_reason = #{auditReason,jdbcType=VARCHAR},
old_value = #{oldValue,jdbcType=LONGVARCHAR},
new_value = #{newValue,jdbcType=LONGVARCHAR}
where audit_id = #{auditId,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gic.haoban.manage.service.entity.TabHaobanAudit" >
update tab_haoban_audit
set audit_type = #{auditType,jdbcType=INTEGER},
commit_name = #{commitName,jdbcType=VARCHAR},
commit_staff_id = #{commitStaffId,jdbcType=INTEGER},
commit_staff_name = #{commitStaffName,jdbcType=VARCHAR},
commit_staff_img = #{commitStaffImg,jdbcType=VARCHAR},
commit_store_id = #{commitStoreId,jdbcType=VARCHAR},
change_field = #{changeField,jdbcType=VARCHAR},
commit_time = #{commitTime,jdbcType=TIMESTAMP},
enterprise_id = #{enterpriseId,jdbcType=VARCHAR},
audit_name = #{auditName,jdbcType=VARCHAR},
audit_status = #{auditStatus,jdbcType=INTEGER},
audit_reason = #{auditReason,jdbcType=VARCHAR}
where audit_id = #{auditId,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.haoban.manage.service.dao.mapper.AuditSettingMapper" >
<resultMap id="BaseResultMap" type="com.gic.haoban.manage.service.entity.TabHaobanAuditSetting" >
<id column="setting_id" property="settingId" jdbcType="VARCHAR" />
<result column="wx_enteprise_id" property="wxEntepriseId" jdbcType="VARCHAR" />
<result column="audit_flag" property="auditFlag" jdbcType="INTEGER" />
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
<result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
<result column="status_flag" property="statusFlag" jdbcType="INTEGER" />
</resultMap>
<sql id="Base_Column_List" >
setting_id, wx_enteprise_id, audit_flag, create_time, update_time, status_flag
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tab_haoban_audit_setting
where setting_id = #{settingId,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from tab_haoban_audit_setting
where setting_id = #{settingId,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.gic.haoban.manage.service.entity.TabHaobanAuditSetting" >
insert into tab_haoban_audit_setting (setting_id, wx_enteprise_id, audit_flag,
create_time, update_time, status_flag
)
values (#{settingId,jdbcType=VARCHAR}, #{wxEntepriseId,jdbcType=VARCHAR}, #{auditFlag,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{statusFlag,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.gic.haoban.manage.service.entity.TabHaobanAuditSetting" >
insert into tab_haoban_audit_setting
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="settingId != null" >
setting_id,
</if>
<if test="wxEntepriseId != null" >
wx_enteprise_id,
</if>
<if test="auditFlag != null" >
audit_flag,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="updateTime != null" >
update_time,
</if>
<if test="statusFlag != null" >
status_flag,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="settingId != null" >
#{settingId,jdbcType=VARCHAR},
</if>
<if test="wxEntepriseId != null" >
#{wxEntepriseId,jdbcType=VARCHAR},
</if>
<if test="auditFlag != null" >
#{auditFlag,jdbcType=INTEGER},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null" >
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="statusFlag != null" >
#{statusFlag,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.gic.haoban.manage.service.entity.TabHaobanAuditSetting" >
update tab_haoban_audit_setting
<set >
<if test="wxEntepriseId != null" >
wx_enteprise_id = #{wxEntepriseId,jdbcType=VARCHAR},
</if>
<if test="auditFlag != null" >
audit_flag = #{auditFlag,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="statusFlag != null" >
status_flag = #{statusFlag,jdbcType=INTEGER},
</if>
</set>
where setting_id = #{settingId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.gic.haoban.manage.service.entity.TabHaobanAuditSetting" >
update tab_haoban_audit_setting
set wx_enteprise_id = #{wxEntepriseId,jdbcType=VARCHAR},
audit_flag = #{auditFlag,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
status_flag = #{statusFlag,jdbcType=INTEGER}
where setting_id = #{settingId,jdbcType=VARCHAR}
</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.haoban.manage.service.dao.mapper.DictMapper" >
<resultMap id="BaseResultMap" type="com.gic.haoban.manage.service.entity.TabHaobanDict" >
<id column="dict_id" property="dictId" jdbcType="VARCHAR" />
<result column="dict_name" property="dictName" jdbcType="VARCHAR" />
<result column="dict_key" property="dictKey" jdbcType="VARCHAR" />
<result column="dict_title" property="dictTitle" jdbcType="VARCHAR" />
<result column="dict_desc" property="dictDesc" jdbcType="VARCHAR" />
</resultMap>
<resultMap id="ResultMapWithBLOBs" type="com.gic.haoban.manage.service.entity.TabHaobanDict" extends="BaseResultMap" >
<result column="dict_content" property="dictContent" jdbcType="LONGVARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
dict_id, dict_name, dict_key, dict_title, dict_desc
</sql>
<sql id="Blob_Column_List" >
dict_content
</sql>
<select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from tab_haoban_dict
where dict_id = #{dictId,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from tab_haoban_dict
where dict_id = #{dictId,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.gic.haoban.manage.service.entity.TabHaobanDict" >
insert into tab_haoban_dict (dict_id, dict_name, dict_key,
dict_title, dict_desc, dict_content
)
values (#{dictId,jdbcType=VARCHAR}, #{dictName,jdbcType=VARCHAR}, #{dictKey,jdbcType=VARCHAR},
#{dictTitle,jdbcType=VARCHAR}, #{dictDesc,jdbcType=VARCHAR}, #{dictContent,jdbcType=LONGVARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.gic.haoban.manage.service.entity.TabHaobanDict" >
insert into tab_haoban_dict
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="dictId != null" >
dict_id,
</if>
<if test="dictName != null" >
dict_name,
</if>
<if test="dictKey != null" >
dict_key,
</if>
<if test="dictTitle != null" >
dict_title,
</if>
<if test="dictDesc != null" >
dict_desc,
</if>
<if test="dictContent != null" >
dict_content,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="dictId != null" >
#{dictId,jdbcType=VARCHAR},
</if>
<if test="dictName != null" >
#{dictName,jdbcType=VARCHAR},
</if>
<if test="dictKey != null" >
#{dictKey,jdbcType=VARCHAR},
</if>
<if test="dictTitle != null" >
#{dictTitle,jdbcType=VARCHAR},
</if>
<if test="dictDesc != null" >
#{dictDesc,jdbcType=VARCHAR},
</if>
<if test="dictContent != null" >
#{dictContent,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.gic.haoban.manage.service.entity.TabHaobanDict" >
update tab_haoban_dict
<set >
<if test="dictName != null" >
dict_name = #{dictName,jdbcType=VARCHAR},
</if>
<if test="dictKey != null" >
dict_key = #{dictKey,jdbcType=VARCHAR},
</if>
<if test="dictTitle != null" >
dict_title = #{dictTitle,jdbcType=VARCHAR},
</if>
<if test="dictDesc != null" >
dict_desc = #{dictDesc,jdbcType=VARCHAR},
</if>
<if test="dictContent != null" >
dict_content = #{dictContent,jdbcType=LONGVARCHAR},
</if>
</set>
where dict_id = #{dictId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.gic.haoban.manage.service.entity.TabHaobanDict" >
update tab_haoban_dict
set dict_name = #{dictName,jdbcType=VARCHAR},
dict_key = #{dictKey,jdbcType=VARCHAR},
dict_title = #{dictTitle,jdbcType=VARCHAR},
dict_desc = #{dictDesc,jdbcType=VARCHAR},
dict_content = #{dictContent,jdbcType=LONGVARCHAR}
where dict_id = #{dictId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.gic.haoban.manage.service.entity.TabHaobanDict" >
update tab_haoban_dict
set dict_name = #{dictName,jdbcType=VARCHAR},
dict_key = #{dictKey,jdbcType=VARCHAR},
dict_title = #{dictTitle,jdbcType=VARCHAR},
dict_desc = #{dictDesc,jdbcType=VARCHAR}
where dict_id = #{dictId,jdbcType=VARCHAR}
</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