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
a3e559d2
Commit
a3e559d2
authored
Jun 01, 2020
by
lal
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
6ed66112
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
2 deletions
+15
-2
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
+6
-2
src/main/java/cn/timer/api/dao/kqmk/KqglAssoLeaveRulesMapper.java
+2
-0
src/main/resources/mapping/kqmk/KqglAssoLeaveRulesMapper.xml
+7
-0
No files found.
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
View file @
a3e559d2
...
...
@@ -776,8 +776,9 @@ public class TimeCardController {
@ApiOperation
(
value
=
"29:根据 组织机构代码获取员工假期余额表头"
,
httpMethod
=
"GET"
,
notes
=
"接口发布说明"
)
@ApiOperationSupport
(
order
=
29
)
public
Result
<
Object
>
BalanceHeader
(
@CurrentUser
UserBean
userBean
)
{
List
<
KqglAssoLeaveRules
>
balheas
=
new
LambdaQueryChainWrapper
<
KqglAssoLeaveRules
>(
kqglassoleaverulesmapper
).
eq
(
KqglAssoLeaveRules
::
getOrgCode
,
userBean
.
getOrgCode
())
.
eq
(
KqglAssoLeaveRules
::
getLeaveType
,
2
).
or
().
eq
(
KqglAssoLeaveRules
::
getIsOpen
,
1
).
list
();
// List<KqglAssoLeaveRules> balheas = new LambdaQueryChainWrapper<KqglAssoLeaveRules>(kqglassoleaverulesmapper).eq(KqglAssoLeaveRules :: getOrgCode,userBean.getOrgCode())
// .eq(KqglAssoLeaveRules :: getLeaveType, 2).or().eq(KqglAssoLeaveRules :: getIsOpen, 1).list();
List
<
KqglAssoLeaveRules
>
balheas
=
kqglassoleaverulesmapper
.
selHeaderdata
(
userBean
.
getOrgCode
(),
2
,
1
);
return
ResultUtil
.
data
(
balheas
,
"操作成功!"
);
}
...
...
@@ -1849,6 +1850,9 @@ public class TimeCardController {
return
ResultUtil
.
data
(
pageAs
,
listAs
,
"操作成功!"
);
}
/**************************/
/**
* 查询列表-加班补偿方式
...
...
src/main/java/cn/timer/api/dao/kqmk/KqglAssoLeaveRulesMapper.java
View file @
a3e559d2
...
...
@@ -17,4 +17,6 @@ import cn.timer.api.bean.kqmk.KqglAssoLeaveRules;
public
interface
KqglAssoLeaveRulesMapper
extends
BaseMapper
<
KqglAssoLeaveRules
>
{
int
insertleaverulesList
(
List
<
KqglAssoLeaveRules
>
kqglassoleaverules
);
List
<
KqglAssoLeaveRules
>
selHeaderdata
(
int
orgcode
,
int
leavetype
,
int
isopen
);
}
src/main/resources/mapping/kqmk/KqglAssoLeaveRulesMapper.xml
View file @
a3e559d2
...
...
@@ -41,6 +41,13 @@
is_open KqglAssoLeaveRules_is_open,
leave_balance KqglAssoLeaveRules_leave_balance
</sql>
<select
id=
"selHeaderdata"
resultMap=
"BaseResultMap"
>
SELECT
<include
refid=
"Base_Column_List"
/>
FROM kqgl_asso_leave_rules
WHERE org_code = #{orgcode}
AND (leave_type = #{leavetype} OR is_open = #{isopen})
</select>
<insert
id=
"insertleaverulesList"
parameterType=
"java.util.List"
>
insert into kqgl_asso_leave_rules (name,company,leave_type,apply,create_time,create_userid,org_code,is_open,leave_balance)
...
...
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