Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-store
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
base_platform_enterprise
gic-store
Commits
0bae98fb
Commit
0bae98fb
authored
Nov 09, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导购信息长度限制
parent
6bee3179
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
ClerkDTO.java
gic-store-api/src/main/java/com/gic/store/dto/ClerkDTO.java
+5
-0
ClerkApiServiceImpl.java
...com/gic/store/service/outer/impl/ClerkApiServiceImpl.java
+5
-0
No files found.
gic-store-api/src/main/java/com/gic/store/dto/ClerkDTO.java
View file @
0bae98fb
package
com
.
gic
.
store
.
dto
;
import
org.hibernate.validator.constraints.Length
;
import
java.io.Serializable
;
/**
...
...
@@ -17,11 +19,13 @@ public class ClerkDTO implements Serializable {
/**
* 店员名称
*/
@Length
(
max
=
32
,
message
=
"导购名称最大长度为32位"
)
private
String
clerkName
;
/**
* 店员编码
*/
@Length
(
max
=
32
,
message
=
"导购code最大长度为32位"
)
private
String
clerkCode
;
/**
...
...
@@ -53,6 +57,7 @@ public class ClerkDTO implements Serializable {
/**
* 电话号码
*/
@Length
(
max
=
11
,
message
=
"导购手机号最大长度为11位"
)
private
String
phoneNumber
;
/**
...
...
gic-store-service/src/main/java/com/gic/store/service/outer/impl/ClerkApiServiceImpl.java
View file @
0bae98fb
...
...
@@ -24,6 +24,7 @@ import com.gic.store.dto.clerk.ProcessBatchClerkDTO;
import
com.gic.store.entity.TabClerk
;
import
com.gic.store.entity.TabStoreRegion
;
import
com.gic.store.service.*
;
import
com.gic.store.utils.valid.ValidUtil
;
import
com.gic.weimob.api.dto.WeimobGuiderSynDTO
;
import
com.gic.weimob.api.service.WeimobStoreSiteService
;
import
com.github.pagehelper.PageHelper
;
...
...
@@ -77,6 +78,10 @@ public class ClerkApiServiceImpl implements ClerkApiService {
@Override
public
ServiceResponse
saveOrUpdate
(
ClerkDTO
clerkDTO
)
{
ServiceResponse
paramResult
=
ValidUtil
.
allCheckValidate
(
clerkDTO
);
if
(!
paramResult
.
isSuccess
())
{
return
paramResult
;
}
if
(
validStoreIsOther
(
clerkDTO
.
getEnterpriseId
(),
clerkDTO
.
getStoreInfoId
()))
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"权限不足"
);
}
...
...
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