Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gogirl-miniapp-backend
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
huluobin
gogirl-miniapp-backend
Commits
f4c6ea60
Commit
f4c6ea60
authored
Dec 16, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
5f3b64f7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
CustomerController.java
...m/gogirl/interfaces/user/customer/CustomerController.java
+22
-0
No files found.
src/main/java/com/gogirl/interfaces/user/customer/CustomerController.java
View file @
f4c6ea60
...
@@ -7,6 +7,7 @@ import com.gogirl.infrastructure.common.annotation.AuthIgnore;
...
@@ -7,6 +7,7 @@ import com.gogirl.infrastructure.common.annotation.AuthIgnore;
import
com.gogirl.infrastructure.common.annotation.LoginIgnore
;
import
com.gogirl.infrastructure.common.annotation.LoginIgnore
;
import
com.gogirl.infrastructure.common.base.JsonResult
;
import
com.gogirl.infrastructure.common.base.JsonResult
;
import
com.gogirl.infrastructure.common.exception.RRException
;
import
com.gogirl.infrastructure.common.exception.RRException
;
import
com.gogirl.infrastructure.common.util.StringUtils
;
import
com.gogirl.shared.member.CustomerOrderDetail
;
import
com.gogirl.shared.member.CustomerOrderDetail
;
import
com.gogirl.shared.user.CustomerQuery
;
import
com.gogirl.shared.user.CustomerQuery
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
...
@@ -154,6 +155,27 @@ public class CustomerController {
...
@@ -154,6 +155,27 @@ public class CustomerController {
if
(
customerSource
==
null
)
{
if
(
customerSource
==
null
)
{
throw
new
RRException
(
"客户来源必填"
);
throw
new
RRException
(
"客户来源必填"
);
}
}
if
(
StringUtils
.
isEmpty
(
storeRecordRealName
))
{
throw
new
RRException
(
"姓名必填"
);
}
if
(
StringUtils
.
isEmpty
(
sex
))
{
throw
new
RRException
(
"性别必填"
);
}
if
(
birthdayMonth
==
null
||
birthdayDay
==
null
)
{
throw
new
RRException
(
"生日必填"
);
}
if
(
StringUtils
.
isEmpty
(
ageGroup
))
{
throw
new
RRException
(
"年龄必填"
);
}
if
(
StringUtils
.
isEmpty
(
job
))
{
throw
new
RRException
(
"职业必填"
);
}
if
(
StringUtils
.
isEmpty
(
preference
))
{
throw
new
RRException
(
"偏好必填"
);
}
if
(
StringUtils
.
isEmpty
(
character
))
{
throw
new
RRException
(
"偏好必填"
);
}
customerService
.
updateCustomerDetail
(
birthdayMonth
,
birthdayDay
,
ageGroup
,
customerId
,
orderId
,
orderServeId
,
storeRecordRealName
,
sex
,
age
,
job
,
preference
,
character
,
customerSource
);
customerService
.
updateCustomerDetail
(
birthdayMonth
,
birthdayDay
,
ageGroup
,
customerId
,
orderId
,
orderServeId
,
storeRecordRealName
,
sex
,
age
,
job
,
preference
,
character
,
customerSource
);
return
JsonResult
.
success
();
return
JsonResult
.
success
();
}
}
...
...
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