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
307272c0
Commit
307272c0
authored
Aug 18, 2023
by
lcl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
c3e21c6f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
+14
-5
CustomerFollowRecordSearchDto.java
...em/domain/customer/dto/CustomerFollowRecordSearchDto.java
+8
-1
CustomerFollowRecordMapper.java
...ava/com/dsk/system/mapper/CustomerFollowRecordMapper.java
+1
-1
CustomerFollowRecordMapper.xml
...ces/mapper/system/customer/CustomerFollowRecordMapper.xml
+5
-3
No files found.
dsk-system/src/main/java/com/dsk/system/domain/customer/dto/CustomerFollowRecordSearchDto.java
View file @
307272c0
...
@@ -4,7 +4,6 @@ import com.dsk.common.core.domain.BaseEntity;
...
@@ -4,7 +4,6 @@ import com.dsk.common.core.domain.BaseEntity;
import
lombok.Data
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Map
;
/**
/**
* 客户跟进记录筛选对象
* 客户跟进记录筛选对象
...
@@ -23,4 +22,12 @@ public class CustomerFollowRecordSearchDto extends BaseEntity implements Seriali
...
@@ -23,4 +22,12 @@ public class CustomerFollowRecordSearchDto extends BaseEntity implements Seriali
* 用户id
* 用户id
*/
*/
private
Long
userId
;
private
Long
userId
;
/**
* 开始时间
*/
private
String
startTime
;
/**
* 结束时间
*/
private
String
endTime
;
}
}
dsk-system/src/main/java/com/dsk/system/mapper/CustomerFollowRecordMapper.java
View file @
307272c0
...
@@ -19,7 +19,7 @@ import java.util.List;
...
@@ -19,7 +19,7 @@ import java.util.List;
@Mapper
@Mapper
public
interface
CustomerFollowRecordMapper
extends
BaseMapper
<
CustomerFollowRecord
>
{
public
interface
CustomerFollowRecordMapper
extends
BaseMapper
<
CustomerFollowRecord
>
{
List
<
CustomerFollowRecordListVo
>
selectAuthList
(
@Param
(
"dto"
)
CustomerFollowRecordSearchDto
dto
);
List
<
CustomerFollowRecordListVo
>
selectAuthList
(
CustomerFollowRecordSearchDto
dto
);
}
}
dsk-system/src/main/resources/mapper/system/customer/CustomerFollowRecordMapper.xml
View file @
307272c0
...
@@ -16,10 +16,12 @@
...
@@ -16,10 +16,12 @@
join sys_user u on u.user_id = cfr.user_id
join sys_user u on u.user_id = cfr.user_id
left join sys_dept d on d.dept_id = u.dept_id
left join sys_dept d on d.dept_id = u.dept_id
<where>
<where>
<if
test=
"dto.userId != null "
>
and cfr.user_id = #{dto.userId}
</if>
<if
test=
"userId != null "
>
and cfr.user_id = #{userId}
</if>
<if
test=
"dto.customerId != null and dto.customerId != '' "
>
and cfr.customer_id = #{dto.customerId}
</if>
<if
test=
"customerId != null and customerId != '' "
>
and cfr.customer_id = #{customerId}
</if>
<if
test=
"startTime != null and startTime != '' "
>
and cfr.visit_time
>
= #{startTime}
</if>
<if
test=
"endTime != null and endTime != '' "
>
and cfr.visit_time
<
= #{endTime}
</if>
<!-- 数据范围过滤 -->
<!-- 数据范围过滤 -->
<if
test=
"
dto.params.dataScope != null and dto.params.dataScope != '' "
>
${dto.
params.dataScope}
</if>
<if
test=
"
params.dataScope != null and params.dataScope != '' "
>
${
params.dataScope}
</if>
</where>
</where>
order by cfr.create_time desc
order by cfr.create_time desc
</select>
</select>
...
...
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