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
e9f580ba
Commit
e9f580ba
authored
Jun 27, 2023
by
lcl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
7650e89b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
21 deletions
+0
-21
CustomerServiceImpl.java
...java/com/dsk/system/service/impl/CustomerServiceImpl.java
+0
-10
CustomerMapper.xml
.../main/resources/mapper/system/customer/CustomerMapper.xml
+0
-11
No files found.
dsk-system/src/main/java/com/dsk/system/service/impl/CustomerServiceImpl.java
View file @
e9f580ba
...
@@ -51,16 +51,6 @@ public class CustomerServiceImpl implements ICustomerService {
...
@@ -51,16 +51,6 @@ public class CustomerServiceImpl implements ICustomerService {
@Override
@Override
public
List
<
CustomerListVo
>
selectList
(
CustomerSearchDto
dto
)
{
public
List
<
CustomerListVo
>
selectList
(
CustomerSearchDto
dto
)
{
dto
.
setUserId
(
SecurityUtils
.
getUserId
());
dto
.
setUserId
(
SecurityUtils
.
getUserId
());
// List<CustomerListVo> vos = baseMapper.selectList(dto);
// vos.parallelStream().forEach(vo -> {
// //合作项目
// vo.setCooperationProject(businessInfoService.selectCountByStatusAndCustomerId(2, vo.getCustomerId()));
// //跟进项目
// vo.setFollowProject(businessInfoService.selectCountByStatusAndCustomerId(1, vo.getCustomerId()));
// //储备项目
// vo.setReserveProject(businessInfoService.selectCountByStatusAndCustomerId(0, vo.getCustomerId()));
// });
// return vos;
return
baseMapper
.
selectList
(
dto
);
return
baseMapper
.
selectList
(
dto
);
}
}
...
...
dsk-system/src/main/resources/mapper/system/customer/CustomerMapper.xml
View file @
e9f580ba
...
@@ -10,17 +10,6 @@
...
@@ -10,17 +10,6 @@
ct.performance_characteristic, ct.other_ms_characteistic, ct.create_id, ct.create_time, ct.update_id, ct.update_time
ct.performance_characteristic, ct.other_ms_characteistic, ct.create_id, ct.create_time, ct.update_id, ct.update_time
</sql>
</sql>
<select
id=
"selectList1"
resultType=
"com.dsk.system.domain.customer.vo.CustomerListVo"
>
select
u.nick_name followUser,
<include
refid=
"Base_Bean"
></include>
from customer ct
join customer_user ctu on ct.customer_id = ctu.customer_id
join sys_user u on ctu.user_id = u.user_id
where ctu.user_id = #{dto.userId}
<if
test=
"dto.companyName != null and dto.companyName != '' "
>
and ct.company_name like concat('%',#{dto.companyName},'%')
</if>
</select>
<select
id=
"selectList"
resultType=
"com.dsk.system.domain.customer.vo.CustomerListVo"
>
<select
id=
"selectList"
resultType=
"com.dsk.system.domain.customer.vo.CustomerListVo"
>
select
select
u.nick_name followUser, bi1.num reserveProject, bi2.num followProject, bi3.num cooperationProject,
u.nick_name followUser, bi1.num reserveProject, bi2.num followProject, bi3.num cooperationProject,
...
...
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