단속자료검사 화면 수정(검사결과, 처리방법 표시)

main
이범준 1 year ago
parent 4e72366371
commit 4e8021b03c

@ -1,5 +1,6 @@
package cokr.xit.fims.crdn.service.bean; package cokr.xit.fims.crdn.service.bean;
import java.util.Iterator;
import java.util.List; import java.util.List;
import javax.annotation.Resource; import javax.annotation.Resource;
@ -40,7 +41,27 @@ public class Crdn06ServiceBean extends AbstractServiceBean implements Crdn06Serv
case "fineReductionData": case "fineReductionData":
return crdn06Mapper.selectFineReductionDataList(req.setOrderBy("CRDN_ID")); return crdn06Mapper.selectFineReductionDataList(req.setOrderBy("CRDN_ID"));
case "photo": case "photo":
return crdn06Mapper.selectPhotoInspectionDataList(req.setOrderBy("CRDN_ID")); List<DataObject> dataObjectList = crdn06Mapper.selectPhotoInspectionDataList(req.setOrderBy("VHRNO, CRDN_PLC"));
Iterator<DataObject> iterator = dataObjectList.iterator();
while(iterator.hasNext()) {
DataObject dataObject = iterator.next();
if(dataObject.number("ATCH_FILE_CNT").intValue() < 1) {
dataObject.set("INSP_RSLT", "사진없음");
dataObject.set("PRCS_MTHD", "해당자료에 사진을 등록하시기 바랍니다.");
} else if(dataObject.number("CRDN_CNT").intValue() > 1) {
dataObject.set("INSP_RSLT", "중복자료");
if(req.getTaskSeCd().equals("PVS")) {
dataObject.set("PRCS_MTHD", "한건을 시간초과로 처리하십시요.");
} else {
dataObject.set("PRCS_MTHD", "한건을 서손으로 처리하십시요.");
}
} else {
dataObject.set("INSP_RSLT", "정상자료");
dataObject.set("PRCS_MTHD", "정상자료");
}
}
return dataObjectList;
case "sameVehicleMain": case "sameVehicleMain":
return crdn06Mapper.selectSameVehicleMainList(req.setOrderBy("VHRNO")); return crdn06Mapper.selectSameVehicleMainList(req.setOrderBy("VHRNO"));
case "sameVehicleSub": case "sameVehicleSub":

@ -245,12 +245,16 @@ AND C.${by} LIKE CONCAT('%', #{term}, '%')
<select id="selectPhotoInspectionDataList" parameterType="map" resultType="dataobject"> <select id="selectPhotoInspectionDataList" parameterType="map" resultType="dataobject">
/* 단속사진 검사 자료 목록 조회(crdn06Mapper.selectPhotoInspectionDataList) */ /* 단속사진 검사 자료 목록 조회(crdn06Mapper.selectPhotoInspectionDataList) */
SELECT ROW_NUMBER() OVER(<include refid="utility.sortBy" />) ROW_NUM, COUNT(*) OVER() TOT_CNT
, QBODY.*
FROM (
SELECT C.CRDN_ID <!-- 단속 ID --> SELECT C.CRDN_ID <!-- 단속 ID -->
, CONCAT(C.CRDN_YMD,'',C.CRDN_TM) AS CRDN_YMD_TM <!-- 단속 일시 --> , CONCAT(C.CRDN_YMD,'',C.CRDN_TM) AS CRDN_YMD_TM <!-- 단속 일시 -->
, C.VHRNO <!-- 차량번호 --> , C.VHRNO <!-- 차량번호 -->
, C.VLTN_NMTM <!-- 위반횟수 --> , COUNT(*) OVER (PARTITION BY C.VHRNO, C.CRDN_PLC) AS CRDN_CNT <!-- 위반건-->
<!-- 검사결과 --> , '' AS INSP_RSLT
<!-- 처리방법 --> , '' AS PRCS_MTHD
, C.CRDN_STDG_NM <!-- 단속 법정동 명 --> , C.CRDN_STDG_NM <!-- 단속 법정동 명 -->
, C.CRDN_PLC , C.CRDN_PLC
, C.ATCH_FILE_CNT <!-- 사진건수 --> , C.ATCH_FILE_CNT <!-- 사진건수 -->
@ -279,7 +283,9 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
<if test="by != null and by != '' and term != null"> <if test="by != null and by != '' and term != null">
</if> </if>
<include refid="utility.orderBy" /> <include refid="utility.orderBy" />
) QBODY
</select> </select>
<select id="selectSameVehicleMainList" parameterType="map" resultType="dataobject"> <select id="selectSameVehicleMainList" parameterType="map" resultType="dataobject">

@ -159,9 +159,9 @@
<th width="80px">No.</th> <th width="80px">No.</th>
<th width="80px">단속일시</th> <th width="80px">단속일시</th>
<th width="80px">차량번호</th> <th width="80px">차량번호</th>
<th width="80px">위반수</th> <th width="80px">위반수</th>
<th width="80px">검사결과</th> <th width="80px" class="text-orange">검사결과</th>
<th width="80px">처리방법</th> <th width="80px" class="text-orange">처리방법</th>
<th width="80px">위반동</th> <th width="80px">위반동</th>
<th width="80px">위반장소</th> <th width="80px">위반장소</th>
<th width="80px">사진매수</th> <th width="80px">사진매수</th>
@ -177,9 +177,9 @@
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{ROW_NUM}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{ROW_NUM}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CRDN_YMD_TM}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CRDN_YMD_TM}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{VHRNO}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{VHRNO}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{VLTN_NMTM}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CRDN_CNT}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{unknown}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{INSP_RSLT}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{unknown}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{PRCS_MTHD}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CRDN_STDG_NM}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CRDN_STDG_NM}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-start">{CRDN_PLC}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-start">{CRDN_PLC}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{ATCH_FILE_CNT}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{ATCH_FILE_CNT}</td>
@ -368,7 +368,6 @@ $(document).ready(function(){
CRDN_STTS_CD : FIM010, CRDN_STTS_CD : FIM010,
FFNLG_AMT : numberFormat FFNLG_AMT : numberFormat
//감경금액 //감경금액
//검사결과,처리방법
} }
}); });

@ -3,5 +3,4 @@
%><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"
%><%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> %><%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="code" uri="/WEB-INF/tlds/code.tld"%>
<%@ taglib prefix="privacy" uri="/WEB-INF/tlds/privacy.tld"%> <%@ taglib prefix="privacy" uri="/WEB-INF/tlds/privacy.tld"%>

@ -1,145 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
version="2.0">
<description>Common Code tag library</description>
<display-name>Common Code tag library</display-name>
<tlib-version>1.0</tlib-version>
<short-name>code</short-name>
<tag>
<description>select box JSTL</description>
<name>select</name>
<tag-class>cokr.xit.fims.framework.support.tag.code.CodeSelectBoxTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>type</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>grpId</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>etc_1</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>etc_2</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>etc_3</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>title</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>defaultSelect</name>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>isEmptySelect</name>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>emptyMessageKey</name>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>cls</name>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>alt</name>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>onchange</name>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>disabled</name>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>display</name>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>radio</name>
<tag-class>cokr.xit.fims.framework.support.tag.code.CodeRadioBoxTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>grpId</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>type</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>etc_1</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>etc_2</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>etc_3</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>defaultSelect</name>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>cls</name>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>alt</name>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>onclick</name>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>
Loading…
Cancel
Save