| | |
| | | severity.id as severityId, |
| | | severity.name as severityName, |
| | | severity.color as severityColor, |
| | | issue_custom.use_value AS useValue, |
| | | IFNULL(temp_attached_file.attachedFileCount, 0) as attachedFileCount, |
| | | IFNULL(temp_issue_comment.issueCommentCount, 0) as issueCommentCount |
| | | FROM issue issue FORCE INDEX(reverseIndex) |
| | |
| | | INNER JOIN issue_type issue_type FORCE INDEX(PRIMARY) ON issue.issue_type_id = issue_type.id |
| | | INNER JOIN priority priority FORCE INDEX(PRIMARY) ON issue.priority_id = priority.id |
| | | INNER JOIN severity severity FORCE INDEX(PRIMARY) ON issue.severity_id = severity.id |
| | | LEFT OUTER JOIN issue_custom_field_value issue_custom FORCE INDEX(issueIdIndex) ON issue.id = issue_custom.issue_id |
| | | LEFT OUTER JOIN issue_department issued FORCE INDEX(issueIdIndex) ON issue.id = issued.issue_id |
| | | LEFT OUTER JOIN issue_user issue_user FORCE INDEX(issueIdIndex) ON issue.id = issue_user.issue_id |
| | | LEFT OUTER JOIN (SELECT issue_id, COUNT(id) as attachedFileCount FROM attached_file GROUP BY issue_id) |
| | |
| | | WHERE 1=1 |
| | | <if test="title != null and !title.equals('') "> |
| | | AND issue.title like CONCAT('%',#{title},'%') |
| | | OR issue.description like CONCAT('%',#{title},'%') |
| | | OR issue.start_date like CONCAT('%',#{title},'%') |
| | | OR issue.complete_date like CONCAT('%',#{title},'%') |
| | | OR issue.issue_number like CONCAT('%',#{title},'%') |
| | | OR issue.register_date like CONCAT('%',#{title},'%') |
| | | OR project.name like CONCAT('%',#{title},'%') |
| | | OR project.project_key like CONCAT('%',#{title},'%') |
| | | OR issue_type.name like CONCAT('%',#{title},'%') |
| | | OR issue_status.issue_status_type like CONCAT('%',#{title},'%') |
| | | OR issue_status.name like CONCAT('%',#{title},'%') |
| | | OR priority.name like CONCAT('%',#{title},'%') |
| | | OR severity.name like CONCAT('%',#{title},'%') |
| | | OR issue_custom.use_value like CONCAT('%',#{title},'%') |
| | | </if> |
| | | |
| | | <if test="description != null and !description.equals('')"> |