| | |
| | | ic.name AS companyName, |
| | | ii.name AS ispName, |
| | | ih.name AS hostingName, |
| | | d.department_name AS departmentName, |
| | | GROUP_CONCAT(issue_custom.use_value) AS useValue, |
| | | IFNULL(temp_attached_file.attachedFileCount, 0) as attachedFileCount, |
| | | IFNULL(temp_issue_comment.issueCommentCount, 0) as issueCommentCount |
| | |
| | | </if> |
| | | |
| | | <if test="combinationIssueNumber == null or combinationIssueNumber.equals('')"> |
| | | <if test="hideDownIssue != null and hideDownIssue == true"> |
| | | <if test="hideDownIssue != null and hideDownIssue == true and parentYN == true"> |
| | | AND issue.parent_issue_id IS NULL |
| | | </if> |
| | | </if> |
| | |
| | | AND issue_status.issue_status_type != 'CLOSE' |
| | | </if> |
| | | |
| | | <if test="parentYN != null and parentYN == true"> |
| | | <if test="parentYN != null and parentYN == true and hideDownIssue == true"> |
| | | AND issue.parent_issue_id IS NULL |
| | | </if> |
| | | |
| | | <if test="hideDownIssue == false and parentYN == false"> |
| | | AND issue.parent_issue_id IS NOT NULL |
| | | </if> |
| | | |
| | | <choose> |
| | |
| | | </if> |
| | | |
| | | <if test="combinationIssueNumber == null or combinationIssueNumber.equals('')"> |
| | | <if test="hideDownIssue != null and hideDownIssue == true"> |
| | | <if test="hideDownIssue != null and hideDownIssue == true and parentYN == true"> |
| | | AND issue.parent_issue_id IS NULL |
| | | </if> |
| | | </if> |
| | | |
| | | <if test="hideDownIssue == false and parentYN == false"> |
| | | AND issue.parent_issue_id IS NOT NULL |
| | | </if> |
| | | |
| | | <if test="hideCompleteIssue != null and hideCompleteIssue == true"> |
| | |
| | | |
| | | <insert id="insertBatch" keyColumn="id" keyProperty="id" useGeneratedKeys="true"> |
| | | INSERT INTO issue(title, description, issue_number, project_id, issue_type_id, priority_id, severity_id, |
| | | start_date, complete_date, |
| | | start_date, complete_date, parent_issue_id, |
| | | issue_status_id, register_id, modify_id, register_date, modify_date) |
| | | VALUES |
| | | <foreach collection="list" item="issueForm" index="index" separator="," open="" close=""> |
| | | (#{issueForm.title}, #{issueForm.description}, #{issueForm.issueNumber}, #{issueForm.projectId}, |
| | | #{issueForm.issueTypeId}, #{issueForm.priorityId}, #{issueForm.severityId}, #{issueForm.startDate}, |
| | | #{issueForm.completeDate}, |
| | | #{issueForm.completeDate}, #{issueForm.parentIssueId}, |
| | | #{issueForm.issueStatusId}, #{issueForm.registerId}, #{issueForm.registerId}, NOW(), NOW()) |
| | | </foreach> |
| | | </insert> |