Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
b199597e
Commit
b199597e
authored
Jul 04, 2020
by
lal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
5e57adcb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/main/java/cn/timer/api/controller/spmk/SpmkController.java
+2
-2
src/main/resources/mapping/spmk/SpmkApprovalGMapper.xml
+1
-1
No files found.
src/main/java/cn/timer/api/controller/spmk/SpmkController.java
View file @
b199597e
...
@@ -304,8 +304,8 @@ public class SpmkController {
...
@@ -304,8 +304,8 @@ public class SpmkController {
@ApiOperationSupport
(
order
=
10
)
@ApiOperationSupport
(
order
=
10
)
public
Result
<
Object
>
deleteAgById
(
@PathVariable
int
id
){
public
Result
<
Object
>
deleteAgById
(
@PathVariable
int
id
){
if
(
spmkCustomApprovalMapper
.
selectCount
(
new
QueryWrapper
<
SpmkCustomApproval
>().
lambda
().
eq
(
SpmkCustomApproval:
:
getApprovalGId
,
id
))
>
0
)
//
if (spmkCustomApprovalMapper.selectCount(new QueryWrapper<SpmkCustomApproval>().lambda().eq(SpmkCustomApproval::getApprovalGId, id)) > 0 )
return
ResultUtil
.
error
(
"审批组存在 自定义审批,不可直接删除!"
);
//
return ResultUtil.error("审批组存在 自定义审批,不可直接删除!");
return
SpmkApprovalG
.
builder
().
id
(
id
).
build
().
deleteById
()
?
ResultUtil
.
success
()
:
ResultUtil
.
error
(
"没有找到该对象"
);
return
SpmkApprovalG
.
builder
().
id
(
id
).
build
().
deleteById
()
?
ResultUtil
.
success
()
:
ResultUtil
.
error
(
"没有找到该对象"
);
...
...
src/main/resources/mapping/spmk/SpmkApprovalGMapper.xml
View file @
b199597e
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
LEFT JOIN spmk_custom_approval b
LEFT JOIN spmk_custom_approval b
ON a.id = b.approval_g_id
ON a.id = b.approval_g_id
WHERE a.org_code = #{org_code}
WHERE a.org_code = #{org_code}
ORDER BY a.ranks, b.ranks
ORDER BY a.ranks, b.ranks
,b.id DESC
</select>
</select>
<select
id=
"selectListAgInCa"
resultMap=
"BaseResultMapDto"
>
<select
id=
"selectListAgInCa"
resultMap=
"BaseResultMapDto"
>
...
...
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