반려 목록 출력

This commit is contained in:
kubo8
2023-02-13 10:00:45 +09:00
parent c0822021f2
commit a7a6aa6574
2 changed files with 11 additions and 4 deletions

View File

@@ -107,11 +107,12 @@ public class ChannelMgtService {
* @param tmpltListReqDto
* @return
*/
@SuppressWarnings("unchecked")
@SuppressWarnings({ "unchecked", "null" })
public TmpltListResDto tmpltRejectList(TmpltListReqDto tmpltListReqDto) {
RjtTmpltListRes tmpltListRes = new RjtTmpltListRes();
Map<Object, Object> apiResultMap = null;
List<Map<Object,Object>> dataListMap = null;
List<Map<Object,Object>> dataTempListMap = null;
List<Map<Object,Object>> rjtDataListMap = null;
JSONObject jsonObject = new JSONObject();
@@ -132,7 +133,12 @@ public class ChannelMgtService {
Map<Object, Object> dataTempMap = dataListMap.get(0);
if(dataTempMap.get("comments") != null && !"".equals(dataTempMap.get("comments"))) {
rjtDataListMap = (List<Map<Object, Object>>) dataTempMap.get("comments");
dataTempListMap = (List<Map<Object, Object>>) dataTempMap.get("comments");
for(Map<Object, Object> rejectMap : dataTempListMap) {
if("REJ".equals(rejectMap.get("status"))) {
rjtDataListMap.add(rejectMap);
}
}
tmpltListRes.setList(rjtDataListMap);
}
return new TmpltListResDto(ApiResponseCode.SUCCESS, tmpltListRes);