first commit

This commit is contained in:
2024-11-29 11:03:13 +08:00
commit fdef054baf
372 changed files with 24482 additions and 0 deletions

View File

@ -0,0 +1,190 @@
<?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.ZtStoryMapper">
<resultMap id="BaseResultMap" type="com.sa.zentao.entity.ZtStory">
<result column="id" property="id" />
<result column="vision" property="vision" />
<result column="parent" property="parent" />
<result column="product" property="product" />
<result column="branch" property="branch" />
<result column="module" property="module" />
<result column="plan" property="plan" />
<result column="source" property="source" />
<result column="sourceNote" property="sourcenote" />
<result column="fromBug" property="frombug" />
<result column="feedback" property="feedback" />
<result column="title" property="title" />
<result column="keywords" property="keywords" />
<result column="type" property="type" />
<result column="category" property="category" />
<result column="pri" property="pri" />
<result column="estimate" property="estimate" />
<result column="status" property="status" />
<result column="subStatus" property="substatus" />
<result column="color" property="color" />
<result column="stage" property="stage" />
<result column="stagedBy" property="stagedby" />
<result column="mailto" property="mailto" />
<result column="lib" property="lib" />
<result column="fromStory" property="fromstory" />
<result column="fromVersion" property="fromversion" />
<result column="openedBy" property="openedby" />
<result column="openedDate" property="openeddate" />
<result column="assignedTo" property="assignedto" />
<result column="assignedDate" property="assigneddate" />
<result column="approvedDate" property="approveddate" />
<result column="lastEditedBy" property="lasteditedby" />
<result column="lastEditedDate" property="lastediteddate" />
<result column="changedBy" property="changedby" />
<result column="changedDate" property="changeddate" />
<result column="reviewedBy" property="reviewedby" />
<result column="reviewedDate" property="revieweddate" />
<result column="releasedDate" property="releaseddate" />
<result column="closedBy" property="closedby" />
<result column="closedDate" property="closeddate" />
<result column="closedReason" property="closedreason" />
<result column="activatedDate" property="activateddate" />
<result column="toBug" property="tobug" />
<result column="childStories" property="childstories" />
<result column="linkStories" property="linkstories" />
<result column="linkRequirements" property="linkrequirements" />
<result column="twins" property="twins" />
<result column="duplicateStory" property="duplicatestory" />
<result column="version" property="version" />
<result column="storyChanged" property="storychanged" />
<result column="feedbackBy" property="feedbackby" />
<result column="notifyEmail" property="notifyemail" />
<result column="BSA" property="bsa" />
<result column="duration" property="duration" />
<result column="demand" property="demand" />
<result column="submitedBy" property="submitedby" />
<result column="roadmap" property="roadmap" />
<result column="URChanged" property="urchanged" />
<result column="deleted" property="deleted" />
</resultMap>
<select id="pageList" resultType="com.sa.zentao.dao.ZtStoryDTO">
select s.*,sp.spec ,sp.verify,sp.files from zt_story s
left join zt_storyreview v on s.id = v.story and s.version = v.version
left join zt_storyspec sp on s.id = sp.story
where 1=1
and product = #{qo.productId}
<if test="qo.searchVal == 'ALL' ">
</if>
<if test="qo.searchVal == 'WGB' ">
and s.status = 'closed'
and s.closedBy= #{qo.userName}
</if>
<if test="qo.searchVal == 'ZGW' ">
and s.assignedTo= #{qo.userName}
</if>
<if test="qo.searchVal == 'WCJ' ">
and s.openedBy= #{qo.userName}
</if>
<if test="qo.searchVal == 'YWPS' ">
and v.reviewer = #{qo.userName}
and s.status ='reviewing'
and v.result = ''
</if>
<if test="qo.searchVal == 'JH' ">
and s.status = 'active'
</if>
<if test="qo.searchVal == 'YGB' ">
and s.status = 'closed'
</if>
<if test="qo.searchVal == 'DGB' ">
and s.stage = 'verified'
and s.ys_flag =1
</if>
<if test="qo.searchVal == 'BGZ' ">
and s.status = '11'
</if>
<if test="qo.searchVal == 'WZP' ">
and s.status = '11'
</if>
<if test="qo.searchVal == 'WPS' ">
and s.reviewedBy like concat('%', #{qo.userName}, '%')
</if>
<if test="qo.searchVal == 'PSZ' ">
and s.status = 'reviewing'
</if>
<if test="qo.searchVal == 'DYS' ">
and s.stage = 'verified'
and s.ys_flag =0
</if>
<if test="qo.id != null ">
and s.id = #{qo.id}
</if>
<if test="qo.title != null and qo.title != '' ">
and s.title = #{qo.title}
</if>
<if test="qo.module != null and qo.module != '' ">
and s.module = #{qo.module}
</if>
group by s.id
order by id desc
</select>
<select id="projectStoryPageList" resultType="com.sa.zentao.dao.ZtStoryDTO">
select s.*,sp.spec ,sp.verify,sp.files from (zt_story s,zt_projectstory ps ) 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
WHERE s.id = ps.story
<if test="qo.project != null ">
and ps.project =#{qo.project}
</if>
<if test="qo.execution != null ">
and ps.execution =#{qo.execution}
</if>
<if test="qo.module != null ">
and s.module =#{qo.module}
</if>
<if test="qo.searchVal != null and qo.searchVal == 'ALL' ">
</if>
<if test="qo.searchVal != null and qo.searchVal == 'WGB' ">
and s.status !='closed'
</if>
<if test="qo.searchVal != null and qo.searchVal == 'ZGW' ">
and s.assignedTo = #{qo.userName}
</if>
<if test="qo.searchVal != null and qo.searchVal == 'INDEX' ">
and s.assignedTo = #{qo.userName}
or s.openedBy = #{qo.userName}
</if>
<if test="qo.searchVal != null and qo.searchVal == 'WCJ' ">
and s.openedBy = #{qo.userName}
</if>
<if test="qo.searchVal != null and qo.searchVal == 'YWPS' ">
and v.reviewer = #{qo.userName}
and s.status ='reviewing'
and v.result = ''
</if>
group by s.id
order by s.id desc
</select>
</mapper>