Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dcs-doc-expand
Project
Project
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
INET-TWO
server
dcs-doc-expand
Commits
d3e10e30
Commit
d3e10e30
authored
Oct 30, 2024
by
wei
🎱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发起借阅单流程接口
parent
375364b9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
0 deletions
+30
-0
ExtBorrowingFormController.java
.../document/core/controller/ExtBorrowingFormController.java
+8
-0
ExtBorrowingFormService.java
...et/dcs/document/core/service/ExtBorrowingFormService.java
+1
-0
ExtBorrowingFormServiceImpl.java
...cument/core/service/impl/ExtBorrowingFormServiceImpl.java
+21
-0
No files found.
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/controller/ExtBorrowingFormController.java
View file @
d3e10e30
...
@@ -27,6 +27,14 @@ import org.springframework.stereotype.Controller;
...
@@ -27,6 +27,14 @@ import org.springframework.stereotype.Controller;
@Controller
(
ExtBorrowingFormController
.
BEAN_NAME
)
@Controller
(
ExtBorrowingFormController
.
BEAN_NAME
)
public
class
ExtBorrowingFormController
<
V
extends
ExtBorrowingFormVO
,
S
extends
ExtBorrowingFormService
<
V
>>
extends
ExtBorrowingFormControllerShadow
<
V
,
S
>
{
public
class
ExtBorrowingFormController
<
V
extends
ExtBorrowingFormVO
,
S
extends
ExtBorrowingFormService
<
V
>>
extends
ExtBorrowingFormControllerShadow
<
V
,
S
>
{
@Autowired
private
ExtBorrowingFormService
extBorrowingFormService
;
@ApiOperation
(
"发起审批流程"
)
@PostMapping
({
"startWorkflow"
})
public
ApiResult
startWorkflow
(
@RequestParam
(
"id"
)
Long
id
)
{
return
ApiResult
.
ok
(
extBorrowingFormService
.
startWorkflow
(
id
),
"流程启动成功"
);
}
}
}
...
...
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/service/ExtBorrowingFormService.java
View file @
d3e10e30
...
@@ -10,4 +10,5 @@ import com.inet.dcs.document.core.service.shadow.ExtBorrowingFormServiceShadow;
...
@@ -10,4 +10,5 @@ import com.inet.dcs.document.core.service.shadow.ExtBorrowingFormServiceShadow;
**/
**/
public
interface
ExtBorrowingFormService
<
V
extends
ExtBorrowingFormVO
>
extends
ExtBorrowingFormServiceShadow
<
V
>
{
public
interface
ExtBorrowingFormService
<
V
extends
ExtBorrowingFormVO
>
extends
ExtBorrowingFormServiceShadow
<
V
>
{
ExtBorrowingFormVO
startWorkflow
(
Long
id
);
}
}
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/service/impl/ExtBorrowingFormServiceImpl.java
View file @
d3e10e30
package
com
.
inet
.
dcs
.
document
.
core
.
service
.
impl
;
package
com
.
inet
.
dcs
.
document
.
core
.
service
.
impl
;
import
com.inet.dcs.document.common.vo.ExtTransferDocumentVO
;
import
com.inet.dcs.document.core.constants.Constants
;
import
com.yonde.dex.basedata.exception.DxBusinessException
;
import
com.yonde.dex.wfc.feign.api.WfcProcessFeign
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
java.util.List
;
import
java.util.List
;
...
@@ -29,6 +33,23 @@ public class ExtBorrowingFormServiceImpl<V extends ExtBorrowingFormVO> implement
...
@@ -29,6 +33,23 @@ public class ExtBorrowingFormServiceImpl<V extends ExtBorrowingFormVO> implement
@Autowired
@Autowired
ExtBorrowingFormRepository
<
ExtBorrowingForm
>
extBorrowingFormRepository
;
ExtBorrowingFormRepository
<
ExtBorrowingForm
>
extBorrowingFormRepository
;
@Autowired
private
WfcProcessFeign
wfcProcessFeign
;
private
static
final
String
START_PROCESS_BY_KEY
=
"ExtBorrowingFormWF"
;
@Override
public
ExtBorrowingFormVO
startWorkflow
(
Long
id
)
{
ExtBorrowingFormVO
extBorrowingFormVO
=
this
.
get
(
id
);
if
(
extBorrowingFormVO
==
null
)
{
throw
new
DxBusinessException
(
"500"
,
"获取不到对象"
);
}
if
(!
extBorrowingFormVO
.
getState
().
equals
(
Constants
.
EDIT
))
{
throw
new
DxBusinessException
(
"500"
,
"该对象不是编制状态"
);
}
wfcProcessFeign
.
startProcessByKey
(
START_PROCESS_BY_KEY
,
extBorrowingFormVO
);
return
this
.
changeStatus
(
extBorrowingFormVO
.
getId
(),
Constants
.
SUBMIT_REVIEWING
,
true
);
}
}
}
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