| | |
| | | |
| | | <mapper namespace="kr.wisestone.owl.mapper.IssueStatusMapper"> |
| | | |
| | | <!--<select id="find" resultType="java.util.HashMap" parameterType="kr.wisestone.owl.web.condition.IssueStatusCondition"> |
| | | SELECT |
| | | DISTINCT i.id as id, |
| | | i.name as name, |
| | | i.color as color, |
| | | i.issue_status_type as issueStatusType, |
| | | CASE i.default_yn WHEN 'Y' THEN 'true' ELSE 'false' END as defaultYn |
| | | FROM |
| | | issue_status i |
| | | INNER JOIN workspace ws on i.workspace_id = ws.id |
| | | WHERE 1=1 |
| | | <if test="name != '' and name != null"> |
| | | AND i.name like CONCAT('%',#{name},'%') |
| | | </if> |
| | | <choose> |
| | | <when test="issueStatusTypes.size != 0"> |
| | | AND i.issue_status_type IN |
| | | <foreach collection="issueStatusTypes" item="item" index="index" separator="," open="(" close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </when> |
| | | </choose> |
| | | AND ws.id = #{workspaceId} |
| | | ORDER BY i.name DESC |
| | | <if test="page != null and !page.equals('')"> |
| | | limit #{pageSize} offset #{page}; |
| | | </if> |
| | | </select>--> |
| | | |
| | | <select id="find" resultType="java.util.HashMap" parameterType="kr.wisestone.owl.web.condition.IssueStatusCondition"> |
| | | SELECT |
| | | DISTINCT i.id as id, |