新版绩效考核方案

This commit is contained in:
2025-05-07 11:19:15 +08:00
parent 607da4dfea
commit cba93c7d2b
64 changed files with 4005 additions and 1755 deletions
+374 -1
View File
@@ -59,7 +59,70 @@
</resultMap>
<select id="taskPageList" resultType="com.sa.zentao.dao.ZtTaskDTO">
select s.*,pt.name productName from zt_task s left join zt_project project on s.project = project.id
select
s.reviewing_user,
s.deadline_time,
s.product,
s.finished_flag,
s.approval_result,
s.use_time,
s.apply_date,
s.approval_remark,
s.files,
s.vision,
s.deleted,
s.v2,
s.v1,
s.`lines`,
s.entry,
s.mr,
s.`order`,
s.repo,
s.activatedDate,
s.lastEditedDate,
s.lastEditedBy,
s.closedReason,
s.realDuration,
s.planDuration,
s.closedDate,
s.closedBy,
s.canceledDate,
s.canceledBy,
s.finishedList,
s.finishedDate,
s.finishedBy,
s.realStarted,
s.estStarted,
s.assignedDate,
s.assignedTo,
s.openedDate,
s.openedBy,
s.version,
s.mailto,
s.color,
s.subStatus,
s.`status`,
s.deadline,
s.`left`,
s.consumed,
s.estimate,
s.pri,
s.`mode`,
s.type,
s.`name`,
s.fromIssue,
s.feedback,
s.fromBug,
s.designVersion,
s.storyVersion,
s.story,
s.design,
s.module,
s.execution,
s.parent,
s.project,
s.id,
pt.name productName from zt_task s left join zt_project project on s.project = project.id
left join zt_product pt on s.product = pt.id
where 1= 1
@@ -104,6 +167,14 @@
</if>
<if test="qo.productIds != null and qo.productIds.size() > 0">
and pt.id in
<foreach collection="qo.productIds" item="id" index="index"
open="(" close=")" separator=",">
#{id}
</foreach>
</if>
<if test="qo.objIds != null and qo.objIds.size() > 0">
and s.id in
@@ -264,6 +335,308 @@
</select>
<select id="taskListByIds" resultType="com.sa.zentao.entity.ZtTask">
select
s.reviewing_user,
s.deadline_time,
s.product,
s.finished_flag,
s.approval_result,
s.use_time,
s.apply_date,
s.approval_remark,
s.files,
s.vision,
s.deleted,
s.v2,
s.v1,
s.`lines`,
s.entry,
s.mr,
s.`order`,
s.repo,
s.activatedDate,
s.lastEditedDate,
s.lastEditedBy,
s.closedReason,
s.realDuration,
s.planDuration,
s.closedDate,
s.closedBy,
s.canceledDate,
s.canceledBy,
s.finishedList,
s.finishedDate,
s.finishedBy,
s.realStarted,
s.estStarted,
s.assignedDate,
s.assignedTo,
s.openedDate,
s.openedBy,
s.version,
s.mailto,
s.color,
s.subStatus,
s.`status`,
s.deadline,
s.`left`,
s.consumed,
s.estimate,
s.pri,
s.`mode`,
s.type,
s.`name`,
s.fromIssue,
s.feedback,
s.fromBug,
s.designVersion,
s.storyVersion,
s.story,
s.design,
s.module,
s.execution,
s.parent,
s.project,
s.id
from zt_task s
where 1= 1
<if test="ids != null and ids.size() > 0">
and s.id in
<foreach collection="ids" item="id" index="index"
open="(" close=")" separator=",">
#{id}
</foreach>
</if>
</select>
<select id="taskListByStoryIds" resultType="com.sa.zentao.entity.ZtTask">
select
s.reviewing_user,
s.deadline_time,
s.product,
s.finished_flag,
s.approval_result,
s.use_time,
s.apply_date,
s.approval_remark,
s.files,
s.vision,
s.deleted,
s.v2,
s.v1,
s.`lines`,
s.entry,
s.mr,
s.`order`,
s.repo,
s.activatedDate,
s.lastEditedDate,
s.lastEditedBy,
s.closedReason,
s.realDuration,
s.planDuration,
s.closedDate,
s.closedBy,
s.canceledDate,
s.canceledBy,
s.finishedList,
s.finishedDate,
s.finishedBy,
s.realStarted,
s.estStarted,
s.assignedDate,
s.assignedTo,
s.openedDate,
s.openedBy,
s.version,
s.mailto,
s.color,
s.subStatus,
s.`status`,
s.deadline,
s.`left`,
s.consumed,
s.estimate,
s.pri,
s.`mode`,
s.type,
s.`name`,
s.fromIssue,
s.feedback,
s.fromBug,
s.designVersion,
s.storyVersion,
s.story,
s.design,
s.module,
s.execution,
s.parent,
s.project,
s.id
from zt_task s
where 1= 1
and s.story in
<foreach collection="ids" item="id" index="index"
open="(" close=")" separator=",">
#{id}
</foreach>
</select>
<select id="multipleDepartProjectTeam" resultType="com.sa.zentao.entity.ZtTask">
SELECT s.reviewing_user,
s.deadline_time,
s.product,
s.finished_flag,
s.approval_result,
s.use_time,
s.apply_date,
s.approval_remark,
s.files,
s.vision,
s.deleted,
s.v2,
s.v1,
s.`lines`,
s.entry,
s.mr,
s.`order`,
s.repo,
s.activatedDate,
s.lastEditedDate,
s.lastEditedBy,
s.closedReason,
s.realDuration,
s.planDuration,
s.closedDate,
s.closedBy,
s.canceledDate,
s.canceledBy,
s.finishedList,
s.finishedDate,
s.finishedBy,
s.realStarted,
s.estStarted,
s.assignedDate,
s.assignedTo,
s.openedDate,
s.openedBy,
s.version,
s.mailto,
s.color,
s.subStatus,
s.`status`,
s.deadline,
s.`left`,
s.consumed,
s.estimate,
s.pri,
s.`mode`,
s.type,
s.`name`,
s.fromIssue,
s.feedback,
s.fromBug,
s.designVersion,
s.storyVersion,
s.story,
s.design,
s.module,
s.execution,
s.parent,
s.project,
s.id
from (
SELECT p.program,t.* from zt_task t,zt_product p WHERE t.product = p.id
and ((t.openedDate >= #{start} and t.openedDate <![CDATA[<=]]> #{end}) or (t.finishedDate <![CDATA[>=]]> #{start} and t.finishedDate <![CDATA[<=]]> #{end} ) )
and t.`status` = 'done'
GROUP BY p.program ,t.assignedTo
ORDER BY assignedTo desc
) s GROUP BY s.assignedTo
HAVING count(1) >1
</select>
<select id="taskListByPIdsAndDate" resultType="com.sa.zentao.entity.ZtTask">
SELECT s.reviewing_user,
s.deadline_time,
s.product,
s.finished_flag,
s.approval_result,
s.use_time,
s.apply_date,
s.approval_remark,
s.files,
s.vision,
s.deleted,
s.v2,
s.v1,
s.`lines`,
s.entry,
s.mr,
s.`order`,
s.repo,
s.activatedDate,
s.lastEditedDate,
s.lastEditedBy,
s.closedReason,
s.realDuration,
s.planDuration,
s.closedDate,
s.closedBy,
s.canceledDate,
s.canceledBy,
s.finishedList,
s.finishedDate,
s.finishedBy,
s.realStarted,
s.estStarted,
s.assignedDate,
s.assignedTo,
s.openedDate,
s.openedBy,
s.version,
s.mailto,
s.color,
s.subStatus,
s.`status`,
s.deadline,
s.`left`,
s.consumed,
s.estimate,
s.pri,
s.`mode`,
s.type,
s.`name`,
s.fromIssue,
s.feedback,
s.fromBug,
s.designVersion,
s.storyVersion,
s.story,
s.design,
s.module,
s.execution,
s.parent,
s.project,
s.id
from zt_task s where 1=1
and s.product in
<foreach collection="pids" item="id" index="index"
open="(" close=")" separator=",">
#{id}
</foreach>
and (
(openedDate >= #{start} and s.openedDate <![CDATA[<=]]> #{end})
or
( finishedDate >= #{start} and s.finishedDate <![CDATA[<=]]> #{end})
)
</select>
</mapper>