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
ab8133df
Commit
ab8133df
authored
Jul 31, 2023
by
284718418@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跟进动态统计
parent
2a3f92a3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
187 additions
and
3 deletions
+187
-3
src/main/java/cn/timer/api/bean/crm/CrmClientLog.java
+69
-0
src/main/java/cn/timer/api/controller/crm/CrmController.java
+0
-0
src/main/java/cn/timer/api/dao/crm/CrmClientFollowMapper.java
+13
-0
src/main/java/cn/timer/api/dao/crm/CrmClientLogMapper.java
+18
-0
src/main/java/cn/timer/api/dto/crm/CrmClientFollowCountDto.java
+3
-1
src/main/java/cn/timer/api/dto/crm/CrmClientFollowCountParam.java
+5
-0
src/main/java/cn/timer/api/dto/crm/CrmClientFollowListDto.java
+29
-0
src/main/resources/mapping/crm/CrmClientFollowMapper.xml
+42
-2
src/main/resources/mapping/crm/CrmClientLogMapper.xml
+8
-0
No files found.
src/main/java/cn/timer/api/bean/crm/CrmClientLog.java
0 → 100644
View file @
ab8133df
package
cn
.
timer
.
api
.
bean
.
crm
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
javax.persistence.*
;
import
java.util.Date
;
/**
* Title: 客户跟进动态日志表
*
* @Description:
* @author wuqingjun
* @date 2023年7月31日
* @version 1.0
*/
@Entity
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table
(
name
=
"crm_client_log"
)
@ApiModel
(
"客户跟进动态日志表"
)
public
class
CrmClientLog
extends
Model
<
CrmClientLog
>
{
private
static
final
long
serialVersionUID
=
-
7362549097557018582L
;
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"编号"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"客户数据id"
)
private
Integer
cid
;
@ApiModelProperty
(
value
=
"变更前客户数据状态"
)
private
Integer
beforeClientStatus
;
@ApiModelProperty
(
value
=
"变更后客户数据状态"
)
private
Integer
afterClientStatus
;
@ApiModelProperty
(
value
=
"创建人"
)
private
Integer
createUser
;
@ApiModelProperty
(
value
=
"企业id"
)
private
Integer
orgCode
;
@ApiModelProperty
(
value
=
"创建人姓名"
)
private
String
createUserName
;
@ApiModelProperty
(
value
=
"备注"
)
private
String
remark
;
@TableField
(
fill
=
FieldFill
.
INSERT
)
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
createTime
;
}
src/main/java/cn/timer/api/controller/crm/CrmController.java
View file @
ab8133df
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/dao/crm/CrmClientFollowMapper.java
View file @
ab8133df
...
@@ -33,6 +33,19 @@ public interface CrmClientFollowMapper extends BaseMapper<CrmClientFollow> {
...
@@ -33,6 +33,19 @@ public interface CrmClientFollowMapper extends BaseMapper<CrmClientFollow> {
* @return
* @return
*/
*/
List
<
CrmClientFollowCountDto
>
selectCrmClientFollowCount
(
@Param
(
"param"
)
CrmClientFollowCountParam
param
);
List
<
CrmClientFollowCountDto
>
selectCrmClientFollowCount
(
@Param
(
"param"
)
CrmClientFollowCountParam
param
);
/**
* 根据条件查询 统计跟进数据 需要显示的人数
* @param param
* @return
*/
List
<
CrmClientFollowCountDto
>
selectCrmClientFollowList
(
@Param
(
"param"
)
CrmClientFollowCountParam
param
);
/**
* 根据条件查询 统计跟进数据
* @param param
* @return
*/
Integer
selectCountByParam
(
@Param
(
"param"
)
CrmClientFollowCountParam
param
);
}
}
src/main/java/cn/timer/api/dao/crm/CrmClientLogMapper.java
0 → 100644
View file @
ab8133df
package
cn
.
timer
.
api
.
dao
.
crm
;
import
cn.timer.api.bean.crm.CrmClientLog
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* Title: 客户跟进动态日志表
*
* @Description:
* @author wuqingjun
* @date 2023年7月31日
* @version 1.0
*/
public
interface
CrmClientLogMapper
extends
BaseMapper
<
CrmClientLog
>
{
}
src/main/java/cn/timer/api/dto/crm/CrmClientFollowCountDto.java
View file @
ab8133df
...
@@ -8,8 +8,10 @@ import lombok.Builder;
...
@@ -8,8 +8,10 @@ import lombok.Builder;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
lombok.NoArgsConstructor
;
import
java.awt.*
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
/**
/**
*
*
...
@@ -25,7 +27,7 @@ public class CrmClientFollowCountDto implements Serializable {
...
@@ -25,7 +27,7 @@ public class CrmClientFollowCountDto implements Serializable {
@ApiModelProperty
(
value
=
"跟进数"
)
@ApiModelProperty
(
value
=
"跟进数"
)
private
Integer
followCount
;
private
List
<
Integer
>
followCount
;
@ApiModelProperty
(
value
=
"创建人"
)
@ApiModelProperty
(
value
=
"创建人"
)
private
Integer
createUser
;
private
Integer
createUser
;
...
...
src/main/java/cn/timer/api/dto/crm/CrmClientFollowCountParam.java
View file @
ab8133df
...
@@ -44,4 +44,9 @@ public class CrmClientFollowCountParam implements Serializable {
...
@@ -44,4 +44,9 @@ public class CrmClientFollowCountParam implements Serializable {
*/
*/
@ApiModelProperty
(
value
=
"当前企业id"
)
@ApiModelProperty
(
value
=
"当前企业id"
)
private
Integer
orgCode
;
private
Integer
orgCode
;
/**
* 当前用户ID
*/
@ApiModelProperty
(
value
=
"当前用户ID"
)
private
Integer
createUser
;
}
}
src/main/java/cn/timer/api/dto/crm/CrmClientFollowListDto.java
0 → 100644
View file @
ab8133df
package
cn
.
timer
.
api
.
dto
.
crm
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.io.Serializable
;
import
java.util.List
;
/**
*
* @author wuqingjun
* @date 2023年7月28日
* @version 1.0
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public
class
CrmClientFollowListDto
implements
Serializable
{
@ApiModelProperty
(
value
=
"时间"
)
private
List
<
String
>
createStr
;
private
List
<
CrmClientFollowCountDto
>
dtos
;
}
src/main/resources/mapping/crm/CrmClientFollowMapper.xml
View file @
ab8133df
...
@@ -23,8 +23,47 @@
...
@@ -23,8 +23,47 @@
</if>
</if>
</where>
</where>
GROUP BY
GROUP BY
create
_user_name
, DATE(create_time)
create
User
, DATE(create_time)
ORDER BY
ORDER BY
create_user_name, DATE(create_time);
createUser, DATE(create_time);
</select>
<select
id=
"selectCrmClientFollowList"
resultType=
"cn.timer.api.dto.crm.CrmClientFollowCountDto"
>
SELECT
create_user_name createUserName,
create_user createUser
FROM
crm_client_follow
<where>
<if
test=
'null != param.startTime and param.startTime !=""'
>
AND create_time
<![CDATA[>=]]>
#{param.startTime}
</if>
<if
test=
'null != param.endTime and param.endTime !=""'
>
AND create_time
<![CDATA[<=]]>
#{param.endTime}
</if>
<if
test=
'null != param.orgCode and param.orgCode !=""'
>
AND org_code = #{param.orgCode}
</if>
</where>
GROUP BY
createUser
ORDER BY
createUser
</select>
<select
id=
"selectCountByParam"
resultType=
"int"
>
SELECT
COUNT(*)
FROM
crm_client_follow
<where>
<if
test=
'null != param.startTime and param.startTime !=""'
>
AND DATE(create_time) = #{param.startTime}
</if>
<if
test=
'null != param.createUser and param.createUser !=""'
>
AND create_user = #{param.createUser}
</if>
<if
test=
'null != param.orgCode and param.orgCode !=""'
>
AND org_code = #{param.orgCode}
</if>
</where>
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
src/main/resources/mapping/crm/CrmClientLogMapper.xml
0 → 100644
View file @
ab8133df
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.timer.api.dao.crm.CrmClientLogMapper"
>
</mapper>
\ 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