Merge remote-tracking branch 'origin/main'

dev
gitea-관리자 1 year ago
commit 6804e7e3e3

@ -325,87 +325,71 @@ public class CmmEnsFileService extends EgovAbstractServiceImpl implements ICmmEn
} }
private String jsonCn1(FmcInfExcel dto){ private String jsonCn1(FmcInfExcel dto){
AtomicReference<String> jsonCn = new AtomicReference<>(""" String jsonCn = "{"
{ + "\"details\": ["
"details": [ + "{"
{ + "\"title\": \"서울시설공단 고지서\","
"title": "서울시설공단 고지서", + "\"item_type\": \"SUBJECT_TEXT\","
"item_type": "SUBJECT_TEXT", + "\"elements\": ["
"elements": [] + "\"\""
}, + "]"
{ + "},"
"title": "내용", + "{"
"item_type": "KEY_VALUE", + "\"title\": \"내용\","
"properties": { + "\"item_type\": \"KEY_VALUE\","
}, + "\"properties\": {"
"elements": [ + "},"
{ + "\"elements\": ["
"key": "수취인", + "{"
"value": \"""" + Checks.checkVal(dto.getRecevNm(), "") + """ + "\"key\": \"수취인\","
", + "\"value\": \""+ Checks.checkVal(dto.getRecevNm(),"") +"\","
"level": 1 + "\"level\": 1"
}, + "},"
{ + "{"
"key": "고지서", + "\"key\": \"고지서\","
"value": \"""" + Checks.checkVal(dto.getGojiNm(), "") + "(" + Checks.checkVal( + "\"value\": \""+ Checks.checkVal(dto.getGojiNm(),"") +"("+ Checks.checkVal(dto.getGojiGubun(),"") +")"+"\","
dto.getGojiGubun(), "") + ")" + """ + "\"level\": 1"
", + "},"
"level": 1 + "{"
}, + "\"key\": \"고지서 상세\","
{ + "\"value\": \""+ Checks.checkVal(dto.getGojiDetailNm(),"") +"\","
"key": "고지서 상세", + "\"level\": 1"
"value": \"""" + Checks.checkVal(dto.getGojiDetailNm(), "") + """ + "},"
", + "{"
"level": 1 + "\"key\": \"납세번호\","
}, + "\"value\": \""+ Checks.checkVal(dto.getTaxNum1(),"") + Checks.checkVal(dto.getTaxNum2(),"") + Checks.checkVal(dto.getTaxNum3(),"") + Checks.checkVal(dto.getTaxNum4(),"") +"\","
{ + "\"level\": 1"
"key": "납세번호", + "},"
"value": \"""" + Checks.checkVal(dto.getTaxNum1(), "") + Checks.checkVal( + "{"
dto.getTaxNum2(), "") + Checks.checkVal(dto.getTaxNum3(), "") + Checks.checkVal( + "\"key\": \""+ Checks.checkVal(dto.getNapAmountNm1(),"") +"\","
dto.getTaxNum4(), "") + """ + "\"value\": \""+ Checks.checkVal(dto.getNapAmount1(),"") +"\","
", + "\"level\": 1"
"level": 1 + "},"
}, + "{"
{ + "\"key\": \""+ Checks.checkVal(dto.getNapGubun1(),"") +"\","
"key": \"""" + Checks.checkVal(dto.getNapAmountNm1(), "") + """ + "\"value\": \""+ Checks.checkVal(formatDate(dto.getNapPd().substring(0,8), "-"),"") +"까지\","
", + "\"level\": 1"
"value": \"""" + Checks.checkVal(dto.getNapAmountNm1(), "") + """ + "}"
", + "]"
"level": 1 + "},"
}, + "{"
{ + "\"title\": \"세외수입 납부방법 안내\","
"key": \"""" + Checks.checkVal(dto.getNapGubun1(), "") + """ + "\"item_type\": \"KEY_VALUE\","
", + "\"elements\": ["
"value": \"""" + Checks.checkVal( + "{"
formatDate(dto.getNapPd().substring(0, 8), "-"), "") + """ + "\"key\": \"가상계좌\\\\n납부\","
", + "\"value\": \"고지서에 기재된 가상계좌로 이체,납부\\\\n고지서 금액과 일치해야 이체 가능\","
"level": 1 + "\"level\": 1"
} + "},"
] + "{"
}, + "\"key\": \"모바일\\\\n어플\","
{ + "\"value\": \"앱,PLAY스토어에서 (서울시 세금납부) 앱 설치\\\\n계좌이체(전 은행), 신용카드, 간편결제 납부\","
"title": "세외수입 납부방법 안내", + "\"level\": 1"
"item_type": "KEY_VALUE", + "}"
"elements": [ + "]"
{ + "}"
"key": " + "]"
", +"}";
"value": " , return jsonCn;
",
"level": 1
},
{
"key": "
",
"value": ",PLAY ( )
( ), , ",
"level": 1
}
]
}
]
}
""");
return jsonCn.get();
} }
} }

Loading…
Cancel
Save