Authored by ping

新品节活动

package com.yoho.activity.dal;
import com.yoho.activity.dal.model.ActNewBrand;
public interface ActNewBrandMapper {
int deleteByPrimaryKey(Integer id);
int insert(ActNewBrand record);
int insertSelective(ActNewBrand record);
ActNewBrand selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(ActNewBrand record);
int updateByPrimaryKey(ActNewBrand record);
}
\ No newline at end of file
... ...
package com.yoho.activity.dal;
import com.yoho.activity.dal.model.ActNewBrandResult;
public interface ActNewBrandResultMapper {
int deleteByPrimaryKey(Integer id);
int insert(ActNewBrandResult record);
int insertSelective(ActNewBrandResult record);
ActNewBrandResult selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(ActNewBrandResult record);
int updateByPrimaryKey(ActNewBrandResult record);
}
\ No newline at end of file
... ...
package com.yoho.activity.dal;
import com.yoho.activity.dal.model.ActVoteInfo;
public interface ActVoteInfoMapper {
int deleteByPrimaryKey(Integer id);
int insert(ActVoteInfo record);
int insertSelective(ActVoteInfo record);
ActVoteInfo selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(ActVoteInfo record);
int updateByPrimaryKey(ActVoteInfo record);
}
\ No newline at end of file
... ...
package com.yoho.activity.dal;
import com.yoho.activity.dal.model.ActVoteItem;
public interface ActVoteItemMapper {
int deleteByPrimaryKey(Integer id);
int insert(ActVoteItem record);
int insertSelective(ActVoteItem record);
ActVoteItem selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(ActVoteItem record);
int updateByPrimaryKey(ActVoteItem record);
}
\ No newline at end of file
... ...
package com.yoho.activity.dal;
import com.yoho.activity.dal.model.ActVoteResult;
public interface ActVoteResultMapper {
int deleteByPrimaryKey(Integer id);
int insert(ActVoteResult record);
int insertSelective(ActVoteResult record);
ActVoteResult selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(ActVoteResult record);
int updateByPrimaryKey(ActVoteResult record);
}
\ No newline at end of file
... ...
package com.yoho.activity.dal.model;
import com.yoho.queue.dal.model.BaseModel;
public class ActNewBrand extends BaseModel {
/**
*
*/
private static final long serialVersionUID = 1704484697194941946L;
private Integer id;
private String boxImage;
private String brandInfo;
private String showDate;
private String boxNum;
private Byte prize;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getBoxImage() {
return boxImage;
}
public void setBoxImage(String boxImage) {
this.boxImage = boxImage == null ? null : boxImage.trim();
}
public String getBrandInfo() {
return brandInfo;
}
public void setBrandInfo(String brandInfo) {
this.brandInfo = brandInfo == null ? null : brandInfo.trim();
}
public String getShowDate() {
return showDate;
}
public void setShowDate(String showDate) {
this.showDate = showDate == null ? null : showDate.trim();
}
public String getBoxNum() {
return boxNum;
}
public void setBoxNum(String boxNum) {
this.boxNum = boxNum == null ? null : boxNum.trim();
}
public Byte getPrize() {
return prize;
}
public void setPrize(Byte prize) {
this.prize = prize;
}
}
\ No newline at end of file
... ...
package com.yoho.activity.dal.model;
import com.yoho.queue.dal.model.BaseModel;
public class ActNewBrandResult extends BaseModel {
/**
*
*/
private static final long serialVersionUID = 337788940402609195L;
private Integer id;
private Integer uid;
private Integer boxId;
private Integer createTime;
private String drawDate;
private Byte prizeType;
private String prizeInfo;
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 Integer getBoxId() {
return boxId;
}
public void setBoxId(Integer boxId) {
this.boxId = boxId;
}
public Integer getCreateTime() {
return createTime;
}
public void setCreateTime(Integer createTime) {
this.createTime = createTime;
}
public String getDrawDate() {
return drawDate;
}
public void setDrawDate(String drawDate) {
this.drawDate = drawDate == null ? null : drawDate.trim();
}
public Byte getPrizeType() {
return prizeType;
}
public void setPrizeType(Byte prizeType) {
this.prizeType = prizeType;
}
public String getPrizeInfo() {
return prizeInfo;
}
public void setPrizeInfo(String prizeInfo) {
this.prizeInfo = prizeInfo == null ? null : prizeInfo.trim();
}
}
\ No newline at end of file
... ...
package com.yoho.activity.dal.model;
import com.yoho.queue.dal.model.BaseModel;
public class ActVoteInfo extends BaseModel {
/**
*
*/
private static final long serialVersionUID = 3594748158668274377L;
private Integer id;
private String actName;
private Integer maxVotePerUser;
private Integer createTime;
private Byte status;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getActName() {
return actName;
}
public void setActName(String actName) {
this.actName = actName == null ? null : actName.trim();
}
public Integer getMaxVotePerUser() {
return maxVotePerUser;
}
public void setMaxVotePerUser(Integer maxVotePerUser) {
this.maxVotePerUser = maxVotePerUser;
}
public Integer getCreateTime() {
return createTime;
}
public void setCreateTime(Integer createTime) {
this.createTime = createTime;
}
public Byte getStatus() {
return status;
}
public void setStatus(Byte status) {
this.status = status;
}
}
\ No newline at end of file
... ...
package com.yoho.activity.dal.model;
import com.yoho.queue.dal.model.BaseModel;
public class ActVoteItem extends BaseModel {
/**
*
*/
private static final long serialVersionUID = -6601596489317850804L;
private Integer id;
private String itemName;
private String itemImageUnvoted;
private String itemImageVoted;
private Integer actVoteId;
private Integer createTime;
private Byte status;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getItemName() {
return itemName;
}
public void setItemName(String itemName) {
this.itemName = itemName == null ? null : itemName.trim();
}
public String getItemImageUnvoted() {
return itemImageUnvoted;
}
public void setItemImageUnvoted(String itemImageUnvoted) {
this.itemImageUnvoted = itemImageUnvoted == null ? null : itemImageUnvoted.trim();
}
public String getItemImageVoted() {
return itemImageVoted;
}
public void setItemImageVoted(String itemImageVoted) {
this.itemImageVoted = itemImageVoted == null ? null : itemImageVoted.trim();
}
public Integer getActVoteId() {
return actVoteId;
}
public void setActVoteId(Integer actVoteId) {
this.actVoteId = actVoteId;
}
public Integer getCreateTime() {
return createTime;
}
public void setCreateTime(Integer createTime) {
this.createTime = createTime;
}
public Byte getStatus() {
return status;
}
public void setStatus(Byte status) {
this.status = status;
}
}
\ No newline at end of file
... ...
package com.yoho.activity.dal.model;
import com.yoho.queue.dal.model.BaseModel;
public class ActVoteResult extends BaseModel {
/**
*
*/
private static final long serialVersionUID = 7862407686893295040L;
private Integer id;
private Integer uid;
private Integer voteItemId;
private Integer createTime;
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 Integer getVoteItemId() {
return voteItemId;
}
public void setVoteItemId(Integer voteItemId) {
this.voteItemId = voteItemId;
}
public Integer getCreateTime() {
return createTime;
}
public void setCreateTime(Integer createTime) {
this.createTime = createTime;
}
}
\ 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.yoho.activity.dal.ActNewBrandMapper">
<resultMap id="BaseResultMap" type="com.yoho.activity.dal.model.ActNewBrand">
<id column="id" property="id" jdbcType="INTEGER" />
<result column="box_image" property="boxImage" jdbcType="VARCHAR" />
<result column="brand_info" property="brandInfo" jdbcType="VARCHAR" />
<result column="show_date" property="showDate" jdbcType="VARCHAR" />
<result column="box_num" property="boxNum" jdbcType="VARCHAR" />
<result column="prize" property="prize" jdbcType="TINYINT" />
</resultMap>
<sql id="Base_Column_List">
id, box_image, brand_info, show_date, box_num, prize
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap"
parameterType="java.lang.Integer">
select
<include refid="Base_Column_List" />
from act_new_brand
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from act_new_brand
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.yoho.activity.dal.model.ActNewBrand">
insert into act_new_brand (id, box_image, brand_info,
show_date, box_num, prize
)
values (#{id,jdbcType=INTEGER}, #{boxImage,jdbcType=VARCHAR},
#{brandInfo,jdbcType=VARCHAR},
#{showDate,jdbcType=VARCHAR}, #{boxNum,jdbcType=VARCHAR}, #{prize,jdbcType=TINYINT}
)
</insert>
<insert id="insertSelective" parameterType="com.yoho.activity.dal.model.ActNewBrand">
insert into act_new_brand
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="boxImage != null">
box_image,
</if>
<if test="brandInfo != null">
brand_info,
</if>
<if test="showDate != null">
show_date,
</if>
<if test="boxNum != null">
box_num,
</if>
<if test="prize != null">
prize,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="boxImage != null">
#{boxImage,jdbcType=VARCHAR},
</if>
<if test="brandInfo != null">
#{brandInfo,jdbcType=VARCHAR},
</if>
<if test="showDate != null">
#{showDate,jdbcType=VARCHAR},
</if>
<if test="boxNum != null">
#{boxNum,jdbcType=VARCHAR},
</if>
<if test="prize != null">
#{prize,jdbcType=TINYINT},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.activity.dal.model.ActNewBrand">
update act_new_brand
<set>
<if test="boxImage != null">
box_image = #{boxImage,jdbcType=VARCHAR},
</if>
<if test="brandInfo != null">
brand_info = #{brandInfo,jdbcType=VARCHAR},
</if>
<if test="showDate != null">
show_date = #{showDate,jdbcType=VARCHAR},
</if>
<if test="boxNum != null">
box_num = #{boxNum,jdbcType=VARCHAR},
</if>
<if test="prize != null">
prize = #{prize,jdbcType=TINYINT},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.yoho.activity.dal.model.ActNewBrand">
update act_new_brand
set box_image = #{boxImage,jdbcType=VARCHAR},
brand_info = #{brandInfo,jdbcType=VARCHAR},
show_date = #{showDate,jdbcType=VARCHAR},
box_num = #{boxNum,jdbcType=VARCHAR},
prize = #{prize,jdbcType=TINYINT}
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.yoho.activity.dal.ActNewBrandResultMapper">
<resultMap id="BaseResultMap" type="com.yoho.activity.dal.model.ActNewBrandResult">
<id column="id" property="id" jdbcType="INTEGER" />
<result column="uid" property="uid" jdbcType="INTEGER" />
<result column="box_id" property="boxId" jdbcType="INTEGER" />
<result column="create_time" property="createTime" jdbcType="INTEGER" />
<result column="draw_date" property="drawDate" jdbcType="VARCHAR" />
<result column="prize_type" property="prizeType" jdbcType="TINYINT" />
<result column="prize_info" property="prizeInfo" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List">
id, uid, box_id, create_time, draw_date, prize_type, prize_info
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap"
parameterType="java.lang.Integer">
select
<include refid="Base_Column_List" />
from act_new_brand_result
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from act_new_brand_result
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.yoho.activity.dal.model.ActNewBrandResult">
insert into act_new_brand_result (id, uid, box_id,
create_time, draw_date, prize_type,
prize_info)
values (#{id,jdbcType=INTEGER}, #{uid,jdbcType=INTEGER},
#{boxId,jdbcType=INTEGER},
#{createTime,jdbcType=INTEGER}, #{drawDate,jdbcType=VARCHAR}, #{prizeType,jdbcType=TINYINT},
#{prizeInfo,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.yoho.activity.dal.model.ActNewBrandResult">
insert into act_new_brand_result
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="uid != null">
uid,
</if>
<if test="boxId != null">
box_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="drawDate != null">
draw_date,
</if>
<if test="prizeType != null">
prize_type,
</if>
<if test="prizeInfo != null">
prize_info,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="uid != null">
#{uid,jdbcType=INTEGER},
</if>
<if test="boxId != null">
#{boxId,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=INTEGER},
</if>
<if test="drawDate != null">
#{drawDate,jdbcType=VARCHAR},
</if>
<if test="prizeType != null">
#{prizeType,jdbcType=TINYINT},
</if>
<if test="prizeInfo != null">
#{prizeInfo,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.activity.dal.model.ActNewBrandResult">
update act_new_brand_result
<set>
<if test="uid != null">
uid = #{uid,jdbcType=INTEGER},
</if>
<if test="boxId != null">
box_id = #{boxId,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=INTEGER},
</if>
<if test="drawDate != null">
draw_date = #{drawDate,jdbcType=VARCHAR},
</if>
<if test="prizeType != null">
prize_type = #{prizeType,jdbcType=TINYINT},
</if>
<if test="prizeInfo != null">
prize_info = #{prizeInfo,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.yoho.activity.dal.model.ActNewBrandResult">
update act_new_brand_result
set uid = #{uid,jdbcType=INTEGER},
box_id = #{boxId,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=INTEGER},
draw_date = #{drawDate,jdbcType=VARCHAR},
prize_type = #{prizeType,jdbcType=TINYINT},
prize_info = #{prizeInfo,jdbcType=VARCHAR}
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.yoho.activity.dal.ActVoteInfoMapper">
<resultMap id="BaseResultMap" type="com.yoho.activity.dal.model.ActVoteInfo">
<id column="id" property="id" jdbcType="INTEGER" />
<result column="act_name" property="actName" jdbcType="VARCHAR" />
<result column="max_vote_per_user" property="maxVotePerUser"
jdbcType="INTEGER" />
<result column="create_time" property="createTime" jdbcType="INTEGER" />
<result column="status" property="status" jdbcType="TINYINT" />
</resultMap>
<sql id="Base_Column_List">
id, act_name, max_vote_per_user, create_time, status
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap"
parameterType="java.lang.Integer">
select
<include refid="Base_Column_List" />
from act_vote_info
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from act_vote_info
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.yoho.activity.dal.model.ActVoteInfo">
insert into act_vote_info (id, act_name, max_vote_per_user,
create_time, status)
values (#{id,jdbcType=INTEGER}, #{actName,jdbcType=VARCHAR},
#{maxVotePerUser,jdbcType=INTEGER},
#{createTime,jdbcType=INTEGER}, #{status,jdbcType=TINYINT})
</insert>
<insert id="insertSelective" parameterType="com.yoho.activity.dal.model.ActVoteInfo">
insert into act_vote_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="actName != null">
act_name,
</if>
<if test="maxVotePerUser != null">
max_vote_per_user,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="status != null">
status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="actName != null">
#{actName,jdbcType=VARCHAR},
</if>
<if test="maxVotePerUser != null">
#{maxVotePerUser,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=INTEGER},
</if>
<if test="status != null">
#{status,jdbcType=TINYINT},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.activity.dal.model.ActVoteInfo">
update act_vote_info
<set>
<if test="actName != null">
act_name = #{actName,jdbcType=VARCHAR},
</if>
<if test="maxVotePerUser != null">
max_vote_per_user = #{maxVotePerUser,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=INTEGER},
</if>
<if test="status != null">
status = #{status,jdbcType=TINYINT},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.yoho.activity.dal.model.ActVoteInfo">
update act_vote_info
set act_name = #{actName,jdbcType=VARCHAR},
max_vote_per_user = #{maxVotePerUser,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=INTEGER},
status = #{status,jdbcType=TINYINT}
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.yoho.activity.dal.ActVoteItemMapper">
<resultMap id="BaseResultMap" type="com.yoho.activity.dal.model.ActVoteItem">
<id column="id" property="id" jdbcType="INTEGER" />
<result column="item_name" property="itemName" jdbcType="VARCHAR" />
<result column="item_image_unvoted" property="itemImageUnvoted"
jdbcType="VARCHAR" />
<result column="item_image_voted" property="itemImageVoted"
jdbcType="VARCHAR" />
<result column="act_vote_id" property="actVoteId" jdbcType="INTEGER" />
<result column="create_time" property="createTime" jdbcType="INTEGER" />
<result column="status" property="status" jdbcType="TINYINT" />
</resultMap>
<sql id="Base_Column_List">
id, item_name, item_image_unvoted, item_image_voted, act_vote_id,
create_time, status
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap"
parameterType="java.lang.Integer">
select
<include refid="Base_Column_List" />
from act_vote_item
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from act_vote_item
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.yoho.activity.dal.model.ActVoteItem">
insert into act_vote_item (id, item_name, item_image_unvoted,
item_image_voted, act_vote_id, create_time,
status)
values (#{id,jdbcType=INTEGER}, #{itemName,jdbcType=VARCHAR},
#{itemImageUnvoted,jdbcType=VARCHAR},
#{itemImageVoted,jdbcType=VARCHAR}, #{actVoteId,jdbcType=INTEGER},
#{createTime,jdbcType=INTEGER},
#{status,jdbcType=TINYINT})
</insert>
<insert id="insertSelective" parameterType="com.yoho.activity.dal.model.ActVoteItem">
insert into act_vote_item
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="itemName != null">
item_name,
</if>
<if test="itemImageUnvoted != null">
item_image_unvoted,
</if>
<if test="itemImageVoted != null">
item_image_voted,
</if>
<if test="actVoteId != null">
act_vote_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="status != null">
status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="itemName != null">
#{itemName,jdbcType=VARCHAR},
</if>
<if test="itemImageUnvoted != null">
#{itemImageUnvoted,jdbcType=VARCHAR},
</if>
<if test="itemImageVoted != null">
#{itemImageVoted,jdbcType=VARCHAR},
</if>
<if test="actVoteId != null">
#{actVoteId,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=INTEGER},
</if>
<if test="status != null">
#{status,jdbcType=TINYINT},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.activity.dal.model.ActVoteItem">
update act_vote_item
<set>
<if test="itemName != null">
item_name = #{itemName,jdbcType=VARCHAR},
</if>
<if test="itemImageUnvoted != null">
item_image_unvoted = #{itemImageUnvoted,jdbcType=VARCHAR},
</if>
<if test="itemImageVoted != null">
item_image_voted = #{itemImageVoted,jdbcType=VARCHAR},
</if>
<if test="actVoteId != null">
act_vote_id = #{actVoteId,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=INTEGER},
</if>
<if test="status != null">
status = #{status,jdbcType=TINYINT},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.yoho.activity.dal.model.ActVoteItem">
update act_vote_item
set item_name = #{itemName,jdbcType=VARCHAR},
item_image_unvoted = #{itemImageUnvoted,jdbcType=VARCHAR},
item_image_voted = #{itemImageVoted,jdbcType=VARCHAR},
act_vote_id = #{actVoteId,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=INTEGER},
status = #{status,jdbcType=TINYINT}
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.yoho.activity.dal.ActVoteResultMapper">
<resultMap id="BaseResultMap" type="com.yoho.activity.dal.model.ActVoteResult">
<id column="id" property="id" jdbcType="INTEGER" />
<result column="uid" property="uid" jdbcType="INTEGER" />
<result column="vote_item_id" property="voteItemId" jdbcType="INTEGER" />
<result column="create_time" property="createTime" jdbcType="INTEGER" />
</resultMap>
<sql id="Base_Column_List">
id, uid, vote_item_id, create_time
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap"
parameterType="java.lang.Integer">
select
<include refid="Base_Column_List" />
from act_vote_result
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from act_vote_result
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.yoho.activity.dal.model.ActVoteResult">
insert into act_vote_result (id, uid, vote_item_id,
create_time)
values (#{id,jdbcType=INTEGER}, #{uid,jdbcType=INTEGER},
#{voteItemId,jdbcType=INTEGER},
#{createTime,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.yoho.activity.dal.model.ActVoteResult">
insert into act_vote_result
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="uid != null">
uid,
</if>
<if test="voteItemId != null">
vote_item_id,
</if>
<if test="createTime != null">
create_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="uid != null">
#{uid,jdbcType=INTEGER},
</if>
<if test="voteItemId != null">
#{voteItemId,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.activity.dal.model.ActVoteResult">
update act_vote_result
<set>
<if test="uid != null">
uid = #{uid,jdbcType=INTEGER},
</if>
<if test="voteItemId != null">
vote_item_id = #{voteItemId,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.yoho.activity.dal.model.ActVoteResult">
update act_vote_result
set uid = #{uid,jdbcType=INTEGER},
vote_item_id = #{voteItemId,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
... ...