Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e91a9eec
authored
Mar 09, 2021
by
水库浪子
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
客户轨迹相关接口提交
1 parent
2c6bc4ca
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
65 additions
and
7 deletions
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeCommunityNewGroupController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeCustomerPortraitController.java
linkwe-common/src/main/java/com/linkwechat/common/constant/Constants.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeCustomerTrajectory.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeCommunityNewGroupController.java
View file @
e91a9ee
...
@@ -70,8 +70,8 @@ public class WeCommunityNewGroupController extends BaseController {
...
@@ -70,8 +70,8 @@ public class WeCommunityNewGroupController extends BaseController {
@ApiOperation
(
value
=
"获取新客自动拉群详细信息"
,
httpMethod
=
"GET"
)
@ApiOperation
(
value
=
"获取新客自动拉群详细信息"
,
httpMethod
=
"GET"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:communityNewGroup:query')"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:communityNewGroup:query')"
)
@GetMapping
(
value
=
"/{id}"
)
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
<
WeCommunityNewGroupVo
>
getInfo
(
@PathVariable
(
"newGroupId"
)
@ApiParam
(
"主键ID"
)
Lo
ng
newGroupId
)
{
public
AjaxResult
<
WeCommunityNewGroupVo
>
getInfo
(
@PathVariable
(
"newGroupId"
)
@ApiParam
(
"主键ID"
)
Stri
ng
newGroupId
)
{
return
AjaxResult
.
success
(
weCommunityNewGroupService
.
selectWeCommunityNewGroupById
(
new
GroupId
));
return
AjaxResult
.
success
(
weCommunityNewGroupService
.
selectWeCommunityNewGroupById
(
new
Long
(
newGroupId
)
));
}
}
/**
/**
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeCustomerPortraitController.java
View file @
e91a9ee
package
com
.
linkwechat
.
web
.
controller
.
wecom
;
package
com
.
linkwechat
.
web
.
controller
.
wecom
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.linkwechat.common.constant.Constants
;
import
com.linkwechat.common.core.controller.BaseController
;
import
com.linkwechat.common.core.controller.BaseController
;
import
com.linkwechat.common.core.domain.AjaxResult
;
import
com.linkwechat.common.core.domain.AjaxResult
;
import
com.linkwechat.common.core.page.TableDataInfo
;
import
com.linkwechat.common.core.page.TableDataInfo
;
...
@@ -151,16 +152,62 @@ public class WeCustomerPortraitController extends BaseController {
...
@@ -151,16 +152,62 @@ public class WeCustomerPortraitController extends BaseController {
*/
*/
@GetMapping
(
value
=
"/findTrajectory"
)
@GetMapping
(
value
=
"/findTrajectory"
)
public
TableDataInfo
findTrajectory
(
Integer
trajectoryType
){
public
TableDataInfo
findTrajectory
(
Integer
trajectoryType
){
startPage
();
startPage
();
return
getDataTable
(
return
getDataTable
(
iWeCustomerTrajectoryService
.
list
(
new
LambdaQueryWrapper
<
WeCustomerTrajectory
>()
iWeCustomerTrajectoryService
.
list
(
new
LambdaQueryWrapper
<
WeCustomerTrajectory
>()
.
eq
(
WeCustomerTrajectory:
:
getTrajectoryType
,
trajectoryType
))
.
eq
(
WeCustomerTrajectory:
:
getTrajectoryType
,
trajectoryType
)
.
ne
(
WeCustomerTrajectory:
:
getStatus
,
Constants
.
DELETE_CODE
))
);
);
}
}
/**
* 添加或编辑轨迹
* @param trajectory
* @return
*/
@PostMapping
(
value
=
"/addOrEditWaitHandle"
)
public
AjaxResult
addOrEditWaitHandle
(
@RequestBody
WeCustomerTrajectory
trajectory
){
iWeCustomerTrajectoryService
.
saveOrUpdate
(
trajectory
);
return
AjaxResult
.
success
();
}
/**
* 删除轨迹
* @param trajectoryId
* @return
*/
@DeleteMapping
(
value
=
"/removeTrajectory/{trajectoryId}"
)
public
AjaxResult
removeTrajectory
(
@PathVariable
String
trajectoryId
){
iWeCustomerTrajectoryService
.
updateById
(
WeCustomerTrajectory
.
builder
()
.
id
(
trajectoryId
)
.
status
(
Constants
.
DELETE_CODE
)
.
build
());
return
AjaxResult
.
success
();
}
/**
* 完成待办
* @param trajectoryId
* @return
*/
@DeleteMapping
(
value
=
"/handleWait/{trajectoryId}"
)
public
AjaxResult
handleWait
(
@PathVariable
String
trajectoryId
){
iWeCustomerTrajectoryService
.
updateById
(
WeCustomerTrajectory
.
builder
()
.
id
(
trajectoryId
)
.
status
(
Constants
.
HANDLE_SUCCESS
)
.
build
());
return
AjaxResult
.
success
();
}
...
...
linkwe-common/src/main/java/com/linkwechat/common/constant/Constants.java
View file @
e91a9ee
...
@@ -156,6 +156,11 @@ public class Constants
...
@@ -156,6 +156,11 @@ public class Constants
/**完成待办*/
public
static
final
String
HANDLE_SUCCESS
=
"1"
;
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeCustomerTrajectory.java
View file @
e91a9ee
...
@@ -2,7 +2,10 @@ package com.linkwechat.wecom.domain;
...
@@ -2,7 +2,10 @@ package com.linkwechat.wecom.domain;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.sql.Time
;
import
java.sql.Time
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -12,9 +15,12 @@ import java.util.Date;
...
@@ -12,9 +15,12 @@ import java.util.Date;
*/
*/
@Data
@Data
@TableName
(
"we_customer_trajectory"
)
@TableName
(
"we_customer_trajectory"
)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public
class
WeCustomerTrajectory
{
public
class
WeCustomerTrajectory
{
@TableId
@TableId
private
Lo
ng
id
;
private
Stri
ng
id
;
//轨迹类型(1:信息动态;2:社交动态;3:活动规则;4:待办动态)
//轨迹类型(1:信息动态;2:社交动态;3:活动规则;4:待办动态)
private
Integer
trajectoryType
;
private
Integer
trajectoryType
;
//外部联系人id
//外部联系人id
...
@@ -26,5 +32,5 @@ public class WeCustomerTrajectory {
...
@@ -26,5 +32,5 @@ public class WeCustomerTrajectory {
//处理时间
//处理时间
private
Time
createTime
;
private
Time
createTime
;
//0:正常;1:删除;2:完成
//0:正常;1:删除;2:完成
private
Integer
status
;
private
String
status
;
}
}
Write
Preview
Markdown
is supported
Attach a file
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 post a comment