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
61879b7d
Commit
61879b7d
authored
Oct 20, 2020
by
mobh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改薪资组项选择界面接口
parent
37cc5fad
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
13 deletions
+28
-13
src/main/java/cn/timer/api/controller/xcgl/SalaryManagementController.java
+5
-12
src/main/java/cn/timer/api/dao/xcgl/XcglSalaryItemMapper.java
+2
-1
src/main/java/cn/timer/api/dto/xcgl/SalaryoptionsDto.java
+18
-0
src/main/resources/mapping/xcgl/XcglSalaryItemMapper.xml
+3
-0
No files found.
src/main/java/cn/timer/api/controller/xcgl/SalaryManagementController.java
View file @
61879b7d
...
...
@@ -18,14 +18,7 @@ import javax.script.ScriptException;
import
cn.timer.api.dto.xcgl.*
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
...
...
@@ -999,10 +992,10 @@ public class SalaryManagementController {
/**
* 获取薪资选项
*/
@
Ge
tMapping
(
value
=
"/salaryoptions"
)
@ApiOperation
(
value
=
"获取薪资选项"
,
httpMethod
=
"
GE
T"
,
notes
=
"接口发布说明"
)
public
ResponseResult
SalaryOoptions
(
@CurrentUser
UserBean
userBean
)
{
List
<
XcglAssoOptionDto
>
itemlist
=
xcglsalaryitemmapper
.
selectxcglsalaryitemList
();
@
Pos
tMapping
(
value
=
"/salaryoptions"
)
@ApiOperation
(
value
=
"获取薪资选项"
,
httpMethod
=
"
POS
T"
,
notes
=
"接口发布说明"
)
public
ResponseResult
SalaryOoptions
(
@CurrentUser
UserBean
userBean
,
@RequestBody
SalaryoptionsDto
dto
)
{
List
<
XcglAssoOptionDto
>
itemlist
=
xcglsalaryitemmapper
.
selectxcglsalaryitemList
(
dto
);
return
new
ResponseResult
().
success
(
"获取薪资选项信息"
,
itemlist
);
}
...
...
src/main/java/cn/timer/api/dao/xcgl/XcglSalaryItemMapper.java
View file @
61879b7d
package
cn
.
timer
.
api
.
dao
.
xcgl
;
import
java.util.List
;
import
cn.timer.api.dto.xcgl.SalaryoptionsDto
;
import
org.springframework.stereotype.Repository
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
...
...
@@ -15,6 +16,6 @@ import cn.timer.api.dto.xcgl.XcglAssoOptionDto;
@Repository
public
interface
XcglSalaryItemMapper
extends
BaseMapper
<
XcglSalaryItem
>
{
List
<
XcglAssoOptionDto
>
selectxcglsalaryitemList
();
List
<
XcglAssoOptionDto
>
selectxcglsalaryitemList
(
SalaryoptionsDto
dto
);
}
src/main/java/cn/timer/api/dto/xcgl/SalaryoptionsDto.java
0 → 100644
View file @
61879b7d
package
cn
.
timer
.
api
.
dto
.
xcgl
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public
class
SalaryoptionsDto
{
/**
* 状态 1:系统项;2:非系统项
*/
private
Integer
opttype
;
}
src/main/resources/mapping/xcgl/XcglSalaryItemMapper.xml
View file @
61879b7d
...
...
@@ -41,6 +41,9 @@
opt.type as opttype
from xcgl_salary_item item
LEFT JOIN xcgl_asso_option as opt on opt.itemid = item.id
<where>
<if
test=
"opttype != null"
>
opt.type = #{opttype}
</if>
</where>
</select>
...
...
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