Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
klck
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
位宇华
klck
Commits
5160186f
Commit
5160186f
authored
Sep 05, 2024
by
位宇华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
规则删除 --代码提交
parent
d95c13ea
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
ruoyi-wages/src/main/java/com/ruoyi/system/mapper/RuleMapper.java
...ges/src/main/java/com/ruoyi/system/mapper/RuleMapper.java
+2
-0
ruoyi-wages/src/main/java/com/ruoyi/system/service/impl/RuleServiceImpl.java
...n/java/com/ruoyi/system/service/impl/RuleServiceImpl.java
+3
-0
ruoyi-wages/src/main/resources/mapper/system/RuleMapper.xml
ruoyi-wages/src/main/resources/mapper/system/RuleMapper.xml
+5
-0
No files found.
ruoyi-wages/src/main/java/com/ruoyi/system/mapper/RuleMapper.java
View file @
5160186f
...
...
@@ -17,4 +17,6 @@ public interface RuleMapper {
List
<
String
>
queryOfId
(
@Param
(
"id"
)
String
ruleRequestModel
);
void
deleteById
(
@Param
(
"id"
)
String
id
);
void
deleteByTemplateId
(
@Param
(
"id"
)
String
id
);
}
ruoyi-wages/src/main/java/com/ruoyi/system/service/impl/RuleServiceImpl.java
View file @
5160186f
...
...
@@ -9,6 +9,7 @@ import com.ruoyi.system.mapper.RuleMapper;
import
com.ruoyi.system.model.rule.RuleRequestModel
;
import
com.ruoyi.system.service.RuleService
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
...
...
@@ -52,9 +53,11 @@ public class RuleServiceImpl implements RuleService {
}
@Override
@Transactional
public
AjaxResult
deleteById
(
RuleRequestModel
ruleRequestModel
)
{
String
id
=
ruleRequestModel
.
getId
();
ruleMapper
.
deleteById
(
id
);
ruleMapper
.
deleteByTemplateId
(
id
);
return
AjaxResult
.
success
();
}
}
ruoyi-wages/src/main/resources/mapper/system/RuleMapper.xml
View file @
5160186f
...
...
@@ -49,4 +49,9 @@
from rule_sheet
where id = #{id}
</delete>
<delete
id=
"deleteByTemplateId"
>
delete
from act_supplies_template
where id = #{id}
</delete>
</mapper>
\ No newline at end of file
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