Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-csf
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
xingmin
yd-csf
Commits
ded41eb5
Commit
ded41eb5
authored
Sep 16, 2025
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fna接口29
parent
cb5826ee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
70 additions
and
8 deletions
+70
-8
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/CustomerServiceImpl.java
+5
-6
yd-csf-service/src/main/java/com/yd/csf/service/vo/CustomerVO.java
+65
-2
No files found.
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/CustomerServiceImpl.java
View file @
ded41eb5
...
@@ -60,14 +60,13 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer>
...
@@ -60,14 +60,13 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer>
// 1. 关联查询扩展信息
// 1. 关联查询扩展信息
CustomerExpand
customerExpand
=
customerExpandService
.
getByCustomerBizId
(
customer
.
getCustomerBizId
());
CustomerExpand
customerExpand
=
customerExpandService
.
getByCustomerBizId
(
customer
.
getCustomerBizId
());
if
(
customerExpand
!=
null
)
{
if
(
customerExpand
!=
null
)
{
CustomerExpandVO
customerExpandVO
=
CustomerExpandVO
.
objToVo
(
customerExpand
);
BeanUtils
.
copyProperties
(
customerExpand
,
customerVO
);
if
(
StringUtils
.
isNotBlank
(
customerExpand
.
getAddressList
()))
{
if
(
StringUtils
.
isNotBlank
(
customerExpand
.
getAddressList
()))
{
List
<
AddressVO
>
addressList
=
GSON
.
fromJson
(
customerExpand
.
getAddressList
(),
new
TypeToken
<
List
<
AddressVO
>>()
{
List
<
AddressVO
>
addressList
=
GSON
.
fromJson
(
customerExpand
.
getAddressList
(),
new
TypeToken
<
List
<
AddressVO
>>()
{
}.
getType
());
}.
getType
());
customer
Expand
VO
.
setAddressList
(
addressList
);
customerVO
.
setAddressList
(
addressList
);
}
}
customerVO
.
setCustomerExpand
(
customerExpandVO
);
}
}
return
customerVO
;
return
customerVO
;
}
}
...
@@ -112,13 +111,13 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer>
...
@@ -112,13 +111,13 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer>
customerExpand
=
customerBizIdCustomerExpandListMap
.
get
(
customerBizId
).
get
(
0
);
customerExpand
=
customerBizIdCustomerExpandListMap
.
get
(
customerBizId
).
get
(
0
);
}
}
if
(
customerExpand
!=
null
)
{
if
(
customerExpand
!=
null
)
{
CustomerExpandVO
customerExpandVO
=
CustomerExpandVO
.
objToVo
(
customerExpand
);
BeanUtils
.
copyProperties
(
customerExpand
,
customerVO
);
if
(
StringUtils
.
isNotBlank
(
customerExpand
.
getAddressList
()))
{
if
(
StringUtils
.
isNotBlank
(
customerExpand
.
getAddressList
()))
{
List
<
AddressVO
>
addressList
=
GSON
.
fromJson
(
customerExpand
.
getAddressList
(),
new
TypeToken
<
List
<
AddressVO
>>()
{
List
<
AddressVO
>
addressList
=
GSON
.
fromJson
(
customerExpand
.
getAddressList
(),
new
TypeToken
<
List
<
AddressVO
>>()
{
}.
getType
());
}.
getType
());
customer
Expand
VO
.
setAddressList
(
addressList
);
customerVO
.
setAddressList
(
addressList
);
}
}
customerVO
.
setCustomerExpand
(
customerExpandVO
);
}
}
});
});
// endregion
// endregion
...
...
yd-csf-service/src/main/java/com/yd/csf/service/vo/CustomerVO.java
View file @
ded41eb5
...
@@ -6,7 +6,9 @@ import lombok.Data;
...
@@ -6,7 +6,9 @@ import lombok.Data;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
/**
/**
* customer视图
* customer视图
...
@@ -208,9 +210,70 @@ public class CustomerVO implements Serializable {
...
@@ -208,9 +210,70 @@ public class CustomerVO implements Serializable {
private
Date
createTime
;
private
Date
createTime
;
/**
/**
* 客户
扩展信息
* 客户
类型
*/
*/
private
CustomerExpandVO
customerExpand
;
@Schema
(
description
=
"客户类型 字典值: csf_customer_type"
)
private
String
customerType
;
/**
* 居住地区代码
*/
@Schema
(
description
=
"居住地区代码"
)
private
String
residenceAreaCode
;
/**
* 住宅电话
*/
@Schema
(
description
=
"住宅电话"
)
private
String
residenceTelephone
;
/**
* 是否长期出国
*/
@Schema
(
description
=
"是否长期出国 字典值: sys_no_yes"
)
private
String
longtimeAbroad
;
/**
* 地址
*/
@Schema
(
description
=
"地址列表"
)
private
List
<
AddressVO
>
addressList
;
/**
* 公司名称
*/
@Schema
(
description
=
"公司名称"
)
private
String
companyName
;
/**
* 公司地区代码
*/
@Schema
(
description
=
"公司地区代码"
)
private
String
companyAreaCode
;
/**
* 公司电话
*/
@Schema
(
description
=
"公司电话"
)
private
String
companyTelephone
;
/**
* 职位
*/
@Schema
(
description
=
"职位"
)
private
String
position
;
/**
* 工作年限
*/
@Schema
(
description
=
"工作年限"
)
private
String
workYear
;
/**
* 薪资
*/
@Schema
(
description
=
"薪资"
)
private
BigDecimal
salary
;
/**
/**
* 封装类转对象
* 封装类转对象
...
...
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