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
b4603760
Commit
b4603760
authored
4 years ago
by
mobh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改问题
parent
2b138a3a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
1 deletions
+18
-1
src/main/java/cn/timer/api/controller/xcgl/SalaryManagementController.java
+4
-0
src/main/java/cn/timer/api/dao/xcgl/XcglAssoJsgzzxMapper.java
+7
-0
src/main/java/cn/timer/api/utils/Page.java
+1
-1
src/main/resources/mapping/xcgl/XcglAssoJsgzzxMapper.xml
+6
-0
No files found.
src/main/java/cn/timer/api/controller/xcgl/SalaryManagementController.java
View file @
b4603760
...
...
@@ -915,6 +915,10 @@ public class SalaryManagementController {
@ApiOperation
(
value
=
"删除薪资组自定义表头"
,
httpMethod
=
"DELETE"
,
notes
=
"接口发布说明"
)
public
ResponseResult
customdelete
(
@CurrentUser
UserBean
userBean
,
@PathVariable
Integer
id
)
{
XcglAssoXzdazdy
.
builder
().
build
().
deleteById
(
id
);
// 同时删除已添加到薪资组(未锁定的组)中的薪资项
xcglassojsgzzxmapper
.
deleteByxzdazdyid
(
id
);
return
new
ResponseResult
().
success
(
"删除成功"
,
id
);
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/dao/xcgl/XcglAssoJsgzzxMapper.java
View file @
b4603760
...
...
@@ -31,4 +31,11 @@ public interface XcglAssoJsgzzxMapper extends BaseMapper<XcglAssoJsgzzx> {
List
<
XcglAssoJsgzzx
>
selectSalarySectionList
(
int
xzzid
);
List
<
XcglAssoJsgzzx
>
SalaryRuleGroupItem
(
int
xzzid
);
/**
* 删除薪资档案值的同时删除已添加到薪资组(未锁定的组)中的薪资项
* @param xzdazdyid
* @return
*/
int
deleteByxzdazdyid
(
int
xzdazdyid
);
}
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/utils/Page.java
View file @
b4603760
...
...
@@ -41,7 +41,7 @@ public class Page {
this
.
totalPage
=
totalPage
;
}
public
Integer
getOffset
()
{
return
this
.
currentPage
>
0
?
(
this
.
currentPage
-
1
)
*
this
.
totalPage
:
0
;
return
this
.
getCurrentPage
()
>
0
?
(
this
.
getCurrentPage
()
-
1
)
*
this
.
totalPage
:
0
;
}
public
void
setOffset
(
Integer
offset
)
{
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/mapping/xcgl/XcglAssoJsgzzxMapper.xml
View file @
b4603760
...
...
@@ -96,6 +96,12 @@
DELETE FROM xcgl_asso_jsgzzx
WHERE xzzid = #{xzzid}
</delete>
<!-- 删除薪资档案值的同时删除已添加到薪资组(未锁定的组)中的薪资项 -->
<delete
id=
"deleteByxzdazdyid"
>
delete jsgzzx from xcgl_asso_jsgzzx jsgzzx, xcgl_admin_xzz xxz
where jsgzzx.xzdazdyid = #{xzdazdyid} and xxz.is_xzsd = 0
and jsgzzx.xzzid = xxz.id
</delete>
<insert
id=
"insertxcglassojsgzzxList"
parameterType=
"java.util.List"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into xcgl_asso_jsgzzx (salaryitem,yhmbzd,rule,type,addtime,adduserid,jxgzid,remarks,gsid,gsgs,dygk,degk,xzzid,rulestate,optionid)
...
...
This diff is collapsed.
Click to expand it.
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