Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-api-boot-master
Commits
1ac03b4d
Commit
1ac03b4d
authored
Nov 09, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户列表返回最新的跟进记录完整信息
parent
bbb3f840
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
29 deletions
+11
-29
CustomerDO.java
...o/module/customer/dal/dataobject/customer/CustomerDO.java
+4
-12
CustomerServiceImpl.java
...module/customer/service/customer/CustomerServiceImpl.java
+2
-3
CustomerRespVO.java
.../yudao/module/customer/vo/customer/vo/CustomerRespVO.java
+3
-14
CustomerFollowupBackVO.java
.../customer/vo/customerFollowup/CustomerFollowupBackVO.java
+2
-0
No files found.
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/dal/dataobject/customer/CustomerDO.java
View file @
1ac03b4d
package
cn
.
iocoder
.
yudao
.
module
.
customer
.
dal
.
dataobject
.
customer
;
import
cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO
;
import
cn.iocoder.yudao.module.customer.vo.customerFollowup.CustomerFollowupBackVO
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
...
...
@@ -526,20 +527,11 @@ public class CustomerDO extends BaseDO {
@TableField
(
exist
=
false
)
private
String
competitorNames
;
@ApiModelProperty
(
"最新跟进记录
id
"
)
// competitorNames
@ApiModelProperty
(
"最新跟进记录
信息
"
)
@TableField
(
exist
=
false
)
private
Long
followupId
;
private
CustomerFollowupBackVO
followupBackVO
;
@ApiModelProperty
(
"最新跟进记录编号"
)
@TableField
(
exist
=
false
)
private
String
followupNumber
;
@ApiModelProperty
(
"最新跟进记录时间"
)
@DateTimeFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
)
@JsonFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
)
@TableField
(
exist
=
false
)
private
Date
followupDate
;
}
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/service/customer/CustomerServiceImpl.java
View file @
1ac03b4d
...
...
@@ -34,6 +34,7 @@ import cn.iocoder.yudao.module.customer.convert.customer.CustomerConvert;
import
cn.iocoder.yudao.module.customer.convert.customer.line.CustomerLineConvert
;
import
cn.iocoder.yudao.module.customer.convert.customerBank.CustomerBankConvert
;
import
cn.iocoder.yudao.module.customer.convert.customerContacts.CustomerContactsConvert
;
import
cn.iocoder.yudao.module.customer.convert.customerFollowup.CustomerFollowupConvert
;
import
cn.iocoder.yudao.module.customer.dal.dataobject.customer.CustomerDO
;
import
cn.iocoder.yudao.module.customer.dal.dataobject.customer.line.CustomerLineDO
;
import
cn.iocoder.yudao.module.customer.dal.dataobject.customerAirLog.CustomerAirLogDO
;
...
...
@@ -1189,9 +1190,7 @@ public class CustomerServiceImpl extends AbstractService<CustomerMapper,
.
orderByDesc
(
CustomerFollowupDO:
:
getId
)
.
last
(
"limit 1"
));
if
(
Objects
.
nonNull
(
customerFollowupDO
))
{
customerDO
.
setFollowupId
(
customerFollowupDO
.
getId
());
customerDO
.
setFollowupNumber
(
customerFollowupDO
.
getNumber
());
customerDO
.
setFollowupDate
(
customerFollowupDO
.
getCreateTime
());
customerDO
.
setFollowupBackVO
(
CustomerFollowupConvert
.
INSTANCE
.
convert
(
customerFollowupDO
));
}
}
}
...
...
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/vo/customer/vo/CustomerRespVO.java
View file @
1ac03b4d
package
cn
.
iocoder
.
yudao
.
module
.
customer
.
vo
.
customer
.
vo
;
import
cn.iocoder.yudao.module.customer.vo.customerFollowup.CustomerFollowupBackVO
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModel
;
...
...
@@ -238,19 +239,7 @@ public class CustomerRespVO extends CustomerBaseVO {
@ApiModelProperty
(
value
=
"主营产品"
)
private
String
productIds
;
@ApiModelProperty
(
"最新跟进记录
id
"
)
@ApiModelProperty
(
"最新跟进记录
信息
"
)
@TableField
(
exist
=
false
)
private
Long
followupId
;
@ApiModelProperty
(
"最新跟进记录编号"
)
@TableField
(
exist
=
false
)
private
String
followupNumber
;
@ApiModelProperty
(
"最新跟进记录时间"
)
@DateTimeFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
)
@JsonFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
)
@TableField
(
exist
=
false
)
private
Date
followupDate
;
private
CustomerFollowupBackVO
followupBackVO
;
}
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/vo/customerFollowup/CustomerFollowupBackVO.java
View file @
1ac03b4d
...
...
@@ -2,6 +2,7 @@ package cn.iocoder.yudao.module.customer.vo.customerFollowup;
import
cn.iocoder.yudao.framework.excel.annotations.DictFormat
;
import
cn.iocoder.yudao.framework.excel.convert.DictConvert
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.*
;
import
java.util.*
;
import
io.swagger.annotations.*
;
...
...
@@ -114,6 +115,7 @@ public class CustomerFollowupBackVO {
@ExcelProperty
(
"创建时间"
)
@DateTimeFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
)
@JsonFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
)
@ApiModelProperty
(
value
=
"创建时间"
,
required
=
true
)
private
Date
createTime
;
...
...
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