민원 원본 조회 쿼리 추가

main
이범준 1 year ago
parent c2c5896a03
commit 3e850f0040

@ -45,4 +45,10 @@ public interface Crdn01Mapper extends AbstractMapper {
*/
int removeCivilComplaint(Crdn crdn);
/** .
* @param req
* @return
*/
DataObject selectCivilComplaintOriginalInfo(CrdnQuery req);
}

@ -5,9 +5,11 @@ import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.dao.Crdn01Mapper;
import cokr.xit.foundation.AbstractComponent;
import cokr.xit.foundation.UserInfo;
import cokr.xit.foundation.data.DataObject;
/** Bean
* @author leebj
@ -26,4 +28,8 @@ public class Crdn01Bean extends AbstractComponent {
return crdn01Mapper.removeCivilComplaint(crdn) == 1 ? true : false;
}
public DataObject getCivilComplaintOriginalInfo(CrdnQuery req) {
return crdn01Mapper.selectCivilComplaintOriginalInfo(req);
}
}

@ -16,11 +16,7 @@ import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.dao.Crdn05Mapper;
import cokr.xit.fims.excl.Excl01;
import cokr.xit.fims.excl.service.bean.Excl01Bean;
import cokr.xit.fims.task.service.bean.BpvServiceBean;
import cokr.xit.fims.task.service.bean.DpvServiceBean;
import cokr.xit.fims.task.service.bean.EcaServiceBean;
import cokr.xit.fims.task.service.bean.PvsServiceBean;
import cokr.xit.fims.task.service.bean.TpvServiceBean;
import cokr.xit.fims.task.service.TaskService;
import cokr.xit.foundation.AbstractComponent;
import cokr.xit.foundation.UserInfo;
@ -44,15 +40,15 @@ public class Crdn05Bean extends AbstractComponent {
private Crdn05Mapper crdn05Mapper;
@Resource(name = "pvsService")
private PvsServiceBean pvsService;
private TaskService pvsService;
@Resource(name = "bpvService")
private BpvServiceBean bpvService;
private TaskService bpvService;
@Resource(name = "dpvService")
private DpvServiceBean dpvService;
private TaskService dpvService;
@Resource(name = "ecaService")
private EcaServiceBean ecaService;
private TaskService ecaService;
@Resource(name = "tpvService")
private TpvServiceBean tpvService;
private TaskService tpvService;
public boolean create(Crdn crdn, List<FileInfo> fileInfoList) {
crdn.setAtchFileCnt(fileInfoList.size());

@ -16,6 +16,7 @@ import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.fims.crdn.service.bean.Crdn01Bean;
import cokr.xit.fims.crdn.service.bean.Crdn01ServiceBean;
import cokr.xit.foundation.UserInfo;
import cokr.xit.foundation.data.DataObject;
/** .<br />
* { }/crdn/crdn01 .
@ -79,11 +80,15 @@ public class Crdn01Controller extends ApplicationController {
* @return fims/crdn/crdn01050-info
*/
@RequestMapping(name="민원내역 원본 보기", value="/050/info.do")
public ModelAndView getCivilComplaintOrgnlInfo() {
ModelAndView mav = new ModelAndView();
mav.setViewName("fims/crdn/crdn01050-info");
public ModelAndView getCivilComplaintOriginalInfo(CrdnQuery req) {
boolean json = jsonResponse();
ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/crdn/crdn01050-info");
mav.addObject("pageName", "crdn01050-info");
DataObject info = crdn01Bean.getCivilComplaintOriginalInfo(req);
mav.addObject("cvlcptInfo", json ? info : toJson(info));
return mav;
}

@ -253,4 +253,18 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
<foreach collection="crdnIDs" item="crdnId" separator=",">#{crdnId}</foreach>
)
</update>
<select id="selectCivilComplaintOriginalInfo" parameterType="cokr.xit.fims.crdn.Crdn" resultType="dataobject">
SELECT C.CRDN_ID <!-- 단속 ID -->
, CC.CVLCPT_RCPT_NO <!-- 민원 접수 번호 -->
, CC.CVLCPT_APLCNT_NM <!-- 민원 신청인 명 -->
, CC.CVLCPT_RCPT_YMD <!-- 민원 접수 일자 -->
, CC.CVLCPT_PRCS_PRNMNT_DT <!-- 민원 처리 예정 일시 -->
, CC.CVLCPT_APLY_CN <!-- 민원 신청 내용 -->
, CC.CVLCPT_APLY_SE_CD <!-- 민원 신청 구분코드 -->
FROM TB_CRDN C
INNER JOIN TB_CRDN_CVLCPT CC ON (C.CRDN_ID = CC.CRDN_ID)
WHERE C.DEL_YN = 'N' AND CC.DEL_YN = 'N'
AND C.CRDN_ID = #{crdnId}
</select>
</mapper>

@ -0,0 +1,3 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
<c:set var="prefixName" scope="request">민원 원본 보기</c:set>
Loading…
Cancel
Save