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
982e7701
Commit
982e7701
authored
Dec 14, 2021
by
ZhangYunfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增修改用户手机号功能
parent
72636f02
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
167 additions
and
1 deletions
+167
-1
MemberController.java
...io/office/modules/manage/controller/MemberController.java
+9
-0
TimescodeChphoneDao.java
...ava/io/office/modules/manage/dao/TimescodeChphoneDao.java
+19
-0
TimescodeChphoneIpDao.java
...a/io/office/modules/manage/dao/TimescodeChphoneIpDao.java
+19
-0
TimescodeChphoneEntity.java
.../office/modules/manage/entity/TimescodeChphoneEntity.java
+44
-0
TimescodeChphoneIpEntity.java
...ffice/modules/manage/entity/TimescodeChphoneIpEntity.java
+42
-0
MemberService.java
.../java/io/office/modules/manage/service/MemberService.java
+2
-0
MemberServiceImpl.java
...office/modules/manage/service/impl/MemberServiceImpl.java
+0
-0
TimescodeRegiServiceImpl.java
...modules/manage/service/impl/TimescodeRegiServiceImpl.java
+1
-1
TimescodeChphoneDao.xml
src/main/resources/mapper/manage/TimescodeChphoneDao.xml
+16
-0
TimescodeChphoneIpDao.xml
src/main/resources/mapper/manage/TimescodeChphoneIpDao.xml
+15
-0
No files found.
src/main/java/io/office/modules/manage/controller/MemberController.java
View file @
982e7701
...
...
@@ -66,6 +66,15 @@ public class MemberController extends AbstractController {
memberService
.
updatephone
(
params
,
request
,
response
);
return
R
.
ok
();
}
/**
* 获取验证码
*/
@RequestMapping
(
"/authApi/getVerificationCode"
)
// @RequiresPermissions("manage:timescoderegi:list")
public
R
getVerificationCode
(
@RequestBody
Map
<
String
,
Object
>
params
,
HttpServletRequest
request
,
HttpServletResponse
response
){
String
msg
=
memberService
.
getVerificationCode
(
params
,
request
,
response
);
return
R
.
ok
();
}
/**
* 列表
...
...
src/main/java/io/office/modules/manage/dao/TimescodeChphoneDao.java
0 → 100644
View file @
982e7701
package
io
.
office
.
modules
.
manage
.
dao
;
import
io.office.modules.manage.entity.TimescodeChphoneEntity
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Component
;
/**
* ${comments}
*
* @author wudi
* @email
* @date 2021-12-13 17:24:17
*/
@Mapper
@Component
public
interface
TimescodeChphoneDao
extends
BaseMapper
<
TimescodeChphoneEntity
>
{
}
src/main/java/io/office/modules/manage/dao/TimescodeChphoneIpDao.java
0 → 100644
View file @
982e7701
package
io
.
office
.
modules
.
manage
.
dao
;
import
io.office.modules.manage.entity.TimescodeChphoneIpEntity
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Component
;
/**
* ${comments}
*
* @author wudi
* @email
* @date 2021-12-13 17:24:17
*/
@Mapper
@Component
public
interface
TimescodeChphoneIpDao
extends
BaseMapper
<
TimescodeChphoneIpEntity
>
{
}
src/main/java/io/office/modules/manage/entity/TimescodeChphoneEntity.java
0 → 100644
View file @
982e7701
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.AllArgsConstructor
;
import
lombok.Data
;
/**
* ${comments}
*
* @author wudi
* @email
* @date 2021-12-13 17:24:17
*/
@Data
@AllArgsConstructor
@TableName
(
"timescode_chPhone"
)
public
class
TimescodeChphoneEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* $column.comments
*/
@TableId
(
type
=
IdType
.
INPUT
)
private
String
phone
;
/**
* $column.comments
*/
private
String
date
;
/**
* $column.comments
*/
private
Integer
times
;
/**
* $column.comments
*/
private
Integer
timesValidate
;
}
src/main/java/io/office/modules/manage/entity/TimescodeChphoneIpEntity.java
0 → 100644
View file @
982e7701
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.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.Getter
;
import
lombok.Setter
;
/**
* ${comments}
*
* @author wudi
* @email
* @date 2021-12-13 17:24:17
*/
@Data
@AllArgsConstructor
@TableName
(
"timescode_chPhone_ip"
)
public
class
TimescodeChphoneIpEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* $column.comments
*/
@TableId
(
type
=
IdType
.
INPUT
)
private
String
ip
;
/**
* $column.comments
*/
private
String
date
;
/**
* $column.comments
*/
private
Integer
timesIp
;
}
src/main/java/io/office/modules/manage/service/MemberService.java
View file @
982e7701
...
...
@@ -25,5 +25,7 @@ public interface MemberService extends IService<MemberEntity> {
void
updatephone
(
Map
<
String
,
Object
>
params
,
HttpServletRequest
request
,
HttpServletResponse
response
);
String
getVerificationCode
(
Map
<
String
,
Object
>
params
,
HttpServletRequest
request
,
HttpServletResponse
response
);
}
src/main/java/io/office/modules/manage/service/impl/MemberServiceImpl.java
View file @
982e7701
This diff is collapsed.
Click to expand it.
src/main/java/io/office/modules/manage/service/impl/TimescodeRegiServiceImpl.java
View file @
982e7701
...
...
@@ -103,7 +103,7 @@ public class TimescodeRegiServiceImpl extends ServiceImpl<TimescodeRegiDao, Time
//写入session
HttpSession
session
=
request
.
getSession
();
session
.
setAttribute
(
"subjoin"
,
pass
);
//验证码
session
.
setAttribute
(
"tel"
,
p
ass
);
//手机号
session
.
setAttribute
(
"tel"
,
p
hone
);
//手机号
session
.
setAttribute
(
"date"
,
System
.
currentTimeMillis
());
//毫秒值
//发送状态
...
...
src/main/resources/mapper/manage/TimescodeChphoneDao.xml
0 → 100644
View file @
982e7701
<?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.TimescodeChphoneDao"
>
<!-- 可根据自己的需求,是否要使用 -->
<resultMap
type=
"io.office.modules.manage.entity.TimescodeChphoneEntity"
id=
"timescodeChphoneMap"
>
<result
property=
"phone"
column=
"phone"
/>
<result
property=
"date"
column=
"date"
/>
<result
property=
"times"
column=
"times"
/>
<result
property=
"timesValidate"
column=
"times_validate"
/>
</resultMap>
</mapper>
\ No newline at end of file
src/main/resources/mapper/manage/TimescodeChphoneIpDao.xml
0 → 100644
View file @
982e7701
<?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.TimescodeChphoneIpDao"
>
<!-- 可根据自己的需求,是否要使用 -->
<resultMap
type=
"io.office.modules.manage.entity.TimescodeChphoneIpEntity"
id=
"timescodeChphoneIpMap"
>
<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