Authored by mingdan.ge

cps四期

package com.yoho.unions.dal;
import com.yoho.unions.dal.model.UnionShareOrdersActivityLogs;
public interface UnionShareOrdersActivityLogsMapper {
int deleteByPrimaryKey(Integer id);
int insert(UnionShareOrdersActivityLogs record);
int insertSelective(UnionShareOrdersActivityLogs record);
UnionShareOrdersActivityLogs selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(UnionShareOrdersActivityLogs record);
int updateByPrimaryKey(UnionShareOrdersActivityLogs record);
}
\ No newline at end of file
... ...
package com.yoho.unions.dal;
import com.yoho.unions.dal.model.UnionShareOrdersActivity;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface UnionShareOrdersActivityMapper {
int deleteByPrimaryKey(Integer id);
int insert(UnionShareOrdersActivity record);
int insertSelective(UnionShareOrdersActivity record);
UnionShareOrdersActivity selectByPrimaryKey(Integer id);
List<UnionShareOrdersActivity> selectByDate(@Param("time") Integer time);
int updateByPrimaryKeySelective(UnionShareOrdersActivity record);
int updateByPrimaryKey(UnionShareOrdersActivity record);
}
\ No newline at end of file
... ...
package com.yoho.unions.dal;
import com.yoho.unions.dal.model.UnionShareOrdersMonth;
public interface UnionShareOrdersMonthMapper {
int deleteByPrimaryKey(Integer id);
int insert(UnionShareOrdersMonth record);
int insertSelective(UnionShareOrdersMonth record);
UnionShareOrdersMonth selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(UnionShareOrdersMonth record);
int updateByPrimaryKey(UnionShareOrdersMonth record);
}
\ No newline at end of file
... ...
... ... @@ -31,6 +31,11 @@ public class UnionShareOrders {
private Integer updateTime;
private Integer activityType;
private Integer activityId;
private BigDecimal extraAmount;
private BigDecimal orderAmount;
public Integer getId() {
return id;
}
... ... @@ -143,6 +148,38 @@ public class UnionShareOrders {
this.amountStr = amountStr;
}
public Integer getActivityType() {
return activityType;
}
public void setActivityType(Integer activityType) {
this.activityType = activityType;
}
public Integer getActivityId() {
return activityId;
}
public void setActivityId(Integer activityId) {
this.activityId = activityId;
}
public BigDecimal getExtraAmount() {
return extraAmount;
}
public void setExtraAmount(BigDecimal extraAmount) {
this.extraAmount = extraAmount;
}
public BigDecimal getOrderAmount() {
return orderAmount;
}
public void setOrderAmount(BigDecimal orderAmount) {
this.orderAmount = orderAmount;
}
@Override
public String toString() {
return "UnionShareOrders{" +
... ... @@ -160,6 +197,10 @@ public class UnionShareOrders {
", amountStr='" + amountStr + '\'' +
", createTime=" + createTime +
", updateTime=" + updateTime +
", activityType=" + activityType +
", activityId=" + activityId +
", extraAmount=" + extraAmount +
", orderAmount=" + orderAmount +
'}';
}
}
\ No newline at end of file
... ...
package com.yoho.unions.dal.model;
import java.math.BigDecimal;
public class UnionShareOrdersActivity {
private Integer id;
private Integer type;
private Integer needSkn;
private Byte isNew;
private BigDecimal amount;
private Integer percent;
private Integer orderNum;
private Integer priority;
private Integer startTime;
private Integer endTime;
private Integer status;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getType() {
return type;
}
public void setType(Integer type) {
this.type = type;
}
public Integer getNeedSkn() {
return needSkn;
}
public void setNeedSkn(Integer needSkn) {
this.needSkn = needSkn;
}
public Byte getIsNew() {
return isNew;
}
public void setIsNew(Byte isNew) {
this.isNew = isNew;
}
public BigDecimal getAmount() {
return amount;
}
public void setAmount(BigDecimal amount) {
this.amount = amount;
}
public Integer getPercent() {
return percent;
}
public void setPercent(Integer percent) {
this.percent = percent;
}
public Integer getOrderNum() {
return orderNum;
}
public void setOrderNum(Integer orderNum) {
this.orderNum = orderNum;
}
public Integer getPriority() {
return priority;
}
public void setPriority(Integer priority) {
this.priority = priority;
}
public Integer getStartTime() {
return startTime;
}
public void setStartTime(Integer startTime) {
this.startTime = startTime;
}
public Integer getEndTime() {
return endTime;
}
public void setEndTime(Integer endTime) {
this.endTime = endTime;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
}
\ No newline at end of file
... ...
package com.yoho.unions.dal.model;
import java.math.BigDecimal;
public class UnionShareOrdersActivityLogs {
private Integer id;
private Integer activityId;
private Integer orderCode;
private BigDecimal amount;
private String orders;
private Integer createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getActivityId() {
return activityId;
}
public void setActivityId(Integer activityId) {
this.activityId = activityId;
}
public Integer getOrderCode() {
return orderCode;
}
public void setOrderCode(Integer orderCode) {
this.orderCode = orderCode;
}
public BigDecimal getAmount() {
return amount;
}
public void setAmount(BigDecimal amount) {
this.amount = amount;
}
public String getOrders() {
return orders;
}
public void setOrders(String orders) {
this.orders = orders == null ? null : orders.trim();
}
public Integer getCreateTime() {
return createTime;
}
public void setCreateTime(Integer createTime) {
this.createTime = createTime;
}
}
\ No newline at end of file
... ...
package com.yoho.unions.dal.model;
import java.math.BigDecimal;
public class UnionShareOrdersMonth {
private Integer id;
private Integer uid;
private Integer type;
private Integer nickname;
private Integer image;
private Integer date;
private BigDecimal amount;
private BigDecimal orderAmount;
private BigDecimal extraAmount;
private Integer orderNum;
private Integer createTime;
private Integer updateTime;
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 getType() {
return type;
}
public void setType(Integer type) {
this.type = type;
}
public Integer getNickname() {
return nickname;
}
public void setNickname(Integer nickname) {
this.nickname = nickname;
}
public Integer getImage() {
return image;
}
public void setImage(Integer image) {
this.image = image;
}
public Integer getDate() {
return date;
}
public void setDate(Integer date) {
this.date = date;
}
public BigDecimal getAmount() {
return amount;
}
public void setAmount(BigDecimal amount) {
this.amount = amount;
}
public BigDecimal getOrderAmount() {
return orderAmount;
}
public void setOrderAmount(BigDecimal orderAmount) {
this.orderAmount = orderAmount;
}
public BigDecimal getExtraAmount() {
return extraAmount;
}
public void setExtraAmount(BigDecimal extraAmount) {
this.extraAmount = extraAmount;
}
public Integer getOrderNum() {
return orderNum;
}
public void setOrderNum(Integer orderNum) {
this.orderNum = orderNum;
}
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;
}
}
\ 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.unions.dal.UnionShareOrdersActivityLogsMapper" >
<resultMap id="BaseResultMap" type="com.yoho.unions.dal.model.UnionShareOrdersActivityLogs" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="activity_id" property="activityId" jdbcType="INTEGER" />
<result column="order_code" property="orderCode" jdbcType="INTEGER" />
<result column="uid" property="uid" jdbcType="INTEGER" />
<result column="amount" property="amount" jdbcType="DECIMAL" />
<result column="orders" property="orders" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="INTEGER" />
</resultMap>
<sql id="Base_Column_List" >
id, activity_id, order_code, uid, amount, orders, create_time
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from union_share_orders_activity_logs
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from union_share_orders_activity_logs
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.yoho.unions.dal.model.UnionShareOrdersActivityLogs" >
insert into union_share_orders_activity_logs (id, activity_id, order_code,
uid, amount, orders,
create_time)
values (#{id,jdbcType=INTEGER}, #{activityId,jdbcType=INTEGER}, #{orderCode,jdbcType=INTEGER},
#{uid,jdbcType=INTEGER}, #{amount,jdbcType=DECIMAL}, #{orders,jdbcType=VARCHAR},
#{createTime,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.yoho.unions.dal.model.UnionShareOrdersActivityLogs" >
insert into union_share_orders_activity_logs
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="activityId != null" >
activity_id,
</if>
<if test="orderCode != null" >
order_code,
</if>
<if test="uid != null" >
uid,
</if>
<if test="amount != null" >
amount,
</if>
<if test="orders != null" >
orders,
</if>
<if test="createTime != null" >
create_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="activityId != null" >
#{activityId,jdbcType=INTEGER},
</if>
<if test="orderCode != null" >
#{orderCode,jdbcType=INTEGER},
</if>
<if test="uid != null" >
#{uid,jdbcType=INTEGER},
</if>
<if test="amount != null" >
#{amount,jdbcType=DECIMAL},
</if>
<if test="orders != null" >
#{orders,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.unions.dal.model.UnionShareOrdersActivityLogs" >
update union_share_orders_activity_logs
<set >
<if test="activityId != null" >
activity_id = #{activityId,jdbcType=INTEGER},
</if>
<if test="orderCode != null" >
order_code = #{orderCode,jdbcType=INTEGER},
</if>
<if test="uid != null" >
uid = #{uid,jdbcType=INTEGER},
</if>
<if test="amount != null" >
amount = #{amount,jdbcType=DECIMAL},
</if>
<if test="orders != null" >
orders = #{orders,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.yoho.unions.dal.model.UnionShareOrdersActivityLogs" >
update union_share_orders_activity_logs
set activity_id = #{activityId,jdbcType=INTEGER},
order_code = #{orderCode,jdbcType=INTEGER},
uid = #{uid,jdbcType=INTEGER},
amount = #{amount,jdbcType=DECIMAL},
orders = #{orders,jdbcType=VARCHAR},
create_time = #{createTime,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.yoho.unions.dal.UnionShareOrdersActivityMapper" >
<resultMap id="BaseResultMap" type="com.yoho.unions.dal.model.UnionShareOrdersActivity" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="type" property="type" jdbcType="INTEGER" />
<result column="need_skn" property="needSkn" jdbcType="INTEGER" />
<result column="is_new" property="isNew" jdbcType="TINYINT" />
<result column="amount" property="amount" jdbcType="DECIMAL" />
<result column="percent" property="percent" jdbcType="INTEGER" />
<result column="order_num" property="orderNum" jdbcType="INTEGER" />
<result column="priority" property="priority" jdbcType="INTEGER" />
<result column="start_time" property="startTime" jdbcType="INTEGER" />
<result column="end_time" property="endTime" jdbcType="INTEGER" />
<result column="status" property="status" jdbcType="INTEGER" />
</resultMap>
<sql id="Base_Column_List" >
id, type, need_skn, is_new, amount, percent, order_num, priority, start_time, end_time,
status
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from union_share_orders_activity
where id = #{id,jdbcType=INTEGER}
</select>
<select id="selectByDate" resultMap="BaseResultMap" >
select
<include refid="Base_Column_List" />
from union_share_orders_activity
where start_time &lt; #{time,jdbcType=INTEGER} and end_time &gt; #{time,jdbcType=INTEGER} and status=1
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from union_share_orders_activity
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.yoho.unions.dal.model.UnionShareOrdersActivity" >
insert into union_share_orders_activity (id, type, need_skn,
is_new, amount, percent,
order_num, priority, start_time,
end_time, status)
values (#{id,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, #{needSkn,jdbcType=INTEGER},
#{isNew,jdbcType=TINYINT}, #{amount,jdbcType=DECIMAL}, #{percent,jdbcType=INTEGER},
#{orderNum,jdbcType=INTEGER}, #{priority,jdbcType=INTEGER}, #{startTime,jdbcType=INTEGER},
#{endTime,jdbcType=INTEGER}, #{status,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.yoho.unions.dal.model.UnionShareOrdersActivity" >
insert into union_share_orders_activity
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="type != null" >
type,
</if>
<if test="needSkn != null" >
need_skn,
</if>
<if test="isNew != null" >
is_new,
</if>
<if test="amount != null" >
amount,
</if>
<if test="percent != null" >
percent,
</if>
<if test="orderNum != null" >
order_num,
</if>
<if test="priority != null" >
priority,
</if>
<if test="startTime != null" >
start_time,
</if>
<if test="endTime != null" >
end_time,
</if>
<if test="status != null" >
status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="type != null" >
#{type,jdbcType=INTEGER},
</if>
<if test="needSkn != null" >
#{needSkn,jdbcType=INTEGER},
</if>
<if test="isNew != null" >
#{isNew,jdbcType=TINYINT},
</if>
<if test="amount != null" >
#{amount,jdbcType=DECIMAL},
</if>
<if test="percent != null" >
#{percent,jdbcType=INTEGER},
</if>
<if test="orderNum != null" >
#{orderNum,jdbcType=INTEGER},
</if>
<if test="priority != null" >
#{priority,jdbcType=INTEGER},
</if>
<if test="startTime != null" >
#{startTime,jdbcType=INTEGER},
</if>
<if test="endTime != null" >
#{endTime,jdbcType=INTEGER},
</if>
<if test="status != null" >
#{status,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.unions.dal.model.UnionShareOrdersActivity" >
update union_share_orders_activity
<set >
<if test="type != null" >
type = #{type,jdbcType=INTEGER},
</if>
<if test="needSkn != null" >
need_skn = #{needSkn,jdbcType=INTEGER},
</if>
<if test="isNew != null" >
is_new = #{isNew,jdbcType=TINYINT},
</if>
<if test="amount != null" >
amount = #{amount,jdbcType=DECIMAL},
</if>
<if test="percent != null" >
percent = #{percent,jdbcType=INTEGER},
</if>
<if test="orderNum != null" >
order_num = #{orderNum,jdbcType=INTEGER},
</if>
<if test="priority != null" >
priority = #{priority,jdbcType=INTEGER},
</if>
<if test="startTime != null" >
start_time = #{startTime,jdbcType=INTEGER},
</if>
<if test="endTime != null" >
end_time = #{endTime,jdbcType=INTEGER},
</if>
<if test="status != null" >
status = #{status,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.yoho.unions.dal.model.UnionShareOrdersActivity" >
update union_share_orders_activity
set type = #{type,jdbcType=INTEGER},
need_skn = #{needSkn,jdbcType=INTEGER},
is_new = #{isNew,jdbcType=TINYINT},
amount = #{amount,jdbcType=DECIMAL},
percent = #{percent,jdbcType=INTEGER},
order_num = #{orderNum,jdbcType=INTEGER},
priority = #{priority,jdbcType=INTEGER},
start_time = #{startTime,jdbcType=INTEGER},
end_time = #{endTime,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
... ...
... ... @@ -13,10 +13,14 @@
<result column="amount" property="amount" jdbcType="DECIMAL" />
<result column="create_time" property="createTime" jdbcType="INTEGER" />
<result column="update_time" property="updateTime" jdbcType="INTEGER" />
<result column="activity_type" property="activityType" jdbcType="INTEGER" />
<result column="activity_id" property="activityId" jdbcType="INTEGER" />
<result column="extra_amount" property="extraAmount" jdbcType="DECIMAL" />
<result column="order_amount" property="orderAmount" jdbcType="DECIMAL" />
</resultMap>
<sql id="Base_Column_List" >
id, order_code,settlement_code, promote_uid, status, last_order_amount, order_time, is_new, amount, create_time,
update_time
update_time,activity_type,activity_id,extra_amount,order_amount
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
... ...
<?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.unions.dal.UnionShareOrdersMonthMapper" >
<resultMap id="BaseResultMap" type="com.yoho.unions.dal.model.UnionShareOrdersMonth" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="uid" property="uid" jdbcType="INTEGER" />
<result column="type" property="type" jdbcType="INTEGER" />
<result column="nickname" property="nickname" jdbcType="INTEGER" />
<result column="image" property="image" jdbcType="INTEGER" />
<result column="date" property="date" jdbcType="INTEGER" />
<result column="amount" property="amount" jdbcType="DECIMAL" />
<result column="order_amount" property="orderAmount" jdbcType="DECIMAL" />
<result column="extra_amount" property="extraAmount" jdbcType="DECIMAL" />
<result column="order_num" property="orderNum" jdbcType="INTEGER" />
<result column="create_time" property="createTime" jdbcType="INTEGER" />
<result column="update_time" property="updateTime" jdbcType="INTEGER" />
</resultMap>
<sql id="Base_Column_List" >
id, uid, type, nickname, image, date, amount, order_amount, extra_amount, order_num,
create_time, update_time
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from union_share_orders_month
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from union_share_orders_month
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.yoho.unions.dal.model.UnionShareOrdersMonth" >
insert into union_share_orders_month (id, uid, type,
nickname, image, date,
amount, order_amount, extra_amount,
order_num, create_time, update_time
)
values (#{id,jdbcType=INTEGER}, #{uid,jdbcType=INTEGER}, #{type,jdbcType=INTEGER},
#{nickname,jdbcType=INTEGER}, #{image,jdbcType=INTEGER}, #{date,jdbcType=INTEGER},
#{amount,jdbcType=DECIMAL}, #{orderAmount,jdbcType=DECIMAL}, #{extraAmount,jdbcType=DECIMAL},
#{orderNum,jdbcType=INTEGER}, #{createTime,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.yoho.unions.dal.model.UnionShareOrdersMonth" >
insert into union_share_orders_month
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="uid != null" >
uid,
</if>
<if test="type != null" >
type,
</if>
<if test="nickname != null" >
nickname,
</if>
<if test="image != null" >
image,
</if>
<if test="date != null" >
date,
</if>
<if test="amount != null" >
amount,
</if>
<if test="orderAmount != null" >
order_amount,
</if>
<if test="extraAmount != null" >
extra_amount,
</if>
<if test="orderNum != null" >
order_num,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="updateTime != null" >
update_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="type != null" >
#{type,jdbcType=INTEGER},
</if>
<if test="nickname != null" >
#{nickname,jdbcType=INTEGER},
</if>
<if test="image != null" >
#{image,jdbcType=INTEGER},
</if>
<if test="date != null" >
#{date,jdbcType=INTEGER},
</if>
<if test="amount != null" >
#{amount,jdbcType=DECIMAL},
</if>
<if test="orderAmount != null" >
#{orderAmount,jdbcType=DECIMAL},
</if>
<if test="extraAmount != null" >
#{extraAmount,jdbcType=DECIMAL},
</if>
<if test="orderNum != null" >
#{orderNum,jdbcType=INTEGER},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=INTEGER},
</if>
<if test="updateTime != null" >
#{updateTime,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.unions.dal.model.UnionShareOrdersMonth" >
update union_share_orders_month
<set >
<if test="uid != null" >
uid = #{uid,jdbcType=INTEGER},
</if>
<if test="type != null" >
type = #{type,jdbcType=INTEGER},
</if>
<if test="nickname != null" >
nickname = #{nickname,jdbcType=INTEGER},
</if>
<if test="image != null" >
image = #{image,jdbcType=INTEGER},
</if>
<if test="date != null" >
date = #{date,jdbcType=INTEGER},
</if>
<if test="amount != null" >
amount = #{amount,jdbcType=DECIMAL},
</if>
<if test="orderAmount != null" >
order_amount = #{orderAmount,jdbcType=DECIMAL},
</if>
<if test="extraAmount != null" >
extra_amount = #{extraAmount,jdbcType=DECIMAL},
</if>
<if test="orderNum != null" >
order_num = #{orderNum,jdbcType=INTEGER},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=INTEGER},
</if>
<if test="updateTime != null" >
update_time = #{updateTime,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.yoho.unions.dal.model.UnionShareOrdersMonth" >
update union_share_orders_month
set uid = #{uid,jdbcType=INTEGER},
type = #{type,jdbcType=INTEGER},
nickname = #{nickname,jdbcType=INTEGER},
image = #{image,jdbcType=INTEGER},
date = #{date,jdbcType=INTEGER},
amount = #{amount,jdbcType=DECIMAL},
order_amount = #{orderAmount,jdbcType=DECIMAL},
extra_amount = #{extraAmount,jdbcType=DECIMAL},
order_num = #{orderNum,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=INTEGER},
update_time = #{updateTime,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
... ...
... ... @@ -67,6 +67,12 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport
UnionShareUserBankMapper unionShareUserBankMapper;
@Autowired
UnionShareUserApplyMapper unionShareUserApplyMapper;
@Autowired
UnionShareOrdersActivityLogsMapper unionShareOrdersActivityLogsMapper;
@Autowired
UnionShareOrdersActivityMapper unionShareOrdersActivityMapper;
@Autowired
UnionShareOrdersMonthMapper unionShareOrdersMonthMapper;
@Resource
RedisValueCache redisValueCache;
@Resource( name = "yhProducer")
... ... @@ -980,6 +986,18 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport
clearShareOrderRedis(bo.getPromoteUid());
}
//todo 查询进行中的活动
private void queryActivity() {
List<UnionShareOrdersActivity> activities=unionShareOrdersActivityMapper.selectByDate(DateUtil.getCurrentTimeSecond());
}
//todo 查询已参加的活动
private void queryUidActivity() {
List<UnionShareOrdersActivity> activities=unionShareOrdersActivityMapper.selectByDate(DateUtil.getCurrentTimeSecond());
}
//todo 查询可参加的活动
//todo 判断是否达标
//todo 汇总月统计数据
/**
* 保存订单信息
* */
... ...
... ... @@ -77,6 +77,9 @@ datasources:
- com.yoho.unions.dal.UnionShareUserMapper
- com.yoho.unions.dal.UnionShareUserBankMapper
- com.yoho.unions.dal.UnionShareUserApplyMapper
- com.yoho.unions.dal.UnionShareOrdersActivityLogsMapper
- com.yoho.unions.dal.UnionShareOrdersActivityMapper
- com.yoho.unions.dal.unionShareOrdersMonthMapper
bigdata_yh_unions:
... ...
... ... @@ -69,6 +69,9 @@ datasources:
- com.yoho.unions.dal.UnionShareUserMapper
- com.yoho.unions.dal.UnionShareUserBankMapper
- com.yoho.unions.dal.UnionShareUserApplyMapper
- com.yoho.unions.dal.UnionShareOrdersActivityLogsMapper
- com.yoho.unions.dal.UnionShareOrdersActivityMapper
- com.yoho.unions.dal.unionShareOrdersMonthMapper
bigdata_yh_unions:
servers:
... ...