Authored by chenchao

add func 4 seller

package com.yohoufo.dal.order;
import com.yohoufo.dal.order.model.SellerEnterApply;
public interface SellerEnterApplyMapper {
int deleteByPrimaryKey(Integer id);
int insert(SellerEnterApply record);
int insertSelective(SellerEnterApply record);
SellerEnterApply selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(SellerEnterApply record);
int updateByPrimaryKey(SellerEnterApply record);
}
\ No newline at end of file
... ...
package com.yohoufo.dal.order;
import com.yohoufo.dal.order.model.SellerFunc;
public interface SellerFuncMapper {
int deleteByPrimaryKey(Integer id);
int insert(SellerFunc record);
int insertSelective(SellerFunc record);
SellerFunc selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(SellerFunc record);
int updateByPrimaryKey(SellerFunc record);
}
\ No newline at end of file
... ...
package com.yohoufo.dal.order;
import com.yohoufo.dal.order.model.SellerLevelFunc;
public interface SellerLevelFuncMapper {
int deleteByPrimaryKey(Integer id);
int insert(SellerLevelFunc record);
int insertSelective(SellerLevelFunc record);
SellerLevelFunc selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(SellerLevelFunc record);
int updateByPrimaryKey(SellerLevelFunc record);
}
\ No newline at end of file
... ...
package com.yohoufo.dal.order.model;
public class SellerEnterApply {
private Integer id;
private Integer uid;
private Long orderCode;
private Integer preEnterType;
private Integer enterType;
private Integer createTime;
private Integer updateTime;
private Short status;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getUid() {
return uid;
}
public void setUid(Integer uid) {
this.uid = uid;
}
public Long getOrderCode() {
return orderCode;
}
public void setOrderCode(Long orderCode) {
this.orderCode = orderCode;
}
public Integer getPreEnterType() {
return preEnterType;
}
public void setPreEnterType(Integer preEnterType) {
this.preEnterType = preEnterType;
}
public Integer getEnterType() {
return enterType;
}
public void setEnterType(Integer enterType) {
this.enterType = enterType;
}
public Integer getCreateTime() {
return createTime;
}
public void setCreateTime(Integer createTime) {
this.createTime = createTime;
}
public Integer getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Integer updateTime) {
this.updateTime = updateTime;
}
public Short getStatus() {
return status;
}
public void setStatus(Short status) {
this.status = status;
}
}
\ No newline at end of file
... ...
package com.yohoufo.dal.order.model;
public class SellerFunc {
private Integer id;
private String cnName;
private String enName;
private Integer code;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getCnName() {
return cnName;
}
public void setCnName(String cnName) {
this.cnName = cnName == null ? null : cnName.trim();
}
public String getEnName() {
return enName;
}
public void setEnName(String enName) {
this.enName = enName == null ? null : enName.trim();
}
public Integer getCode() {
return code;
}
public void setCode(Integer code) {
this.code = code;
}
}
\ No newline at end of file
... ...
package com.yohoufo.dal.order.model;
public class SellerLevelFunc {
private Integer id;
private Integer enterType;
private Integer level;
private String funcList;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getEnterType() {
return enterType;
}
public void setEnterType(Integer enterType) {
this.enterType = enterType;
}
public Integer getLevel() {
return level;
}
public void setLevel(Integer level) {
this.level = level;
}
public String getFuncList() {
return funcList;
}
public void setFuncList(String funcList) {
this.funcList = funcList == null ? null : funcList.trim();
}
}
\ No newline at end of file
... ...
... ... @@ -39,4 +39,8 @@ public class StoredSeller {
private Integer breakZhiMaCert;
private Integer entryType;
private Integer levelFuncId;
private String levelFuncList;
}
... ...
<?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.yohoufo.dal.order.SellerEnterApplyMapper">
<resultMap id="BaseResultMap" type="com.yohoufo.dal.order.model.SellerEnterApply">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="uid" jdbcType="INTEGER" property="uid" />
<result column="order_code" jdbcType="BIGINT" property="orderCode" />
<result column="pre_enter_type" jdbcType="INTEGER" property="preEnterType" />
<result column="enter_type" jdbcType="INTEGER" property="enterType" />
<result column="create_time" jdbcType="INTEGER" property="createTime" />
<result column="update_time" jdbcType="INTEGER" property="updateTime" />
<result column="status" jdbcType="SMALLINT" property="status" />
</resultMap>
<sql id="Base_Column_List">
id, uid, order_code, pre_enter_type, enter_type, create_time, update_time, status
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from seller_enter_apply
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from seller_enter_apply
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.SellerEnterApply" useGeneratedKeys="true">
insert into seller_enter_apply (uid, order_code, pre_enter_type,
enter_type, create_time, update_time,
status)
values (#{uid,jdbcType=INTEGER}, #{orderCode,jdbcType=BIGINT}, #{preEnterType,jdbcType=INTEGER},
#{enterType,jdbcType=INTEGER}, #{createTime,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER},
#{status,jdbcType=SMALLINT})
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.SellerEnterApply" useGeneratedKeys="true">
insert into seller_enter_apply
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="uid != null">
uid,
</if>
<if test="orderCode != null">
order_code,
</if>
<if test="preEnterType != null">
pre_enter_type,
</if>
<if test="enterType != null">
enter_type,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="status != null">
status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="uid != null">
#{uid,jdbcType=INTEGER},
</if>
<if test="orderCode != null">
#{orderCode,jdbcType=BIGINT},
</if>
<if test="preEnterType != null">
#{preEnterType,jdbcType=INTEGER},
</if>
<if test="enterType != null">
#{enterType,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=INTEGER},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=INTEGER},
</if>
<if test="status != null">
#{status,jdbcType=SMALLINT},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yohoufo.dal.order.model.SellerEnterApply">
update seller_enter_apply
<set>
<if test="uid != null">
uid = #{uid,jdbcType=INTEGER},
</if>
<if test="orderCode != null">
order_code = #{orderCode,jdbcType=BIGINT},
</if>
<if test="preEnterType != null">
pre_enter_type = #{preEnterType,jdbcType=INTEGER},
</if>
<if test="enterType != null">
enter_type = #{enterType,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=INTEGER},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=INTEGER},
</if>
<if test="status != null">
status = #{status,jdbcType=SMALLINT},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.yohoufo.dal.order.model.SellerEnterApply">
update seller_enter_apply
set uid = #{uid,jdbcType=INTEGER},
order_code = #{orderCode,jdbcType=BIGINT},
pre_enter_type = #{preEnterType,jdbcType=INTEGER},
enter_type = #{enterType,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=INTEGER},
update_time = #{updateTime,jdbcType=INTEGER},
status = #{status,jdbcType=SMALLINT}
where id = #{id,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.yohoufo.dal.order.SellerFuncMapper">
<resultMap id="BaseResultMap" type="com.yohoufo.dal.order.model.SellerFunc">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="cn_name" jdbcType="VARCHAR" property="cnName" />
<result column="en_name" jdbcType="VARCHAR" property="enName" />
<result column="code" jdbcType="INTEGER" property="code" />
</resultMap>
<sql id="Base_Column_List">
id, cn_name, en_name, code
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from seller_func
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from seller_func
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.SellerFunc" useGeneratedKeys="true">
insert into seller_func (cn_name, en_name, code
)
values (#{cnName,jdbcType=VARCHAR}, #{enName,jdbcType=VARCHAR}, #{code,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.SellerFunc" useGeneratedKeys="true">
insert into seller_func
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="cnName != null">
cn_name,
</if>
<if test="enName != null">
en_name,
</if>
<if test="code != null">
code,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="cnName != null">
#{cnName,jdbcType=VARCHAR},
</if>
<if test="enName != null">
#{enName,jdbcType=VARCHAR},
</if>
<if test="code != null">
#{code,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yohoufo.dal.order.model.SellerFunc">
update seller_func
<set>
<if test="cnName != null">
cn_name = #{cnName,jdbcType=VARCHAR},
</if>
<if test="enName != null">
en_name = #{enName,jdbcType=VARCHAR},
</if>
<if test="code != null">
code = #{code,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.yohoufo.dal.order.model.SellerFunc">
update seller_func
set cn_name = #{cnName,jdbcType=VARCHAR},
en_name = #{enName,jdbcType=VARCHAR},
code = #{code,jdbcType=INTEGER}
where id = #{id,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.yohoufo.dal.order.SellerLevelFuncMapper">
<resultMap id="BaseResultMap" type="com.yohoufo.dal.order.model.SellerLevelFunc">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="enter_type" jdbcType="INTEGER" property="enterType" />
<result column="level" jdbcType="INTEGER" property="level" />
<result column="func_list" jdbcType="VARCHAR" property="funcList" />
</resultMap>
<sql id="Base_Column_List">
id, enter_type, level, func_list
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from seller_level_func
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from seller_level_func
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.SellerLevelFunc" useGeneratedKeys="true">
insert into seller_level_func (enter_type, level, func_list
)
values (#{enterType,jdbcType=INTEGER}, #{level,jdbcType=INTEGER}, #{funcList,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.SellerLevelFunc" useGeneratedKeys="true">
insert into seller_level_func
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="enterType != null">
enter_type,
</if>
<if test="level != null">
level,
</if>
<if test="funcList != null">
func_list,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="enterType != null">
#{enterType,jdbcType=INTEGER},
</if>
<if test="level != null">
#{level,jdbcType=INTEGER},
</if>
<if test="funcList != null">
#{funcList,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yohoufo.dal.order.model.SellerLevelFunc">
update seller_level_func
<set>
<if test="enterType != null">
enter_type = #{enterType,jdbcType=INTEGER},
</if>
<if test="level != null">
level = #{level,jdbcType=INTEGER},
</if>
<if test="funcList != null">
func_list = #{funcList,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.yohoufo.dal.order.model.SellerLevelFunc">
update seller_level_func
set enter_type = #{enterType,jdbcType=INTEGER},
level = #{level,jdbcType=INTEGER},
func_list = #{funcList,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
... ...
... ... @@ -15,11 +15,13 @@
<result column="update_time" property="updateTime" jdbcType="INTEGER" />
<result column="break_zhi_ma_cert" property="breakZhiMaCert" jdbcType="TINYINT" />
<result column="entry_type" property="entryType" jdbcType="INTEGER" />
<result column="level_func_id" jdbcType="INTEGER" property="levelFuncId" />
<result column="level_func_list" jdbcType="VARCHAR" property="levelFuncList" />
</resultMap>
<sql id="Base_Column_List" >
id, uid, valid_status,cert_no,cert_name,operator_uid,operator_name,enter_time,quit_time ,
create_time, update_time,break_zhi_ma_cert,entry_type
create_time, update_time,break_zhi_ma_cert,entry_type, level_func_id, level_func_list
</sql>
<select id="selectValidByUid" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
... ... @@ -46,11 +48,12 @@
<insert id="insert" parameterType="com.yohoufo.dal.order.model.StoredSeller" >
insert into stored_seller (uid, valid_status,cert_no,cert_name,operator_uid,operator_name,
enter_time,quit_time, create_time, update_time,break_zhi_ma_cert,entry_type)
enter_time,quit_time, create_time, update_time,break_zhi_ma_cert,entry_type,level_func_id, level_func_list)
values (#{uid},#{validStatus},
#{certNo},#{certName},#{operatorUid},#{operatorName},
#{enterTime},#{quitTime},
#{createTime},#{updateTime},#{breakZhiMaCert},#{entryType})
#{createTime},#{updateTime},#{breakZhiMaCert},#{entryType},
#{levelFuncId,jdbcType=INTEGER}, #{levelFuncList,jdbcType=VARCHAR})
</insert>
<update id="updateStatusByUid">
... ... @@ -99,6 +102,12 @@
<if test="entryType != null">
entry_type,
</if>
<if test="levelFuncId != null">
level_func_id,
</if>
<if test="levelFuncList != null">
level_func_list,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="uid != null">
... ... @@ -137,6 +146,12 @@
<if test="entryType != null">
#{entryType,jdbcType=INTEGER},
</if>
<if test="levelFuncId != null">
#{levelFuncId,jdbcType=INTEGER},
</if>
<if test="levelFuncList != null">
#{levelFuncList,jdbcType=VARCHAR},
</if>
</trim>
</insert>
... ... @@ -174,6 +189,12 @@
<if test="entryType != null">
entry_type = #{entryType,jdbcType=INTEGER},
</if>
<if test="levelFuncId != null">
level_func_id = #{levelFuncId,jdbcType=INTEGER},
</if>
<if test="levelFuncList != null">
level_func_list = #{levelFuncList,jdbcType=VARCHAR},
</if>
</set>
where uid = #{uid,jdbcType=INTEGER}
</update>
... ...
... ... @@ -73,6 +73,9 @@ datasources:
- com.yohoufo.dal.order.OrdersPrePayMapper
- com.yohoufo.dal.order.MetaConfigMapper
- com.yohoufo.dal.order.BuyerOrderStatusFlowMapper
- com.yohoufo.dal.order.SellerEnterApplyMapper
- com.yohoufo.dal.order.SellerFuncMapper
- com.yohoufo.dal.order.SellerLevelFuncMapper
ufo_promotion:
servers:
... ...
... ... @@ -73,6 +73,9 @@ datasources:
- com.yohoufo.dal.order.OrdersPrePayMapper
- com.yohoufo.dal.order.MetaConfigMapper
- com.yohoufo.dal.order.BuyerOrderStatusFlowMapper
- com.yohoufo.dal.order.SellerEnterApplyMapper
- com.yohoufo.dal.order.SellerFuncMapper
- com.yohoufo.dal.order.SellerLevelFuncMapper
ufo_promotion:
servers:
... ...