서비스신청 쿼리 변경
This commit is contained in:
parent
c2928d95d1
commit
28c5396248
@ -78,10 +78,6 @@ public class SvcDeskReqController
|
||||
log.info("tokenInfo [{}]", tokenInfo.toString() );
|
||||
log.info("tokenInfo [{}]", tokenInfo.getAuthorities() );
|
||||
|
||||
|
||||
requestMap.put("reqUser", tokenInfo.getStrESNTL_ID());
|
||||
// requestMap.put("reqUser", "0");
|
||||
|
||||
// 서비스데스크 조회
|
||||
List<LinkedHashMap<String, Object>> resultList = svcDeskReqService.searchReqIncident(requestMap);
|
||||
|
||||
|
||||
@ -4,12 +4,6 @@
|
||||
|
||||
<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">
|
||||
<result column="VC_REQ_INCIDENT_NUM" property="vcReqIncidentNum" />
|
||||
<result column="VC_INCIDENT_NUM" property="vcIncidentNum" />
|
||||
@ -44,6 +38,18 @@
|
||||
<result column="IN_INCIDENT_SEQ" property="inIncidentSeq" />
|
||||
|
||||
</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">
|
||||
/* SvcReqDeskDao.searchReqIncident */
|
||||
@ -81,6 +87,8 @@
|
||||
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_SERVICE C ON A.IN_SERVICE_CODE = C.IN_SERVICE_CODE
|
||||
WHERE 1=1
|
||||
<include refid="searchFilter" />
|
||||
<include refid="paging" />
|
||||
</select>
|
||||
|
||||
@ -91,6 +99,9 @@
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<select id="getReqIncidentBySeq" parameterType="String" resultMap="reqIncident">
|
||||
/* SvcDeskDao.getReqIncidentBySeq */
|
||||
SELECT A.VC_REQ_INCIDENT_NUM
|
||||
|
||||
Loading…
Reference in New Issue
Block a user