Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pseer
gxpt_ht
Commits
096c9769
Commit
096c9769
authored
Aug 29, 2024
by
YG8429
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
定时修改设备密码排除卫生间、设备间,增加人工修改密码接口
parent
34209c26
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
DeviceController.java
...in/java/share/web/controller/system/DeviceController.java
+13
-0
Device.java
share-system/src/main/java/share/system/domain/Device.java
+3
-0
DeviceServiceImpl.java
...ain/java/share/system/service/impl/DeviceServiceImpl.java
+1
-0
No files found.
share-admin/src/main/java/share/web/controller/system/DeviceController.java
View file @
096c9769
...
@@ -96,12 +96,25 @@ public class DeviceController extends BaseController
...
@@ -96,12 +96,25 @@ public class DeviceController extends BaseController
*/
*/
@PreAuthorize
(
"@ss.hasPermi('system:device:edit')"
)
@PreAuthorize
(
"@ss.hasPermi('system:device:edit')"
)
@Log
(
title
=
"设备信息"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"设备信息"
,
businessType
=
BusinessType
.
UPDATE
)
@PostMapping
(
value
=
"/updateDevicePassword"
)
public
AjaxResult
updateDevicePassword
(
@RequestBody
Device
device
)
{
device
.
setDevPsw
(
device
.
getNewDevPsw
());
return
toAjax
(
deviceService
.
updateDevice
(
device
));
}
/**
* 修改设备信息
*/
@PreAuthorize
(
"@ss.hasPermi('system:device:edit')"
)
@Log
(
title
=
"设备信息"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
@PutMapping
public
AjaxResult
edit
(
@RequestBody
Device
device
)
public
AjaxResult
edit
(
@RequestBody
Device
device
)
{
{
return
toAjax
(
deviceService
.
updateDevice
(
device
));
return
toAjax
(
deviceService
.
updateDevice
(
device
));
}
}
/**
/**
* 删除设备信息
* 删除设备信息
*/
*/
...
...
share-system/src/main/java/share/system/domain/Device.java
View file @
096c9769
...
@@ -83,6 +83,9 @@ public class Device extends BaseEntity
...
@@ -83,6 +83,9 @@ public class Device extends BaseEntity
/** 门店房间ID */
/** 门店房间ID */
private
Long
roomId
;
private
Long
roomId
;
/** 设备新密码*/
private
String
newDevPsw
;
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
...
...
share-system/src/main/java/share/system/service/impl/DeviceServiceImpl.java
View file @
096c9769
...
@@ -202,6 +202,7 @@ public class DeviceServiceImpl extends ServiceImpl<DeviceMapper, Device> impleme
...
@@ -202,6 +202,7 @@ public class DeviceServiceImpl extends ServiceImpl<DeviceMapper, Device> impleme
LambdaQueryWrapper
<
Device
>
queryWrapper
=
new
LambdaQueryWrapper
();
LambdaQueryWrapper
<
Device
>
queryWrapper
=
new
LambdaQueryWrapper
();
queryWrapper
.
eq
(
Device:
:
getDevType
,
DeviceType
.
DEVICE_CCEE
.
getCode
());
queryWrapper
.
eq
(
Device:
:
getDevType
,
DeviceType
.
DEVICE_CCEE
.
getCode
());
queryWrapper
.
isNotNull
(
Device:
:
getRoomId
);
queryWrapper
.
isNotNull
(
Device:
:
getRoomId
);
queryWrapper
.
inSql
(
Device:
:
getRoomId
,
"select id from s_room where room_type not in ('4', '5')"
);
List
<
Device
>
list
=
deviceMapper
.
selectList
(
queryWrapper
);
List
<
Device
>
list
=
deviceMapper
.
selectList
(
queryWrapper
);
if
(
list
.
size
()
>
0
)
{
if
(
list
.
size
()
>
0
)
{
// 默认15天
// 默认15天
...
...
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