Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-operate-sys-cscec
Project
Project
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
fulixin
dsk-operate-sys-cscec
Commits
e5bc2125
Commit
e5bc2125
authored
Jan 15, 2024
by
lcl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
逻辑添加:推送电话重复验证
parent
76748b42
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
SysPushController.java
...java/com/dsk/web/controller/system/SysPushController.java
+7
-0
No files found.
dsk-admin/src/main/java/com/dsk/web/controller/system/SysPushController.java
View file @
e5bc2125
package
com
.
dsk
.
web
.
controller
.
system
;
package
com
.
dsk
.
web
.
controller
.
system
;
import
com.baomidou.mybatisplus.core.toolkit.CollectionUtils
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.dsk.common.core.controller.BaseController
;
import
com.dsk.common.core.controller.BaseController
;
import
com.dsk.common.core.domain.PageQuery
;
import
com.dsk.common.core.domain.PageQuery
;
...
@@ -11,6 +12,8 @@ import com.dsk.system.service.ISysPushService;
...
@@ -11,6 +12,8 @@ import com.dsk.system.service.ISysPushService;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
/**
/**
* 系统推送(SysPush)表控制层
* 系统推送(SysPush)表控制层
*
*
...
@@ -39,6 +42,10 @@ public class SysPushController extends BaseController {
...
@@ -39,6 +42,10 @@ public class SysPushController extends BaseController {
*/
*/
@PostMapping
@PostMapping
public
R
<
Void
>
add
(
@RequestBody
SysPush
bean
)
{
public
R
<
Void
>
add
(
@RequestBody
SysPush
bean
)
{
List
<
SysPush
>
list
=
baseService
.
list
(
Wrappers
.<
SysPush
>
lambdaQuery
().
eq
(
SysPush:
:
getContact
,
bean
.
getContact
()));
if
(
CollectionUtils
.
isNotEmpty
(
list
)){
return
R
.
fail
(
"当前推送电话已存在!"
);
}
return
toAjax
(
baseService
.
save
(
bean
));
return
toAjax
(
baseService
.
save
(
bean
));
}
}
...
...
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