Merge branch 'refs/heads/dev-2025-temporary' into storymuchexec_250108
# Conflicts: # src/main/java/com/sa/zentao/service/impl/ZtTaskServiceImpl.java # src/main/resources/mapper/ZtStoryMapper.xml
This commit is contained in:
@@ -13,6 +13,7 @@ public enum UserType {
|
||||
UI(7, "UI工程师"),
|
||||
XMJL(8, "项目经理"),
|
||||
XMZL(9, "项目助理"),
|
||||
CPJL(10, "产品经理"),
|
||||
;
|
||||
|
||||
@EnumValue
|
||||
|
||||
@@ -107,6 +107,14 @@ public class ZtProjectQo extends BaseQo {
|
||||
private String spec;
|
||||
|
||||
private String bugType;
|
||||
/**
|
||||
* 测试人员
|
||||
*/
|
||||
private String testUser;
|
||||
/**
|
||||
* 产品人员
|
||||
*/
|
||||
private String productUser;
|
||||
|
||||
private String account;
|
||||
//1 延期 2不延期
|
||||
|
||||
@@ -931,10 +931,10 @@ public class ZtTaskServiceImpl extends ServiceImpl<ZtTaskMapper, ZtTask> impleme
|
||||
String finishBy = StringUtils.isEmpty(ztTask.getFinishedby())?RiskUserThreadLocal.get().getName():ztTask.getFinishedby();
|
||||
//如果是测试任务 提交交付物
|
||||
if("test".equals(ztTask.getType())&&!StringUtils.isEmpty(ztTask.getDeliverContent())){
|
||||
actionService.addAction(ActionType.RW, ActionStatus.TJJFW, ztTask.getId(), projectproduct == null ? null : projectproduct.getProduct().toString(), projectproduct == null ? null : projectproduct.getProject(), ztTask.getExecution(),
|
||||
actionService.addAction(ActionType.RW, ActionStatus.TJJFW, dto.getId(), projectproduct == null ? null : projectproduct.getProduct().toString(), projectproduct == null ? null : projectproduct.getProject(), ztTask.getExecution(),
|
||||
StringUtils.isEmpty(finishBy) ? RiskUserThreadLocal.get().getName() : finishBy, dto.getDeliverContent(), null);
|
||||
if(ztTask.getStory()!=null&&ztTask.getStory()!=0){
|
||||
actionService.addAction(ActionType.XQ, ActionStatus.TJJFW, ztTask.getStory(), projectproduct == null ? null : projectproduct.getProduct().toString(), projectproduct == null ? null : projectproduct.getProject(), ztTask.getExecution(),
|
||||
actionService.addAction(ActionType.XQ, ActionStatus.TJJFW, dto.getId(), projectproduct == null ? null : projectproduct.getProduct().toString(), projectproduct == null ? null : projectproduct.getProject(), ztTask.getExecution(),
|
||||
StringUtils.isEmpty(finishBy) ? RiskUserThreadLocal.get().getName() : finishBy, dto.getDeliverContent(), null);
|
||||
}
|
||||
if(ztTask.getStory()!=null&&ztTask.getStory()!=0){
|
||||
@@ -1034,7 +1034,13 @@ public class ZtTaskServiceImpl extends ServiceImpl<ZtTaskMapper, ZtTask> impleme
|
||||
actionService.addAction(ActionType.RW, ActionStatus.TJJFW, dto.getId(), projectproduct == null ? null : projectproduct.getProduct().toString(), projectproduct == null ? null : projectproduct.getProject(), ztTask.getExecution(),
|
||||
StringUtils.isEmpty(finishBy) ? RiskUserThreadLocal.get().getName() : finishBy, dto.getDeliverContent(), null);
|
||||
if(ztTask.getStory()!=null&&ztTask.getStory()!=0){
|
||||
actionService.addAction(ActionType.XQ, ActionStatus.TJJFW, ztTask.getStory(), projectproduct == null ? null : projectproduct.getProduct().toString(), projectproduct == null ? null : projectproduct.getProject(), ztTask.getExecution(),
|
||||
//更新需求交付物
|
||||
ZtStory ztStory = this.storyService.getById(ztTask.getStory());
|
||||
if(ztStory!=null){
|
||||
ztStory.setDeliverContent(ztTask.getDeliverContent());
|
||||
this.storyService.updateById(ztStory);
|
||||
}
|
||||
actionService.addAction(ActionType.XQ, ActionStatus.TJJFW, dto.getId(), projectproduct == null ? null : projectproduct.getProduct().toString(), projectproduct == null ? null : projectproduct.getProject(), ztTask.getExecution(),
|
||||
StringUtils.isEmpty(finishBy) ? RiskUserThreadLocal.get().getName() : finishBy, dto.getDeliverContent(), null);
|
||||
}
|
||||
}
|
||||
@@ -1123,6 +1129,7 @@ public class ZtTaskServiceImpl extends ServiceImpl<ZtTaskMapper, ZtTask> impleme
|
||||
}
|
||||
|
||||
|
||||
|
||||
ZtProjectproduct projectproduct = projectproductService.getOne(new QueryWrapper<ZtProjectproduct>().lambda().eq(ZtProjectproduct::getProject, ztTask.getProject()));
|
||||
|
||||
//添加action
|
||||
|
||||
@@ -213,6 +213,13 @@
|
||||
and s.title like concat('%', #{qo.title}, '%')
|
||||
</if>
|
||||
|
||||
<if test="qo.testUser != null and qo.testUser != '' ">
|
||||
and s.test_user like concat('%', #{qo.testUser}, '%')
|
||||
</if>
|
||||
<if test="qo.productUser != null and qo.productUser != '' ">
|
||||
and s.product_user like concat('%', #{qo.productUser}, '%')
|
||||
</if>
|
||||
|
||||
<if test="qo.id != null ">
|
||||
and s.id = #{qo.id}
|
||||
</if>
|
||||
@@ -374,6 +381,18 @@
|
||||
<!-- <if test="qo.endDate !=null">-->
|
||||
<!-- and s.openedDate <![CDATA[<=]]> #{qo.endDate}-->
|
||||
<!-- </if>-->
|
||||
<!-- <if test="qo.startDate !=null">-->
|
||||
<!-- and s.openedDate <![CDATA[>=]]> #{qo.startDate}-->
|
||||
<!-- </if>-->
|
||||
<!-- <if test="qo.endDate !=null">-->
|
||||
<!-- and s.openedDate <![CDATA[<=]]> #{qo.endDate}-->
|
||||
<!-- </if>-->
|
||||
<if test="qo.testUser != null and qo.testUser != '' ">
|
||||
and s.test_user like concat('%', #{qo.testUser}, '%')
|
||||
</if>
|
||||
<if test="qo.productUser != null and qo.productUser != '' ">
|
||||
and s.product_user like concat('%', #{qo.productUser}, '%')
|
||||
</if>
|
||||
<if test="qo.pri != null and qo.pri != '' ">
|
||||
and s.pri = #{qo.pri}
|
||||
</if>
|
||||
@@ -879,7 +898,12 @@
|
||||
WHERE 1=1
|
||||
|
||||
|
||||
|
||||
<if test="qo.testUser != null and qo.testUser != '' ">
|
||||
and s.test_user like concat('%', #{qo.testUser}, '%')
|
||||
</if>
|
||||
<if test="qo.productUser != null and qo.productUser != '' ">
|
||||
and s.product_user like concat('%', #{qo.productUser}, '%')
|
||||
</if>
|
||||
|
||||
<if test="qo.pri != null and qo.pri != '' ">
|
||||
and s.pri = #{qo.pri}
|
||||
|
||||
BIN
src/main/resources/templates/scope/产品经理考核.xlsx
Normal file
BIN
src/main/resources/templates/scope/产品经理考核.xlsx
Normal file
Binary file not shown.
Reference in New Issue
Block a user