@Event(on = "CREATE_PROJECT_USER", point = Event.Point.AFTER)
public void afterCreateProjectUser(EventContext ctx) throws Exception {
//
ProjectUser projectUser = (ProjectUser) ctx.getArguments()[0];
ProjectCategory category = projectCategoryDao.selectByCode("people");
ProjectTemplate projectTemplate = getProjectTemplate(category.getCode());
//
String projectCode = String.valueOf(10000000 + projectUser.getId());
//
Date now = new Date();
Project project = new Project();
project.setCode(projectCode);
project.setTitle(projectUser.getNickname());
project.setDescription(projectTemplate.getDescription());
project.setCategoryId(category.getId());
project.setCreatedAt(now);
project.setModifiedAt(now);
project.setCreatedById(projectUser.getId());
project.setModifiedById(projectUser.getId());
//