업무지원(통합조회,개별총정보) 관련 파일 추가

main
이범준 1 year ago
parent 2940e63a7e
commit 0acc774a06

@ -0,0 +1,14 @@
package cokr.xit.fims.sprt;
import cokr.xit.foundation.AbstractEntity;
import lombok.Getter;
import lombok.Setter;
/**
* @author leebj
*/
@Getter
@Setter
public class Sprt extends AbstractEntity {
}

@ -0,0 +1,23 @@
package cokr.xit.fims.sprt.dao;
import java.util.List;
import org.egovframe.rte.psl.dataaccess.mapper.Mapper;
import cokr.xit.fims.sprt.service.SprtQuery;
import cokr.xit.foundation.component.AbstractMapper;
import cokr.xit.foundation.data.DataObject;
/** DAO
* @author leebj
*/
@Mapper("sprt01Mapper")
public interface Sprt01Mapper extends AbstractMapper {
/** .
* @param crdnId
* @return
*/
DataObject getTotalDataInfo(String crdnId);
}

@ -0,0 +1,18 @@
package cokr.xit.fims.sprt.service;
import cokr.xit.foundation.data.DataObject;
/** .
* <ul><li>{@link #getTotalDataInfo(SprtQuery) }</li>
* </ul>
* @author leebj
*/
public interface Sprt01Service {
/** .
* @param crdnId
* @return
*/
DataObject getTotalDataInfo(String crdnId);
}

@ -0,0 +1,19 @@
package cokr.xit.fims.sprt.service;
import cokr.xit.foundation.component.QueryRequest;
public class SprtQuery extends QueryRequest {
private static final long serialVersionUID = 1L;
private String crdnId;
public String getCrdnId() {
return ifEmpty(crdnId, () -> null);
}
public <T extends SprtQuery> T setCrdnId(String crdnId) {
this.crdnId = crdnId;
return self();
}
}

@ -0,0 +1,28 @@
package cokr.xit.fims.sprt.service.bean;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import cokr.xit.fims.sprt.dao.Sprt01Mapper;
import cokr.xit.foundation.AbstractComponent;
import cokr.xit.foundation.data.DataObject;
/** Bean
* @author leebj
*/
@Component("sprt01Bean")
public class Sprt01Bean extends AbstractComponent {
@Resource(name = "sprt01Mapper")
private Sprt01Mapper sprt01Mapper;
/** .
* @param crdnId
* @return
*/
public DataObject getTotalDataInfo(String crdnId) {
return sprt01Mapper.getTotalDataInfo(crdnId);
}
}

@ -0,0 +1,25 @@
package cokr.xit.fims.sprt.service.bean;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import cokr.xit.fims.sprt.service.Sprt01Service;
import cokr.xit.foundation.component.AbstractServiceBean;
import cokr.xit.foundation.data.DataObject;
/**
* @author leebj
*/
@Service("sprt01Service")
public class Sprt01ServiceBean extends AbstractServiceBean implements Sprt01Service {
/** 업무지원 Bean */
@Resource(name="sprt01Bean")
protected Sprt01Bean sprt01Bean;
@Override
public DataObject getTotalDataInfo(String crdnId) {
return sprt01Bean.getTotalDataInfo(crdnId);
}
}

@ -0,0 +1,49 @@
package cokr.xit.fims.sprt.web;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import cokr.xit.fims.sprt.service.Sprt01Service;
import cokr.xit.base.code.CommonCode;
import cokr.xit.base.web.ApplicationController;
@RequestMapping(name="업무지원", value="/sprt/sprt01")
public class AbstractSprt01Controller extends ApplicationController {
@Resource(name="sprt01Service")
private Sprt01Service sprt01Service;
/** .
* @return fims/sprt/sprt01010-main
*/
@RequestMapping(name="통합조회 메인", value="/010/main.do")
public ModelAndView integratedInquireMain() {
ModelAndView mav = new ModelAndView();
mav.setViewName("fims/sprt/sprt01010-main");
mav.addObject("pageSuffix", "sprt01010-main");
return mav;
}
/** .
* @param crdnId
* @return fims/sprt/sprt01020-info
* <pre><code> {
* "totalDataInfo": {...}
* }</code></pre>
*/
public ModelAndView getTotalDataInfo(String crdnId) {
ModelAndView mav = new ModelAndView("fims/sprt/sprt01020-info");
if (!isEmpty(crdnId)) {
mav.addObject("totalDataInfo", sprt01Service.getTotalDataInfo(crdnId));
}
return mav;
}
}

@ -0,0 +1,33 @@
package cokr.xit.fims.sprt.web;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
/** .<br />
* { }/sprt/sprt01 .
* @author leebj
*/
@Controller
public class Sprt01Controller extends AbstractSprt01Controller {
@RequestMapping(name="주정차과태료업무 개별총정보 조회", value="/020/PVS/info.do")
public ModelAndView getPvsTotalDataInfo(String crdnId) {
return getTotalDataInfo(crdnId);
}
@RequestMapping(name="전용차로과태료업무 개별총정보 조회", value="/020/BPV/info.do")
public ModelAndView getBpvTotalDataInfo(String crdnId) {
return getTotalDataInfo(crdnId);
}
@RequestMapping(name="장애인과태료업무 개별총정보 조회", value="/020/DPV/info.do")
public ModelAndView getDpvTotalDataInfo(String crdnId) {
return getTotalDataInfo(crdnId);
}
@RequestMapping(name="전기차과태료업무 개별총정보 조회", value="/020/ECA/info.do")
public ModelAndView getEcaTotalDataInfo(String crdnId) {
return getTotalDataInfo(crdnId);
}
}

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cokr.xit.fims.sprt.dao.Sprt01Mapper">
<select id="getTotalDataInfo" parameterType="String" resultType="dataobject">
/* 개별총정보 조회(sprt01Mapper.getTotalDataList) */
SELECT *
FROM TB_CRDN
WHERE CRDN_ID = #{crdnId}
</select>
</mapper>

@ -0,0 +1,2 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>

@ -0,0 +1,2 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
Loading…
Cancel
Save