Commit 8ad40bfb by 徐高华

Merge branch 'feature/xgh/2502朋友圈' into 'master'

非空判断

See merge request !2726
parents 3b4293fc 134dbe7d
...@@ -203,7 +203,10 @@ public class QwMomentPlanAttendServiceImpl implements QwMomentPlanAttendService ...@@ -203,7 +203,10 @@ public class QwMomentPlanAttendServiceImpl implements QwMomentPlanAttendService
Long attendId = dto.getAttendId() ; Long attendId = dto.getAttendId() ;
TabQwMomentPlanAttend attend = this.qwMomentPlanAttendMapper.getById(attendId) ; TabQwMomentPlanAttend attend = this.qwMomentPlanAttendMapper.getById(attendId) ;
TabQwMomentPlan plan = this.qwMomentPlanMapper.getById(planId) ; TabQwMomentPlan plan = this.qwMomentPlanMapper.getById(planId) ;
if(null !=plan && plan.getStatusFlag()==1 && plan.getEndDate().getTime() + 1000*60*60*24*3L > System.currentTimeMillis()) { if(null == plan) {
return ServiceResponse.failure("9999","活动不存在或已删除");
}
if(plan.getStatusFlag()==1 && plan.getEndDate().getTime() + 1000*60*60*24*3L > System.currentTimeMillis()) {
this.qwMomentPlanService.getQwData(attend, 1, plan.getMomentId()); this.qwMomentPlanService.getQwData(attend, 1, plan.getMomentId());
} }
return ServiceResponse.success(dto); return ServiceResponse.success(dto);
......
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