Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-api-boot-master
Commits
15c7bfb7
Commit
15c7bfb7
authored
Aug 30, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
审批申请拦截重复提交
parent
31eb5ef1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
OrderApprovalMapper.java
.../module/order/dal/mysql/approval/OrderApprovalMapper.java
+1
-1
OrderCargoControlServiceImpl.java
...rvice/orderCargoControl/OrderCargoControlServiceImpl.java
+5
-0
OrderCargoControlController.java
.../admin/orderCargoControl/OrderCargoControlController.java
+1
-0
No files found.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/dal/mysql/approval/OrderApprovalMapper.java
View file @
15c7bfb7
...
@@ -100,7 +100,7 @@ public interface OrderApprovalMapper extends AbstractMapper<OrderApprovalDO> {
...
@@ -100,7 +100,7 @@ public interface OrderApprovalMapper extends AbstractMapper<OrderApprovalDO> {
OrderApprovalDO
itemApprovalCount
(
@Param
(
"orderItemId"
)
Long
orderItemId
,
@Param
(
"orderId"
)
Long
orderId
,
@Param
(
"types"
)
List
<
Integer
>
types
);
OrderApprovalDO
itemApprovalCount
(
@Param
(
"orderItemId"
)
Long
orderItemId
,
@Param
(
"orderId"
)
Long
orderId
,
@Param
(
"types"
)
List
<
Integer
>
types
);
@ResultType
(
OrderSpecialApplyVO
.
class
)
@ResultType
(
Integer
.
class
)
@Select
({
@Select
({
"<script>"
,
"<script>"
,
"select"
,
"select"
,
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/orderCargoControl/OrderCargoControlServiceImpl.java
View file @
15c7bfb7
...
@@ -607,6 +607,11 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
...
@@ -607,6 +607,11 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
}
}
Date
now
=
new
Date
();
Date
now
=
new
Date
();
OrderDO
orderDO
=
orderService
.
getById
(
orderCargoControlApplyVO
.
getOrderId
());
OrderDO
orderDO
=
orderService
.
getById
(
orderCargoControlApplyVO
.
getOrderId
());
// TODO 待确认具体拦截哪些审批任务
int
count
=
orderApprovalMapper
.
processingItemApproval
(
null
,
orderCargoControlApplyVO
.
getOrderId
(),
Arrays
.
asList
(
orderCargoControlApplyVO
.
getApplyType
(),
14
));
if
(
count
>
0
){
throw
exception
(
ORDER_IS_APPROVAL_IN_PROCESS
);
}
OrderCargoControlReleaseInfoDto
releaseInfoDto
=
this
.
getOrderCargoControlReleaseInfo
(
orderCargoControlApplyVO
.
getOrderId
());
OrderCargoControlReleaseInfoDto
releaseInfoDto
=
this
.
getOrderCargoControlReleaseInfo
(
orderCargoControlApplyVO
.
getOrderId
());
orderCargoControlApplyVO
.
setOrderNo
(
releaseInfoDto
.
getOrderNo
());
orderCargoControlApplyVO
.
setOrderNo
(
releaseInfoDto
.
getOrderNo
());
orderCargoControlApplyVO
.
setPickQuantity
(
releaseInfoDto
.
getPickQuantity
());
orderCargoControlApplyVO
.
setPickQuantity
(
releaseInfoDto
.
getPickQuantity
());
...
...
yudao-module-order/yudao-module-order-rest/src/main/java/cn/iocoder/yudao/module/order/controller/admin/orderCargoControl/OrderCargoControlController.java
View file @
15c7bfb7
...
@@ -146,6 +146,7 @@ public class OrderCargoControlController {
...
@@ -146,6 +146,7 @@ public class OrderCargoControlController {
@PutMapping
(
"/update/apply"
)
@PutMapping
(
"/update/apply"
)
@ApiOperation
(
"控货业务审批申请"
)
@ApiOperation
(
"控货业务审批申请"
)
@Idempotent
(
timeout
=
10
)
public
CommonResult
<
Boolean
>
orderCargoControlApply
(
@Valid
@RequestBody
OrderCargoControlApplyVO
orderCargoControlApplyVO
)
{
public
CommonResult
<
Boolean
>
orderCargoControlApply
(
@Valid
@RequestBody
OrderCargoControlApplyVO
orderCargoControlApplyVO
)
{
orderCargoControlService
.
orderCargoControlApply
(
orderCargoControlApplyVO
);
orderCargoControlService
.
orderCargoControlApply
(
orderCargoControlApplyVO
);
return
success
(
true
);
return
success
(
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