서비스신청 쿼리 변경

This commit is contained in:
nhj 2025-12-23 17:58:23 +09:00
parent c2928d95d1
commit 28c5396248
2 changed files with 17 additions and 10 deletions

View File

@ -78,10 +78,6 @@ public class SvcDeskReqController
log.info("tokenInfo [{}]", tokenInfo.toString() ); log.info("tokenInfo [{}]", tokenInfo.toString() );
log.info("tokenInfo [{}]", tokenInfo.getAuthorities() ); log.info("tokenInfo [{}]", tokenInfo.getAuthorities() );
requestMap.put("reqUser", tokenInfo.getStrESNTL_ID());
// requestMap.put("reqUser", "0");
// 서비스데스크 조회 // 서비스데스크 조회
List<LinkedHashMap<String, Object>> resultList = svcDeskReqService.searchReqIncident(requestMap); List<LinkedHashMap<String, Object>> resultList = svcDeskReqService.searchReqIncident(requestMap);

View File

@ -4,12 +4,6 @@
<mapper namespace="com.urpsys.itmsapi.srm.dao.SvcDeskReqDao"> <mapper namespace="com.urpsys.itmsapi.srm.dao.SvcDeskReqDao">
<sql id="paging">
<if test="recordCountPerPage != null and firstIndex != null">
LIMIT #{recordCountPerPage} OFFSET #{firstIndex}
</if>
</sql>
<resultMap type="java.util.LinkedHashMap" id="reqIncident"> <resultMap type="java.util.LinkedHashMap" id="reqIncident">
<result column="VC_REQ_INCIDENT_NUM" property="vcReqIncidentNum" /> <result column="VC_REQ_INCIDENT_NUM" property="vcReqIncidentNum" />
<result column="VC_INCIDENT_NUM" property="vcIncidentNum" /> <result column="VC_INCIDENT_NUM" property="vcIncidentNum" />
@ -44,6 +38,18 @@
<result column="IN_INCIDENT_SEQ" property="inIncidentSeq" /> <result column="IN_INCIDENT_SEQ" property="inIncidentSeq" />
</resultMap> </resultMap>
<sql id="paging">
<if test="recordCountPerPage != null and firstIndex != null">
LIMIT #{recordCountPerPage} OFFSET #{firstIndex}
</if>
</sql>
<sql id="searchFilter">
<if test="incidentReqNum != null and incidentReqNum != ''"> AND A.VC_REQ_INCIDENT_NUM = #{incidentReqNum} </if>
<if test="reqUser != null and reqUser != ''"> AND A.VC_REQ_USER LIKE "%${reqUser}%" </if>
<if test="incidentTitle != null and incidentTitle != ''"> AND A.VC_INCIDENT_TITLE LIKE "%${incidentTitle}%" </if>
</sql>
<select id="searchReqIncident" parameterType="java.util.HashMap" resultMap="reqIncident"> <select id="searchReqIncident" parameterType="java.util.HashMap" resultMap="reqIncident">
/* SvcReqDeskDao.searchReqIncident */ /* SvcReqDeskDao.searchReqIncident */
@ -81,6 +87,8 @@
FROM CM_INCIDENT_APL_INFO A FROM CM_INCIDENT_APL_INFO A
LEFT OUTER JOIN CM_INCIDENT B ON A.VC_REQ_INCIDENT_NUM = B.VC_REQ_INCIDENT_NUM LEFT OUTER JOIN CM_INCIDENT B ON A.VC_REQ_INCIDENT_NUM = B.VC_REQ_INCIDENT_NUM
LEFT OUTER JOIN CM_SERVICE C ON A.IN_SERVICE_CODE = C.IN_SERVICE_CODE LEFT OUTER JOIN CM_SERVICE C ON A.IN_SERVICE_CODE = C.IN_SERVICE_CODE
WHERE 1=1
<include refid="searchFilter" />
<include refid="paging" /> <include refid="paging" />
</select> </select>
@ -91,6 +99,9 @@
</select> </select>
<select id="getReqIncidentBySeq" parameterType="String" resultMap="reqIncident"> <select id="getReqIncidentBySeq" parameterType="String" resultMap="reqIncident">
/* SvcDeskDao.getReqIncidentBySeq */ /* SvcDeskDao.getReqIncidentBySeq */
SELECT A.VC_REQ_INCIDENT_NUM SELECT A.VC_REQ_INCIDENT_NUM