발송결과 테스트요청 내용 수정 http://pms.iten.co.kr:9999/issues/4891
This commit is contained in:
parent
26467e0716
commit
c6cf4834a9
@ -694,7 +694,7 @@ public class MjonMsgSentServiceImpl extends EgovAbstractServiceImpl implements
|
||||
}
|
||||
|
||||
// 파일 다운로드 응답 설정
|
||||
String fileName ="발송관리_엑셀_리스트"; // 저장 파일명
|
||||
String fileName ="발송결과_리스트"; // 저장 파일명
|
||||
SimpleDateFormat mSimpleDateFormat = new SimpleDateFormat ( "yyyyMMdd_HHmmss", Locale.KOREA );
|
||||
Date currentTime = new Date ();
|
||||
String mTime = mSimpleDateFormat.format ( currentTime );
|
||||
|
||||
@ -278,7 +278,7 @@ function fn_setPlaceholder(msg){
|
||||
("0" + now.getHours()).slice(-2) +
|
||||
("0" + now.getMinutes()).slice(-2) +
|
||||
("0" + now.getSeconds()).slice(-2);
|
||||
|
||||
|
||||
// 파일명 생성
|
||||
let fileName = "filtered_data_" + timestamp + ".xlsx";
|
||||
|
||||
@ -290,11 +290,28 @@ function fn_setPlaceholder(msg){
|
||||
return;
|
||||
}
|
||||
|
||||
console.log("엑셀 다운로드 - 필터링된 데이터:", filteredData);
|
||||
// console.log("엑셀 다운로드 - 필터링된 데이터:", filteredData);
|
||||
|
||||
// 필터링된 데이터만 다운로드 (Tabulator의 기존 데이터를 변경하지 않음)
|
||||
|
||||
|
||||
// 컬럼명(타이틀) 설정 (배열 형태로 변환)
|
||||
let headers = [["휴대폰", "상세결과"]];
|
||||
|
||||
console.log(filteredData); // 데이터 확인
|
||||
console.log(filteredData[0]); // 첫 번째 데이터 확인 (객체 키값 체크)
|
||||
|
||||
|
||||
// 필터링된 데이터 배열로 변환
|
||||
let formattedData = filteredData.map(item => [item.phone, item.result]);
|
||||
|
||||
|
||||
|
||||
// 타이틀 행 추가
|
||||
formattedData.unshift(headers[0]);
|
||||
|
||||
// 엑셀 생성
|
||||
let workbook = XLSX.utils.book_new();
|
||||
let worksheet = XLSX.utils.json_to_sheet(filteredData);
|
||||
let worksheet = XLSX.utils.aoa_to_sheet(formattedData); // `aoa_to_sheet` 사용
|
||||
|
||||
XLSX.utils.book_append_sheet(workbook, worksheet, "Filtered Data");
|
||||
|
||||
@ -964,7 +981,7 @@ function getAddrGroupListShow(jsonList) {
|
||||
<select id="addrGrpIdInfo" name="addrGrpIdInfo">
|
||||
</select>
|
||||
<label for="" class="label">그룹명 입력</label>
|
||||
<input type="text" id="grpNm" placeholder="새 그룹명을 입력해주세요." onfocus="this.placeholder=''" onblur="this.placeholder='새 그룹명을 입력해주세요.'" class="inputLight">
|
||||
<input type="text" id="grpNm" placeholder="새 그룹명을 입력해주세요." maxlength="24" onfocus="this.placeholder=''" onblur="this.placeholder='새 그룹명을 입력해주세요.'" class="inputLight">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user