Authored by mingdan.ge

cps去掉达人排行榜每月一号8点前关闭效果

... ... @@ -38,7 +38,7 @@
<include refid="Base_Column_List" />
from union_share_orders_month
where date=#{date,jdbcType=INTEGER} and type=2
limit 100
limit 50
</select>
<select id="selectMonthRankList" resultType="com.yoho.service.model.union.bo.UninoShareIncomeBo" >
select amount ,uid,alias,nickname,image,order_num as orderNum
... ...
... ... @@ -1345,6 +1345,7 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport
/**
* 查询活动落地页及用户信息
* return 1-未开始,2-已开始未参加,3-已参加,4-已结束
* */
@Override
public UnionShareOrdersActivityPageBo queryActivityPage(UnionShareOrdersActivityPageReq req){
... ... @@ -1630,11 +1631,11 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport
logger.info("queryRank,req is {}",req);
UninoShareIncomeRankBo result = new UninoShareIncomeRankBo();
//每月一号0-8点排行榜关闭
Calendar now = Calendar.getInstance();
if (now.get(Calendar.DAY_OF_MONTH) == 1 && now.get(Calendar.HOUR_OF_DAY) < 8) {
logger.info("queryRank end");
return result;
}
// Calendar now = Calendar.getInstance();
// if (now.get(Calendar.DAY_OF_MONTH) == 1 && now.get(Calendar.HOUR_OF_DAY) < 8) {
// logger.info("queryRank end");
// return result;
// }
//查询排行榜
int date = Integer.valueOf(DateUtil.getToday("yyyyMMdd"));
... ...