Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
T
tcm-system
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
TCM
tcm-system
Commits
bca36f56
Commit
bca36f56
authored
Jul 23, 2019
by
zjy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user/role/tright 7.21
parent
fc6b57b1
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
0 additions
and
50 deletions
+0
-50
CompanyDao.java
src/main/java/com/pangding/web/authority/dao/CompanyDao.java
+0
-6
UserDao.java
src/main/java/com/pangding/web/authority/dao/UserDao.java
+0
-8
CompanyDaoImpl.java
...a/com/pangding/web/authority/dao/impl/CompanyDaoImpl.java
+0
-8
UserDaoImpl.java
...java/com/pangding/web/authority/dao/impl/UserDaoImpl.java
+0
-8
RegisterService.java
...a/com/pangding/web/authority/service/RegisterService.java
+0
-7
RegisterServiceImpl.java
...gding/web/authority/service/impl/RegisterServiceImpl.java
+0
-13
No files found.
src/main/java/com/pangding/web/authority/dao/CompanyDao.java
View file @
bca36f56
...
...
@@ -10,12 +10,6 @@ import com.yanzuoguang.util.vo.PageSizeData;
* @create 2019/5/13 14:24
*/
public
interface
CompanyDao
extends
BaseDao
{
/**
* 检查电话号码是否已存在
*
* @param companyVo CompanyVo对象
*/
void
checkPhone
(
CompanyVo
companyVo
);
/**
* 获取公司列表分页对象
...
...
src/main/java/com/pangding/web/authority/dao/UserDao.java
View file @
bca36f56
...
...
@@ -24,14 +24,6 @@ public interface UserDao extends BaseDao {
*/
void
checkAccount
(
UserVo
account
);
/**
* 检查电话号码是否存在
*
* @param phone 电话号码
*/
void
checkPhone
(
UserVo
phone
);
/**
* 通过用户id查询UserVo对象
*
...
...
src/main/java/com/pangding/web/authority/dao/impl/CompanyDaoImpl.java
View file @
bca36f56
...
...
@@ -14,7 +14,6 @@ import org.springframework.stereotype.Component;
@Component
public
class
CompanyDaoImpl
extends
BaseDaoImpl
implements
CompanyDao
{
private
static
final
String
CHECK_PHONE
=
"CHECK_PHONE"
;
private
static
final
String
SELECT
=
"SELECT"
;
@Override
...
...
@@ -22,8 +21,6 @@ public class CompanyDaoImpl extends BaseDaoImpl implements CompanyDao {
register
(
CompanyVo
.
class
);
table
.
addExist
(
CHECK_PHONE
,
"contact_phone"
);
table
.
add
(
SELECT
,
"select * from pd_company where 1=1 "
)
.
add
(
"companyName"
,
"and company_name = ? "
)
.
add
(
"companyType"
,
"and company_type = ? "
)
...
...
@@ -32,11 +29,6 @@ public class CompanyDaoImpl extends BaseDaoImpl implements CompanyDao {
.
add
(
"companyId"
,
"and invitation_company_id = ? "
);
}
@Override
public
void
checkPhone
(
CompanyVo
companyVo
)
{
this
.
checkExist
(
CHECK_PHONE
,
companyVo
,
"电话号码已存在"
);
}
@Override
public
PageSizeData
<
CompanyVo
>
getCompanyList
(
ListCompanyReqVo
reqVo
)
{
return
this
.
queryPage
(
CompanyVo
.
class
,
reqVo
,
SELECT
,
reqVo
);
...
...
src/main/java/com/pangding/web/authority/dao/impl/UserDaoImpl.java
View file @
bca36f56
...
...
@@ -21,7 +21,6 @@ public class UserDaoImpl extends BaseDaoImpl implements UserDao {
private
static
final
String
SELECT
=
"SELECT"
;
private
static
final
String
CHECK_ACCOUNT
=
"CHECK_ACCOUNT"
;
private
static
final
String
CHECK_PHONE
=
"CHECK_PHONE"
;
private
static
final
String
GET_ADMIN
=
"GET_ADMIN"
;
private
static
final
String
COUNT_BY_ROLE
=
"COUNT_BY_ROLE"
;
...
...
@@ -33,8 +32,6 @@ public class UserDaoImpl extends BaseDaoImpl implements UserDao {
table
.
addExist
(
CHECK_ACCOUNT
,
"account"
);
table
.
addExist
(
CHECK_PHONE
,
"phone"
);
table
.
add
(
GET_ADMIN
,
"SELECT u.* FROM pd_user u,pd_user_role ur WHERE u.id = ur.user_id"
)
.
add
(
"superAdminRoleId"
,
"and ur.role_id = ?"
)
.
add
(
"companyId"
,
"and u.company_id = ? "
);
...
...
@@ -51,11 +48,6 @@ public class UserDaoImpl extends BaseDaoImpl implements UserDao {
this
.
checkExist
(
CHECK_ACCOUNT
,
account
,
"用戶名已存在:"
+
account
.
getAccount
());
}
@Override
public
void
checkPhone
(
UserVo
phone
)
{
this
.
checkExist
(
CHECK_PHONE
,
phone
,
"手机号已存在:"
+
phone
.
getPhone
());
}
@Override
public
UserVo
getUser
(
UserGetReqVo
reqVo
)
{
return
this
.
load
(
reqVo
,
UserVo
.
class
);
...
...
src/main/java/com/pangding/web/authority/service/RegisterService.java
View file @
bca36f56
...
...
@@ -34,13 +34,6 @@ public interface RegisterService {
*/
CompanyVo
saveUser
(
RegisterUserReqVo
registerUserReqVo
)
throws
Exception
;
/**
* 检查电话号码是否已存在
*
* @param contactPhone 联系电话
*/
void
checkPhone
(
String
id
,
String
contactPhone
);
/**
* 保存个人注册的公司信息
*
...
...
src/main/java/com/pangding/web/authority/service/impl/RegisterServiceImpl.java
View file @
bca36f56
...
...
@@ -146,19 +146,6 @@ public class RegisterServiceImpl implements RegisterService {
return
companyVo
;
}
/**
* 检查电话号码是否已存在
*
* @param contactPhone 联系电话
*/
@Override
public
void
checkPhone
(
String
id
,
String
contactPhone
)
{
CompanyVo
companyVo
=
new
CompanyVo
();
companyVo
.
setId
(
id
);
companyVo
.
setContactPhone
(
contactPhone
);
companyDaoImpl
.
checkPhone
(
companyVo
);
}
/**
* 保存个人注册的公司信息
*
...
...
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