Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yanxuan-qc-change-system
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
胡园园
yanxuan-qc-change-system
Commits
7e5af588
Commit
7e5af588
authored
Dec 08, 2022
by
jx-art
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/feature-changeFlow-221110' into feature-changeFlow-221110
parents
3e72713f
f0fbec4f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
1 deletions
+16
-1
ChangeFlowBiz.java
...om/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
+7
-1
ChangeRecordMapper.xml
.../src/main/resources/mybatis/mapper/ChangeRecordMapper.xml
+1
-0
ChangeFlowController.java
...l/yanxuan/change/web/controller/ChangeFlowController.java
+8
-0
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
View file @
7e5af588
...
...
@@ -245,6 +245,13 @@ public class ChangeFlowBiz {
return
flowId
;
}
// todo: 变更发起人≠变更负责人,到达501节点,发送邮件,变更申请
qcSendEmail
(
changeCommander
,
changeRecord
);
// 如果是供应商,再次发送供应商邮件
return
flowId
;
}
private
void
qcSendEmail
(
String
changeCommander
,
ChangeRecord
changeRecord
)
{
IusDepartmentReq
iusDepartmentReq
=
new
IusDepartmentReq
();
iusDepartmentReq
.
setHasOrgPos
(
true
);
iusDepartmentReq
.
setIcac
(
true
);
...
...
@@ -264,7 +271,6 @@ public class ChangeFlowBiz {
param
.
put
(
"flowUrl"
,
"工单链接"
);
iEmailService
.
sendEmail
(
Collections
.
singletonList
(
changeCommander
),
ccList
,
param
,
EmailTemplateEnum
.
YX_QC_CHANGE_RELEASE_FLOW
,
Collections
.
singletonList
(
changeRecord
.
getId
().
toString
()));
return
flowId
;
}
private
List
<
ChangeFile
>
buildChangeFileRecord
(
Long
changeRecordId
,
List
<
ChangeFlowFile
>
files
,
Integer
type
)
{
...
...
yanxuan-qc-change-system-dal/src/main/resources/mybatis/mapper/ChangeRecordMapper.xml
View file @
7e5af588
...
...
@@ -45,6 +45,7 @@
select
<include
refid=
"Base_Column_List"
/>
from TB_YX_QC_CHANGE_RECORD
<where>
create_source = #{createSource}
<if
test=
"itemId != null "
>
and change_item like concat('%',#{itemId},'%')
</if>
...
...
yanxuan-qc-change-system-web/src/main/java/com/netease/mail/yanxuan/change/web/controller/ChangeFlowController.java
View file @
7e5af588
...
...
@@ -9,7 +9,10 @@ package com.netease.mail.yanxuan.change.web.controller;
import
javax.servlet.http.HttpServletResponse
;
import
javax.validation.Valid
;
import
org.apache.logging.log4j.util.Strings
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.Assert
;
import
org.springframework.util.StringUtils
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
...
...
@@ -22,6 +25,7 @@ import com.netease.mail.yanxuan.change.biz.config.TitleConfig;
import
com.netease.mail.yanxuan.change.biz.service.ChangeFlowService
;
import
com.netease.mail.yanxuan.change.biz.service.InteriorChangeConfigService
;
import
com.netease.mail.yanxuan.change.common.bean.AjaxResult
;
import
com.netease.mail.yanxuan.change.common.enums.CreateSourceEnum
;
import
com.netease.mail.yanxuan.change.dal.meta.model.po.QueryCommanderEmailReq
;
import
com.netease.mail.yanxuan.change.dal.meta.model.req.ChangeFlowCancelReq
;
import
com.netease.mail.yanxuan.change.dal.meta.model.req.ChangeFlowCreateReq
;
...
...
@@ -95,6 +99,10 @@ public class ChangeFlowController {
changeFlowListQueryReq
.
setChangeExecDepartment
(
changeExecDepartment
);
changeFlowListQueryReq
.
setStartTime
(
startTime
);
changeFlowListQueryReq
.
setEndTime
(
endTime
);
changeFlowListQueryReq
.
setCreateSource
(
createSource
);
if
(
CreateSourceEnum
.
TONG_ZHOU
.
getType
().
equals
(
createSource
))
{
Assert
.
isTrue
(
Strings
.
isNotBlank
(
supplier
),
"同舟端查询供应商id不可为空"
);
}
return
AjaxResult
.
success
(
changeFlowBiz
.
query
(
page
,
pageSize
,
changeFlowListQueryReq
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment