Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
Project
Project
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
Administrator
dsk-cr20g
Commits
7650e89b
Commit
7650e89b
authored
Jun 27, 2023
by
lcl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加认领返回值
parent
2ac02146
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
CustomerController.java
...a/com/dsk/web/controller/customer/CustomerController.java
+9
-2
No files found.
dsk-admin/src/main/java/com/dsk/web/controller/customer/CustomerController.java
View file @
7650e89b
...
@@ -23,6 +23,7 @@ import org.springframework.web.bind.annotation.*;
...
@@ -23,6 +23,7 @@ import org.springframework.web.bind.annotation.*;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.MultipartFile
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -68,7 +69,7 @@ public class CustomerController extends BaseController {
...
@@ -68,7 +69,7 @@ public class CustomerController extends BaseController {
@RepeatSubmit
@RepeatSubmit
public
AjaxResult
add
(
@RequestBody
Customer
customer
)
{
public
AjaxResult
add
(
@RequestBody
Customer
customer
)
{
dealWithcustomerData
(
customer
);
dealWithcustomerData
(
customer
);
return
AjaxResult
.
success
(
baseService
.
add
(
customer
));
return
toAjax
(
baseService
.
add
(
customer
));
}
}
/**
/**
...
@@ -80,7 +81,13 @@ public class CustomerController extends BaseController {
...
@@ -80,7 +81,13 @@ public class CustomerController extends BaseController {
public
AjaxResult
claim
(
@RequestBody
Customer
customer
)
{
public
AjaxResult
claim
(
@RequestBody
Customer
customer
)
{
if
(
ObjectUtils
.
isEmpty
(
customer
.
getUipId
()))
throw
new
BeanException
(
"城投uipId不能为空"
);
if
(
ObjectUtils
.
isEmpty
(
customer
.
getUipId
()))
throw
new
BeanException
(
"城投uipId不能为空"
);
dealWithcustomerData
(
customer
);
dealWithcustomerData
(
customer
);
return
AjaxResult
.
success
(
baseService
.
add
(
customer
));
boolean
add
=
baseService
.
add
(
customer
);
if
(
add
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"customerId"
,
customer
.
getCustomerId
());
return
AjaxResult
.
success
(
map
);
}
return
AjaxResult
.
error
();
}
}
private
void
dealWithcustomerData
(
Customer
customer
)
{
private
void
dealWithcustomerData
(
Customer
customer
)
{
...
...
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