Commit 8967d652 by jinxin

有效状态

parent 362ed14c
......@@ -236,6 +236,16 @@ public class AppOrderPageDTO implements Serializable {
}
public Integer getEffectiveState() {
Date now = new Date();
if(this.getOrderStatus() == 2){
if (now.before(this.beginTime)){
effectiveState = 1;
}else if (now.before(this.endTime)){
effectiveState = 2;
}else if (now.after(this.endTime)){
effectiveState = 3;
}
}
return effectiveState;
}
......
......@@ -298,6 +298,7 @@ public class AppOrderApiServiceImpl implements AppOrderApiService {
qdto.setPageSize(Integer.MAX_VALUE);
Page<AppOrderPageDTO> page = getAppOrderPage(qdto).getResult();
List<AppOrderPageDTO> list = page.getResult();
logger.info("查询的付费应用订单列表:{}",JSON.toJSONString(list));
Date now = new Date();
Date endTime = DateUtil.addDay(now, -1);
boolean flag = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment