251210_01_ENH : 검색어로만 프로젝트 검색 추가, 사용자 ID 있는 지 조회 추가
This commit is contained in:
@@ -4,13 +4,13 @@
|
||||
<mapper namespace="com.kri.intranet.extension.mapper.ProjectMapper">
|
||||
<select id="selectProjectTop10" resultType="com.kri.intranet.extension.entity.project.ProjectBasicInfoEntity">
|
||||
SELECT TOP(10)
|
||||
p_child_sn AS pChildSn
|
||||
p_child_sn AS pChildSn
|
||||
, CASE WHEN p_intention IS NOT NULL
|
||||
THEN p_subject + ' <![CDATA[<' + p_intention + '>]]>'
|
||||
ELSE p_subject
|
||||
END AS pTitle
|
||||
, d.Code AS pRschTeam
|
||||
, d.T_Name AS pRschTeamName
|
||||
THEN p_subject + ' <![CDATA[<' + p_intention + '>]]>'
|
||||
ELSE p_subject
|
||||
END AS pTitle
|
||||
, ISNULL(d.Code,'') AS pRschTeam
|
||||
, ISNULL(d.T_Name,'') AS pRschTeamName
|
||||
FROM project2.dbo.V_PROJECT_METHOD pm WITH (NOLOCK)
|
||||
LEFT JOIN project2.dbo.v_Department d
|
||||
ON pm.p_rsch_dept = d.before_t_cd1
|
||||
@@ -23,8 +23,33 @@
|
||||
<!-- p_subject / p_intention 공용 키워드 (파라미터2) -->
|
||||
<if test="keyword != null and keyword != ''">
|
||||
AND (
|
||||
p_subject LIKE '%' + #{keyword} + '%'
|
||||
OR p_intention LIKE '%' + #{keyword} + '%'
|
||||
p_subject LIKE '%' + #{keyword} + '%'
|
||||
OR p_intention LIKE '%' + #{keyword} + '%'
|
||||
)
|
||||
</if>
|
||||
ORDER BY p_input_dt DESC
|
||||
</select>
|
||||
|
||||
<select id="selectProjectTop10OnlyKeyword" resultType="com.kri.intranet.extension.entity.project.ProjectBasicInfoEntity">
|
||||
SELECT TOP(10)
|
||||
p_child_sn AS pChildSn
|
||||
, CASE WHEN p_intention IS NOT NULL
|
||||
THEN p_subject + ' <![CDATA[<' + p_intention + '>]]>'
|
||||
ELSE p_subject
|
||||
END AS pTitle
|
||||
, ISNULL(d.Code,'') AS pRschTeam
|
||||
, ISNULL(d.T_Name,'') AS pRschTeamName
|
||||
FROM project2.dbo.V_PROJECT_METHOD pm WITH (NOLOCK)
|
||||
LEFT JOIN project2.dbo.v_Department d
|
||||
ON pm.p_rsch_dept = d.before_t_cd1
|
||||
OR pm.p_rsch_dept = d.T_CODE
|
||||
WHERE 1 = 1
|
||||
<!-- p_subject / p_intention 공용 키워드 (파라미터2) -->
|
||||
<if test="keyword != null and keyword != ''">
|
||||
AND (
|
||||
p_child_sn LIKE '%' + #{keyword} + '%'
|
||||
OR p_subject LIKE '%' + #{keyword} + '%'
|
||||
OR p_intention LIKE '%' + #{keyword} + '%'
|
||||
)
|
||||
</if>
|
||||
ORDER BY p_input_dt DESC
|
||||
|
||||
Reference in New Issue
Block a user