2022-11-25 11:34 이름에 , 들어가서 경우 오류 처리
This commit is contained in:
parent
2777f47d31
commit
803246c0e3
@ -3,7 +3,6 @@ package kcc.kccadr.adjPgrMgr.apm.web;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
@ -27,7 +26,6 @@ import org.springframework.web.bind.annotation.ModelAttribute;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||
@ -353,6 +351,7 @@ public class ApmController {
|
||||
@RequestMapping(value = "apmTab0.do")
|
||||
public String apmTab0(@ModelAttribute("info") PgrCmmVO cmmVO, ModelMap model) throws Exception {
|
||||
|
||||
try {
|
||||
LoginVO loginVO = EgovUserDetailsHelper.isAuthenticated() ? (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser() : null;
|
||||
String userId = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getUniqId());
|
||||
|
||||
@ -392,8 +391,17 @@ public class ApmController {
|
||||
List<PgrCmmVO> rpplRepondList = new ArrayList<PgrCmmVO>();
|
||||
for(int i=0; i<resPonDentNm.length; i++ ) {
|
||||
|
||||
String respNm = resPonDentNm[i]; //피신청인 이름
|
||||
String respId = resPonDentId[i]; //피신청인 ID
|
||||
String respNm = ""; //피신청인 이름
|
||||
String respId = ""; //피신청인 ID
|
||||
|
||||
//이름에 ,를 넣는경우 발생하는 오류를 막기위한 예외처리 추가
|
||||
try {
|
||||
respNm = resPonDentNm[i]; //피신청인 이름
|
||||
respId = resPonDentId[i]; //피신청인 ID
|
||||
}catch(Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
|
||||
|
||||
PgrCmmVO temp = new PgrCmmVO();
|
||||
temp.setResPonDentNm(respNm);
|
||||
@ -516,6 +524,10 @@ public class ApmController {
|
||||
List<AdjReqMgrVO> person = adjReqMgrService.selectAdjstReqMgrPersonList(adjReqMgrVO);
|
||||
decryptInfomation(person ,null);
|
||||
model.addAttribute("person", person);
|
||||
}catch(Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
|
||||
|
||||
return "/kccadr/adjPgrMgr/apm/apmTab0";
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user