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
53f070ff
Commit
53f070ff
authored
Nov 03, 2020
by
mobh
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改问题
parent
1a1d630e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
3 deletions
+18
-3
src/main/java/cn/timer/api/controller/xcgl/SalaryManagementController.java
+4
-0
src/main/java/cn/timer/api/dao/xcgl/XcglAssoJsgzzxMapper.java
+7
-2
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 @
53f070ff
...
...
@@ -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
);
}
...
...
src/main/java/cn/timer/api/dao/xcgl/XcglAssoJsgzzxMapper.java
View file @
53f070ff
...
...
@@ -31,6 +31,11 @@ public interface XcglAssoJsgzzxMapper extends BaseMapper<XcglAssoJsgzzx> {
List
<
XcglAssoJsgzzx
>
selectSalarySectionList
(
int
xzzid
);
List
<
XcglAssoJsgzzx
>
SalaryRuleGroupItem
(
int
xzzid
);
int
insertxcglassojsgzzxListTwo
(
List
<
XcglAssoJsgzzx
>
xcglassojsgzzx
);
/**
* 删除薪资档案值的同时删除已添加到薪资组(未锁定的组)中的薪资项
* @param xzdazdyid
* @return
*/
int
deleteByxzdazdyid
(
int
xzdazdyid
);
}
src/main/java/cn/timer/api/utils/Page.java
View file @
53f070ff
...
...
@@ -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
)
{
...
...
src/main/resources/mapping/xcgl/XcglAssoJsgzzxMapper.xml
View file @
53f070ff
...
...
@@ -97,6 +97,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)
...
...
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