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
73e3c637
Commit
73e3c637
authored
Apr 14, 2020
by
dengshichuan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'lal' into 'develop'
提交考勤 See merge request 8timerv2/8timerapiv200!24
parents
edd5a22c
7e8ed885
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
5 deletions
+48
-5
dber/考勤管理.dmj
+32
-3
src/main/java/cn/timer/api/config/Initialization/InitializeSetting.java
+1
-1
src/main/java/cn/timer/api/controller/kqgl/AttController.java
+4
-1
src/main/java/cn/timer/api/dao/kqgl/AttendanceMachineMapper.java
+3
-0
src/main/resources/mapping/kqgl/AttendanceMachineMapper.xml
+8
-0
No files found.
dber/考勤管理.dmj
View file @
73e3c637
{
{
...
@@ -1137,7 +1137,7 @@
...
@@ -1137,7 +1137,7 @@
"OrderNo": 11,
"OrderNo": 11,
"GraphDesc": "Left=661.40\r\nTop=311.30",
"GraphDesc": "Left=661.40\r\nTop=311.30",
"MetaFields": {
"MetaFields": {
"Count":
4
,
"Count":
5
,
"items": [
"items": [
{
{
"ID": 1,
"ID": 1,
...
@@ -1180,6 +1180,16 @@
...
@@ -1180,6 +1180,16 @@
"DataType": 2,
"DataType": 2,
"KeyFieldType": 3,
"KeyFieldType": 3,
"Nullable": true
"Nullable": true
},
{
"ID": 16,
"Name": "is_gly",
"Memo": "0:否;1:是",
"CreateDate": "2020/4/10 15:03:44",
"OrderNo": 5,
"DisplayName": "是否为管理员",
"DataType": 2,
"Nullable": true
}
}
]
]
}
}
...
@@ -1190,7 +1200,7 @@
...
@@ -1190,7 +1200,7 @@
"OrderNo": 12,
"OrderNo": 12,
"GraphDesc": "Left=758.00\r\nTop=929.00",
"GraphDesc": "Left=758.00\r\nTop=929.00",
"MetaFields": {
"MetaFields": {
"Count":
19
,
"Count":
21
,
"items": [
"items": [
{
{
"ID": 1,
"ID": 1,
...
@@ -1370,6 +1380,25 @@
...
@@ -1370,6 +1380,25 @@
"DataType": 2,
"DataType": 2,
"KeyFieldType": 3,
"KeyFieldType": 3,
"Nullable": true
"Nullable": true
},
{
"ID": 42,
"Name": "punchmode",
"Memo": "==>1:指紋;2:人脸;3:密码;4:ID卡",
"CreateDate": "2020/4/10 15:01:03",
"OrderNo": 20,
"DisplayName": "考勤机打卡方式",
"DataType": 2,
"Nullable": true
},
{
"ID": 43,
"Name": "punchequipment",
"CreateDate": "2020/4/10 15:01:03",
"OrderNo": 21,
"DisplayName": "打卡设备",
"DataType": 1,
"Nullable": true
}
}
]
]
}
}
...
...
src/main/java/cn/timer/api/config/Initialization/InitializeSetting.java
View file @
73e3c637
...
@@ -19,7 +19,7 @@ public class InitializeSetting implements ApplicationRunner {
...
@@ -19,7 +19,7 @@ public class InitializeSetting implements ApplicationRunner {
@Override
@Override
public
void
run
(
ApplicationArguments
args
)
throws
Exception
{
public
void
run
(
ApplicationArguments
args
)
throws
Exception
{
StaticVariable
.
mac_command
=
"http://192.168.
172.116
:8088/cmd"
;
//考勤机执行命令
StaticVariable
.
mac_command
=
"http://192.168.
3.143
:8088/cmd"
;
//考勤机执行命令
}
}
}
}
src/main/java/cn/timer/api/controller/kqgl/AttController.java
View file @
73e3c637
...
@@ -34,6 +34,7 @@ import org.springframework.web.client.RestClientException;
...
@@ -34,6 +34,7 @@ import org.springframework.web.client.RestClientException;
import
org.springframework.web.client.RestTemplate
;
import
org.springframework.web.client.RestTemplate
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.extension.service.additional.query.impl.LambdaQueryChainWrapper
;
import
com.baomidou.mybatisplus.extension.service.additional.query.impl.LambdaQueryChainWrapper
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
com.github.pagehelper.PageInfo
;
...
@@ -5885,9 +5886,11 @@ public class AttController {
...
@@ -5885,9 +5886,11 @@ public class AttController {
String
asIOMode
=
"0"
;
String
asIOMode
=
"0"
;
String
sStdIoTime
=
jsonArray
.
get
(
"sStdIoTime"
).
toString
();
String
sStdIoTime
=
jsonArray
.
get
(
"sStdIoTime"
).
toString
();
AttendanceMachine
kqjdev
=
attendancemachineservice
.
selectByQyidDev
(
asDevId
);
/***********************************************************考勤机打卡(开始)********************************************************************************************/
/***********************************************************考勤机打卡(开始)********************************************************************************************/
YgglMainEmp
user
=
new
LambdaQueryChainWrapper
<
YgglMainEmp
>(
ygglmainempmapper
).
eq
(
YgglMainEmp:
:
getEmpNum
,
asUserId
).
one
();
YgglMainEmp
user
=
new
LambdaQueryChainWrapper
<
YgglMainEmp
>(
ygglmainempmapper
).
eq
(
YgglMainEmp:
:
getEmpNum
,
asUserId
).
eq
(
YgglMainEmp:
:
getOrgCode
,
kqjdev
.
getQyid
()).
one
();
if
(
user
!=
null
)
{
if
(
user
!=
null
)
{
int
qyid
=
user
.
getOrgCode
();
//坏小孩【企业id】
int
qyid
=
user
.
getOrgCode
();
//坏小孩【企业id】
int
userid
=
user
.
getEmpNum
();
//用户id
int
userid
=
user
.
getEmpNum
();
//用户id
...
...
src/main/java/cn/timer/api/dao/kqgl/AttendanceMachineMapper.java
View file @
73e3c637
...
@@ -20,4 +20,6 @@ public interface AttendanceMachineMapper {
...
@@ -20,4 +20,6 @@ public interface AttendanceMachineMapper {
List
<
AttendanceMachine
>
selectByPrimaryByQyid
(
Integer
qyid
);
List
<
AttendanceMachine
>
selectByPrimaryByQyid
(
Integer
qyid
);
int
updateByPrimaryByid
(
String
name
,
int
id
);
int
updateByPrimaryByid
(
String
name
,
int
id
);
AttendanceMachine
selectByQyidDev
(
String
code
);
}
}
\ No newline at end of file
src/main/resources/mapping/kqgl/AttendanceMachineMapper.xml
View file @
73e3c637
...
@@ -123,4 +123,11 @@
...
@@ -123,4 +123,11 @@
set name = #{name,jdbcType=VARCHAR}
set name = #{name,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
</update>
<select
id=
"selectByQyidDev"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from kqgl_asso_kqj
where code = #{code,jdbcType=VARCHAR}
</select>
</mapper>
</mapper>
\ No newline at end of file
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