Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-api-boot-master
Commits
cb8ddf1e
Commit
cb8ddf1e
authored
May 30, 2024
by
liuzeheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的客户列表导出优化
parent
0e76f384
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
9 deletions
+18
-9
CustomerServiceImpl.java
...module/customer/service/customer/CustomerServiceImpl.java
+11
-7
CustomerExcelExportListener.java
...dao/module/sale/listener/CustomerExcelExportListener.java
+7
-2
No files found.
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/service/customer/CustomerServiceImpl.java
View file @
cb8ddf1e
...
...
@@ -98,6 +98,7 @@ import java.util.concurrent.TimeUnit;
import
java.util.stream.Collectors
;
import
static
cn
.
iocoder
.
yudao
.
framework
.
common
.
exception
.
util
.
ServiceExceptionUtil
.
exception
;
import
static
cn
.
iocoder
.
yudao
.
framework
.
security
.
core
.
util
.
SecurityFrameworkUtils
.
getLoginUserId
;
import
static
cn
.
iocoder
.
yudao
.
module
.
bpm
.
enums
.
WorkFlowEmus
.
QUOTATION_CUSTOMER_DELAY_PUBLIC
;
import
static
cn
.
iocoder
.
yudao
.
module
.
bpm
.
enums
.
WorkFlowEmus
.
QUOTATION_CUSTOMER_HANDOVER
;
import
static
cn
.
iocoder
.
yudao
.
module
.
ecw
.
enums
.
ErrorCodeConstants
.*;
...
...
@@ -1483,9 +1484,12 @@ public class CustomerServiceImpl extends AbstractService<CustomerMapper, Custome
public
List
<
CustomerDO
>
getWaitToConfirmCustomerExcelVoListReq
(
CustomerExportReqDTO
reqVO
){
reqVO
.
setIsCustomerServiceConfirmed
(
false
)
;
reqVO
.
setIsInOpenSea
(
false
)
;
List
<
Long
>
setCustomerService
=
new
ArrayList
<>();
setCustomerService
.
add
(
WebFrameworkUtils
.
getLoginUserId
())
;
reqVO
.
setCustomerService
(
setCustomerService
)
;
List
<
Long
>
setCustomerService
=
new
ArrayList
<
Long
>();
if
(
getLoginUserId
()!=
null
){
setCustomerService
.
add
(
getLoginUserId
())
;
reqVO
.
setCustomerService
(
setCustomerService
)
;
}
return
customerMapper
.
getWaitToConfirmCustomerExcelVoListReq
(
reqVO
)
;
}
@Override
...
...
@@ -1858,7 +1862,7 @@ public class CustomerServiceImpl extends AbstractService<CustomerMapper, Custome
if
(
Objects
.
isNull
(
delayApprovalInfoDto
.
getEstimateEnterOpenSeaTime
()))
{
throw
exception
(
ESTIMATE_ENTER_OPEN_SEA_TIME_NOT_NULL
);
}
String
creator
=
String
.
valueOf
(
SecurityFrameworkUtils
.
getLoginUserId
());
String
creator
=
String
.
valueOf
(
getLoginUserId
());
CustomerDO
customerDO
=
customerMapper
.
selectById
(
delayApprovalInfoDto
.
getCustomerId
());
if
(
Objects
.
isNull
(
customerDO
))
{
throw
exception
(
CUSTOMER_NOT_EXISTS
);
...
...
@@ -1933,7 +1937,7 @@ public class CustomerServiceImpl extends AbstractService<CustomerMapper, Custome
@Override
public
void
cancelDelayApproval
(
Long
approveId
,
String
reason
)
{
Long
userId
=
SecurityFrameworkUtils
.
getLoginUserId
();
Long
userId
=
getLoginUserId
();
CustomerApprovalDO
approvalDO
=
customerApprovalService
.
getById
(
approveId
);
if
(
approvalDO
.
getDeleted
()
||
(
approvalDO
.
getType
()
!=
1
&&
approvalDO
.
getStatus
()
!=
1
))
{
throw
exception
(
CUSTOMER_APPROVAL_STATUS_NOT_CORRECT
);
...
...
@@ -2273,7 +2277,7 @@ public class CustomerServiceImpl extends AbstractService<CustomerMapper, Custome
customerApprovalDO
.
setCreateTime
(
new
Date
());
customerApprovalService
.
save
(
customerApprovalDO
);
String
creator
=
String
.
valueOf
(
SecurityFrameworkUtils
.
getLoginUserId
());
String
creator
=
String
.
valueOf
(
getLoginUserId
());
String
formId
=
bpmCreateServiceFactory
.
createBmpDesignated
(
Long
.
valueOf
(
creator
),
customerApprovalDO
.
getApprovalId
(),
QUOTATION_CUSTOMER_HANDOVER
.
getKey
(),
null
,
null
,
String
.
valueOf
(
customerServiceOld
));
...
...
@@ -2349,7 +2353,7 @@ public class CustomerServiceImpl extends AbstractService<CustomerMapper, Custome
@Override
public
void
cancelHandoverApproval
(
Long
approveId
,
String
reason
)
{
Long
userId
=
SecurityFrameworkUtils
.
getLoginUserId
();
Long
userId
=
getLoginUserId
();
CustomerApprovalDO
approvalDO
=
customerApprovalService
.
getById
(
approveId
);
if
(
approvalDO
.
getDeleted
()
||
(
approvalDO
.
getType
()
!=
2
&&
approvalDO
.
getStatus
()
!=
1
))
{
throw
exception
(
CUSTOMER_APPROVAL_STATUS_NOT_CORRECT
);
...
...
yudao-module-sale/yudao-module-sale-core/src/main/java/cn/iocoder/yudao/module/sale/listener/CustomerExcelExportListener.java
View file @
cb8ddf1e
...
...
@@ -32,6 +32,7 @@ import java.util.ArrayList;
import
java.util.List
;
import
static
cn
.
iocoder
.
yudao
.
framework
.
excel
.
constant
.
ExportConstant
.
DATA_FORMAT
;
import
static
cn
.
iocoder
.
yudao
.
framework
.
security
.
core
.
util
.
SecurityFrameworkUtils
.
getLoginUserId
;
/**
...
...
@@ -73,8 +74,12 @@ public class CustomerExcelExportListener {
public
void
customerMineExcelExportPushEvent
(
CustomerMineExcelExportPushEvent
event
)
{
CustomerExportReqDTO
exportReqVO
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
CustomerExportReqDTO
.
class
);
List
<
Long
>
setCustomerService
=
new
ArrayList
<>();
setCustomerService
.
add
(
WebFrameworkUtils
.
getLoginUserId
())
;
exportReqVO
.
setCustomerService
(
setCustomerService
)
;
if
(
getLoginUserId
()!=
null
){
setCustomerService
.
add
(
getLoginUserId
())
;
exportReqVO
.
setCustomerService
(
setCustomerService
)
;
}
//未被接收
exportReqVO
.
setIsCustomerServiceConfirmed
(
true
);
...
...
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