Authored by ping

update

... ... @@ -2,7 +2,12 @@ package com.yoho.activity.common.bo;
public class OrderShareBO extends OrderShareActivityBO{
/**
*
*/
private static final long serialVersionUID = 8541063617667341354L;
private int flag = 1;
private String returnMsg;
// private boolean hasShared=false;//是否已分享
// private boolean canBeShared=false;//是否可以分享
// private Integer userShareHistoryId;//分享id
... ... @@ -10,6 +15,14 @@ public class OrderShareBO extends OrderShareActivityBO{
// private Integer sharedNum;//已分享次数
// private Integer activityStatus;//1-活动未开始 2-活动中 3-活动已结束 4-活动不存在
public String getReturnMsg() {
return returnMsg;
}
public void setReturnMsg(String returnMsg) {
this.returnMsg = returnMsg;
}
private String shareUrl;
public int getFlag() {
return flag;
... ...
... ... @@ -125,6 +125,7 @@ public class OrderShareActivityServiceImpl implements IOrderShareActivityService
// 活动不存在
log.warn("there is not activity,params is ordercode={},uid={},flag=2", ordercode, uid);
bo.setFlag(2);
bo.setReturnMsg("不存在分享活动");
return bo;
}
bo.setH5Title(activitydb.getH5Title());
... ... @@ -133,6 +134,7 @@ public class OrderShareActivityServiceImpl implements IOrderShareActivityService
// 不显示APP内弹框,即活动作废
log.warn("activity is disabled,params is ordercode={},uid={},flag=6",ordercode,uid);
bo.setFlag(6);
bo.setReturnMsg("不显示APP内弹框");
return bo;
}
... ... @@ -142,12 +144,14 @@ public class OrderShareActivityServiceImpl implements IOrderShareActivityService
// 活动已结束
log.warn("activity is over ,params is ordercode={},uid={},flag=3", ordercode, uid);
bo.setFlag(3);
bo.setReturnMsg("本次活动已经结束");
return bo;
}
if (activitydb.getBeginTime() > nowtime) {
// 活动未开始
log.warn("activity could not started ,params is ordercode={},uid={},flag=4", ordercode, uid);
bo.setFlag(4);
bo.setReturnMsg("本次活动未开始");
return bo;
}
... ... @@ -199,6 +203,7 @@ public class OrderShareActivityServiceImpl implements IOrderShareActivityService
// 已达到分享最大数
log.warn("share has been finished ,params is ordercode={},uid={},flag=5", ordercode, uid);
bo.setFlag(5);
bo.setReturnMsg("优惠券已经领光了");
return bo;
}
}
... ...