Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
7e7f11c9
Commit
7e7f11c9
authored
Aug 03, 2023
by
翁国栋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8小时运营后台--
修复bug
parent
68881eaf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
15 deletions
+16
-15
src/main/java/cn/timer/api/controller/crm/CrmController.java
+7
-5
src/main/java/cn/timer/api/dao/crm/CrmClientDataMapper.java
+9
-10
No files found.
src/main/java/cn/timer/api/controller/crm/CrmController.java
View file @
7e7f11c9
...
@@ -896,7 +896,8 @@ public class CrmController {
...
@@ -896,7 +896,8 @@ public class CrmController {
// 当前用户管理的组
// 当前用户管理的组
List
<
Integer
>
gids
=
MyManageGroup
(
empNum
,
orgCode
);
List
<
Integer
>
gids
=
MyManageGroup
(
empNum
,
orgCode
);
List
<
CrmClientData
>
crmClientDatas
=
new
ArrayList
<
CrmClientData
>();
List
<
CrmClientData
>
crmClientDatas
=
new
ArrayList
<
CrmClientData
>();
for
(
Integer
gid
:
gids
)
{
if
(
gids
.
size
()>
0
)
{
for
(
Integer
gid
:
gids
)
{
// List<CrmClientData> datas = CrmClientData.builder().build().selectList(new QueryWrapper<CrmClientData>()
// List<CrmClientData> datas = CrmClientData.builder().build().selectList(new QueryWrapper<CrmClientData>()
// .lambda().eq(CrmClientData::getBelongGroup, gid)
// .lambda().eq(CrmClientData::getBelongGroup, gid)
// .eq(industry != null && industry > 0, CrmClientData::getIndustry,industry)
// .eq(industry != null && industry > 0, CrmClientData::getIndustry,industry)
...
@@ -912,12 +913,13 @@ public class CrmController {
...
@@ -912,12 +913,13 @@ public class CrmController {
// .like(!StrUtil.isBlank(like), CrmClientData::getClientName, like).or()
// .like(!StrUtil.isBlank(like), CrmClientData::getClientName, like).or()
// .like(!StrUtil.isBlank(like), CrmClientData::getClientCellphone, like));
// .like(!StrUtil.isBlank(like), CrmClientData::getClientCellphone, like));
List
<
CrmClientData
>
datas
=
crmClientDataMapper
.
getCrmClientData3
(
empNum
,
orgCode
,
groupId
,
status
,
like
,
startCreateTime
,
endCreateTime
,
startFollowTime
,
endFollowTime
,
type
,
ifPhone
,
customerowner
,
unfollowedDays
,
followNumber
,
industry
);
List
<
CrmClientData
>
datas
=
crmClientDataMapper
.
getCrmClientData3
(
empNum
,
orgCode
,
groupId
,
status
,
like
,
startCreateTime
,
endCreateTime
,
startFollowTime
,
endFollowTime
,
type
,
ifPhone
,
customerowner
,
unfollowedDays
,
followNumber
,
industry
,
gid
);
for
(
CrmClientData
data
:
datas
)
for
(
CrmClientData
data
:
datas
)
crmClientDatas
.
add
(
data
);
crmClientDatas
.
add
(
data
);
}
}
}
List
<
CrmClientData
>
result
=
getPageList
(
crmClientDatas
,
pageNumber
,
pageSize
,
List
<
CrmClientData
>
result
=
getPageList
(
crmClientDatas
,
pageNumber
,
pageSize
,
Comparator
.
comparing
(
CrmClientData:
:
getCreateTime
).
reversed
());
Comparator
.
comparing
(
CrmClientData:
:
getCreateTime
).
reversed
());
...
...
src/main/java/cn/timer/api/dao/crm/CrmClientDataMapper.java
View file @
7e7f11c9
/**
/**
* <p>Title: CrmClientDataMapper.java</p>
* <p>Title: CrmClientDataMapper.java</p>
* <p>Description: </p>
* <p>Description: </p>
* @author dsc
* @author dsc
* @date 2020年6月5日
* @date 2020年6月5日
* @version 1.0
* @version 1.0
*/
*/
package
cn
.
timer
.
api
.
dao
.
crm
;
package
cn
.
timer
.
api
.
dao
.
crm
;
...
@@ -22,7 +22,7 @@ import cn.timer.api.dto.crm.CrmCartogramDto;
...
@@ -22,7 +22,7 @@ import cn.timer.api.dto.crm.CrmCartogramDto;
/**
/**
* Title: CrmClientDataMapper.java Description:
* Title: CrmClientDataMapper.java Description:
*
*
* @author dsc
* @author dsc
* @date 2020年6月5日
* @date 2020年6月5日
* @version 1.0
* @version 1.0
...
@@ -77,5 +77,5 @@ public interface CrmClientDataMapper extends BaseMapper<CrmClientData> {
...
@@ -77,5 +77,5 @@ public interface CrmClientDataMapper extends BaseMapper<CrmClientData> {
@Param
(
"endFollowTime"
)
String
endFollowTime
,
@Param
(
"type"
)
Integer
type
,
@Param
(
"endFollowTime"
)
String
endFollowTime
,
@Param
(
"type"
)
Integer
type
,
@Param
(
"ifPhone"
)
String
ifPhone
,
@Param
(
"customerowner"
)
String
customerowner
,
@Param
(
"ifPhone"
)
String
ifPhone
,
@Param
(
"customerowner"
)
String
customerowner
,
@Param
(
"unfollowedDays"
)
Integer
unfollowedDays
,
@Param
(
"followNumber"
)
Integer
followNumber
,
@Param
(
"unfollowedDays"
)
Integer
unfollowedDays
,
@Param
(
"followNumber"
)
Integer
followNumber
,
@Param
(
"industry"
)
Integer
industry
);
@Param
(
"industry"
)
Integer
industry
,
@Param
(
"gid"
)
Integer
gid
);
}
}
\ No newline at end of file
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