Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
entrance_api
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王琮
entrance_api
Commits
b7326fe0
Commit
b7326fe0
authored
Nov 25, 2022
by
王琮
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
035ec906
f7f09fef
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
4 deletions
+20
-4
DoorRecordController.java
.../rcisoft/sys/sysuser/controller/DoorRecordController.java
+2
-1
DoorRecordServiceImpl.java
...isoft/sys/sysuser/service/impl/DoorRecordServiceImpl.java
+15
-0
DoorRecordMapper.xml
src/main/resources/mapper/DoorRecordMapper.xml
+3
-3
No files found.
src/main/java/org/rcisoft/sys/sysuser/controller/DoorRecordController.java
View file @
b7326fe0
...
...
@@ -6,6 +6,7 @@ package org.rcisoft.sys.sysuser.controller;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiOperation
;
import
oracle.jdbc.proxy.annotation.Post
;
import
org.rcisoft.core.anno.CyOpeLogAnno
;
import
org.rcisoft.core.operlog.enums.CyLogTypeEnum
;
import
org.rcisoft.core.util.CyEpExcelUtil
;
...
...
@@ -98,7 +99,7 @@ public class DoorRecordController extends CyPaginationController<DoorRecord> {
@CyOpeLogAnno
(
title
=
"system-通行记录信息表管理-查询通行记录信息表"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@ApiOperation
(
value
=
"查询单一通行记录信息表"
,
notes
=
"查询单一通行记录信息表"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"userId"
,
value
=
"userId"
,
required
=
true
,
dataType
=
"varchar"
)})
@
Ge
tMapping
(
"/detail"
)
@
Pos
tMapping
(
"/detail"
)
public
CyResult
detail
(
@RequestBody
DoorRecord
doorRecord
)
{
return
CyResultGenUtil
.
builder
(
new
CyPersistModel
(
1
),
CyMessCons
.
MESSAGE_ALERT_SUCCESS
,
...
...
src/main/java/org/rcisoft/sys/sysuser/service/impl/DoorRecordServiceImpl.java
View file @
b7326fe0
...
...
@@ -114,6 +114,21 @@ public class DoorRecordServiceImpl extends ServiceImpl<DoorRecordRepository, Doo
public
DoorRecord
findById
(
DoorRecord
doorRecord
)
{
//TODO 需要重写
DoorRecord
doorRecord1
=
baseMapper
.
queryDoorRecordById
(
doorRecord
.
getRecordId
());
//获取登记时间
Date
createDate
=
doorRecord1
.
getCreateDate
();
//截取登记日期
SimpleDateFormat
sf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
doorRecord1
.
setDate
(
sf
.
format
(
createDate
));
//截取登记时间
SimpleDateFormat
sf2
=
new
SimpleDateFormat
(
"HH:mm:ss"
);
doorRecord1
.
setTime
(
sf2
.
format
(
createDate
));
//获取登记方式id
String
cardType
=
doorRecord1
.
getCardType
();
//获取登记方式中文
SysDictData
sysDictData
=
sysDictDataRepositorys
.
queryDataByCardType
(
cardType
);
if
(
sysDictData
!=
null
)
{
doorRecord1
.
setCardTypeLabel
(
sysDictData
.
getDictLabel
());
}
return
doorRecord1
;
}
...
...
src/main/resources/mapper/DoorRecordMapper.xml
View file @
b7326fe0
...
...
@@ -62,7 +62,7 @@
<select
id=
"queryDoorRecordsPaged"
resultMap=
"BaseResultMap"
>
SELECT
dr.record_id,su.name,dr.tenement_type,dr.create_date,dr.device_type,dr.device_name,dr.card_type,dr.record_type,dr.card_type_label,dr.abnormal
dr.record_id,su.name,dr.tenement_type,dr.create_date,dr.device_
id,dr.device_
type,dr.device_name,dr.card_type,dr.record_type,dr.card_type_label,dr.abnormal
FROM door_record_2022 dr
left JOIN sys_user su ON dr.person_id = su.person_id
WHERE dr.del_flag = 0
...
...
@@ -75,8 +75,8 @@
<if
test=
"entity.endTime != null and entity.endTime !='' "
>
<!-- 结束时间检索 -->
and date_format(dr.create_date,'%Y-%m-%d')
<
= date_format(#{entity.endTime},'%Y-%m-%d')
</if>
<if
test=
"entity.device
Name !=null and entity.deviceName
!= '' "
>
and dr.device_
name in(${entity.deviceName
})
<if
test=
"entity.device
Id !=null and entity.deviceId
!= '' "
>
and dr.device_
id in(${entity.deviceId
})
</if>
<if
test=
"entity.tenementType !=null and entity.tenementType != '' "
>
and dr.tenement_type = #{entity.tenementType}
...
...
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