페이징 정렬 수정

main
이범준 1 year ago
parent aa4c5111e4
commit b674c72d18

@ -81,10 +81,15 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
dataObjectList = crdnListMapper.selectFineReductionDataList(query.setOrderBy("CRDN_ID")); dataObjectList = crdnListMapper.selectFineReductionDataList(query.setOrderBy("CRDN_ID"));
break; break;
case "photo": case "photo":
dataObjectList = crdnListMapper.selectPhotoInspectionDataList(query.setOrderBy("VHRNO, CRDN_PLC")); dataObjectList = crdnListMapper.selectPhotoInspectionDataList(query.setOrderBy("VHRNO, CRDN_PLC, CRDN_ID"));
break; break;
case "sameVehicleMain": case "sameVehicleMain":
dataObjectList = crdnListMapper.selectSameVehicleMainList(query.setOrderBy("VHRNO")); if(ifEmpty(query.getSchOnlySamePlace(),() -> "").equals("on")) {
query.setOrderBy("VHRNO, CRDN_STDG_NM");
} else {
query.setOrderBy("VHRNO");
}
dataObjectList = crdnListMapper.selectSameVehicleMainList(query);
break; break;
case "sameVehicleSub": case "sameVehicleSub":
dataObjectList = crdnListMapper.selectSameVehicleSubList(query.setOrderBy("CRDN_ID")); dataObjectList = crdnListMapper.selectSameVehicleSubList(query.setOrderBy("CRDN_ID"));

