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
7960f1f0
Commit
7960f1f0
authored
May 26, 2023
by
MyName
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://192.168.60.201/root/dsk-operate-sys
parents
7645e206
fa6c022a
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
45 additions
and
10 deletions
+45
-10
CustomerController.java
...a/com/dsk/web/controller/customer/CustomerController.java
+0
-3
CustomerFollowRecordController.java
...b/controller/customer/CustomerFollowRecordController.java
+9
-0
Sidebar.vue
...operate-ui/src/views/detail/party-a/component/Sidebar.vue
+22
-1
index.vue
dsk-operate-ui/src/views/detail/party-a/index.vue
+1
-1
CustomerFollowRecordMapper.java
...ava/com/dsk/system/mapper/CustomerFollowRecordMapper.java
+1
-1
ICustomerFollowRecordService.java
.../com/dsk/system/service/ICustomerFollowRecordService.java
+2
-0
CustomerFollowRecordServiceImpl.java
.../system/service/impl/CustomerFollowRecordServiceImpl.java
+9
-3
CustomerFollowRecordMapper.xml
...ces/mapper/system/customer/CustomerFollowRecordMapper.xml
+1
-1
No files found.
dsk-admin/src/main/java/com/dsk/web/controller/customer/CustomerController.java
View file @
7960f1f0
...
...
@@ -7,7 +7,6 @@ import com.dsk.common.annotation.Log;
import
com.dsk.common.annotation.RepeatSubmit
;
import
com.dsk.common.core.controller.BaseController
;
import
com.dsk.common.core.domain.AjaxResult
;
import
com.dsk.common.core.domain.entity.SysRole
;
import
com.dsk.common.core.page.TableDataInfo
;
import
com.dsk.common.enums.BusinessType
;
import
com.dsk.common.utils.poi.ExcelUtil
;
...
...
@@ -18,13 +17,11 @@ import com.dsk.system.service.ICustomerService;
import
com.dsk.web.controller.search.service.BusinessOpportunityRadarService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.multipart.MultipartFile
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
dsk-admin/src/main/java/com/dsk/web/controller/customer/CustomerFollowRecordController.java
View file @
7960f1f0
...
...
@@ -47,5 +47,14 @@ public class CustomerFollowRecordController extends BaseController {
return
AjaxResult
.
success
(
baseService
.
add
(
followRecord
));
}
/**
* 删除客户跟进记录
*/
// @PreAuthorize("@ss.hasPermi('customer:follow:record:del')")
@DeleteMapping
(
"/{id}"
)
@RepeatSubmit
public
AjaxResult
del
(
@PathVariable
(
"id"
)
Long
id
){
return
AjaxResult
.
success
(
baseService
.
del
(
id
));
}
}
dsk-operate-ui/src/views/detail/party-a/component/Sidebar.vue
View file @
7960f1f0
...
...
@@ -7,7 +7,7 @@
<i
slot=
"prefix"
class=
"el-input__icon el-icon-search"
@
click=
"handleSearch"
></i>
</el-input>
<el-menu
default-active=
"1
"
:default-active=
"routeIndex
"
class=
"detail-menu"
@
open=
"handleOpen"
>
<template
v-for=
"(item, index) in sideRoute"
>
...
...
@@ -31,6 +31,10 @@ export default {
type
:
Number
,
default
:
null
},
pathName
:
{
type
:
String
,
default
:
null
},
},
data
()
{
return
{
...
...
@@ -93,6 +97,23 @@ export default {
sideHeight
=
null
}
return
sideHeight
},
routeIndex
(){
let
idx
=
'0-0'
,
sideArr
=
this
.
sideRoute
for
(
let
i
=
0
;
i
<
sideArr
.
length
;
i
++
){
if
(
sideArr
[
i
].
pathName
==
this
.
pathName
){
idx
=
i
.
toString
()
break
}
else
if
(
sideArr
[
i
].
children
){
for
(
let
j
=
0
;
j
<
sideArr
[
i
].
children
.
length
;
j
++
){
if
(
sideArr
[
i
].
children
.
pathName
==
this
.
pathName
){
idx
=
i
+
'-'
+
j
break
}
}
}
}
return
idx
}
},
created
()
{
...
...
dsk-operate-ui/src/views/detail/party-a/index.vue
View file @
7960f1f0
...
...
@@ -3,7 +3,7 @@
<Header
:company-id=
"companyId"
v-if=
"companyId"
/>
<div
class=
"flex-box part-main"
>
<div
class=
"part-left"
>
<side-bar
@
currentPath=
"showPartPage"
:partBoxHeight=
"partBoxHeight"
/>
<side-bar
@
currentPath=
"showPartPage"
:pa
thName=
"currentPath.pathName"
:pa
rtBoxHeight=
"partBoxHeight"
/>
</div>
<div
class=
"part-right"
>
<div
id=
"partBox"
v-if=
"companyId"
>
...
...
dsk-system/src/main/java/com/dsk/system/mapper/CustomerFollowRecordMapper.java
View file @
7960f1f0
...
...
@@ -18,7 +18,7 @@ import java.util.List;
@Mapper
public
interface
CustomerFollowRecordMapper
extends
BaseMapper
<
CustomerFollowRecord
>
{
List
<
CustomerFollowRecord
>
selectList
(
@Param
(
"dto"
)
CustomerFollowRecordSearchDto
dto
);
List
<
CustomerFollowRecord
>
select
Auth
List
(
@Param
(
"dto"
)
CustomerFollowRecordSearchDto
dto
);
}
dsk-system/src/main/java/com/dsk/system/service/ICustomerFollowRecordService.java
View file @
7960f1f0
...
...
@@ -18,4 +18,6 @@ public interface ICustomerFollowRecordService {
boolean
add
(
CustomerFollowRecord
followRecord
);
boolean
del
(
Long
id
);
}
dsk-system/src/main/java/com/dsk/system/service/impl/CustomerFollowRecordServiceImpl.java
View file @
7960f1f0
...
...
@@ -35,13 +35,14 @@ public class CustomerFollowRecordServiceImpl implements ICustomerFollowRecordSer
LambdaQueryWrapper
<
CustomerFollowRecord
>
wrapper
=
Wrappers
.
lambdaQuery
();
if
(!
ObjectUtils
.
isEmpty
(
dto
.
getCustomerId
()))
{
wrapper
.
eq
(
CustomerFollowRecord:
:
getCustomerId
,
dto
.
getCustomerId
());
}
else
{
wrapper
.
eq
(
CustomerFollowRecord:
:
getUserId
,
SecurityUtils
.
getUserId
());
}
wrapper
.
eq
(
CustomerFollowRecord:
:
getUserId
,
SecurityUtils
.
getUserId
())
.
orderByDesc
(
CustomerFollowRecord:
:
getCreateTime
);
wrapper
.
orderByDesc
(
CustomerFollowRecord:
:
getCreateTime
);
return
baseMapper
.
selectList
(
wrapper
);
// dto.setUserId(SecurityUtils.getUserId());
// return baseMapper.selectList(dto);
// return baseMapper.select
Auth
List(dto);
}
@Override
...
...
@@ -51,4 +52,9 @@ public class CustomerFollowRecordServiceImpl implements ICustomerFollowRecordSer
followRecord
.
setUserId
(
SecurityUtils
.
getUserId
());
return
baseMapper
.
insert
(
followRecord
)
!=
0
;
}
@Override
public
boolean
del
(
Long
id
)
{
return
baseMapper
.
deleteById
(
id
)
!=
0
;
}
}
dsk-system/src/main/resources/mapper/system/customer/CustomerFollowRecordMapper.xml
View file @
7960f1f0
...
...
@@ -7,7 +7,7 @@
cfr.content, cfr.create_time
</sql>
<select
id=
"selectList"
resultType=
"com.dsk.system.domain.customer.CustomerFollowRecord"
>
<select
id=
"select
Auth
List"
resultType=
"com.dsk.system.domain.customer.CustomerFollowRecord"
>
select
<include
refid=
"Base_Bean"
></include>
from customer_follow_record cfr
...
...
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