Commit a456118f by xieshixiang

修改sql语句

parent 6dbcf18a
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<mapper namespace="com.hikcreate.edl.pub.web.mobile.infra.data.mapper.BindInfoMapper"> <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 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}) values (#{unqId},#{userId},#{phone},#{plateColor},#{plateNum},#{plateType},#{gmtBindTime})
</insert> </insert>
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
when '1' then '已绑定' when '1' then '已绑定'
end status, end status,
b.plate_num,b.plate_type,b.gmt_bind_time 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' where b.status='1'
<if test="userId!=null and userId!=''"> <if test="userId!=null and userId!=''">
and b.user_id=#{userId} and b.user_id=#{userId}
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
</select> </select>
<update id="unbind"> <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> </update>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<select id="checkValidity" resultType="com.hikcreate.edl.pub.web.mobile.infra.model.entity.ParkVerifyInfo"> <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} where pass_time <![CDATA[ >= ]]> #{time} and phone=#{phone} and user_id=#{userId}
</select> </select>
</mapper> </mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment