| | |
| | | @Value("${total.statistics.email}") |
| | | private String totalStatisticsEmail; // 프로젝트, 이슈, 사용자수 알림 |
| | | |
| | | @Value("${email.joinEmail}") |
| | | private boolean bJoinEmail; |
| | | |
| | | @Autowired |
| | | private ExcelView excelView; |
| | | |
| | |
| | | userMap.put("registerDate", DateUtil.convertDateToYYYYMMDD(user.getRegisterDate())); |
| | | |
| | | // 회원 가입 알림 메일 전송 |
| | | this.systemEmailService.directEmail(new String[]{user.getAccount()}, EmailType.WORKSPACE_JOIN, userMap, null); |
| | | |
| | | if(bJoinEmail) { |
| | | this.systemEmailService.directEmail(new String[]{user.getAccount()}, EmailType.WORKSPACE_JOIN, userMap, null); |
| | | } |
| | | return user; |
| | | } |
| | | |
| | |
| | | @Transactional(readOnly = true) |
| | | public User getUserSession(Map<String, Object> resJsonData, HttpServletRequest httpServletRequest) { |
| | | User user = this.getUser(this.webAppUtil.getLoginId()); |
| | | UserVo userVo = ConvertUtil.copyProperties(user, UserVo.class, "password","permission"); |
| | | UserVo userVo = ConvertUtil.copyProperties(user, UserVo.class, "password"); |
| | | // user에서 Permission 값을 가져와서 userVo 에 setPermission 함 |
| | | userVo.setPermission(user.getPermission()); |
| | | userVo.setAccount(CommonUtil.decryptAES128(userVo.getAccount())); |
| | | |
| | | UserLevel userLevel = user.getUserLevel(); |
| | |
| | | userMap.put("newUserCount", joinUsers.size()); |
| | | userMap.put("joinUsers", userVos); |
| | | |
| | | String[] sendEmails = this.userJoinStatisticsEmail.replaceAll("\\p{Z}", "").split(","); |
| | | List<String> encryptSendEmail = Lists.newArrayList(); |
| | | if (this.userJoinStatisticsEmail != null && !this.userJoinStatisticsEmail.equals("")) { |
| | | String[] sendEmails = this.userJoinStatisticsEmail.replaceAll("\\p{Z}", "").split(","); |
| | | List<String> encryptSendEmail = Lists.newArrayList(); |
| | | |
| | | for (String sendEmail : sendEmails) { |
| | | encryptSendEmail.add(CommonUtil.encryptAES128(sendEmail)); |
| | | for (String sendEmail : sendEmails) { |
| | | encryptSendEmail.add(CommonUtil.encryptAES128(sendEmail)); |
| | | } |
| | | // 결제 성공 메일 발송 |
| | | this.systemEmailService.directEmail(encryptSendEmail.toArray(new String[encryptSendEmail.size()]), EmailType.USER_JOIN_STATISTICS, userMap, null); |
| | | } |
| | | |
| | | // 결제 성공 메일 발송 |
| | | this.systemEmailService.directEmail(encryptSendEmail.toArray(new String[encryptSendEmail.size()]), EmailType.USER_JOIN_STATISTICS, userMap, null); |
| | | } |
| | | |
| | | // 전체 사용자, 프로젝트 수, 이슈 수를 이메일로 보낸다. |
| | |
| | | userMap.put("projectCount", CommonUtil.getDecimalFormat(projectCount)); |
| | | userMap.put("userCount", CommonUtil.getDecimalFormat(activeUsers.size())); |
| | | |
| | | String[] sendEmails = this.totalStatisticsEmail.replaceAll("\\p{Z}", "").split(","); |
| | | List<String> encryptSendEmail = Lists.newArrayList(); |
| | | if (this.totalStatisticsEmail != null && !this.totalStatisticsEmail.equals("")) { |
| | | String[] sendEmails = this.totalStatisticsEmail.replaceAll("\\p{Z}", "").split(","); |
| | | List<String> encryptSendEmail = Lists.newArrayList(); |
| | | |
| | | for (String sendEmail : sendEmails) { |
| | | encryptSendEmail.add(CommonUtil.encryptAES128(sendEmail)); |
| | | for (String sendEmail : sendEmails) { |
| | | encryptSendEmail.add(CommonUtil.encryptAES128(sendEmail)); |
| | | } |
| | | |
| | | // 결제 성공 메일 발송 |
| | | this.systemEmailService.directEmail(encryptSendEmail.toArray(new String[encryptSendEmail.size()]), EmailType.TOTAL_STATISTICS, userMap, null); |
| | | } |
| | | |
| | | // 결제 성공 메일 발송 |
| | | this.systemEmailService.directEmail(encryptSendEmail.toArray(new String[encryptSendEmail.size()]), EmailType.TOTAL_STATISTICS, userMap, null); |
| | | } |
| | | |
| | | |