Commit c7c56443 by songyinghui

feat: 活码分组 pojo

parent 7f4e9048
package com.gic.haoban.manage.api.dto.hm;
import java.io.Serializable;
/**
* @Author MUSI
* @Date 2022/7/1 2:36 PM
* @Description
* @Version
**/
public class HmGroupDTO implements Serializable {
/**
* 分组id
*/
private Long groupId;
/**
* 分组名字
*/
private String groupName;
/**
* 企业id
*/
private String enterpriseId;
/**
* 微信企业id
*/
private String wxEnterpriseId;
/**
* 分组被引用次数
*/
private Integer referNum;
/**
* 排序字段
*/
private Integer sort;
/**
* 创建人id
*/
private String creatorId;
/***
* 创建人名字
*/
private String creatorName;
/**
* 修改人id
*/
private String modifierId;
/**
* 修改人名字
*/
private String modifierName;
public Long getGroupId() {
return groupId;
}
public void setGroupId(Long groupId) {
this.groupId = groupId;
}
public String getGroupName() {
return groupName;
}
public void setGroupName(String groupName) {
this.groupName = groupName;
}
public String getEnterpriseId() {
return enterpriseId;
}
public void setEnterpriseId(String enterpriseId) {
this.enterpriseId = enterpriseId;
}
public String getWxEnterpriseId() {
return wxEnterpriseId;
}
public void setWxEnterpriseId(String wxEnterpriseId) {
this.wxEnterpriseId = wxEnterpriseId;
}
public Integer getReferNum() {
return referNum;
}
public void setReferNum(Integer referNum) {
this.referNum = referNum;
}
public Integer getSort() {
return sort;
}
public void setSort(Integer sort) {
this.sort = sort;
}
public String getCreatorId() {
return creatorId;
}
public void setCreatorId(String creatorId) {
this.creatorId = creatorId;
}
public String getCreatorName() {
return creatorName;
}
public void setCreatorName(String creatorName) {
this.creatorName = creatorName;
}
public String getModifierId() {
return modifierId;
}
public void setModifierId(String modifierId) {
this.modifierId = modifierId;
}
public String getModifierName() {
return modifierName;
}
public void setModifierName(String modifierName) {
this.modifierName = modifierName;
}
}
package com.gic.haoban.manage.api.dto.hm;
import com.gic.haoban.base.api.common.BasePageInfo;
/**
* @Author MUSI
* @Date 2022/7/1 2:47 PM
* @Description
* @Version
**/
public class HmGroupQueryDTO extends BasePageInfo {
private String groupName;
public String getGroupName() {
return groupName;
}
public void setGroupName(String groupName) {
this.groupName = groupName;
}
}
package com.gic.haoban.manage.api.enums.hm;
/**
* @Author MUSI
* @Date 2022/7/1 3:00 PM
* @Description
* @Version
**/
public enum HmGroupStatus {
/**
* 启用
*/
ENABLE(1, "启用"),
/**
* 删除
*/
DISABLE(0, "禁用");
HmGroupStatus(Integer code, String desc){
this.code = code;
this.desc = desc;
}
private Integer code;
private String desc;
}
package com.gic.haoban.manage.api.service.hm;
import com.gic.api.base.commons.Page;
import com.gic.haoban.base.api.common.ServiceResponse;
import com.gic.haoban.manage.api.dto.hm.HmGroupDTO;
import com.gic.haoban.manage.api.dto.hm.HmGroupQueryDTO;
/**
* @Author MUSI
* @Date 2022/7/1 2:35 PM
* @Description 活码分组相关
* @Version
**/
public interface HmGroupApiService {
/**
* 保存 活码分组配置
*
* @param hmGroupDTO
* @return
*/
ServiceResponse<Long> saveOrUpdateHmGroupSetting(HmGroupDTO hmGroupDTO);
/**
* 条件查询活码分组信息
*
* @param groupQueryDTO
* @return
*/
ServiceResponse<Page<HmGroupDTO>> queryHmGroupSettingList(HmGroupQueryDTO groupQueryDTO);
/**
* 删除活码分组
*
* @param groupDTO
* @return
*/
ServiceResponse<Boolean> deleteGroupSetting(HmGroupDTO groupDTO);
}
\ No newline at end of file
package com.gic.haoban.manage.service.dao.mapper;
import com.gic.haoban.manage.service.entity.TabHaobanHmGroupSetting;
public interface TabHaobanHmGroupSettingMapper {
int insert(TabHaobanHmGroupSetting record);
int insertSelective(TabHaobanHmGroupSetting record);
}
\ No newline at end of file
package com.gic.haoban.manage.service.dao.mapper;
import com.gic.haoban.manage.service.entity.TabHaobanHmPage;
public interface TabHaobanHmPageMapper {
int insert(TabHaobanHmPage record);
int insertSelective(TabHaobanHmPage record);
}
\ No newline at end of file
...@@ -21,6 +21,7 @@ public interface TabHaobanWelcomeMapper { ...@@ -21,6 +21,7 @@ public interface TabHaobanWelcomeMapper {
int updateByPrimaryKeySelective(TabWelcome record); int updateByPrimaryKeySelective(TabWelcome record);
@Deprecated
TabWelcome selectByWxEnterpriseId(String wxEnterpriseId); TabWelcome selectByWxEnterpriseId(String wxEnterpriseId);
/** /**
......
package com.gic.haoban.manage.service.dao.mapper;
import com.gic.haoban.manage.service.entity.TabHaobanWelcomeTemplateRelation;
public interface TabHaobanWelcomeTemplateRelationMapper {
int insert(TabHaobanWelcomeTemplateRelation record);
int insertSelective(TabHaobanWelcomeTemplateRelation record);
}
\ No newline at end of file
package com.gic.haoban.manage.service.entity;
import java.util.Date;
public class TabHaobanHmGroupSetting {
private Long groupId;
private String groupName;
private String enterpriseId;
private String wxEnterpriseId;
private Integer referNum;
private Integer status;
private Integer sort;
private String creatorId;
private String creatorName;
private String modifierId;
private Date createTime;
private Date updateTime;
private String modifierName;
public Long getGroupId() {
return groupId;
}
public void setGroupId(Long groupId) {
this.groupId = groupId;
}
public String getGroupName() {
return groupName;
}
public void setGroupName(String groupName) {
this.groupName = groupName == null ? null : groupName.trim();
}
public String getEnterpriseId() {
return enterpriseId;
}
public void setEnterpriseId(String enterpriseId) {
this.enterpriseId = enterpriseId == null ? null : enterpriseId.trim();
}
public String getWxEnterpriseId() {
return wxEnterpriseId;
}
public void setWxEnterpriseId(String wxEnterpriseId) {
this.wxEnterpriseId = wxEnterpriseId == null ? null : wxEnterpriseId.trim();
}
public Integer getReferNum() {
return referNum;
}
public void setReferNum(Integer referNum) {
this.referNum = referNum;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Integer getSort() {
return sort;
}
public void setSort(Integer sort) {
this.sort = sort;
}
public String getCreatorId() {
return creatorId;
}
public void setCreatorId(String creatorId) {
this.creatorId = creatorId == null ? null : creatorId.trim();
}
public String getCreatorName() {
return creatorName;
}
public void setCreatorName(String creatorName) {
this.creatorName = creatorName == null ? null : creatorName.trim();
}
public String getModifierId() {
return modifierId;
}
public void setModifierId(String modifierId) {
this.modifierId = modifierId == null ? null : modifierId.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public String getModifierName() {
return modifierName;
}
public void setModifierName(String modifierName) {
this.modifierName = modifierName == null ? null : modifierName.trim();
}
}
\ No newline at end of file
package com.gic.haoban.manage.service.entity;
import java.util.Date;
public class TabHaobanHmPage {
private Long templateId;
private String templateCode;
private String templateName;
private String enterpriseId;
private String wxEnterpriseId;
private Integer status;
private String pageTitle;
private String merchantName;
private String merchantPhoneNumer;
private String merchantLogo;
private String pageBackgroudImg;
private String guideComment;
private String createorId;
private String createorName;
private String modifierId;
private String modifierName;
private Date createTime;
private Date updateTime;
public Long getTemplateId() {
return templateId;
}
public void setTemplateId(Long templateId) {
this.templateId = templateId;
}
public String getTemplateCode() {
return templateCode;
}
public void setTemplateCode(String templateCode) {
this.templateCode = templateCode == null ? null : templateCode.trim();
}
public String getTemplateName() {
return templateName;
}
public void setTemplateName(String templateName) {
this.templateName = templateName == null ? null : templateName.trim();
}
public String getEnterpriseId() {
return enterpriseId;
}
public void setEnterpriseId(String enterpriseId) {
this.enterpriseId = enterpriseId == null ? null : enterpriseId.trim();
}
public String getWxEnterpriseId() {
return wxEnterpriseId;
}
public void setWxEnterpriseId(String wxEnterpriseId) {
this.wxEnterpriseId = wxEnterpriseId == null ? null : wxEnterpriseId.trim();
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public String getPageTitle() {
return pageTitle;
}
public void setPageTitle(String pageTitle) {
this.pageTitle = pageTitle == null ? null : pageTitle.trim();
}
public String getMerchantName() {
return merchantName;
}
public void setMerchantName(String merchantName) {
this.merchantName = merchantName == null ? null : merchantName.trim();
}
public String getMerchantPhoneNumer() {
return merchantPhoneNumer;
}
public void setMerchantPhoneNumer(String merchantPhoneNumer) {
this.merchantPhoneNumer = merchantPhoneNumer == null ? null : merchantPhoneNumer.trim();
}
public String getMerchantLogo() {
return merchantLogo;
}
public void setMerchantLogo(String merchantLogo) {
this.merchantLogo = merchantLogo == null ? null : merchantLogo.trim();
}
public String getPageBackgroudImg() {
return pageBackgroudImg;
}
public void setPageBackgroudImg(String pageBackgroudImg) {
this.pageBackgroudImg = pageBackgroudImg == null ? null : pageBackgroudImg.trim();
}
public String getGuideComment() {
return guideComment;
}
public void setGuideComment(String guideComment) {
this.guideComment = guideComment == null ? null : guideComment.trim();
}
public String getCreateorId() {
return createorId;
}
public void setCreateorId(String createorId) {
this.createorId = createorId == null ? null : createorId.trim();
}
public String getCreateorName() {
return createorName;
}
public void setCreateorName(String createorName) {
this.createorName = createorName == null ? null : createorName.trim();
}
public String getModifierId() {
return modifierId;
}
public void setModifierId(String modifierId) {
this.modifierId = modifierId == null ? null : modifierId.trim();
}
public String getModifierName() {
return modifierName;
}
public void setModifierName(String modifierName) {
this.modifierName = modifierName == null ? null : modifierName.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}
\ No newline at end of file
package com.gic.haoban.manage.service.entity;
import java.util.Date;
public class TabHaobanWelcomeTemplateRelation {
private Long relationId;
private String enterpriseId;
private String wxEnterpriseId;
private String welcomeId;
private String referId;
private String referName;
private Date createTime;
private Date updateTime;
private Integer type;
private Integer status;
public Long getRelationId() {
return relationId;
}
public void setRelationId(Long relationId) {
this.relationId = relationId;
}
public String getEnterpriseId() {
return enterpriseId;
}
public void setEnterpriseId(String enterpriseId) {
this.enterpriseId = enterpriseId == null ? null : enterpriseId.trim();
}
public String getWxEnterpriseId() {
return wxEnterpriseId;
}
public void setWxEnterpriseId(String wxEnterpriseId) {
this.wxEnterpriseId = wxEnterpriseId == null ? null : wxEnterpriseId.trim();
}
public String getWelcomeId() {
return welcomeId;
}
public void setWelcomeId(String welcomeId) {
this.welcomeId = welcomeId == null ? null : welcomeId.trim();
}
public String getReferId() {
return referId;
}
public void setReferId(String referId) {
this.referId = referId == null ? null : referId.trim();
}
public String getReferName() {
return referName;
}
public void setReferName(String referName) {
this.referName = referName == null ? null : referName.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Integer getType() {
return type;
}
public void setType(Integer type) {
this.type = type;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
}
\ No newline at end of file
package com.gic.haoban.manage.service.pojo.bo.hm;
import java.io.Serializable;
/**
* @Author MUSI
* @Date 2022/7/1 3:35 PM
* @Description
* @Version
**/
public class HmGroupRelationBO implements Serializable {
private Long groupId;
private Integer changeCount;
public HmGroupRelationBO() {
}
public HmGroupRelationBO(Long groupId, Integer changeCount) {
this.groupId = groupId;
this.changeCount = changeCount;
}
public Long getGroupId() {
return groupId;
}
public void setGroupId(Long groupId) {
this.groupId = groupId;
}
public Integer getChangeCount() {
return changeCount;
}
public void setChangeCount(Integer changeCount) {
this.changeCount = changeCount;
}
public static HmGroupRelationBOBuilder builder() {
return new HmGroupRelationBOBuilder();
}
public static class HmGroupRelationBOBuilder {
private Long groupId;
private Integer changeCount;
HmGroupRelationBOBuilder() {
}
public HmGroupRelationBOBuilder groupId(final Long groupId) {
this.groupId = groupId;
return this;
}
public HmGroupRelationBOBuilder changeCount(final Integer changeCount) {
this.changeCount = changeCount;
return this;
}
public HmGroupRelationBO build() {
return new HmGroupRelationBO(this.groupId, changeCount);
}
}
}
package com.gic.haoban.manage.service.service.hm;
import com.gic.haoban.manage.service.pojo.bo.hm.HmGroupRelationBO;
import java.util.List;
/**
* @Author MUSI
* @Date 2022/7/1 2:26 PM
* @Description
* @Version
**/
public interface HmGroupService {
/**
* 更新 分组被引用数量
*
* @param groupId
* @param changeCount
* @return
*/
Boolean updateGroupRelationCount(String groupId, Integer changeCount);
/**
* @param groupRelations
* @return
*/
Boolean batchUpdateGroupRelationCount(List<HmGroupRelationBO> groupRelations);
}
<?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.TabHaobanHmGroupSettingMapper">
<resultMap id="BaseResultMap" type="com.gic.haoban.manage.service.entity.TabHaobanHmGroupSetting">
<result column="group_id" property="groupId" jdbcType="BIGINT"/>
<result column="group_name" property="groupName" jdbcType="VARCHAR"/>
<result column="enterprise_id" property="enterpriseId" jdbcType="VARCHAR"/>
<result column="wx_enterprise_id" property="wxEnterpriseId" jdbcType="VARCHAR"/>
<result column="refer_num" property="referNum" jdbcType="INTEGER"/>
<result column="status" property="status" jdbcType="INTEGER"/>
<result column="sort" property="sort" jdbcType="INTEGER"/>
<result column="creator_id" property="creatorId" jdbcType="VARCHAR"/>
<result column="creator_name" property="creatorName" jdbcType="VARCHAR"/>
<result column="modifier_id" property="modifierId" jdbcType="VARCHAR"/>
<result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
<result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/>
<result column="modifier_name" property="modifierName" jdbcType="VARCHAR"/>
</resultMap>
<insert id="insert" parameterType="com.gic.haoban.manage.service.entity.TabHaobanHmGroupSetting">
insert into tab_haoban_hm_group_setting (group_id, group_name, enterprise_id,
wx_enterprise_id, refer_num, status,
sort, creator_id, creator_name,
modifier_id, create_time, update_time,
modifier_name)
values (#{groupId,jdbcType=BIGINT}, #{groupName,jdbcType=VARCHAR}, #{enterpriseId,jdbcType=VARCHAR},
#{wxEnterpriseId,jdbcType=VARCHAR}, #{referNum,jdbcType=INTEGER}, #{status,jdbcType=INTEGER},
#{sort,jdbcType=INTEGER}, #{creatorId,jdbcType=VARCHAR}, #{creatorName,jdbcType=VARCHAR},
#{modifierId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{modifierName,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.gic.haoban.manage.service.entity.TabHaobanHmGroupSetting">
insert into tab_haoban_hm_group_setting
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="groupId != null">
group_id,
</if>
<if test="groupName != null">
group_name,
</if>
<if test="enterpriseId != null">
enterprise_id,
</if>
<if test="wxEnterpriseId != null">
wx_enterprise_id,
</if>
<if test="referNum != null">
refer_num,
</if>
<if test="status != null">
status,
</if>
<if test="sort != null">
sort,
</if>
<if test="creatorId != null">
creator_id,
</if>
<if test="creatorName != null">
creator_name,
</if>
<if test="modifierId != null">
modifier_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="modifierName != null">
modifier_name,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="groupId != null">
#{groupId,jdbcType=BIGINT},
</if>
<if test="groupName != null">
#{groupName,jdbcType=VARCHAR},
</if>
<if test="enterpriseId != null">
#{enterpriseId,jdbcType=VARCHAR},
</if>
<if test="wxEnterpriseId != null">
#{wxEnterpriseId,jdbcType=VARCHAR},
</if>
<if test="referNum != null">
#{referNum,jdbcType=INTEGER},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
<if test="creatorId != null">
#{creatorId,jdbcType=VARCHAR},
</if>
<if test="creatorName != null">
#{creatorName,jdbcType=VARCHAR},
</if>
<if test="modifierId != null">
#{modifierId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="modifierName != null">
#{modifierName,jdbcType=VARCHAR},
</if>
</trim>
</insert>
</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.TabHaobanHmPageMapper">
<resultMap id="BaseResultMap" type="com.gic.haoban.manage.service.entity.TabHaobanHmPage">
<result column="template_id" property="templateId" jdbcType="BIGINT"/>
<result column="template_code" property="templateCode" jdbcType="CHAR"/>
<result column="template_name" property="templateName" jdbcType="VARCHAR"/>
<result column="enterprise_id" property="enterpriseId" jdbcType="VARCHAR"/>
<result column="wx_enterprise_id" property="wxEnterpriseId" jdbcType="VARCHAR"/>
<result column="status" property="status" jdbcType="INTEGER"/>
<result column="page_title" property="pageTitle" jdbcType="VARCHAR"/>
<result column="merchant_name" property="merchantName" jdbcType="VARCHAR"/>
<result column="merchant_phone_numer" property="merchantPhoneNumer" jdbcType="VARCHAR"/>
<result column="merchant_logo" property="merchantLogo" jdbcType="VARCHAR"/>
<result column="page_backgroud_img" property="pageBackgroudImg" jdbcType="VARCHAR"/>
<result column="guide_comment" property="guideComment" jdbcType="VARCHAR"/>
<result column="createor_id" property="createorId" jdbcType="VARCHAR"/>
<result column="createor_name" property="createorName" jdbcType="VARCHAR"/>
<result column="modifier_id" property="modifierId" jdbcType="VARCHAR"/>
<result column="modifier_name" property="modifierName" jdbcType="VARCHAR"/>
<result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
<result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/>
</resultMap>
<insert id="insert" parameterType="com.gic.haoban.manage.service.entity.TabHaobanHmPage">
insert into tab_haoban_hm_page (template_id, template_code, template_name,
enterprise_id, wx_enterprise_id, status,
page_title, merchant_name, merchant_phone_numer,
merchant_logo, page_backgroud_img, guide_comment,
createor_id, createor_name, modifier_id,
modifier_name, create_time, update_time)
values (#{templateId,jdbcType=BIGINT}, #{templateCode,jdbcType=CHAR}, #{templateName,jdbcType=VARCHAR},
#{enterpriseId,jdbcType=VARCHAR}, #{wxEnterpriseId,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
#{pageTitle,jdbcType=VARCHAR}, #{merchantName,jdbcType=VARCHAR}, #{merchantPhoneNumer,jdbcType=VARCHAR},
#{merchantLogo,jdbcType=VARCHAR}, #{pageBackgroudImg,jdbcType=VARCHAR},
#{guideComment,jdbcType=VARCHAR},
#{createorId,jdbcType=VARCHAR}, #{createorName,jdbcType=VARCHAR}, #{modifierId,jdbcType=VARCHAR},
#{modifierName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.gic.haoban.manage.service.entity.TabHaobanHmPage">
insert into tab_haoban_hm_page
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="templateId != null">
template_id,
</if>
<if test="templateCode != null">
template_code,
</if>
<if test="templateName != null">
template_name,
</if>
<if test="enterpriseId != null">
enterprise_id,
</if>
<if test="wxEnterpriseId != null">
wx_enterprise_id,
</if>
<if test="status != null">
status,
</if>
<if test="pageTitle != null">
page_title,
</if>
<if test="merchantName != null">
merchant_name,
</if>
<if test="merchantPhoneNumer != null">
merchant_phone_numer,
</if>
<if test="merchantLogo != null">
merchant_logo,
</if>
<if test="pageBackgroudImg != null">
page_backgroud_img,
</if>
<if test="guideComment != null">
guide_comment,
</if>
<if test="createorId != null">
createor_id,
</if>
<if test="createorName != null">
createor_name,
</if>
<if test="modifierId != null">
modifier_id,
</if>
<if test="modifierName != null">
modifier_name,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="templateId != null">
#{templateId,jdbcType=BIGINT},
</if>
<if test="templateCode != null">
#{templateCode,jdbcType=CHAR},
</if>
<if test="templateName != null">
#{templateName,jdbcType=VARCHAR},
</if>
<if test="enterpriseId != null">
#{enterpriseId,jdbcType=VARCHAR},
</if>
<if test="wxEnterpriseId != null">
#{wxEnterpriseId,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
<if test="pageTitle != null">
#{pageTitle,jdbcType=VARCHAR},
</if>
<if test="merchantName != null">
#{merchantName,jdbcType=VARCHAR},
</if>
<if test="merchantPhoneNumer != null">
#{merchantPhoneNumer,jdbcType=VARCHAR},
</if>
<if test="merchantLogo != null">
#{merchantLogo,jdbcType=VARCHAR},
</if>
<if test="pageBackgroudImg != null">
#{pageBackgroudImg,jdbcType=VARCHAR},
</if>
<if test="guideComment != null">
#{guideComment,jdbcType=VARCHAR},
</if>
<if test="createorId != null">
#{createorId,jdbcType=VARCHAR},
</if>
<if test="createorName != null">
#{createorName,jdbcType=VARCHAR},
</if>
<if test="modifierId != null">
#{modifierId,jdbcType=VARCHAR},
</if>
<if test="modifierName != null">
#{modifierName,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
</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.TabHaobanWelcomeTemplateRelationMapper">
<resultMap id="BaseResultMap" type="com.gic.haoban.manage.service.entity.TabHaobanWelcomeTemplateRelation">
<result column="relation_id" property="relationId" jdbcType="BIGINT"/>
<result column="enterprise_id" property="enterpriseId" jdbcType="VARCHAR"/>
<result column="wx_enterprise_id" property="wxEnterpriseId" jdbcType="VARCHAR"/>
<result column="welcome_id" property="welcomeId" jdbcType="VARCHAR"/>
<result column="refer_id" property="referId" jdbcType="VARCHAR"/>
<result column="refer_name" property="referName" jdbcType="VARCHAR"/>
<result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
<result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/>
<result column="type" property="type" jdbcType="INTEGER"/>
<result column="status" property="status" jdbcType="INTEGER"/>
</resultMap>
<insert id="insert" parameterType="com.gic.haoban.manage.service.entity.TabHaobanWelcomeTemplateRelation">
insert into tab_haoban_welcome_template_relation (relation_id, enterprise_id, wx_enterprise_id,
welcome_id, refer_id, refer_name,
create_time, update_time, type,
status)
values (#{relationId,jdbcType=BIGINT}, #{enterpriseId,jdbcType=VARCHAR}, #{wxEnterpriseId,jdbcType=VARCHAR},
#{welcomeId,jdbcType=VARCHAR}, #{referId,jdbcType=VARCHAR}, #{referName,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{type,jdbcType=INTEGER},
#{status,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.gic.haoban.manage.service.entity.TabHaobanWelcomeTemplateRelation">
insert into tab_haoban_welcome_template_relation
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="relationId != null">
relation_id,
</if>
<if test="enterpriseId != null">
enterprise_id,
</if>
<if test="wxEnterpriseId != null">
wx_enterprise_id,
</if>
<if test="welcomeId != null">
welcome_id,
</if>
<if test="referId != null">
refer_id,
</if>
<if test="referName != null">
refer_name,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="type != null">
type,
</if>
<if test="status != null">
status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="relationId != null">
#{relationId,jdbcType=BIGINT},
</if>
<if test="enterpriseId != null">
#{enterpriseId,jdbcType=VARCHAR},
</if>
<if test="wxEnterpriseId != null">
#{wxEnterpriseId,jdbcType=VARCHAR},
</if>
<if test="welcomeId != null">
#{welcomeId,jdbcType=VARCHAR},
</if>
<if test="referId != null">
#{referId,jdbcType=VARCHAR},
</if>
<if test="referName != null">
#{referName,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="type != null">
#{type,jdbcType=INTEGER},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
</trim>
</insert>
</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