Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
extend
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
park
extend
Commits
a456118f
Commit
a456118f
authored
Jun 22, 2020
by
xieshixiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改sql语句
parent
6dbcf18a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
infra/src/main/resources/mapper/BindInfoMapper.xml
+3
-3
infra/src/main/resources/mapper/VerifyInfoMapper.xml
+1
-1
No files found.
infra/src/main/resources/mapper/BindInfoMapper.xml
View file @
a456118f
...
...
@@ -3,7 +3,7 @@
<mapper
namespace=
"com.hikcreate.edl.pub.web.mobile.infra.data.mapper.BindInfoMapper"
>
<insert
id=
"bindInfoInsert"
parameterType=
"com.hikcreate.edl.pub.web.mobile.infra.model.entity.ParkBindInfo"
>
insert ignore into
edl_public.
bind_info(unq_id,user_id,phone,plate_color,plate_num,plate_type,gmt_bind_time)
insert ignore into
park_
bind_info(unq_id,user_id,phone,plate_color,plate_num,plate_type,gmt_bind_time)
values (#{unqId},#{userId},#{phone},#{plateColor},#{plateNum},#{plateType},#{gmtBindTime})
</insert>
...
...
@@ -28,7 +28,7 @@
when '1' then '已绑定'
end status,
b.plate_num,b.plate_type,b.gmt_bind_time
from
edl_public.
park_bind_info as b
from park_bind_info as b
where b.status='1'
<if
test=
"userId!=null and userId!=''"
>
and b.user_id=#{userId}
...
...
@@ -36,7 +36,7 @@
</select>
<update
id=
"unbind"
>
update
edl_public.
park_bind_info as b set b.status="0",b.unbind_time=#{unbindTime} where b.unq_id=#{unqId}
update park_bind_info as b set b.status="0",b.unbind_time=#{unbindTime} where b.unq_id=#{unqId}
</update>
...
...
infra/src/main/resources/mapper/VerifyInfoMapper.xml
View file @
a456118f
...
...
@@ -4,7 +4,7 @@
<select
id=
"checkValidity"
resultType=
"com.hikcreate.edl.pub.web.mobile.infra.model.entity.ParkVerifyInfo"
>
select id, user_id, verify_code, phone,pass_time from
edl_public.
park_verify_info as v
select id, user_id, verify_code, phone,pass_time from park_verify_info as v
where pass_time
<![CDATA[ >= ]]>
#{time} and phone=#{phone} and user_id=#{userId}
</select>
</mapper>
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