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
86f83368
Commit
86f83368
authored
Jul 10, 2023
by
lcl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取客户状态逻辑修改
parent
0668a5ac
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
CustomerController.java
...a/com/dsk/web/controller/customer/CustomerController.java
+2
-2
ICustomerService.java
...rc/main/java/com/dsk/system/service/ICustomerService.java
+1
-1
CustomerServiceImpl.java
...java/com/dsk/system/service/impl/CustomerServiceImpl.java
+7
-3
No files found.
dsk-admin/src/main/java/com/dsk/web/controller/customer/CustomerController.java
View file @
86f83368
...
@@ -198,8 +198,8 @@ public class CustomerController extends BaseController {
...
@@ -198,8 +198,8 @@ public class CustomerController extends BaseController {
*/
*/
@GetMapping
(
"/status/{customerId}"
)
@GetMapping
(
"/status/{customerId}"
)
@RepeatSubmit
@RepeatSubmit
public
AjaxResult
status
(
@PathVariable
String
c
ustomerId
)
{
public
AjaxResult
status
(
@PathVariable
String
c
ompanyName
)
{
return
AjaxResult
.
success
(
baseService
.
status
(
c
ustomerId
));
return
AjaxResult
.
success
(
baseService
.
status
(
c
ompanyName
));
}
}
...
...
dsk-system/src/main/java/com/dsk/system/service/ICustomerService.java
View file @
86f83368
...
@@ -31,7 +31,7 @@ public interface ICustomerService {
...
@@ -31,7 +31,7 @@ public interface ICustomerService {
List
<
String
>
selectUipIdList
(
List
<
String
>
uipIds
);
List
<
String
>
selectUipIdList
(
List
<
String
>
uipIds
);
Integer
status
(
String
c
ustomerId
);
Integer
status
(
String
c
ompanyName
);
boolean
cancelClaim
(
String
customerId
);
boolean
cancelClaim
(
String
customerId
);
...
...
dsk-system/src/main/java/com/dsk/system/service/impl/CustomerServiceImpl.java
View file @
86f83368
...
@@ -126,11 +126,15 @@ public class CustomerServiceImpl implements ICustomerService {
...
@@ -126,11 +126,15 @@ public class CustomerServiceImpl implements ICustomerService {
}
}
@Override
@Override
public
Integer
status
(
String
c
ustomerId
)
{
public
Integer
status
(
String
c
ompanyName
)
{
Customer
User
customerUser
=
customerUserMapper
.
selectByCustomerIdAndUserId
(
customerId
,
SecurityUtils
.
getUserId
());
Customer
cus
=
baseMapper
.
selectByCompanyNameAndUserId
(
companyName
,
SecurityUtils
.
getUserId
());
if
(
ObjectUtils
.
isEmpty
(
cus
tomerUser
))
{
if
(
ObjectUtils
.
isEmpty
(
cus
))
{
return
null
;
return
null
;
}
}
CustomerUser
customerUser
=
customerUserMapper
.
selectByCustomerIdAndUserId
(
cus
.
getCustomerId
(),
SecurityUtils
.
getUserId
());
if
(
ObjectUtils
.
isEmpty
(
customerUser
))
{
throw
new
ServiceException
(
"数据错误!"
);
}
return
customerUser
.
getStatus
();
return
customerUser
.
getStatus
();
}
}
...
...
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