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
ae0a5747
Commit
ae0a5747
authored
Nov 21, 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
601ecc71
5657d57c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
462 additions
and
11 deletions
+462
-11
scheme.sql
doc/scheme.sql
+2
-1
ChangeFlowBiz.java
...om/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
+0
-0
ChangeFileService.java
...se/mail/yanxuan/change/biz/service/ChangeFileService.java
+27
-0
ChangeFlowExecService.java
...ail/yanxuan/change/biz/service/ChangeFlowExecService.java
+27
-0
ChangeFlowService.java
...se/mail/yanxuan/change/biz/service/ChangeFlowService.java
+16
-0
ChangeTypeService.java
.../yanxuan/change/biz/service/change/ChangeTypeService.java
+7
-0
ChangeFileServiceImpl.java
...anxuan/change/biz/service/impl/ChangeFileServiceImpl.java
+42
-0
ChangeFlowExecServiceImpl.java
...an/change/biz/service/impl/ChangeFlowExecServiceImpl.java
+47
-0
ChangeFlowServiceImpl.java
...anxuan/change/biz/service/impl/ChangeFlowServiceImpl.java
+11
-1
ChangeTypeServiceImpl.java
...change/biz/service/impl/change/ChangeTypeServiceImpl.java
+5
-0
ResponseCode.java
...netease/mail/yanxuan/change/common/bean/ResponseCode.java
+1
-0
ChangeResultEnum.java
...se/mail/yanxuan/change/common/enums/ChangeResultEnum.java
+33
-0
ChangeExecRecordMapper.java
...ail/yanxuan/change/dal/mapper/ChangeExecRecordMapper.java
+8
-0
ChangeFileMapper.java
...ease/mail/yanxuan/change/dal/mapper/ChangeFileMapper.java
+8
-0
ChangeFlowFile.java
...ail/yanxuan/change/dal/meta/model/req/ChangeFlowFile.java
+6
-0
BasicChangeFlowVO.java
...l/yanxuan/change/dal/meta/model/vo/BasicChangeFlowVO.java
+85
-0
ChangeFlowExecVO.java
...il/yanxuan/change/dal/meta/model/vo/ChangeFlowExecVO.java
+63
-0
ChangeFlowVO.java
...e/mail/yanxuan/change/dal/meta/model/vo/ChangeFlowVO.java
+66
-3
ChangeFlowController.java
...l/yanxuan/change/web/controller/ChangeFlowController.java
+8
-6
No files found.
doc/scheme.sql
View file @
ae0a5747
...
@@ -84,7 +84,8 @@ CREATE TABLE `TB_YX_QC_CHANGE_FILE`
...
@@ -84,7 +84,8 @@ CREATE TABLE `TB_YX_QC_CHANGE_FILE`
`file_url`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'文件地址'
,
`file_url`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'文件地址'
,
`create_time`
bigint
(
20
)
NOT
NULL
DEFAULT
'0'
COMMENT
'创建时间'
,
`create_time`
bigint
(
20
)
NOT
NULL
DEFAULT
'0'
COMMENT
'创建时间'
,
`update_time`
bigint
(
20
)
NOT
NULL
DEFAULT
'0'
COMMENT
'更新时间'
,
`update_time`
bigint
(
20
)
NOT
NULL
DEFAULT
'0'
COMMENT
'更新时间'
,
PRIMARY
KEY
(
`id`
)
PRIMARY
KEY
(
`id`
),
KEY
`key_record_id`
(
`change_record_id`
)
USING
BTREE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'附件表'
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'附件表'
;
CREATE
TABLE
`TB_YX_QC_CHANGE_EXEC_RECORD`
CREATE
TABLE
`TB_YX_QC_CHANGE_EXEC_RECORD`
...
...
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
View file @
ae0a5747
This diff is collapsed.
Click to expand it.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/service/ChangeFileService.java
0 → 100644
View file @
ae0a5747
/**
* @(#)ChangeFileService.java, 2022/11/21.
* <p/>
* Copyright 2022 Netease, Inc. All rights reserved.
* NETEASE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package
com
.
netease
.
mail
.
yanxuan
.
change
.
biz
.
service
;
import
java.util.List
;
import
com.netease.mail.yanxuan.change.dal.entity.ChangeFile
;
import
com.netease.mail.yanxuan.change.dal.meta.model.req.ChangeFlowFile
;
/**
* @Author zcwang
* @Date 2022/11/21
*/
public
interface
ChangeFileService
{
/**
* 获取工单对应的附件
* @param changeRecordId
* @return
*/
List
<
ChangeFlowFile
>
getChangeFileList
(
Long
changeRecordId
);
}
\ No newline at end of file
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/service/ChangeFlowExecService.java
0 → 100644
View file @
ae0a5747
/**
* @(#)ChangeFlowExecService.java, 2022/11/21.
* <p/>
* Copyright 2022 Netease, Inc. All rights reserved.
* NETEASE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package
com
.
netease
.
mail
.
yanxuan
.
change
.
biz
.
service
;
import
java.util.List
;
import
com.netease.mail.yanxuan.change.dal.entity.ChangeExecRecord
;
import
com.netease.mail.yanxuan.change.dal.meta.model.vo.ChangeFlowExecVO
;
/**
* @Author zcwang
* @Date 2022/11/21
*/
public
interface
ChangeFlowExecService
{
/**
* 查询行动项
* @param id
* @return
*/
List
<
ChangeFlowExecVO
>
getChangeFlowExecRecord
(
Long
id
);
}
\ No newline at end of file
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/service/ChangeFlowService.java
View file @
ae0a5747
...
@@ -6,6 +6,8 @@
...
@@ -6,6 +6,8 @@
*/
*/
package
com
.
netease
.
mail
.
yanxuan
.
change
.
biz
.
service
;
package
com
.
netease
.
mail
.
yanxuan
.
change
.
biz
.
service
;
import
java.util.List
;
import
com.netease.mail.yanxuan.change.biz.config.TitleConfig
;
import
com.netease.mail.yanxuan.change.biz.config.TitleConfig
;
import
com.netease.mail.yanxuan.change.dal.entity.ChangeRecord
;
import
com.netease.mail.yanxuan.change.dal.entity.ChangeRecord
;
...
@@ -35,4 +37,17 @@ public interface ChangeFlowService {
...
@@ -35,4 +37,17 @@ public interface ChangeFlowService {
*/
*/
ChangeRecord
getByFlowId
(
Long
flowId
);
ChangeRecord
getByFlowId
(
Long
flowId
);
/**
* 更新工单信息
* @param changeRecord
* @return
*/
Boolean
updateRecord
(
ChangeRecord
changeRecord
);
/**
* 根据实例id获取工单详情
* @param id
* @return
*/
ChangeRecord
getById
(
Long
id
);
}
}
\ No newline at end of file
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/service/change/ChangeTypeService.java
View file @
ae0a5747
...
@@ -45,4 +45,11 @@ public interface ChangeTypeService {
...
@@ -45,4 +45,11 @@ public interface ChangeTypeService {
* @return
* @return
*/
*/
List
<
ChangeTypePo
>
queryConfigType
();
List
<
ChangeTypePo
>
queryConfigType
();
/**
* 根据主键获取类型信息
* @param id
* @return
*/
ChangeType
getChangeTypeById
(
Long
id
);
}
}
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/service/impl/ChangeFileServiceImpl.java
0 → 100644
View file @
ae0a5747
/**
* @(#)ChangeFileServiceImpl.java, 2022/11/21.
* <p/>
* Copyright 2022 Netease, Inc. All rights reserved.
* NETEASE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package
com
.
netease
.
mail
.
yanxuan
.
change
.
biz
.
service
.
impl
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.stream.Collectors
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.netease.mail.yanxuan.change.biz.service.ChangeFileService
;
import
com.netease.mail.yanxuan.change.dal.entity.ChangeFile
;
import
com.netease.mail.yanxuan.change.dal.mapper.ChangeFileMapper
;
import
com.netease.mail.yanxuan.change.dal.meta.model.req.ChangeFlowFile
;
/**
* @Author zcwang
* @Date 2022/11/21
*/
@Service
public
class
ChangeFileServiceImpl
implements
ChangeFileService
{
@Autowired
private
ChangeFileMapper
changeFileMapper
;
@Override
public
List
<
ChangeFlowFile
>
getChangeFileList
(
Long
changeRecordId
)
{
List
<
ChangeFile
>
changeFiles
=
changeFileMapper
.
selectByChangeRecordId
(
changeRecordId
);
if
(
CollectionUtils
.
isNotEmpty
(
changeFiles
))
{
return
changeFiles
.
stream
().
map
(
c
->
ChangeFlowFile
.
builder
().
fileType
(
c
.
getFileType
()).
fileName
(
c
.
getFileName
())
.
fileUrl
(
c
.
getFileUrl
()).
build
()).
collect
(
Collectors
.
toList
());
}
return
new
ArrayList
<>();
}
}
\ No newline at end of file
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/service/impl/ChangeFlowExecServiceImpl.java
0 → 100644
View file @
ae0a5747
/**
* @(#)ChangeFlowExecServiceImpl.java, 2022/11/21.
* <p/>
* Copyright 2022 Netease, Inc. All rights reserved.
* NETEASE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package
com
.
netease
.
mail
.
yanxuan
.
change
.
biz
.
service
.
impl
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.stream.Collectors
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.netease.mail.yanxuan.change.biz.service.ChangeFlowExecService
;
import
com.netease.mail.yanxuan.change.dal.entity.ChangeExecRecord
;
import
com.netease.mail.yanxuan.change.dal.mapper.ChangeExecRecordMapper
;
import
com.netease.mail.yanxuan.change.dal.meta.model.vo.ChangeFlowExecVO
;
/**
* @Author zcwang
* @Date 2022/11/21
*/
@Service
public
class
ChangeFlowExecServiceImpl
implements
ChangeFlowExecService
{
@Autowired
private
ChangeExecRecordMapper
changeExecRecordMapper
;
@Override
public
List
<
ChangeFlowExecVO
>
getChangeFlowExecRecord
(
Long
id
)
{
List
<
ChangeExecRecord
>
changeExecRecords
=
changeExecRecordMapper
.
selectByChangeRecordId
(
id
);
if
(
CollectionUtils
.
isNotEmpty
(
changeExecRecords
))
{
return
changeExecRecords
.
stream
()
.
map
(
c
->
ChangeFlowExecVO
.
builder
().
changeRecordId
(
c
.
getChangeRecordId
())
.
changeExecDepartment
(
c
.
getChangeExecDepartment
()).
changeExecUser
(
c
.
getChangeExecUser
())
.
changeRiskDesc
(
c
.
getChangeRiskDesc
()).
changeExecProject
(
c
.
getChangeExecProject
())
.
changeChecking
(
c
.
getChangeChecking
()).
changeExecFinishTime
(
c
.
getChangeExecFinishTime
())
.
changeExecFinishDesc
(
c
.
getChangeExecFinishDesc
()).
build
())
.
collect
(
Collectors
.
toList
());
}
return
new
ArrayList
<>();
}
}
\ No newline at end of file
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/service/impl/ChangeFlowServiceImpl.java
View file @
ae0a5747
...
@@ -14,7 +14,6 @@ import com.netease.mail.yanxuan.change.biz.config.TitleConfig;
...
@@ -14,7 +14,6 @@ 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.ChangeFlowService
;
import
com.netease.mail.yanxuan.change.dal.entity.ChangeRecord
;
import
com.netease.mail.yanxuan.change.dal.entity.ChangeRecord
;
import
com.netease.mail.yanxuan.change.dal.mapper.ChangeRecordMapper
;
import
com.netease.mail.yanxuan.change.dal.mapper.ChangeRecordMapper
;
import
com.netease.mail.yanxuan.change.dal.meta.model.vo.ChangeFlowVO
;
/**
/**
* @Author zcwang
* @Author zcwang
...
@@ -43,4 +42,14 @@ public class ChangeFlowServiceImpl implements ChangeFlowService {
...
@@ -43,4 +42,14 @@ public class ChangeFlowServiceImpl implements ChangeFlowService {
public
ChangeRecord
getByFlowId
(
Long
flowId
)
{
public
ChangeRecord
getByFlowId
(
Long
flowId
)
{
return
changeRecordMapper
.
selectByFlowId
(
flowId
);
return
changeRecordMapper
.
selectByFlowId
(
flowId
);
}
}
@Override
public
Boolean
updateRecord
(
ChangeRecord
changeRecord
)
{
return
changeRecordMapper
.
updateByPrimaryKey
(
changeRecord
)
>
0
;
}
@Override
public
ChangeRecord
getById
(
Long
id
)
{
return
changeRecordMapper
.
selectByPrimaryKey
(
id
);
}
}
}
\ No newline at end of file
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/service/impl/change/ChangeTypeServiceImpl.java
View file @
ae0a5747
...
@@ -167,6 +167,11 @@ public class ChangeTypeServiceImpl implements ChangeTypeService {
...
@@ -167,6 +167,11 @@ public class ChangeTypeServiceImpl implements ChangeTypeService {
return
pos
;
return
pos
;
}
}
@Override
public
ChangeType
getChangeTypeById
(
Long
id
)
{
return
mapper
.
selectByPrimaryKey
(
id
);
}
/**
/**
* 判断变更类型是否重复(只判断未伪善出的)
* 判断变更类型是否重复(只判断未伪善出的)
* @param changeTypes
* @param changeTypes
...
...
yanxuan-qc-change-system-common/src/main/java/com/netease/mail/yanxuan/change/common/bean/ResponseCode.java
View file @
ae0a5747
...
@@ -128,6 +128,7 @@ public enum ResponseCode {
...
@@ -128,6 +128,7 @@ public enum ResponseCode {
NODE_ERROR
(
1004
,
"工单已流转至其他节点"
),
NODE_ERROR
(
1004
,
"工单已流转至其他节点"
),
NO_AUTH
(
1005
,
"没有当前节点操作权限"
),
NO_AUTH
(
1005
,
"没有当前节点操作权限"
),
CHANGE_SUBJECT_ERROR
(
1006
,
"变更主体类型错误"
),
CHANGE_SUBJECT_ERROR
(
1006
,
"变更主体类型错误"
),
CHANGE_TYPE_NOT_EXIST
(
1007
,
"变更类型不存在"
),
/**
/**
* 无权限
* 无权限
...
...
yanxuan-qc-change-system-common/src/main/java/com/netease/mail/yanxuan/change/common/enums/ChangeResultEnum.java
0 → 100644
View file @
ae0a5747
/**
* @(#)ChangeResultEnum.java, 2022/11/21.
* <p/>
* Copyright 2022 Netease, Inc. All rights reserved.
* NETEASE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package
com
.
netease
.
mail
.
yanxuan
.
change
.
common
.
enums
;
/**
* @Author zcwang
* @Date 2022/11/21
*/
public
enum
ChangeResultEnum
{
INIT
(
0
,
"初始化"
),
FINISH_ALL
(
1
,
"完成变更管理,风险可控,可实施变更"
),
FINISH_PART
(
2
,
"完成变更管理,部分风险不可控,待修订变更方案"
),
CANCEL
(
3
,
"不通过,变更取消"
),
DELAY
(
4
,
"延期确认"
);
private
Integer
status
;
private
String
desc
;
ChangeResultEnum
(
Integer
status
,
String
desc
)
{
this
.
status
=
status
;
this
.
desc
=
desc
;
}
public
Integer
getStatus
()
{
return
status
;
}
}
\ No newline at end of file
yanxuan-qc-change-system-dal/src/main/java/com/netease/mail/yanxuan/change/dal/mapper/ChangeExecRecordMapper.java
View file @
ae0a5747
...
@@ -6,7 +6,11 @@
...
@@ -6,7 +6,11 @@
*/
*/
package
com
.
netease
.
mail
.
yanxuan
.
change
.
dal
.
mapper
;
package
com
.
netease
.
mail
.
yanxuan
.
change
.
dal
.
mapper
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Select
;
import
com.netease.mail.yanxuan.change.dal.entity.ChangeExecRecord
;
import
com.netease.mail.yanxuan.change.dal.entity.ChangeExecRecord
;
...
@@ -16,4 +20,7 @@ import com.netease.mail.yanxuan.change.dal.entity.ChangeExecRecord;
...
@@ -16,4 +20,7 @@ import com.netease.mail.yanxuan.change.dal.entity.ChangeExecRecord;
*/
*/
@Mapper
@Mapper
public
interface
ChangeExecRecordMapper
extends
tk
.
mybatis
.
mapper
.
common
.
Mapper
<
ChangeExecRecord
>
{
public
interface
ChangeExecRecordMapper
extends
tk
.
mybatis
.
mapper
.
common
.
Mapper
<
ChangeExecRecord
>
{
@Select
(
"SELECT * FROM TB_YX_QC_CHANGE_EXEC_RECORD WHERE change_record_id = #{changeRecordId}}"
)
List
<
ChangeExecRecord
>
selectByChangeRecordId
(
@Param
(
"id"
)
Long
id
);
}
}
\ No newline at end of file
yanxuan-qc-change-system-dal/src/main/java/com/netease/mail/yanxuan/change/dal/mapper/ChangeFileMapper.java
View file @
ae0a5747
...
@@ -6,7 +6,11 @@
...
@@ -6,7 +6,11 @@
*/
*/
package
com
.
netease
.
mail
.
yanxuan
.
change
.
dal
.
mapper
;
package
com
.
netease
.
mail
.
yanxuan
.
change
.
dal
.
mapper
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Select
;
import
com.netease.mail.yanxuan.change.dal.entity.ChangeFile
;
import
com.netease.mail.yanxuan.change.dal.entity.ChangeFile
;
...
@@ -16,4 +20,7 @@ import com.netease.mail.yanxuan.change.dal.entity.ChangeFile;
...
@@ -16,4 +20,7 @@ import com.netease.mail.yanxuan.change.dal.entity.ChangeFile;
*/
*/
@Mapper
@Mapper
public
interface
ChangeFileMapper
extends
tk
.
mybatis
.
mapper
.
common
.
Mapper
<
ChangeFile
>
{
public
interface
ChangeFileMapper
extends
tk
.
mybatis
.
mapper
.
common
.
Mapper
<
ChangeFile
>
{
@Select
(
"SELECT * FROM TB_YX_QC_CHANGE_FILE WHERE change_record_id = #{changeRecordId}"
)
List
<
ChangeFile
>
selectByChangeRecordId
(
@Param
(
"changeRecordId"
)
Long
changeRecordId
);
}
}
\ No newline at end of file
yanxuan-qc-change-system-dal/src/main/java/com/netease/mail/yanxuan/change/dal/meta/model/req/ChangeFlowFile.java
View file @
ae0a5747
...
@@ -6,12 +6,18 @@
...
@@ -6,12 +6,18 @@
*/
*/
package
com
.
netease
.
mail
.
yanxuan
.
change
.
dal
.
meta
.
model
.
req
;
package
com
.
netease
.
mail
.
yanxuan
.
change
.
dal
.
meta
.
model
.
req
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
/**
* @Author zcwang
* @Author zcwang
* @Date 2022/11/14
* @Date 2022/11/14
*/
*/
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@Data
public
class
ChangeFlowFile
{
public
class
ChangeFlowFile
{
...
...
yanxuan-qc-change-system-dal/src/main/java/com/netease/mail/yanxuan/change/dal/meta/model/vo/BasicChangeFlowVO.java
0 → 100644
View file @
ae0a5747
/**
* @(#)BasicChangeFlowVO.java, 2022/11/21.
* <p/>
* Copyright 2022 Netease, Inc. All rights reserved.
* NETEASE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package
com
.
netease
.
mail
.
yanxuan
.
change
.
dal
.
meta
.
model
.
vo
;
import
java.util.List
;
import
com.netease.mail.yanxuan.change.dal.entity.ChangeFile
;
import
com.netease.mail.yanxuan.change.dal.meta.model.req.ChangeFlowFile
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @Author zcwang
* @Date 2022/11/21
*/
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
public
class
BasicChangeFlowVO
{
/**
* 一级变更类型id
*/
private
Long
parentChangeClassId
;
/**
* 二级变更类型id
*/
private
Long
sonChangeClassId
;
/**
* 变更主体
*/
private
Integer
changeSubject
;
/**
* 变更商品(变更主体为商品时有效)
*/
private
String
changeItem
;
/**
* 变更供应商(变更主体为供应商时有效)
*/
private
String
changeSupplier
;
/**
* 变更原因
*/
private
String
changeReason
;
/**
* 变更内容
*/
private
String
changeContent
;
/**
* 变更潜在风险描述
*/
private
String
changeRiskDesc
;
/**
* 变更收益类型
*/
private
Integer
changeProfit
;
/**
* 变更收益说明
*/
private
String
changeProfitDesc
;
/**
* 附件
*/
private
List
<
ChangeFlowFile
>
files
;
}
\ No newline at end of file
yanxuan-qc-change-system-dal/src/main/java/com/netease/mail/yanxuan/change/dal/meta/model/vo/ChangeFlowExecVO.java
0 → 100644
View file @
ae0a5747
/**
* @(#)ChangeFlowExecVO.java, 2022/11/21.
* <p/>
* Copyright 2022 Netease, Inc. All rights reserved.
* NETEASE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package
com
.
netease
.
mail
.
yanxuan
.
change
.
dal
.
meta
.
model
.
vo
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @Author zcwang
* @Date 2022/11/21
*/
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
public
class
ChangeFlowExecVO
{
/**
* 变更记录id
*/
private
Long
changeRecordId
;
/**
* 变更执行部门名
*/
private
String
changeExecDepartment
;
/**
* 变更行动人(不同类型存储不同内容)
*/
private
String
changeExecUser
;
/**
* 变更风险描述
*/
private
String
changeRiskDesc
;
/**
* 行动项
*/
private
String
changeExecProject
;
/**
* 变更措施验证
*/
private
String
changeChecking
;
/**
* 行动完成时间
*/
private
Long
changeExecFinishTime
;
/**
* 行动完成情况
*/
private
String
changeExecFinishDesc
;
}
\ No newline at end of file
yanxuan-qc-change-system-dal/src/main/java/com/netease/mail/yanxuan/change/dal/meta/model/vo/ChangeFlowVO.java
View file @
ae0a5747
...
@@ -10,6 +10,8 @@ import java.util.List;
...
@@ -10,6 +10,8 @@ import java.util.List;
import
com.netease.mail.yanxuan.change.common.enums.ChangeStatusEnum
;
import
com.netease.mail.yanxuan.change.common.enums.ChangeStatusEnum
;
import
com.netease.mail.yanxuan.change.common.enums.ChangeSubjectEnum
;
import
com.netease.mail.yanxuan.change.common.enums.ChangeSubjectEnum
;
import
com.netease.mail.yanxuan.change.dal.entity.ChangeExecRecord
;
import
com.netease.mail.yanxuan.change.dal.meta.model.req.ChangeFlowFile
;
import
lombok.Builder
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.Data
;
...
@@ -19,7 +21,6 @@ import lombok.Data;
...
@@ -19,7 +21,6 @@ import lombok.Data;
* @Date 2022/11/14
* @Date 2022/11/14
*/
*/
@Builder
@Data
@Data
public
class
ChangeFlowVO
{
public
class
ChangeFlowVO
{
...
@@ -38,6 +39,22 @@ public class ChangeFlowVO {
...
@@ -38,6 +39,22 @@ public class ChangeFlowVO {
* 变更类型,一级类型>二级类型
* 变更类型,一级类型>二级类型
*/
*/
private
String
changeType
;
private
String
changeType
;
/**
* 变更等级
*/
private
Integer
changeLevel
;
/**
* 变更负责部门名
*/
private
String
changeDepartment
;
/**
* 变更原因
*/
private
String
changeReason
;
/**
/**
* 变更内容
* 变更内容
*/
*/
...
@@ -46,10 +63,30 @@ public class ChangeFlowVO {
...
@@ -46,10 +63,30 @@ public class ChangeFlowVO {
* 变更负责人
* 变更负责人
*/
*/
private
String
changeCommander
;
private
String
changeCommander
;
/**
* 变更潜在风险描述
*/
private
String
changeRiskDesc
;
/**
* 附件
*/
private
List
<
ChangeFlowFile
>
files
;
/**
* 变更收益类型
*/
private
Integer
changeProfit
;
/**
* 变更收益说明
*/
private
String
changeProfitDesc
;
/**
/**
* 变更商品列表
* 变更商品列表
*/
*/
private
List
<
ChangeItemVO
>
changeItems
;
private
String
changeItems
;
/**
/**
* 变更供应商
* 变更供应商
*/
*/
...
@@ -66,9 +103,34 @@ public class ChangeFlowVO {
...
@@ -66,9 +103,34 @@ public class ChangeFlowVO {
/**
/**
* 变更行动部门
* 变更行动部门
*/
*/
private
String
changeExecDepartment
;
private
List
<
ChangeFlowExecVO
>
changeExecDepartment
;
/**
/**
* 创建时间
* 创建时间
*/
*/
private
Long
createTime
;
private
Long
createTime
;
/**
* 变更结果确认时间
*/
private
Long
changeConfirmResultTime
;
/**
* 工单状态
*/
private
Integer
state
;
/**
* 取消原因
*/
private
String
cancelReason
;
/**
* 变更结论
*/
private
Integer
changeResult
;
/**
* 备注
*/
private
String
remark
;
}
}
\ No newline at end of file
yanxuan-qc-change-system-web/src/main/java/com/netease/mail/yanxuan/change/web/controller/ChangeFlowController.java
View file @
ae0a5747
...
@@ -8,11 +8,13 @@ package com.netease.mail.yanxuan.change.web.controller;
...
@@ -8,11 +8,13 @@ package com.netease.mail.yanxuan.change.web.controller;
import
javax.validation.Valid
;
import
javax.validation.Valid
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
...
@@ -23,6 +25,8 @@ import com.netease.mail.yanxuan.change.biz.service.ChangeFlowService;
...
@@ -23,6 +25,8 @@ import com.netease.mail.yanxuan.change.biz.service.ChangeFlowService;
import
com.netease.mail.yanxuan.change.dal.meta.model.req.ChangeFlowCancelReq
;
import
com.netease.mail.yanxuan.change.dal.meta.model.req.ChangeFlowCancelReq
;
import
com.netease.mail.yanxuan.change.dal.meta.model.req.ChangeFlowCreateReq
;
import
com.netease.mail.yanxuan.change.dal.meta.model.req.ChangeFlowCreateReq
;
import
com.netease.mail.yanxuan.change.dal.meta.model.req.ChangeFlowSubmitReq
;
import
com.netease.mail.yanxuan.change.dal.meta.model.req.ChangeFlowSubmitReq
;
import
com.netease.mail.yanxuan.change.dal.meta.model.vo.BasicChangeFlowVO
;
import
com.netease.mail.yanxuan.change.dal.meta.model.vo.ChangeFlowVO
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -46,9 +50,8 @@ public class ChangeFlowController {
...
@@ -46,9 +50,8 @@ public class ChangeFlowController {
* @return
* @return
*/
*/
@GetMapping
(
"/detail"
)
@GetMapping
(
"/detail"
)
public
AjaxResult
<
Void
>
detail
()
{
public
AjaxResult
<
ChangeFlowVO
>
detail
(
@RequestParam
Long
id
)
{
return
AjaxResult
.
success
(
changeFlowBiz
.
detail
(
id
));
return
AjaxResult
.
success
();
}
}
/**
/**
...
@@ -111,9 +114,8 @@ public class ChangeFlowController {
...
@@ -111,9 +114,8 @@ public class ChangeFlowController {
* @return
* @return
*/
*/
@GetMapping
(
"/quote"
)
@GetMapping
(
"/quote"
)
public
AjaxResult
<
Void
>
quote
()
{
public
AjaxResult
<
BasicChangeFlowVO
>
quote
(
@RequestParam
Long
flowId
)
{
return
AjaxResult
.
success
(
changeFlowBiz
.
quote
(
flowId
));
return
AjaxResult
.
success
();
}
}
...
...
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