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
ba401034
Commit
ba401034
authored
Sep 08, 2020
by
leialin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'lal' into 'develop'
提交考勤组 休息日打卡 See merge request 8timerv2/8timerapiv200!491
parents
0a0cef97
43a1ebcf
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
49 additions
and
11 deletions
+49
-11
src/main/java/cn/timer/api/bean/kqgl/AttendanceAssistant.java
+2
-0
src/main/java/cn/timer/api/bean/kqgl/AttendanceGroup.java
+2
-0
src/main/java/cn/timer/api/bean/kqmk/KqglMainKqz.java
+4
-0
src/main/java/cn/timer/api/controller/kqgl/AttController.java
+2
-0
src/main/java/cn/timer/api/controller/kqgl/ClockInController.java
+9
-3
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
+2
-1
src/main/java/cn/timer/api/dto/kqmk/AttendanceAssistantDto.java
+2
-0
src/main/java/cn/timer/api/dto/kqmk/KqglMainKqzDto.java
+3
-0
src/main/resources/mapping/kqgl/AttendanceGroupMapper.xml
+16
-4
src/main/resources/mapping/kqmk/KqglMainKqzMapper.xml
+7
-3
No files found.
src/main/java/cn/timer/api/bean/kqgl/AttendanceAssistant.java
View file @
ba401034
...
...
@@ -52,4 +52,6 @@ public class AttendanceAssistant implements Serializable{
int
overtimeRulesId
;
//加班id
int
fieldpersonnel
;
//外勤
int
restdayclock
;
//休息日打卡
}
src/main/java/cn/timer/api/bean/kqgl/AttendanceGroup.java
View file @
ba401034
...
...
@@ -46,6 +46,8 @@ public class AttendanceGroup implements Serializable{
private
Integer
overtimeRulesId
;
//加班规则id
private
String
overtimeRulesName
;
//加班规则名称
private
Integer
restdayclock
;
//休息日打卡
private
Integer
kqjid
;
private
List
<
AttGroupBinPunchMode
>
kqzdkfslist
=
new
ArrayList
<
AttGroupBinPunchMode
>();
...
...
src/main/java/cn/timer/api/bean/kqmk/KqglMainKqz.java
View file @
ba401034
...
...
@@ -97,4 +97,7 @@ public class KqglMainKqz extends Model<KqglMainKqz> {
@ApiModelProperty
(
value
=
"加班规则 加班规则"
,
example
=
"101"
)
private
Integer
overtimeRulesId
;
@ApiModelProperty
(
value
=
"休息日打卡开关 0:关 1:开"
,
example
=
"101"
)
private
Integer
restdayclock
;
}
\ No newline at end of file
src/main/java/cn/timer/api/controller/kqgl/AttController.java
View file @
ba401034
...
...
@@ -1361,6 +1361,8 @@ public class AttController {
attgro
.
setIsWq
(
attass
.
getFieldpersonnel
());
//外勤:0-关 1-开
attgro
.
setRestdayclock
(
attass
.
getRestdayclock
());
//休息日打卡
if
(
attass
.
getAtttype
()
==
1
){
attgro
.
setIsFdjjr
(
attass
.
getLegalholidays
());
//是否开启法定节假日休息(固定排班)
}
...
...
src/main/java/cn/timer/api/controller/kqgl/ClockInController.java
View file @
ba401034
...
...
@@ -2296,9 +2296,13 @@ public class ClockInController {
status_
=
2
;
}
}
else
{
// msg = "当前是休息时间";
// sbyf = 0;
// status_ = 2;
//判断 考勤组是否开启休息日打卡
if
(
attgro
.
getRestdayclock
().
equals
(
0
))
{
msg
=
"当前是休息时间"
;
sbyf
=
0
;
status_
=
2
;
}
else
{
KqglAssoDkmx
zydkmc
=
KqglAssoDkmx
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
KqglAssoDkmx
>().
lambda
().
eq
(
KqglAssoDkmx:
:
getUserid
,
userid
)
.
ge
(
KqglAssoDkmx:
:
getDksj
,
startDate
).
le
(
KqglAssoDkmx:
:
getDksj
,
endDate
));
if
(
zydkmc
==
null
)
{
//新增
...
...
@@ -2383,6 +2387,8 @@ public class ClockInController {
}
}
}
}
}
}
else
{
...
...
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
View file @
ba401034
...
...
@@ -1309,7 +1309,8 @@ public class TimeCardController {
.
isWq
(
attass
.
getFieldpersonnel
()).
isFdjjr
(
attass
.
getLegalholidays
()).
isXzbcdk
(
attass
.
getOptscheduling
()).
sybc
(
String
.
join
(
","
,
attass
.
getAttShifts
()))
.
isDqtx
(
attass
.
getAttRemind
()).
txry
(
String
.
join
(
","
,
attass
.
getAttRemindUserids
())).
txfs
(
attass
.
getAdvanceDays
()).
txxhts
(
attass
.
getRemCycleDays
())
.
txsjTime
(
attass
.
getReminderTime
()).
tsfs
(
String
.
join
(
","
,
attass
.
getPromptingMode
())).
isWpbsdk
(
attass
.
getAttRemind
()).
kqkssjTime
(
attass
.
getNewAttTime
())
.
zsgzsc
(
attass
.
getLeastworkTime
()).
zcgzsc
(
attass
.
getNormalWorkTime
()).
jbzdsc
(
attass
.
getMaxOvertimeTime
()).
overtimeRulesId
(
attass
.
getOvertimeRulesId
()).
build
();
.
zsgzsc
(
attass
.
getLeastworkTime
()).
zcgzsc
(
attass
.
getNormalWorkTime
()).
jbzdsc
(
attass
.
getMaxOvertimeTime
()).
overtimeRulesId
(
attass
.
getOvertimeRulesId
())
.
restdayclock
(
attass
.
getRestdayclock
()).
build
();
// if (!attgro.insertOrUpdate())
if
(!
attgro
.
insert
())
...
...
src/main/java/cn/timer/api/dto/kqmk/AttendanceAssistantDto.java
View file @
ba401034
...
...
@@ -54,4 +54,6 @@ public class AttendanceAssistantDto implements Serializable{
int
overtimeRulesId
;
//加班id
int
fieldpersonnel
;
//外勤
int
restdayclock
;
//休息日打卡
}
src/main/java/cn/timer/api/dto/kqmk/KqglMainKqzDto.java
View file @
ba401034
...
...
@@ -81,6 +81,9 @@ public class KqglMainKqzDto {
@ApiModelProperty
(
value
=
"加班规则 加班规则"
,
example
=
"101"
)
private
Integer
overtimeRulesId
;
@ApiModelProperty
(
value
=
"休息日打卡开关 0:关 1:开"
,
example
=
"101"
)
private
Integer
restdayclock
;
@ApiModelProperty
(
value
=
"考勤组人员数"
,
example
=
"100"
)
private
Integer
kqznum
;
...
...
src/main/resources/mapping/kqgl/AttendanceGroupMapper.xml
View file @
ba401034
...
...
@@ -33,6 +33,8 @@
<result
column=
"overtimeRulesName"
property=
"overtimeRulesName"
/>
<result
column=
"restdayclock"
property=
"restdayclock"
/>
<collection
property=
"kqzdkfslist"
ofType=
"cn.timer.api.bean.kqgl.AttGroupBinPunchMode"
>
<result
column=
"kqzId"
property=
"kqzId"
jdbcType=
"INTEGER"
/>
<result
column=
"type"
property=
"type"
jdbcType=
"INTEGER"
/>
...
...
@@ -95,7 +97,7 @@
<sql
id=
"Base_Column_List"
>
id, name, kqbz, pbfs, qyid, is_fdjjr, kqkssj_time, zsgzsc, zcgzsc, jbzdsc, is_dqtx,
txry, txfs, txxhts, txsj_time, tsfs, is_wpbsdk,sybc,is_xzbcdk,is_wq,overtime_rules_id
txry, txfs, txxhts, txsj_time, tsfs, is_wpbsdk,sybc,is_xzbcdk,is_wq,overtime_rules_id
,restdayclock
</sql>
<select
id=
"selectByPrimaryKey"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.Integer"
>
select kqz.*,
...
...
@@ -113,14 +115,14 @@
kqkssj_time, zsgzsc, zcgzsc,
jbzdsc, is_dqtx, txry,
txfs, txxhts, txsj_time,
tsfs, is_wpbsdk,sybc,is_xzbcdk,is_wq)
tsfs, is_wpbsdk,sybc,is_xzbcdk,is_wq
,restdayclock
)
values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{kqbz,jdbcType=VARCHAR},
#{pbfs,jdbcType=INTEGER}, #{qyid,jdbcType=INTEGER}, #{isFdjjr,jdbcType=INTEGER},
#{kqkssjTime,jdbcType=VARCHAR}, #{zsgzsc,jdbcType=VARCHAR}, #{zcgzsc,jdbcType=VARCHAR},
#{jbzdsc,jdbcType=VARCHAR}, #{isDqtx,jdbcType=INTEGER}, #{txry,jdbcType=VARCHAR},
#{txfs,jdbcType=INTEGER}, #{txxhts,jdbcType=INTEGER}, #{txsjTime,jdbcType=VARCHAR},
#{tsfs,jdbcType=VARCHAR}, #{isWpbsdk,jdbcType=INTEGER}, #{sybc,jdbcType=VARCHAR},
#{isXzbcdk,jdbcType=INTEGER},#{isWq,jdbcType=INTEGER})
#{isXzbcdk,jdbcType=INTEGER},#{isWq,jdbcType=INTEGER}
,#{restdayclock,jdbcType=INTEGER}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"cn.timer.api.bean.kqgl.AttendanceGroup"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into kqgl_main_kqz
...
...
@@ -186,6 +188,9 @@
<if
test=
"overtimeRulesId != null"
>
overtime_rules_id,
</if>
<if
test=
"restdayclock != null"
>
restdayclock,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -249,6 +254,9 @@
<if
test=
"overtimeRulesId != null"
>
#{overtimeRulesId,jdbcType=INTEGER},
</if>
<if
test=
"restdayclock != null"
>
#{restdayclock,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"cn.timer.api.bean.kqgl.AttendanceGroup"
>
...
...
@@ -314,6 +322,9 @@
<if
test=
"overtimeRulesId != null"
>
overtime_rules_id = #{overtimeRulesId,jdbcType=INTEGER},
</if>
<if
test=
"restdayclock != null"
>
restdayclock = #{restdayclock,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
...
...
@@ -338,7 +349,8 @@
sybc = #{sybc,jdbcType=VARCHAR},
is_xzbcdk = #{isXzbcdk,jdbcType=INTEGER},
is_wq = #{isWq,jdbcType=INTEGER},
overtime_rules_id = #{overtimeRulesId,jdbcType=INTEGER}
overtime_rules_id = #{overtimeRulesId,jdbcType=INTEGER},
restdayclock = #{restdayclock,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
...
...
src/main/resources/mapping/kqmk/KqglMainKqzMapper.xml
View file @
ba401034
...
...
@@ -25,6 +25,7 @@
<result
column=
"is_xzbcdk"
property=
"isXzbcdk"
/>
<result
column=
"is_wq"
property=
"isWq"
/>
<result
column=
"overtime_rules_id"
property=
"overtimeRulesId"
/>
<result
column=
"restdayclock"
property=
"restdayclock"
/>
</resultMap>
<resultMap
id=
"AuxiliaryMap"
type=
"cn.timer.api.dto.kqmk.KqglMainKqzDto"
>
...
...
@@ -82,7 +83,8 @@
sybc,
is_xzbcdk,
is_wq,
overtime_rules_id
overtime_rules_id,
restdayclock
</sql>
<sql
id=
"Base_Column_List_Alias"
>
...
...
@@ -106,7 +108,8 @@
sybc KqglMainKqz_sybc,
is_xzbcdk KqglMainKqz_is_xzbcdk,
is_wq KqglMainKqz_is_wq,
overtime_rules_id KqglMainKqz_overtime_rules_id
overtime_rules_id KqglMainKqz_overtime_rules_id,
restdayclock KqglMainKqz_restdayclock
</sql>
<sql
id=
"Base_Column_List_a"
>
...
...
@@ -130,7 +133,8 @@
a.sybc,
a.is_xzbcdk,
a.is_wq,
a.overtime_rules_id
a.overtime_rules_id,
a.restdayclock
</sql>
<select
id=
"selectAttGroupMachineByQyid"
resultMap=
"AuxiliaryMap"
>
...
...
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