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,224 @@
<?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.ZtProjectMapper">
<resultMap id="BaseResultMap" type="com.sa.zentao.entity.ZtProject">
<result column="id" property="id"/>
<result column="project" property="project"/>
<result column="charter" property="charter"/>
<result column="model" property="model"/>
<result column="type" property="type"/>
<result column="category" property="category"/>
<result column="lifetime" property="lifetime"/>
<result column="budget" property="budget"/>
<result column="budgetUnit" property="budgetUnit"/>
<result column="attribute" property="attribute"/>
<result column="percent" property="percent"/>
<result column="milestone" property="milestone"/>
<result column="output" property="output"/>
<result column="auth" property="auth"/>
<result column="parent" property="parent"/>
<result column="path" property="path"/>
<result column="grade" property="grade"/>
<result column="name" property="name"/>
<result column="code" property="code"/>
<result column="hasProduct" property="hasProduct"/>
<result column="begin" property="begin"/>
<result column="end" property="end"/>
<result column="firstEnd" property="firstEnd"/>
<result column="realBegan" property="realBegan"/>
<result column="realEnd" property="realEnd"/>
<result column="days" property="days"/>
<result column="status" property="status"/>
<result column="subStatus" property="subStatus"/>
<result column="pri" property="pri"/>
<result column="desc" property="desc"/>
<result column="version" property="version"/>
<result column="parentVersion" property="parentVersion"/>
<result column="planDuration" property="planDuration"/>
<result column="realDuration" property="realDuration"/>
<result column="progress" property="progress"/>
<result column="estimate" property="estimate"/>
<result column="left" property="left"/>
<result column="consumed" property="consumed"/>
<result column="teamCount" property="teamCount"/>
<result column="market" property="market"/>
<result column="openedBy" property="openedBy"/>
<result column="openedDate" property="openedDate"/>
<result column="openedVersion" property="openedVersion"/>
<result column="lastEditedBy" property="lastEditedBy"/>
<result column="lastEditedDate" property="lastEditedDate"/>
<result column="closedBy" property="closedBy"/>
<result column="closedDate" property="closedDate"/>
<result column="closedReason" property="closedReason"/>
<result column="canceledBy" property="canceledBy"/>
<result column="canceledDate" property="canceledDate"/>
<result column="suspendedDate" property="suspendedDate"/>
<result column="PO" property="po"/>
<result column="PM" property="pm"/>
<result column="QD" property="qd"/>
<result column="RD" property="rd"/>
<result column="team" property="team"/>
<result column="acl" property="acl"/>
<result column="whitelist" property="whitelist"/>
<result column="order" property="order"/>
<result column="vision" property="vision"/>
<result column="division" property="division"/>
<result column="displayCards" property="displayCards"/>
<result column="fluidBoard" property="fluidBoard"/>
<result column="multiple" property="multiple"/>
<result column="colWidth" property="colWidth"/>
<result column="minColWidth" property="minColWidth"/>
<result column="maxColWidth" property="maxColWidth"/>
<result column="deleted" property="deleted"/>
</resultMap>
<select id="pageProject" resultType="com.sa.zentao.dao.ZtProjectDTO">
select * from zt_project s
where 1= 1
and deleted = '0'
and type = 'project'
<if test="qo.projectIds != null and qo.projectIds.size() > 0">
and s.id in
<foreach collection="qo.projectIds" item="id" index="index"
open="(" close=")" separator=",">
#{id}
</foreach>
</if>
<if test="qo.searchVal != null and qo.searchVal != '' ">
<if test="qo.searchVal == 'ALL' ">
</if>
<if test="qo.searchVal == 'WGB' ">
and s.status != 'closed'
</if>
<if test="qo.searchVal == 'WKS' ">
and s.status= 'wait'
</if>
<if test="qo.searchVal == 'JXZ' ">
and s.status= 'doing'
</if>
<if test="qo.searchVal == 'YGQ' ">
-- 已挂起
and s.status= 'suspended'
</if>
<if test="qo.searchVal == 'YGB' ">
and s.status= 'closed'
</if>
</if>
order by id desc
</select>
<select id="groupPageList" resultType="com.sa.zentao.dao.ZtProjectDTO">
select * from zt_project s
where 1= 1
and deleted = '0'
and type ='program'
<if test="qo.productIds != null and qo.productIds.size() > 0">
and s.id in
<foreach collection="qo.productIds" item="id" index="index"
open="(" close=")" separator=",">
#{id}
</foreach>
</if>
<if test="qo.searchVal != null and qo.searchVal != '' ">
<if test="qo.searchVal == 'ALL' ">
</if>
<if test="qo.searchVal == 'WGB' ">
and s.status != 'closed'
</if>
<if test="qo.searchVal == 'WKS' ">
and s.status= 'wait'
</if>
<if test="qo.searchVal == 'JXZ' ">
and s.status= 'doing'
</if>
<if test="qo.searchVal == 'YGQ' ">
-- 已挂起
and s.status= 'suspended'
</if>
<if test="qo.searchVal == 'YGB' ">
and s.status= 'closed'
</if>
</if>
order by s.id desc
</select>
<select id="implementPageList" resultType="com.sa.zentao.dao.ZtProjectDTO">
select p.* from zt_project p
where 1= 1
and deleted = '0'
and type= 'sprint'
<if test="qo.searchVal != null and qo.searchVal != '' ">
<if test="qo.searchVal == 'ALL' ">
</if>
<if test="qo.searchVal == 'WGB' ">
and p.status != 'closed'
</if>
<if test="qo.searchVal == 'WKS' ">
and p.status= 'wait'
</if>
<if test="qo.searchVal == 'JXZ' ">
and p.status= 'doing'
</if>
<if test="qo.searchVal == 'YGQ' ">
-- 已挂起
and p.status= 'suspended'
</if>
<if test="qo.searchVal == 'YGB' ">
and p.status= 'closed'
</if>
</if>
<if test="qo.projectIds != null and qo.projectIds.size() > 0">
and p.id in
<foreach collection="qo.projectIds" item="id" index="index"
open="(" close=")" separator=",">
#{id}
</foreach>
</if>
<if test="qo.userName != null and qo.userName != '' ">
and ( p.acl = 'open'
or whitelist like concat('%', #{qo.userName}, '%')
)
</if>
order by p.id desc
</select>
<select id="getProjectByProduct" resultType="com.sa.zentao.entity.ZtProject">
SELECT * from zt_project pj,zt_projectproduct pd
WHERE pj.id = pd.project
and pj.type = 'project'
and pd.product = #{qo.productId}
</select>
<select id="executionListByProduct" resultType="com.sa.zentao.entity.ZtProject">
SELECT * from zt_project pj,zt_projectproduct pd
WHERE pj.id = pd.project
and pj.type = 'sprint'
and pd.product = #{qo.productId}
<if test="qo.project !=null ">
and pj.parent = #{qo.project}
</if>
</select>
</mapper>