Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jgjy
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
jgjy
Commits
2886290c
提交
2886290c
authored
7月 30, 2019
作者:
malei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(school-sysUser): 征订流程管理
1. 修改征订流程名称 References: N/A
上级
8ec02440
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
110 行增加
和
6 行删除
+110
-6
SchoolRequestPath.java
.../zrqx/core/constant/school/sysuser/SchoolRequestPath.java
+24
-0
EditFlowNameForm.java
.../form/school/sysuser/fg/biddingflow/EditFlowNameForm.java
+17
-0
BiddingFlowController.java
...sysuser/controller/biddingflow/BiddingFlowController.java
+7
-0
BiddingFlowMapper.java
.../school/sysuser/mapper/biddingflow/BiddingFlowMapper.java
+8
-0
BiddingFlowService.java
...chool/sysuser/service/biddingflow/BiddingFlowService.java
+19
-0
BiddingFlowServiceImpl.java
...l/sysuser/service/biddingflow/BiddingFlowServiceImpl.java
+35
-6
没有找到文件。
com.zrqx.core/src/main/java/com/zrqx/core/constant/school/sysuser/SchoolRequestPath.java
浏览文件 @
2886290c
...
...
@@ -32,4 +32,28 @@ public class SchoolRequestPath extends BaseRequestPath {
/**推荐*/
public
static
final
String
RECOMMEND
=
"/recommend"
;
/**初始*/
public
static
final
String
INITIAL
=
"/initial"
;
/**中间*/
public
static
final
String
MID
=
"/mid"
;
/**最后*/
public
static
final
String
LAST
=
"/last"
;
/**驳回*/
public
static
final
String
OVERRULE
=
"/overrule"
;
/**审核*/
public
static
final
String
APPROVED
=
"/approved"
;
/**教材*/
public
static
final
String
BOOK_RECOMMEND
=
"/book-recommend"
;
/**教材*/
public
static
final
String
EDIT
=
"/edit"
;
}
com.zrqx.core/src/main/java/com/zrqx/core/form/school/sysuser/fg/biddingflow/EditFlowNameForm.java
0 → 100644
浏览文件 @
2886290c
package
com
.
zrqx
.
core
.
form
.
school
.
sysuser
.
fg
.
biddingflow
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@Data
@ApiModel
(
value
=
"EditFlowNameForm"
,
description
=
"修改征订流程名称"
)
public
class
EditFlowNameForm
{
@ApiModelProperty
(
"征订流程ID"
)
private
Integer
flowId
;
@ApiModelProperty
(
"征订流程名称"
)
private
String
flowName
;
}
com.zrqx.school.sysuser/src/main/java/com/zrqx/school/sysuser/controller/biddingflow/BiddingFlowController.java
浏览文件 @
2886290c
...
...
@@ -3,6 +3,7 @@ package com.zrqx.school.sysuser.controller.biddingflow;
import
com.zrqx.core.constant.school.sysuser.SchoolRequestPath
;
import
com.zrqx.core.form.school.sysuser.fg.biddingflow.CreateFlowAndUserRelationForm
;
import
com.zrqx.core.form.school.sysuser.fg.biddingflow.CreateFlowForm
;
import
com.zrqx.core.form.school.sysuser.fg.biddingflow.EditFlowNameForm
;
import
com.zrqx.core.util.response.CallBack
;
import
com.zrqx.core.vo.member.fg.member.FgMemberVo
;
import
com.zrqx.core.vo.schoolsysuser.fg.biddingflow.FlowDeptVo
;
...
...
@@ -72,4 +73,10 @@ public class BiddingFlowController {
return
biddingFlowService
.
addUser
(
form
)
?
CallBack
.
success
()
:
CallBack
.
fail
();
}
@ApiOperation
(
value
=
"修改征订流程名称"
,
notes
=
"修改征订流程名称"
)
@PostMapping
(
SchoolRequestPath
.
EDIT
)
public
CallBack
<
Boolean
>
editFlowName
(
@RequestBody
EditFlowNameForm
form
)
{
return
biddingFlowService
.
updateFlowName
(
form
)
?
CallBack
.
success
()
:
CallBack
.
fail
();
}
}
com.zrqx.school.sysuser/src/main/java/com/zrqx/school/sysuser/mapper/biddingflow/BiddingFlowMapper.java
浏览文件 @
2886290c
...
...
@@ -59,4 +59,12 @@ public interface BiddingFlowMapper extends BaseMapper<BiddingFlow> {
+
" </script> "
)
String
getMaxCode
(
@Param
(
"query"
)
QueryCondition
query
);
@Select
(
" <script> "
+
" SELECT code "
+
" FROM me_bidding_flow f "
+
" LEFT JOIN me_flow_relation r ON f.id = r.flowId "
+
" WHERE r.memberId = #{memberId} "
+
" </script> "
)
String
getFlowCodeByMemberId
(
@Param
(
"memberId"
)
Integer
memberId
);
}
com.zrqx.school.sysuser/src/main/java/com/zrqx/school/sysuser/service/biddingflow/BiddingFlowService.java
浏览文件 @
2886290c
...
...
@@ -2,6 +2,7 @@ package com.zrqx.school.sysuser.service.biddingflow;
import
com.zrqx.core.form.school.sysuser.fg.biddingflow.CreateFlowAndUserRelationForm
;
import
com.zrqx.core.form.school.sysuser.fg.biddingflow.CreateFlowForm
;
import
com.zrqx.core.form.school.sysuser.fg.biddingflow.EditFlowNameForm
;
import
com.zrqx.core.model.school.biddingflow.BiddingFlow
;
import
com.zrqx.core.service.BaseService
;
import
com.zrqx.core.vo.member.fg.member.FgMemberVo
;
...
...
@@ -97,4 +98,22 @@ public interface BiddingFlowService extends BaseService<BiddingFlow, Integer> {
*/
boolean
addUser
(
CreateFlowAndUserRelationForm
form
);
/**
* 根据会员ID获取会员所属流程环节Code
*@param memberId
*@return: java.lang.String
*@author: ml
*@date: 2019/7/26 16:28
*/
String
getFlowCodeByMemberId
(
Integer
memberId
);
/**
* 修改征订流程名称
*@param form
*@return: boolean
*@author: ml
*@date: 2019/7/30 17:01
*/
boolean
updateFlowName
(
EditFlowNameForm
form
);
}
com.zrqx.school.sysuser/src/main/java/com/zrqx/school/sysuser/service/biddingflow/BiddingFlowServiceImpl.java
浏览文件 @
2886290c
...
...
@@ -6,6 +6,7 @@ import com.zrqx.core.enums.school.sysuser.FlowStepEnum;
import
com.zrqx.core.exception.BaseException
;
import
com.zrqx.core.form.school.sysuser.fg.biddingflow.CreateFlowAndUserRelationForm
;
import
com.zrqx.core.form.school.sysuser.fg.biddingflow.CreateFlowForm
;
import
com.zrqx.core.form.school.sysuser.fg.biddingflow.EditFlowNameForm
;
import
com.zrqx.core.form.school.sysuser.fg.common.QueryCondition
;
import
com.zrqx.core.mapper.BaseMapper
;
import
com.zrqx.core.model.school.biddingflow.BiddingFlow
;
...
...
@@ -368,13 +369,15 @@ public class BiddingFlowServiceImpl extends BaseModelServiceImpl<BiddingFlow, In
* 所以分支数由选择的部门数量决定,深度有步骤数量决定
* 终审,初审,推荐各有一个;中审步骤可以为多个,
* final:终审 mid:中审 first:初审 rec:推荐
*
final
*
/ | \
* final
* / | \
* mid mid mid
* | | |
* first first first
* | | |
* rec rec rec
* | | |
* mid mid mid mid可以为[0,n]
* | | |
* first first first
* | | |
* rec rec rec
*@param count
*@param ids
*@return: void
...
...
@@ -615,4 +618,30 @@ public class BiddingFlowServiceImpl extends BaseModelServiceImpl<BiddingFlow, In
return
flowDepts
;
}
@Override
public
String
getFlowCodeByMemberId
(
Integer
memberId
)
{
return
biddingFlowMapper
.
getFlowCodeByMemberId
(
memberId
);
}
@Override
public
boolean
updateFlowName
(
EditFlowNameForm
form
)
{
//查询征订流程
Example
example
=
super
.
createExample
();
example
.
createCriteria
()
.
andEqualTo
(
"id"
,
form
.
getFlowId
());
BiddingFlow
flow
=
this
.
selectOneByExample
(
example
);
if
(
flow
==
null
)
{
logger
.
debug
(
"未根据ID:"
+
form
.
getFlowId
()
+
"查询征订步骤"
);
throw
new
BaseException
(
"征订流程不存在"
);
}
flow
.
setStepName
(
form
.
getFlowName
());
this
.
updateByPrimaryKey
(
flow
);
return
true
;
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论