Authored by tanling

邀请

... ... @@ -20,53 +20,12 @@ public class InviteRecord {
private Integer inviteActivityId;
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Integer getId() {
return id;
}
private Integer status;
private String statusDesc;
private Integer updateTime;
public void setInviterUid(Integer inviterUid) {
this.inviterUid = inviterUid;
}
public Integer getInviteeUid() {
return inviteeUid;
}
public void setInviteeUid(Integer inviteeUid) {
this.inviteeUid = inviteeUid;
}
public Integer getInviterId() {
return inviterId;
}
public Integer getInviteActivityId() {
return inviteActivityId;
}
public void setInviteActivityId(Integer inviteActivityId) {
this.inviteActivityId = inviteActivityId;
}
public void setInviterId(Integer inviterId) {
this.inviterId = inviterId;
}
public Integer getCreateTime() {
return createTime;
}
private Integer createTime;
}
\ No newline at end of file
... ...
... ... @@ -15,7 +15,7 @@
<result column="create_time" property="createTime" jdbcType="INTEGER" />
</resultMap>
<sql id="Base_Column_List" >
id, inviter_uid,inviter_id, invitee_uid, invite_activity_id,status,status_desc,update_time create_time
id, inviter_uid,inviter_id, invitee_uid, invite_activity_id,status,status_desc,update_time,create_time
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
... ...
... ... @@ -54,7 +54,8 @@ public class InviteSettlementItemCreator {
request.setBuyerOrderCode(buyerOrder.getOrderCode());
request.setSellerUid(buyerOrder.getSellerUid());
request.setOrderAmount(buyerOrder.getAmount());
request.setOrderCreateTime(buyerOrder.getCreateTime());
// 卖家商家单子上架时间
request.setOrderCreateTime(sellerOrder.getCreateTime());
request.setSellerOrderPayment(sellerOrder.getPayment());
createInviteSettlementItem(request);
... ... @@ -157,7 +158,6 @@ public class InviteSettlementItemCreator {
}
// 验证是否过了奖励时间
int days = activity.getRewardDays() * 24 * 60 * 60;
log.info("{} checkWithInviteActivity. deadlineTime is {}, orderTime is {}", tag, inviteTime + days, orderCreateTime);
if (inviteTime + days < orderCreateTime) {
log.warn("{} fail, reward end.", tag);
return false;
... ...