bug绑定多个

This commit is contained in:
2025-05-15 11:15:04 +08:00
parent 40c6a13cf4
commit 9ed6f173ee
10 changed files with 135 additions and 8 deletions

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.sa.zentao.mapper.ZtBugBoundUserMapper">
<resultMap id="BaseResultMap" type="com.sa.zentao.entity.ZtBugBoundUser">
<result column="id" property="id" />
<result column="bug_id" property="bugId" />
<result column="assigned_to" property="assignedTo" />
</resultMap>
</mapper>

View File

@ -10,13 +10,10 @@
<select id="releaseStoryPageList" resultType="com.sa.zentao.dao.ZtStoryDTO">
select s.* from (zt_story s,zt_projectstory ps,zt_release_details details ) left
join zt_storyspec sp on s.id = sp.story
left join zt_storyreview v on s.id = v.story and s.version = v.version
left join zt_projectstory pstory on s.id = pstory.story and pstory.execution =0
left join zt_project pj on pstory.project = pj.id
select s.* from (zt_story s,zt_release_details details )
WHERE s.id = ps.story
WHERE 1=1
and s.id = details.object_id
and details.object_type ='story'
and details.release_id = #{qo.id}

View File

@ -358,7 +358,7 @@
from zt_story s
left join zt_storyreview v on s.id = v.story and s.version = v.version
left join zt_projectstory pstory on s.id = pstory.story and pstory.execution =0
left join zt_projectstory pstory on s.id = pstory.story and pstory.`type` = 'project'
left join zt_project pj on pstory.project = pj.id
left join zt_product pt on s.product = pt.id
left join zt_projectstory ps on s.id = ps.story