Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dm_project
Project
Project
Details
Activity
Releases
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
姚本章
dm_project
Commits
97c4eadb
Commit
97c4eadb
authored
Dec 24, 2020
by
ysongq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
caa0e863
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
90 additions
and
3 deletions
+90
-3
SysUserDto.java
...m-common/src/main/java/com/jz/common/bean/SysUserDto.java
+89
-0
DataGoodsApiService.java
...va/com/jz/dm/mall/moduls/service/DataGoodsApiService.java
+0
-2
LoginController.java
.../com/jz/manage/moduls/controller/sys/LoginController.java
+1
-1
No files found.
jz-dm-common/src/main/java/com/jz/common/bean/SysUserDto.java
0 → 100644
View file @
97c4eadb
package
com
.
jz
.
common
.
bean
;
import
com.jz.common.enums.UserTypeEnum
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.io.Serializable
;
/**
* @ClassName: 后台用户状态信息
* @Author: Carl
* @Date: 2020/12/3
* @Version:
*/
@ApiModel
public
class
SysUserDto
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
8194718171444972705L
;
/**
* 平台用户id
*/
@ApiModelProperty
(
value
=
"平台用户id"
)
private
Long
userId
;
/**
* 组织机构id
*/
@ApiModelProperty
(
value
=
"组织机构id"
)
private
Long
orgId
;
/**
* 用户姓名
*/
@ApiModelProperty
(
value
=
"用户姓名"
)
private
String
userName
;
/**
* 账户
*/
@ApiModelProperty
(
value
=
"账户"
)
private
String
account
;
/**
* 电话
*/
@ApiModelProperty
(
value
=
"账号类型"
)
private
UserTypeEnum
userTypeEnum
;
public
static
long
getSerialVersionUID
()
{
return
serialVersionUID
;
}
public
Long
getUserId
()
{
return
userId
;
}
public
void
setUserId
(
Long
userId
)
{
this
.
userId
=
userId
;
}
public
Long
getOrgId
()
{
return
orgId
;
}
public
void
setOrgId
(
Long
orgId
)
{
this
.
orgId
=
orgId
;
}
public
String
getUserName
()
{
return
userName
;
}
public
void
setUserName
(
String
userName
)
{
this
.
userName
=
userName
;
}
public
String
getAccount
()
{
return
account
;
}
public
void
setAccount
(
String
account
)
{
this
.
account
=
account
;
}
public
UserTypeEnum
getUserTypeEnum
()
{
return
userTypeEnum
;
}
public
void
setUserTypeEnum
(
UserTypeEnum
userTypeEnum
)
{
this
.
userTypeEnum
=
userTypeEnum
;
}
}
jz-dm-mall/src/main/java/com/jz/dm/mall/moduls/service/DataGoodsApiService.java
View file @
97c4eadb
package
com
.
jz
.
dm
.
mall
.
moduls
.
service
;
import
com.jz.common.utils.Result
;
import
com.jz.dm.mall.moduls.controller.goods.bean.dto.DataGoodsApiDto
;
import
java.util.List
;
/**
...
...
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/sys/LoginController.java
View file @
97c4eadb
...
...
@@ -42,7 +42,7 @@ public class LoginController extends BaseController {
// 手机
String
ph
=
"^[1][34578]\\d{9}$"
;
// 如果是手机验证
if
(
username
.
matches
(
username
))
{
if
(
username
.
matches
(
ph
))
{
SysUser
sysUser
=
sysUserService
.
selectByPhone
(
username
,
request
);
if
(
sysUser
!=
null
)
{
if
(
sysUser
.
getTelephone
().
equals
(
username
)
&&
sysUser
.
getPassword
().
equals
(
password
))
{
...
...
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