Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dd_school
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
wangqi
dd_school
Commits
001a92f8
Commit
001a92f8
authored
Oct 23, 2023
by
baochunxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
判断cid和userid是否存在 如果存在则先删除 再添加
parent
819d199c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
smart-campus/src/main/java/yangtz/cs/liu/wechat/controller/organization/WxSchoolOrganizationController.java
+8
-0
No files found.
smart-campus/src/main/java/yangtz/cs/liu/wechat/controller/organization/WxSchoolOrganizationController.java
View file @
001a92f8
...
...
@@ -195,6 +195,14 @@ public class WxSchoolOrganizationController extends BaseController {
@PostMapping
public
AjaxResult
add
(
@RequestBody
SchoolOrganizationSignin
schoolOrganizationSignin
)
{
//判断cid和userid是否存在 如果存在则先删除 再添加
LambdaQueryWrapper
<
SchoolOrganizationSignin
>
wrapper
=
Wrappers
.
lambdaQuery
();
wrapper
.
eq
(
SchoolOrganizationSignin:
:
getCid
,
schoolOrganizationSignin
.
getCid
());
wrapper
.
eq
(
SchoolOrganizationSignin:
:
getUserId
,
schoolOrganizationSignin
.
getUserId
());
SchoolOrganizationSignin
one
=
schoolOrganizationSigninService
.
getOne
(
wrapper
);
if
(
one
!=
null
){
schoolOrganizationSigninService
.
removeById
(
one
.
getId
());
}
schoolOrganizationSignin
.
setStatus
(
"1"
);
//适配重新报名的情况
return
toAjax
(
schoolOrganizationSigninService
.
save
(
schoolOrganizationSignin
));
}
...
...
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