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
273fc4dd
Commit
273fc4dd
authored
Sep 10, 2024
by
yanghao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release-fix' into release
parents
59d54f2e
8cfe987a
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
64 additions
and
3 deletions
+64
-3
20240830.sql
sql/v2.1/20240830.sql
+1
-0
20240903.sql
sql/v2.1/20240903.sql
+6
-0
CustomerFollowupDO.java
...r/dal/dataobject/customerFollowup/CustomerFollowupDO.java
+12
-0
CustomerFollowupServiceImpl.java
...service/customerFollowup/CustomerFollowupServiceImpl.java
+24
-0
CustomerFollowupBackVO.java
.../customer/vo/customerFollowup/CustomerFollowupBackVO.java
+10
-2
CustomerFollowupBaseVO.java
.../customer/vo/customerFollowup/CustomerFollowupBaseVO.java
+4
-0
CustomerFollowupQueryVO.java
...customer/vo/customerFollowup/CustomerFollowupQueryVO.java
+4
-0
CustomerFollowupMapper.xml
...main/resources/mapper/customer/CustomerFollowupMapper.xml
+3
-1
No files found.
sql/v2.1/20240830.sql
View file @
273fc4dd
...
...
@@ -99,6 +99,7 @@ CREATE TABLE `ecw_customer_followup` (
`offer_id`
bigint
NULL
DEFAULT
NULL
COMMENT
'报价单'
,
`follow_type`
tinyint
NULL
DEFAULT
NULL
COMMENT
'跟进类型 字典customer_followup_type'
,
`follow_time`
datetime
NULL
DEFAULT
NULL
COMMENT
'跟进时间'
,
`contact_id`
bigint
NULL
DEFAULT
NULL
COMMENT
'联系人id'
,
`contact_name`
varchar
(
63
)
NULL
DEFAULT
NULL
COMMENT
'联系人'
,
`follow_method`
tinyint
NULL
DEFAULT
NULL
COMMENT
'跟进方式 字典customer_followup_method'
,
`follow_user_id`
bigint
NULL
DEFAULT
NULL
COMMENT
'客户经理/跟进业务员id'
,
...
...
sql/v2.1/20240903.sql
View file @
273fc4dd
...
...
@@ -22,3 +22,9 @@ INSERT INTO `system_dict_data` (`sort`, `value`, `label`, `label_en`, `dict_type
VALUES
(
30
,
'30'
,
'设置重货标准'
,
'Set Customer Wight Unit'
,
'customer_operate_type'
,
0
,
'default'
,
''
,
NULL
,
'1'
,
now
(),
'115'
,
now
(),
b
'0'
);
INSERT
INTO
`system_dict_data`
(
`sort`
,
`value`
,
`label`
,
`label_en`
,
`dict_type`
,
`status`
,
`color_type`
,
`css_class`
,
`remark`
,
`creator`
,
`create_time`
,
`updater`
,
`update_time`
,
`deleted`
)
VALUES
(
31
,
'31'
,
'设置泡货标准'
,
'Set Customer Light Unit'
,
'customer_operate_type'
,
0
,
'default'
,
''
,
NULL
,
'1'
,
now
(),
'115'
,
now
(),
b
'0'
);
INSERT
INTO
`system_dict_data`
(
`sort`
,
`value`
,
`label`
,
`label_en`
,
`dict_type`
,
`status`
,
`color_type`
,
`css_class`
,
`remark`
,
`creator`
,
`create_time`
,
`updater`
,
`update_time`
,
`deleted`
)
VALUES
(
34
,
'34'
,
'客户跟进导出'
,
'Customer Followup Export'
,
'download_type'
,
0
,
'default'
,
''
,
NULL
,
'1'
,
now
(),
'115'
,
now
(),
b
'0'
);
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/dal/dataobject/customerFollowup/CustomerFollowupDO.java
View file @
273fc4dd
package
cn
.
iocoder
.
yudao
.
module
.
customer
.
dal
.
dataobject
.
customerFollowup
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.*
;
import
java.util.*
;
import
com.baomidou.mybatisplus.annotation.*
;
...
...
@@ -57,6 +58,11 @@ public class CustomerFollowupDO extends BaseDO {
* 跟进时间
*/
private
Date
followTime
;
/**
* 联系人id
*/
private
Long
contactId
;
/**
* 联系人
*/
...
...
@@ -109,4 +115,10 @@ public class CustomerFollowupDO extends BaseDO {
@TableField
(
exist
=
false
)
private
String
followUserName
;
@ApiModelProperty
(
value
=
"联系人电话"
)
private
String
contactPhone
;
}
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/service/customerFollowup/CustomerFollowupServiceImpl.java
View file @
273fc4dd
...
...
@@ -12,7 +12,9 @@ import cn.iocoder.yudao.framework.mybatis.core.util.MyBatisUtils;
import
cn.iocoder.yudao.framework.security.core.LoginUser
;
import
cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils
;
import
cn.iocoder.yudao.module.customer.dal.dataobject.customer.CustomerDO
;
import
cn.iocoder.yudao.module.customer.dal.dataobject.customerContacts.CustomerContactsDO
;
import
cn.iocoder.yudao.module.customer.dal.mysql.customer.CustomerMapper
;
import
cn.iocoder.yudao.module.customer.dal.mysql.customerContacts.CustomerContactsMapper
;
import
cn.iocoder.yudao.module.customer.service.customerOperateLog.CustomerOperateLogService
;
import
cn.iocoder.yudao.module.customer.vo.customerOperateLog.CustomerOperateLogCreateReqVO
;
import
cn.iocoder.yudao.module.ecw.enums.CustomerFollowupStatusEnum
;
...
...
@@ -49,6 +51,9 @@ public class CustomerFollowupServiceImpl extends AbstractService<CustomerFollowu
@Resource
private
CustomerMapper
customerMapper
;
@Resource
private
CustomerContactsMapper
customerContactsMapper
;
/**
* 跟进单编号生成方式:GJ+年份+六位数字,按年份累计
* @return
...
...
@@ -78,6 +83,10 @@ public class CustomerFollowupServiceImpl extends AbstractService<CustomerFollowu
// 插入
CustomerFollowupDO
followup
=
CustomerFollowupConvert
.
INSTANCE
.
convert
(
createReqVO
);
// 设置联系人名称
setContactName
(
followup
);
followupMapper
.
insert
(
followup
);
Long
customerId
=
createReqVO
.
getCustomerId
();
...
...
@@ -108,6 +117,17 @@ public class CustomerFollowupServiceImpl extends AbstractService<CustomerFollowu
return
followup
.
getId
();
}
private
void
setContactName
(
CustomerFollowupDO
followup
)
{
// 设置联系人名称
Long
contactId
=
followup
.
getContactId
();
if
(
contactId
!=
null
)
{
CustomerContactsDO
customerContactsDO
=
customerContactsMapper
.
selectById
(
contactId
);
if
(
customerContactsDO
!=
null
)
{
followup
.
setContactName
(
I18nMessage
.
getLang
()
==
0
?
customerContactsDO
.
getName
()
:
customerContactsDO
.
getNameEn
());
}
}
}
@Override
public
void
updateFollowup
(
CustomerFollowupUpdateReqVO
updateReqVO
)
{
// 校验存在
...
...
@@ -121,6 +141,10 @@ public class CustomerFollowupServiceImpl extends AbstractService<CustomerFollowu
}
// 更新
CustomerFollowupDO
updateObj
=
CustomerFollowupConvert
.
INSTANCE
.
convert
(
updateReqVO
);
// 设置联系人名称
setContactName
(
updateObj
);
followupMapper
.
updateById
(
updateObj
);
Long
customerId
=
updateReqVO
.
getCustomerId
();
...
...
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/vo/customerFollowup/CustomerFollowupBackVO.java
View file @
273fc4dd
...
...
@@ -46,12 +46,14 @@ public class CustomerFollowupBackVO {
@ApiModelProperty
(
value
=
"客户编号"
)
private
String
customerNumber
;
// 联系人id
@ApiModelProperty
(
value
=
"联系人id"
)
private
Long
contactId
;
@ExcelProperty
(
"联系人"
)
@ApiModelProperty
(
value
=
"联系人"
)
private
String
contactName
;
//TODO 联系方式
@ApiModelProperty
(
value
=
"客户经理/跟进业务员id"
)
private
Long
followUserId
;
@ExcelProperty
(
"客户经理"
)
...
...
@@ -133,4 +135,10 @@ public class CustomerFollowupBackVO {
private
String
attatchment
;
@ExcelProperty
(
"联系人电话"
)
@ApiModelProperty
(
value
=
"联系人电话"
)
private
String
contactPhone
;
}
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/vo/customerFollowup/CustomerFollowupBaseVO.java
View file @
273fc4dd
...
...
@@ -37,6 +37,10 @@ public class CustomerFollowupBaseVO {
@DateTimeFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
)
private
Date
followTime
;
//联系人id
@ApiModelProperty
(
value
=
"联系人id"
)
private
Long
contactId
;
@ApiModelProperty
(
value
=
"联系人"
)
private
String
contactName
;
...
...
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/vo/customerFollowup/CustomerFollowupQueryVO.java
View file @
273fc4dd
...
...
@@ -41,6 +41,10 @@ public class CustomerFollowupQueryVO extends PageParam {
@ApiModelProperty
(
value
=
"结束跟进时间"
)
private
Date
endFollowTime
;
//联系人id
@ApiModelProperty
(
value
=
"联系人id"
)
private
Long
contactId
;
@ApiModelProperty
(
value
=
"联系人"
)
private
String
contactName
;
...
...
yudao-module-customer/yudao-module-customer-core/src/main/resources/mapper/customer/CustomerFollowupMapper.xml
View file @
273fc4dd
...
...
@@ -44,13 +44,15 @@
select a.*, b.number as customer_number, c.number as offer_number,
d.nickname as creator_name, e.nickname as updater_name,
f.nickname as follow_user_name
f.nickname as follow_user_name,
concat('+', g.area_code, g.phone_new) as contact_phone
from ecw_customer_followup a
left join ecw_customer b on a.customer_id = b.id
left join ecw_offer c on a.offer_id = c.offer_id
left join system_user d on a.creator = d.id
left join system_user e on a.updater = e.id
left join system_user f on a.follow_user_id = f.id
left join ecw_customer_contacts g on a.contact_id = g.id
WHERE 1=1 AND a.deleted = 0
...
...
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