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
32579922
Commit
32579922
authored
Jun 27, 2023
by
caixingbing
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://192.168.60.201/root/dsk-operate-sys
parents
99c54a92
7650e89b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
CustomerController.java
...a/com/dsk/web/controller/customer/CustomerController.java
+9
-2
EnterpriseService.java
...ain/java/com/dsk/system/dskService/EnterpriseService.java
+1
-1
No files found.
dsk-admin/src/main/java/com/dsk/web/controller/customer/CustomerController.java
View file @
32579922
...
...
@@ -23,6 +23,7 @@ import org.springframework.web.bind.annotation.*;
import
org.springframework.web.multipart.MultipartFile
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -68,7 +69,7 @@ public class CustomerController extends BaseController {
@RepeatSubmit
public
AjaxResult
add
(
@RequestBody
Customer
customer
)
{
dealWithcustomerData
(
customer
);
return
AjaxResult
.
success
(
baseService
.
add
(
customer
));
return
toAjax
(
baseService
.
add
(
customer
));
}
/**
...
...
@@ -80,7 +81,13 @@ public class CustomerController extends BaseController {
public
AjaxResult
claim
(
@RequestBody
Customer
customer
)
{
if
(
ObjectUtils
.
isEmpty
(
customer
.
getUipId
()))
throw
new
BeanException
(
"城投uipId不能为空"
);
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
)
{
...
...
dsk-system/src/main/java/com/dsk/system/dskService/EnterpriseService.java
View file @
32579922
...
...
@@ -76,7 +76,7 @@ public class EnterpriseService {
List
<
CustomerStatusListVo
>
claimStatusList
=
iCustomerService
.
selectStatusList
(
uipIds
);
if
(
CollectionUtils
.
isNotEmpty
(
claimStatusList
))
{
company
Map
.
put
(
"claimStatus"
,
1
);
company
Data
.
put
(
"claimStatus"
,
1
);
}
return
R
.
ok
(
companyData
);
...
...
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