@ -88,7 +88,7 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv
List<DataObject> dataObjectList = new ArrayList<DataObject>(); List<DataObject> dataObjectList = new ArrayList<DataObject>();
switch (ifEmpty(query.getGridType(), () -> "")) { switch (ifEmpty(query.getGridType(), () -> "")) {
case "receiptData": case "receiptData":
dataObjectList = crdnCvlcptMapper.selectCivilComplaintReceiptDataList(query.setOrderBy("CVLCPT_RCPT_YMD")); dataObjectList = crdnCvlcptMapper.selectCivilComplaintReceiptDataList(query.setOrderBy("CVLCPT_RCPT_YMD, CRDN_ID"));
break; break;
case "answerTargetData": case "answerTargetData":
dataObjectList = crdnCvlcptMapper.selectCivilComplaintAnswerTargetDataList(query.setOrderBy("CRDN_ID")); dataObjectList = crdnCvlcptMapper.selectCivilComplaintAnswerTargetDataList(query.setOrderBy("CRDN_ID"));

@ -128,7 +128,7 @@ AND C.${by} LIKE CONCAT('%', #{term}, '%')
</if> </if>
</if> </if>
<include refid="utility.orderBy" /> <include refid="utility.sortBy" />
<include refid="utility.paging-suffix"/> <include refid="utility.paging-suffix"/>
</select> </select>
@ -155,7 +155,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
AND C.TASK_SE_CD = #{taskSeCd} AND C.TASK_SE_CD = #{taskSeCd}
AND C.RGTR = #{currentUserId} AND C.RGTR = #{currentUserId}
AND SUBSTR(C.REG_DT,1,8) = <include refid="utility.today" /> AND SUBSTR(C.REG_DT,1,8) = <include refid="utility.today" />
<include refid="utility.orderBy" /> <include refid="utility.sortBy" />
<include refid="utility.paging-suffix"/> <include refid="utility.paging-suffix"/>
</select> </select>
@ -229,7 +229,7 @@ AND C.CRDN_STTS_CD = #{crdnSttsCd}
<if test="schDateTo != null">AND SUBSTR(C.MDFCN_DT,1,8) <![CDATA[ <= ]]> #{schDateTo} </if> <if test="schDateTo != null">AND SUBSTR(C.MDFCN_DT,1,8) <![CDATA[ <= ]]> #{schDateTo} </if>
</if> </if>
</if> </if>
<include refid="utility.orderBy" /> <include refid="utility.sortBy" />
<include refid="utility.paging-suffix"/> <include refid="utility.paging-suffix"/>
</select> </select>
@ -306,7 +306,7 @@ HAVING COUNT(*) <![CDATA[ >= ]]>
</choose> </choose>
<if test="schCrdnCntTo != null"> AND COUNT(*) <![CDATA[ <= ]]> #{schCrdnCntTo} </if> <if test="schCrdnCntTo != null"> AND COUNT(*) <![CDATA[ <= ]]> #{schCrdnCntTo} </if>
<include refid="utility.orderBy" /> <include refid="utility.sortBy" />
<include refid="utility.paging-suffix"/> <include refid="utility.paging-suffix"/>
</select> </select>
@ -330,7 +330,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
WHERE C.DEL_YN = 'N' WHERE C.DEL_YN = 'N'
AND C.TASK_SE_CD = #{taskSeCd} AND C.TASK_SE_CD = #{taskSeCd}
AND C.CRDN_ID IN (<foreach collection="crdnIDs" item="CRDN_ID" separator=",">#{CRDN_ID}</foreach>) AND C.CRDN_ID IN (<foreach collection="crdnIDs" item="CRDN_ID" separator=",">#{CRDN_ID}</foreach>)
<include refid="utility.orderBy" /> <include refid="utility.sortBy" />
</select> </select>
<select id="selectTagInformationUndefinedDataList" parameterType="map" resultType="dataobject"> <select id="selectTagInformationUndefinedDataList" parameterType="map" resultType="dataobject">
@ -382,7 +382,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
<if test="schCrdnYmdFrom != null">AND C.CRDN_YMD <![CDATA[ >= ]]> #{schCrdnYmdFrom} </if> <if test="schCrdnYmdFrom != null">AND C.CRDN_YMD <![CDATA[ >= ]]> #{schCrdnYmdFrom} </if>
<if test="schCrdnYmdTo != null">AND C.CRDN_YMD <![CDATA[ <= ]]> #{schCrdnYmdTo} </if> <if test="schCrdnYmdTo != null">AND C.CRDN_YMD <![CDATA[ <= ]]> #{schCrdnYmdTo} </if>
</if> </if>
<include refid="utility.orderBy" /> <include refid="utility.sortBy" />
<include refid="utility.paging-suffix"/> <include refid="utility.paging-suffix"/>
</select> </select>
@ -433,7 +433,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
<if test="schRductYmdFrom != null">AND SUBSTR(RD.REG_DT,1,8) <![CDATA[ >= ]]> #{schRductYmdFrom} </if> <if test="schRductYmdFrom != null">AND SUBSTR(RD.REG_DT,1,8) <![CDATA[ >= ]]> #{schRductYmdFrom} </if>
<if test="schRductYmdTo != null">AND SUBSTR(RD.REG_DT,1,8) <![CDATA[ <= ]]> #{schRductYmdTo} </if> <if test="schRductYmdTo != null">AND SUBSTR(RD.REG_DT,1,8) <![CDATA[ <= ]]> #{schRductYmdTo} </if>
</if> </if>
<include refid="utility.orderBy" /> <include refid="utility.sortBy" />
<include refid="utility.paging-suffix"/> <include refid="utility.paging-suffix"/>
</select> </select>

@ -166,7 +166,7 @@ WHERE C.DEL_YN = 'N'
<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.sortBy" />
<include refid="utility.paging-suffix"/> <include refid="utility.paging-suffix"/>
</select> </select>
@ -223,7 +223,7 @@ AND (SELECT VLTN_ARTCL FROM TB_VLTN_INFO WHERE VLTN_ID = C.VLTN_ID) LIKE CONCAT(
<if test="cvlcptPrcsPicNm != null"> <if test="cvlcptPrcsPicNm != null">
AND CC.CVLCPT_PRCS_PIC_NM = #{cvlcptPrcsPicNm} AND CC.CVLCPT_PRCS_PIC_NM = #{cvlcptPrcsPicNm}
</if> </if>
<include refid="utility.orderBy" /> <include refid="utility.sortBy" />
<include refid="utility.paging-suffix"/> <include refid="utility.paging-suffix"/>
</select> </select>
@ -600,7 +600,7 @@ AND (SELECT VLTN_ARTCL FROM TB_VLTN_INFO WHERE VLTN_ID = C.VLTN_ID) LIKE CONCAT(
<if test="schCvlcptRcptYmdTo != null">AND CC.CVLCPT_RCPT_YMD <![CDATA[ <= ]]> #{schCvlcptRcptYmdTo} </if> <if test="schCvlcptRcptYmdTo != null">AND CC.CVLCPT_RCPT_YMD <![CDATA[ <= ]]> #{schCvlcptRcptYmdTo} </if>
</if> </if>
<if test="cvlcptPrcsCd != null">AND CC.CVLCPT_PRCS_CD = #{cvlcptPrcsCd}</if> <if test="cvlcptPrcsCd != null">AND CC.CVLCPT_PRCS_CD = #{cvlcptPrcsCd}</if>
<include refid="utility.orderBy" /> <include refid="utility.sortBy" />
<include refid="utility.paging-suffix"/> <include refid="utility.paging-suffix"/>
</select> </select>

Loading…
Cancel
Save