Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
beijing-vehicleflow
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
zhangzhenbang
beijing-vehicleflow
Commits
35a6bc82
Commit
35a6bc82
authored
Feb 24, 2020
by
zhangzhenbang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
单独实名认证
parent
0a0c8235
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
11 deletions
+2
-11
IdentityInformationMapper.java
.../beijingvehicleflow/mapper/IdentityInformationMapper.java
+2
-2
IdentityInformationServiceImpl.java
...icleflow/service/impl/IdentityInformationServiceImpl.java
+0
-3
ReservationServiceImpl.java
...ijingvehicleflow/service/impl/ReservationServiceImpl.java
+0
-6
No files found.
src/main/java/com/yingxin/beijingvehicleflow/mapper/IdentityInformationMapper.java
View file @
35a6bc82
...
...
@@ -36,8 +36,8 @@ public interface IdentityInformationMapper {
* @param identityInformation 包含除了wechatPhone,wechatOpenid的所有信息
* @return
*/
@Update
(
"update identity_information set
name=#{name},id_card_number=#{idCardNumber},
"
+
"phone_number=#{phoneNumber},
face_image=#{faceImage},
toBeijing_date=#{toBeijingDate}"
+
@Update
(
"update identity_information set "
+
"phone_number=#{phoneNumber},toBeijing_date=#{toBeijingDate}"
+
" where id =#{id}"
)
int
updateIdentityInfo
(
IdentityInformation
identityInformation
);
...
...
src/main/java/com/yingxin/beijingvehicleflow/service/impl/IdentityInformationServiceImpl.java
View file @
35a6bc82
...
...
@@ -47,9 +47,6 @@ public class IdentityInformationServiceImpl implements IdentityInformationServic
@Override
public
boolean
isUpdateIdentityInfoSucc
(
IdentityInformation
identityInformation
)
{
identityInformation
.
setFaceImage
(
PicUtils
.
compressImage
(
identityInformation
.
getFaceImage
(),
Const
.
FACE_IMG_SIZE
));
return
identityInformationMapper
.
updateIdentityInfo
(
identityInformation
)
==
1
;
}
...
...
src/main/java/com/yingxin/beijingvehicleflow/service/impl/ReservationServiceImpl.java
View file @
35a6bc82
...
...
@@ -42,12 +42,6 @@ public class ReservationServiceImpl implements ReservationService {
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
Response
insertIdentityInfoAndReservation
(
ReservationInfoDTO
info
)
throws
Exception
{
String
idCardNumber
=
info
.
getIdentityInformation
().
getIdCardNumber
();
if
(!
IdCardUtil
.
isValidatedAllIdcard
(
idCardNumber
))
{
return
Response
.
fail
(
"ERROR-ID-NUMBER"
,
"身份证格式有误,请重新输入。"
);
}
if
(
identityService
.
isUpdateIdentityInfoSucc
(
info
.
getIdentityInformation
())
&&
isInsertReservationSucc
(
info
.
getReservation
()))
{
return
Response
.
succ
();
...
...
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