| | |
| | | comPbActivityDO.setEnrollTimeBegin(now); |
| | | comPbActivityDO.setCreateAt(now); |
| | | |
| | | //默认设置为“进行中” |
| | | comPbActivityDO.setStatus(4); |
| | | Integer status = partyBuildingActivityVO.getStatus(); |
| | | if(status!=null && status.intValue()==2) {//点击'保存并发布' 按钮 |
| | | //默认设置为“进行中” |
| | | comPbActivityDO.setStatus(4); |
| | | } |
| | | |
| | | int insert = comBpActivityDAO.insert(comPbActivityDO); |
| | | if (insert > 0) { |
| | |
| | | comPbActivityMemberDO.setMemberId(comPbMemberDOId); |
| | | comPbActivityMemberDO.setActivityId(comPbActivityDO1Id); |
| | | comPbActivityMemberDO.setCreateAt(new Date()); |
| | | comPbActivityMemberDO.setUserId(comPbActivityDTO.getCreateBy()); |
| | | comPbActivityMemberDO.setName(comPbMemberDO.getName()); |
| | | comPbActivityMemberDO.setPhotoPath(comPbMemberDO.getPhotoPath()); |
| | | comPbActivityMemberDAO.insert(comPbActivityMemberDO); |
| | | return R.ok(); |
| | | } |