Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
customer-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SuperHive
back-end
customer-service
Commits
ea632aa1
Commit
ea632aa1
authored
May 16, 2020
by
huangcb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
货主注册、司机注册时,帐号状态默认为正常
parent
112e7a59
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
1 deletion
+42
-1
DriverAccountServiceImpl.java
.../module/driver/service/impl/DriverAccountServiceImpl.java
+1
-1
AccountServiceImpl.java
...er/module/goodsowner/service/impl/AccountServiceImpl.java
+2
-0
BaseTestController.java
...est/java/com/esv/freight/customer/BaseTestController.java
+1
-0
RedisComponentTest.java
...freight/customer/common/component/RedisComponentTest.java
+38
-0
No files found.
src/main/java/com/esv/freight/customer/module/driver/service/impl/DriverAccountServiceImpl.java
View file @
ea632aa1
...
...
@@ -294,7 +294,7 @@ public class DriverAccountServiceImpl extends ServiceImpl<DriverAccountDao, Driv
driverAccountEntity
.
setAccount
(
form
.
getAccount
());
driverAccountEntity
.
setCarrierId
(
form
.
getCarrierId
());
driverAccountEntity
.
setSalt
(
passwordComponent
.
generateAccountPwdSalt
());
driverAccountEntity
.
setAccountStatus
(
DriverConstants
.
ACCOUNT_STATUS_BLOCK
);
driverAccountEntity
.
setAccountStatus
(
DriverConstants
.
ACCOUNT_STATUS_
UN
BLOCK
);
driverAccountEntity
.
setSourceType
(
DriverConstants
.
ACCOUNT_SOURCE_TYPE_REGISTER
);
driverAccountEntity
.
setAuditStatus
(
DriverConstants
.
ACCOUNT_AUDIT_STATUS_UNAUDITED
);
this
.
baseMapper
.
insert
(
driverAccountEntity
);
...
...
src/main/java/com/esv/freight/customer/module/goodsowner/service/impl/AccountServiceImpl.java
View file @
ea632aa1
...
...
@@ -110,6 +110,7 @@ public class AccountServiceImpl extends ServiceImpl<AccountDao, AccountEntity> i
String
salt
=
passwordComponent
.
generateAccountPwdSalt
();
accountEntity
.
setSalt
(
salt
);
accountEntity
.
setPassword
(
passwordComponent
.
generatePwd4Salt
(
form
.
getPassword
(),
salt
));
accountEntity
.
setAccountStatus
(
GoodsOwnerConstants
.
OWNER_ACCOUNT_STATUS_UNBLOCK
);
accountEntity
.
setSourceType
(
GoodsOwnerConstants
.
OWNER_SOURCE_TYPE_PLATFORM
);
accountEntity
.
setAuditStatus
(
GoodsOwnerConstants
.
OWNER_AUDIT_STATUS_SUCCESS
);
this
.
baseMapper
.
insert
(
accountEntity
);
...
...
@@ -307,6 +308,7 @@ public class AccountServiceImpl extends ServiceImpl<AccountDao, AccountEntity> i
// 3.新增帐号
accountEntity
.
setAccount
(
account
);
accountEntity
.
setSalt
(
passwordComponent
.
generateAccountPwdSalt
());
accountEntity
.
setAccountStatus
(
GoodsOwnerConstants
.
OWNER_ACCOUNT_STATUS_UNBLOCK
);
accountEntity
.
setSourceType
(
GoodsOwnerConstants
.
OWNER_SOURCE_TYPE_REGISTER
);
accountEntity
.
setAuditStatus
(
GoodsOwnerConstants
.
OWNER_AUDIT_STATUS_UNAUDITED
);
this
.
baseMapper
.
insert
(
accountEntity
);
...
...
src/test/java/com/esv/freight/customer/BaseTestController.java
View file @
ea632aa1
...
...
@@ -50,6 +50,7 @@ public class BaseTestController {
httpHeaders
.
add
(
"esv_department_children"
,
"1,2,3"
);
httpHeaders
.
add
(
"esv_user"
,
"1"
);
httpHeaders
.
add
(
"esv_account"
,
"admin"
);
httpHeaders
.
add
(
"Source-Type"
,
"1"
);
httpHeaders
.
add
(
CommonConstants
.
REQ_SOURCE_TYPE_KEY
,
CommonConstants
.
REQ_SOURCE_TYPE_WEB
);
return
httpHeaders
;
}
...
...
src/test/java/com/esv/freight/customer/common/component/RedisComponentTest.java
0 → 100644
View file @
ea632aa1
package
com
.
esv
.
freight
.
customer
.
common
.
component
;
import
com.esv.freight.customer.BaseTestController
;
import
lombok.extern.slf4j.Slf4j
;
import
org.junit.FixMethodOrder
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runners.MethodSorters
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.test.context.junit4.SpringRunner
;
/**
* @description:
* @project: freight-customer-service
* @name: com.esv.freight.customer.common.component.RedisComponentTest
* @author: 黄朝斌
* @email: huangchaobin@esvtek.com
* @createTime: 2020/05/16 13:35
* @version:1.0
*/
@RunWith
(
SpringRunner
.
class
)
@SpringBootTest
@Slf4j
@FixMethodOrder
(
MethodSorters
.
NAME_ASCENDING
)
public
class
RedisComponentTest
extends
BaseTestController
{
@Autowired
RedisComponent
redisComponent
;
@Test
public
void
test
()
{
String
cacheKey
=
"freight-app-service::token::1::13606060606"
;
log
.
info
(
redisComponent
.
get
(
cacheKey
).
toString
());
redisComponent
.
del
(
cacheKey
);
log
.
info
((
String
)
redisComponent
.
get
(
cacheKey
));
}
}
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