Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-office-web-sit
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴迪
gs1-office-web-sit
Commits
f1662b05
Commit
f1662b05
authored
Dec 08, 2021
by
唐功亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【新增】 发送验证码
parent
989ae640
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
43 additions
and
4 deletions
+43
-4
pom.xml
pom.xml
+13
-0
TimescodeRegiDao.java
...n/java/io/office/modules/manage/dao/TimescodeRegiDao.java
+5
-1
TimescodeRegiIpDao.java
...java/io/office/modules/manage/dao/TimescodeRegiIpDao.java
+5
-1
TimescodeRegiEntity.java
.../io/office/modules/manage/entity/TimescodeRegiEntity.java
+3
-1
TimescodeRegiIpEntity.java
...o/office/modules/manage/entity/TimescodeRegiIpEntity.java
+2
-1
TimescodeRegiServiceImpl.java
...modules/manage/service/impl/TimescodeRegiServiceImpl.java
+0
-0
TimescodeRegiIpDao.xml
src/main/resources/mapper/manage/TimescodeRegiIpDao.xml
+15
-0
No files found.
pom.xml
View file @
f1662b05
...
...
@@ -252,6 +252,19 @@
<version>
1.1.2
</version>
</dependency>
<dependency>
<groupId>
commons-httpclient
</groupId>
<artifactId>
commons-httpclient
</artifactId>
<version>
3.1
</version>
</dependency>
<dependency>
<groupId>
org.dom4j
</groupId>
<artifactId>
dom4j
</artifactId>
<version>
2.1.0
</version>
</dependency>
</dependencies>
<build>
...
...
src/main/java/io/office/modules/manage/dao/TimescodeRegiDao.java
View file @
f1662b05
...
...
@@ -3,6 +3,8 @@ package io.office.modules.manage.dao;
import
io.office.modules.manage.entity.TimescodeRegiEntity
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Select
;
/**
* ${comments}
...
...
@@ -13,5 +15,7 @@ import org.apache.ibatis.annotations.Mapper;
*/
@Mapper
public
interface
TimescodeRegiDao
extends
BaseMapper
<
TimescodeRegiEntity
>
{
@Select
(
"select * from timescode_regi where phone=#{phone} "
)
TimescodeRegiEntity
findByPhone
(
@Param
(
"phone"
)
String
phone
);
}
src/main/java/io/office/modules/manage/dao/TimescodeRegiIpDao.java
View file @
f1662b05
...
...
@@ -3,6 +3,8 @@ package io.office.modules.manage.dao;
import
io.office.modules.manage.entity.TimescodeRegiIpEntity
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Select
;
/**
* ${comments}
...
...
@@ -13,5 +15,7 @@ import org.apache.ibatis.annotations.Mapper;
*/
@Mapper
public
interface
TimescodeRegiIpDao
extends
BaseMapper
<
TimescodeRegiIpEntity
>
{
@Select
(
"select * form timescode_regi_ip where ip = #{ip} "
)
public
TimescodeRegiIpEntity
findByIp
(
@Param
(
"ip"
)
String
ip
);
}
src/main/java/io/office/modules/manage/entity/TimescodeRegiEntity.java
View file @
f1662b05
package
io
.
office
.
modules
.
manage
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
java.io.Serializable
;
import
java.util.Date
;
import
lombok.Data
;
import
org.springframework.data.annotation.Id
;
/**
* 验证码实体
...
...
@@ -22,7 +24,7 @@ public class TimescodeRegiEntity implements Serializable {
/**
* 手机号
*/
@TableId
(
type
=
IdType
.
INPUT
)
private
String
phone
;
/**
* 时间
...
...
src/main/java/io/office/modules/manage/entity/TimescodeRegiIpEntity.java
View file @
f1662b05
package
io
.
office
.
modules
.
manage
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
...
...
@@ -22,7 +23,7 @@ public class TimescodeRegiIpEntity implements Serializable {
/**
* $column.comments
*/
@TableId
@TableId
(
type
=
IdType
.
INPUT
)
private
String
ip
;
/**
* $column.comments
...
...
src/main/java/io/office/modules/manage/service/impl/TimescodeRegiServiceImpl.java
View file @
f1662b05
This diff is collapsed.
Click to expand it.
src/main/resources/mapper/manage/TimescodeRegiIpDao.xml
0 → 100644
View file @
f1662b05
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"io.office.modules.manage.dao.TimescodeRegiIpDao"
>
<!-- 可根据自己的需求,是否要使用 -->
<resultMap
type=
"io.office.modules.manage.entity.TimescodeRegiIpEntity"
id=
"timescodeRegiIpMap"
>
<result
property=
"ip"
column=
"ip"
/>
<result
property=
"date"
column=
"date"
/>
<result
property=
"timesIp"
column=
"times_ip"
/>
</resultMap>
</mapper>
\ No newline at end of file
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