신청인 정보 불러오기 기능 추가
This commit is contained in:
parent
2c5da32c9b
commit
86afcbacad
@ -39,4 +39,5 @@ public interface MediationDao {
|
|||||||
public Map<String, Object> selectCaseComment(Map<String,Object> paramMap);
|
public Map<String, Object> selectCaseComment(Map<String,Object> paramMap);
|
||||||
public void asSignUpdate(Map<String,Object> paramMap);
|
public void asSignUpdate(Map<String,Object> paramMap);
|
||||||
public void deptConfirmUpdate(Map<String,Object> paramMap);
|
public void deptConfirmUpdate(Map<String,Object> paramMap);
|
||||||
|
public Map<String, Object> selectApplInfo(Map<String,Object> paramMap);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -188,4 +188,9 @@ public class MediationDaoImpl implements MediationDao {
|
|||||||
public void deptConfirmUpdate(Map<String, Object> paramMap) {
|
public void deptConfirmUpdate(Map<String, Object> paramMap) {
|
||||||
sqlSession.update("mediation.deptConfirmUpdate", paramMap);
|
sqlSession.update("mediation.deptConfirmUpdate", paramMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map<String, Object> selectApplInfo(Map<String, Object> paramMap) {
|
||||||
|
return sqlSession.selectOne("mediation.selectApplInfo", paramMap);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -147,9 +147,13 @@ public class MediationService {
|
|||||||
|
|
||||||
public void asSignUpdate(Map<String, Object> paramMap) {
|
public void asSignUpdate(Map<String, Object> paramMap) {
|
||||||
this.dao.asSignUpdate(paramMap);
|
this.dao.asSignUpdate(paramMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void deptConfirmUpdate(Map<String, Object> paramMap) {
|
public void deptConfirmUpdate(Map<String, Object> paramMap) {
|
||||||
this.dao.deptConfirmUpdate(paramMap);
|
this.dao.deptConfirmUpdate(paramMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Map<String,Object> selectApplInfo(Map<String, Object> paramMap){
|
||||||
|
return dao.selectApplInfo(paramMap);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4973,5 +4973,38 @@ public class WebMediationController {
|
|||||||
mavjson.addAllObjects(params);
|
mavjson.addAllObjects(params);
|
||||||
return mavjson;
|
return mavjson;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@RequestMapping(value = "/web/user/mediation/case/selectApplInfoAjax.do")
|
||||||
|
public ModelAndView selectApplInfoAjax(ModelMap map
|
||||||
|
, @RequestParam Map<String,Object> paramMap) throws Exception {
|
||||||
|
|
||||||
|
ModelAndView modelAndView = new ModelAndView();
|
||||||
|
modelAndView.setViewName("jsonView");
|
||||||
|
|
||||||
|
String rceptNo = (String) paramMap.get("rceptNo");
|
||||||
|
|
||||||
|
System.out.println(rceptNo);
|
||||||
|
|
||||||
|
Map<String, Object> result = service.selectApplInfo(paramMap);
|
||||||
|
|
||||||
|
// 휴대폰 번호 분리
|
||||||
|
String tel = (String) result.get("tel");
|
||||||
|
String tellNum[] = tel.split("-");
|
||||||
|
result.put("rcePh1", tellNum[0]);
|
||||||
|
result.put("rcePh2", tellNum[1]);
|
||||||
|
result.put("rcePh3", tellNum[2]);
|
||||||
|
|
||||||
|
// 팩스번호 분리
|
||||||
|
String fax = (String) result.get("fax");
|
||||||
|
String faxNum[] = fax.split("-");
|
||||||
|
result.put("rceFax1", faxNum[0]);
|
||||||
|
result.put("rceFax2", faxNum[1]);
|
||||||
|
result.put("rceFax3", faxNum[2]);
|
||||||
|
|
||||||
|
|
||||||
|
modelAndView.addObject("result", result);
|
||||||
|
|
||||||
|
return modelAndView;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1435,4 +1435,31 @@
|
|||||||
TIMHDER_ASSIGN_DT = SYSDATE
|
TIMHDER_ASSIGN_DT = SYSDATE
|
||||||
WHERE RCEPT_NO = #{rceptNo}
|
WHERE RCEPT_NO = #{rceptNo}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
<!-- 신청인 -->
|
||||||
|
<select id="selectApplInfo" parameterType="egovMap" resultType="egovMap">
|
||||||
|
SELECT
|
||||||
|
RCEPT_NO
|
||||||
|
, SEQ_NO
|
||||||
|
, APPLCNT_COMPANY
|
||||||
|
, COMPANY_CEO
|
||||||
|
, COMPANY_GUBUN
|
||||||
|
, ZIP
|
||||||
|
, ADDR1
|
||||||
|
, ADDR2
|
||||||
|
, ROAD_ADDR1
|
||||||
|
, ROAD_ADDR2
|
||||||
|
, TEL
|
||||||
|
, FAX
|
||||||
|
, EMAIL
|
||||||
|
, BIZR_NO
|
||||||
|
, CPR_NO
|
||||||
|
, FILE_NO
|
||||||
|
FROM
|
||||||
|
C_APPLCNT
|
||||||
|
WHERE 1=1
|
||||||
|
AND RCEPT_NO = #{rceptNo}
|
||||||
|
AND ROWNUM =1
|
||||||
|
ORDER BY SEQ_NO
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
@ -222,6 +222,42 @@
|
|||||||
$("#rceAddr2").val("");
|
$("#rceAddr2").val("");
|
||||||
$("#rceRoadAddr1").val("");
|
$("#rceRoadAddr1").val("");
|
||||||
$("#rceRoadAddr2").val("");
|
$("#rceRoadAddr2").val("");
|
||||||
|
}else if(funcType == "applcnt"){
|
||||||
|
var rceptNo = $("#rceptNo").val();
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
url: "/web/user/mediation/case/selectApplInfoAjax.do"
|
||||||
|
, type: 'POST'
|
||||||
|
, data:{ "rceptNo" : rceptNo}
|
||||||
|
, dataType:'json'
|
||||||
|
, async: false
|
||||||
|
, success: function(returnData) {
|
||||||
|
var returnData = returnData.result;
|
||||||
|
|
||||||
|
$("#rcePersonCharge").val(returnData.companyCeo);
|
||||||
|
$("#rceTel").val("");
|
||||||
|
|
||||||
|
// 휴대폰 번호
|
||||||
|
$("#rcePh1").val(returnData.rcePh1);
|
||||||
|
$("#rcePh2").val(returnData.rcePh2);
|
||||||
|
$("#rcePh3").val(returnData.rcePh3);
|
||||||
|
|
||||||
|
// 팩스번호
|
||||||
|
$("#rceFax1").val(returnData.rceFax1);
|
||||||
|
$("#rceFax2").val(returnData.rceFax2);
|
||||||
|
$("#rceFax3").val(returnData.rceFax3);
|
||||||
|
|
||||||
|
$("#rceEmail").val(returnData.email);
|
||||||
|
$("#rceZip").val(returnData.zip);
|
||||||
|
$("#rceAddr1").val();
|
||||||
|
$("#rceAddr2").val();
|
||||||
|
$("#rceRoadAddr1").val(returnData.roadAddr1);
|
||||||
|
$("#rceRoadAddr2").val(returnData.roadAddr2);
|
||||||
|
}
|
||||||
|
, error: function(error) {
|
||||||
|
alert("error");
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1465,7 +1501,10 @@
|
|||||||
<input type="radio" id="62" class="radio" checked="checked" name="62" onclick="managerInsert('nsame');"><label for="62">새로입력</label>
|
<input type="radio" id="62" class="radio" checked="checked" name="62" onclick="managerInsert('nsame');"><label for="62">새로입력</label>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<input type="radio" id="equal" class="radio" name="62" onclick="managerInsert('same');"><label for="equal">대표자와 동일</label>
|
<input type="radio" id="equal" class="radio" name="62" onclick="managerInsert('same');"><label for="equal">대리인과 동일</label>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<input type="radio" id="applcnt" class="radio" name="62" onclick="managerInsert('applcnt');"><label for="applcnt">대표자와 동일</label>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user