记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
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
董敬伟
liquidnet-bus-v1
Commits
05354894
Commit
05354894
authored
Mar 25, 2024
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善 用户改名 修改入场人信息
parent
69ece3c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
JxlDataAdamController.java
.../platform/controller/A_fskfsfs/JxlDataAdamController.java
+18
-4
No files found.
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/controller/A_fskfsfs/JxlDataAdamController.java
View file @
05354894
...
@@ -21,6 +21,8 @@ import com.liquidnet.service.base.SqlMapping;
...
@@ -21,6 +21,8 @@ import com.liquidnet.service.base.SqlMapping;
import
com.liquidnet.service.base.constant.MQConst
;
import
com.liquidnet.service.base.constant.MQConst
;
import
com.liquidnet.service.platform.utils.QueueUtils
;
import
com.liquidnet.service.platform.utils.QueueUtils
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -30,6 +32,7 @@ import org.springframework.util.CollectionUtils;
...
@@ -30,6 +32,7 @@ import org.springframework.util.CollectionUtils;
import
org.springframework.util.StringUtils
;
import
org.springframework.util.StringUtils
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
...
@@ -65,17 +68,27 @@ public class JxlDataAdamController {
...
@@ -65,17 +68,27 @@ public class JxlDataAdamController {
@GetMapping
(
"A001"
)
@GetMapping
(
"A001"
)
@ApiOperation
(
"用户改名 修改入场人信息"
)
@ApiOperation
(
"用户改名 修改入场人信息"
)
public
ResponseDto
A001
()
{
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"oldName"
,
value
=
"旧名字"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"newName"
,
value
=
"新名字"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"phone"
,
value
=
"手机号"
,
required
=
true
)
})
public
ResponseDto
A001
(
@RequestParam
(
"oldName"
)
String
oldName
,
@RequestParam
(
"newName"
)
String
newName
,
@RequestParam
(
"phone"
)
String
phone
)
{
AdamUser
adamUser
=
adamUserMapper
.
selectOne
(
AdamUser
adamUser
=
adamUserMapper
.
selectOne
(
Wrappers
.
lambdaQuery
(
AdamUser
.
class
).
Wrappers
.
lambdaQuery
(
AdamUser
.
class
).
eq
(
AdamUser:
:
getMobile
,
"13025133720"
)
eq
(
AdamUser:
:
getMobile
,
phone
)
);
);
String
currentUid
=
adamUser
.
getUid
();
String
currentUid
=
adamUser
.
getUid
();
System
.
out
.
println
(
currentUid
);
LocalDateTime
now
=
LocalDateTime
.
now
();
LocalDateTime
now
=
LocalDateTime
.
now
();
AdamEnters
adamEnters
=
adamEntersMapper
.
selectOne
(
AdamEnters
adamEnters
=
adamEntersMapper
.
selectOne
(
Wrappers
.
lambdaQuery
(
AdamEnters
.
class
)
Wrappers
.
lambdaQuery
(
AdamEnters
.
class
)
.
eq
(
AdamEnters:
:
getName
,
"陈怡琳"
)
.
eq
(
AdamEnters:
:
getName
,
oldName
)
.
eq
(
AdamEnters:
:
getUid
,
currentUid
)
.
eq
(
AdamEnters:
:
getUid
,
currentUid
)
);
);
...
@@ -84,7 +97,7 @@ public class JxlDataAdamController {
...
@@ -84,7 +97,7 @@ public class JxlDataAdamController {
parameter
.
setIdCard
(
adamEnters
.
getIdCard
());
parameter
.
setIdCard
(
adamEnters
.
getIdCard
());
parameter
.
setEntersId
(
adamEnters
.
getEntersId
());
parameter
.
setEntersId
(
adamEnters
.
getEntersId
());
parameter
.
setMobile
(
adamEnters
.
getMobile
());
parameter
.
setMobile
(
adamEnters
.
getMobile
());
parameter
.
setName
(
"陈述"
);
parameter
.
setName
(
newName
);
if
(
1
==
parameter
.
getType
())
{
if
(
1
==
parameter
.
getType
())
{
this
.
identityHandler1
(
currentUid
,
parameter
.
getName
(),
parameter
.
getIdCard
());
this
.
identityHandler1
(
currentUid
,
parameter
.
getName
(),
parameter
.
getIdCard
());
}
}
...
@@ -165,6 +178,7 @@ public class JxlDataAdamController {
...
@@ -165,6 +178,7 @@ public class JxlDataAdamController {
* @return
* @return
*/
*/
public
int
isCertification
(
int
idType
,
String
idNo
,
String
idName
)
{
public
int
isCertification
(
int
idType
,
String
idNo
,
String
idName
)
{
redisDataSourceUtil
.
getRedisAdamUtil
().
del
(
AdamRedisConst
.
INFO_CERTIFICATION
+
idType
+
idNo
);
String
o
=
(
String
)
redisDataSourceUtil
.
getRedisAdamUtil
().
get
(
AdamRedisConst
.
INFO_CERTIFICATION
+
idType
+
idNo
);
String
o
=
(
String
)
redisDataSourceUtil
.
getRedisAdamUtil
().
get
(
AdamRedisConst
.
INFO_CERTIFICATION
+
idType
+
idNo
);
if
(
StringUtils
.
isEmpty
(
o
))
{
if
(
StringUtils
.
isEmpty
(
o
))
{
return
-
1
;
return
-
1
;
...
...
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