| | |
| | | import com.google.gson.Gson; |
| | | import kr.wisestone.owl.domain.enumType.FileType; |
| | | import kr.wisestone.owl.type.LikeType; |
| | | import kr.wisestone.owl.vo.DepartmentVo; |
| | | import kr.wisestone.owl.vo.UserVo; |
| | | import org.apache.commons.codec.binary.*; |
| | | import org.apache.commons.codec.binary.Base64; |
| | |
| | | return stringBuilder.toString(); |
| | | } |
| | | |
| | | // DepartmentVos 에서 부서 정보를 추출해서 문자열로 리턴해준다. - 주로 엑셀 download 에서 사용된다. |
| | | public static String convertDepartmentVosToString(List<DepartmentVo> departmentVos) { |
| | | StringBuilder stringBuilder = new StringBuilder(); |
| | | int count = 0; |
| | | |
| | | for (DepartmentVo departmentVo : departmentVos) { |
| | | if (count > 0) { |
| | | stringBuilder.append("\n"); |
| | | } |
| | | |
| | | stringBuilder.append(departmentVo.getDepartmentName()); |
| | | count++; |
| | | } |
| | | return stringBuilder.toString(); |
| | | } |
| | | |
| | | // 검색 일자를 구한다. |
| | | public static List<Date> findSearchPeriod(String searchPeriod) { |
| | | List<Date> searchDates = Lists.newArrayList(); |