|
|
@ -113,7 +113,7 @@ public class ActivityService{ |
|
|
|
* @return 返回报名结果 |
|
|
|
* @return 返回报名结果 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Transactional |
|
|
|
@Transactional |
|
|
|
public JSONResponse<DefaultRes,Void> apply(ApplyActivityForm activityForm){ |
|
|
|
public JSONResponse<DefaultRes,Void> apply(UpdateActivityForm activityForm){ |
|
|
|
// 保存到活动历史记录
|
|
|
|
// 保存到活动历史记录
|
|
|
|
ActivityHistoryEntity activityEntity=new ActivityHistoryEntity(); |
|
|
|
ActivityHistoryEntity activityEntity=new ActivityHistoryEntity(); |
|
|
|
activityEntity.setActivityId(activityForm.getActivityId()); |
|
|
|
activityEntity.setActivityId(activityForm.getActivityId()); |
|
|
@ -127,7 +127,7 @@ public class ActivityService{ |
|
|
|
|
|
|
|
|
|
|
|
// 给求助用户发送留言
|
|
|
|
// 给求助用户发送留言
|
|
|
|
LeaveWordEntity leaveWordEntity=new LeaveWordEntity(); |
|
|
|
LeaveWordEntity leaveWordEntity=new LeaveWordEntity(); |
|
|
|
leaveWordEntity.setType(LeaveWordType.apply.name()); |
|
|
|
leaveWordEntity.setType(activityForm.getActivityStatus().toString()); |
|
|
|
leaveWordEntity.setSourceUserId(activityForm.getUserId()); |
|
|
|
leaveWordEntity.setSourceUserId(activityForm.getUserId()); |
|
|
|
ActivityEntity activity=activityMapper.findOne(activityForm.getActivityId()); |
|
|
|
ActivityEntity activity=activityMapper.findOne(activityForm.getActivityId()); |
|
|
|
if(activity==null){ |
|
|
|
if(activity==null){ |
|
|
|