Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
map-parent
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
常超
map-parent
Commits
70b05af6
Commit
70b05af6
authored
Mar 12, 2021
by
Guojunfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
迁移登录接口
parent
eabc5485
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
7 deletions
+52
-7
common/common_utils/src/main/java/com/founder/commonutils/publicEntity/SysUsers.java
+50
-5
service/publicapi/src/main/java/com/founder/publicapi/mapper/xml/SysUsersMapper.xml
+2
-2
No files found.
common/common_utils/src/main/java/com/founder/commonutils/publicEntity/SysUsers.java
View file @
70b05af6
...
@@ -2,39 +2,84 @@ package com.founder.commonutils.publicEntity;
...
@@ -2,39 +2,84 @@ package com.founder.commonutils.publicEntity;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
lombok.experimental.Accessors
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
@Data
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
@EqualsAndHashCode
(
callSuper
=
false
)
@Accessors
(
chain
=
true
)
@Accessors
(
chain
=
true
)
@ApiModel
@ApiModel
(
value
=
"SysUsers对象"
,
description
=
"用户基本信息"
)
@TableName
(
"SYS_USERS"
)
@TableName
(
"SYS_USERS"
)
public
class
SysUsers
{
public
class
SysUsers
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"xxzj编号"
)
private
String
xxzjbh
;
private
String
xxzjbh
;
@ApiModelProperty
(
value
=
"警号"
)
private
String
policemanid
;
private
String
policemanid
;
@ApiModelProperty
(
value
=
"姓名"
)
private
String
truename
;
private
String
truename
;
@ApiModelProperty
(
value
=
"电话"
)
private
String
telephone
;
private
String
telephone
;
@ApiModelProperty
(
value
=
"身份证号"
)
private
String
identitycard
;
private
String
identitycard
;
@ApiModelProperty
(
value
=
"单位代码"
)
private
String
unitcode
;
private
String
unitcode
;
@ApiModelProperty
(
value
=
"单位名称"
)
private
String
unitname
;
private
String
unitname
;
@ApiModelProperty
(
value
=
"登录用户名"
)
private
String
username
;
private
String
username
;
@ApiModelProperty
(
value
=
"密码"
)
private
String
password
;
private
String
password
;
@ApiModelProperty
(
value
=
"权限0 是编辑新增删除(所有权限)1:新增修改自己的 2:查看自己的"
)
private
String
jurisdiction
;
private
String
jurisdiction
;
@ApiModelProperty
(
value
=
"更新时间"
)
private
Date
gxsj
;
private
Date
gxsj
;
@ApiModelProperty
(
value
=
"入库时间"
)
private
Date
rksj
;
@ApiModelProperty
(
value
=
"信息来源描述"
)
private
String
xxlyms
;
private
String
xxlyms
;
@ApiModelProperty
(
value
=
"职务"
)
private
String
jobname
;
private
String
jobname
;
@ApiModelProperty
(
value
=
"xxsc_pdbz"
)
private
String
xxsc_pdbz
;
@ApiModelProperty
(
value
=
"录入人"
)
private
String
lrr
;
private
String
lrr
;
@ApiModelProperty
(
value
=
"录入单位代码"
)
private
String
lrdwdm
;
private
String
lrdwdm
;
@ApiModelProperty
(
value
=
"录入单位名称"
)
private
String
lrdwmc
;
private
String
lrdwmc
;
@ApiModelProperty
(
value
=
"更新人"
)
private
String
gxr
;
private
String
gxr
;
@ApiModelProperty
(
value
=
"更新单位代码"
)
private
String
gxdwdm
;
private
String
gxdwdm
;
@ApiModelProperty
(
value
=
"更新单位名称"
)
private
String
gxdwmc
;
private
String
gxdwmc
;
private
String
role_id
;
private
List
<
String
>
permission_id
;
//登录返回用户所有权限集合
}
}
service/publicapi/src/main/java/com/founder/publicapi/mapper/xml/SysUsersMapper.xml
View file @
70b05af6
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
<mapper
namespace=
"com.founder.publicapi.mapper.SysUsersMapper"
>
<mapper
namespace=
"com.founder.publicapi.mapper.SysUsersMapper"
>
<select
id=
"getUsersByNamePassword"
resultType=
"com.founder.commonutils.publicEntity.SysUsers"
>
<select
id=
"getUsersByNamePassword"
resultType=
"com.founder.commonutils.publicEntity.SysUsers"
>
select * from sys_user
select * from sys_user
s
where 1=1
where 1=1
and xxsc_pdbz = '0'
<if
test=
"username!=null and username!=''"
>
<if
test=
"username!=null and username!=''"
>
and username = #{username}
and username = #{username}
</if>
</if>
...
...
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