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
70490f7f
Commit
70490f7f
authored
Dec 25, 2025
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户表,fna表单表字段修改3
parent
3a47b15b
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
10 deletions
+29
-10
yd-csf-api/src/main/java/com/yd/csf/api/CsfApiApplication.java
+7
-0
yd-csf-service/src/main/java/com/yd/csf/service/dto/CustomerAddRequest.java
+1
-1
yd-csf-service/src/main/java/com/yd/csf/service/dto/CustomerUpdateRequest.java
+1
-1
yd-csf-service/src/main/java/com/yd/csf/service/dto/TaxCountry.java
+1
-1
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/CustomerServiceImpl.java
+7
-7
yd-csf-service/src/main/java/com/yd/csf/service/vo/CustomerVO.java
+12
-0
No files found.
yd-csf-api/src/main/java/com/yd/csf/api/CsfApiApplication.java
View file @
70490f7f
...
@@ -4,10 +4,17 @@ import org.mybatis.spring.annotation.MapperScan;
...
@@ -4,10 +4,17 @@ import org.mybatis.spring.annotation.MapperScan;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.context.annotation.EnableAspectJAutoProxy
;
import
org.springframework.scheduling.annotation.EnableAsync
;
import
org.springframework.scheduling.annotation.EnableScheduling
;
@SpringBootApplication
(
scanBasePackages
=
"com.yd"
)
@SpringBootApplication
(
scanBasePackages
=
"com.yd"
)
@MapperScan
(
"com.yd.**.dao"
)
@MapperScan
(
"com.yd.**.dao"
)
@EnableFeignClients
(
basePackages
=
"com.yd"
)
@EnableFeignClients
(
basePackages
=
"com.yd"
)
@ComponentScan
(
basePackages
=
{
"com.yd.auth.core"
// 包含认证模块的包路径
})
public
class
CsfApiApplication
{
public
class
CsfApiApplication
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
...
...
yd-csf-service/src/main/java/com/yd/csf/service/dto/CustomerAddRequest.java
View file @
70490f7f
...
@@ -138,7 +138,7 @@ public class CustomerAddRequest implements Serializable {
...
@@ -138,7 +138,7 @@ public class CustomerAddRequest implements Serializable {
* 税务国家列表
* 税务国家列表
*/
*/
@Schema
(
description
=
"税务国家列表"
)
@Schema
(
description
=
"税务国家列表"
)
private
List
<
TaxCountry
>
tax
List
;
private
List
<
TaxCountry
>
apiTaxationDto
List
;
/**
/**
* 移动电话区号
* 移动电话区号
...
...
yd-csf-service/src/main/java/com/yd/csf/service/dto/CustomerUpdateRequest.java
View file @
70490f7f
...
@@ -84,7 +84,7 @@ public class CustomerUpdateRequest implements Serializable {
...
@@ -84,7 +84,7 @@ public class CustomerUpdateRequest implements Serializable {
* 税务国家列表
* 税务国家列表
*/
*/
@Schema
(
description
=
"税务国家列表"
)
@Schema
(
description
=
"税务国家列表"
)
private
List
<
TaxCountry
>
tax
List
;
private
List
<
TaxCountry
>
apiTaxationDto
List
;
/**
/**
* 吸烟情况(字典)
* 吸烟情况(字典)
...
...
yd-csf-service/src/main/java/com/yd/csf/service/dto/TaxCountry.java
View file @
70490f7f
...
@@ -11,5 +11,5 @@ public class TaxCountry {
...
@@ -11,5 +11,5 @@ public class TaxCountry {
private
String
taxCountry
;
private
String
taxCountry
;
@Schema
(
description
=
"税务编号"
)
@Schema
(
description
=
"税务编号"
)
private
String
tax
Number
;
private
String
tax
Id
;
}
}
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/CustomerServiceImpl.java
View file @
70490f7f
...
@@ -112,13 +112,13 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer>
...
@@ -112,13 +112,13 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer>
// 客户主表信息
// 客户主表信息
Customer
customer
=
new
Customer
();
Customer
customer
=
new
Customer
();
BeanUtils
.
copyProperties
(
customerAddRequest
,
customer
,
"addressList"
);
BeanUtils
.
copyProperties
(
customerAddRequest
,
customer
,
"addressList"
);
List
<
AddressVO
>
addressList
=
customerAddRequest
.
getAddressList
();
// 地址列表
if
(
CollUtil
.
isNotEmpty
(
addressList
))
{
if
(
CollUtil
.
isNotEmpty
(
customerAddRequest
.
getAddressList
()
))
{
customer
.
setAddressList
(
GSON
.
toJson
(
addressList
));
customer
.
setAddressList
(
GSON
.
toJson
(
customerAddRequest
.
getAddressList
()
));
}
}
// 税务国家列表
// 税务国家列表
if
(
CollUtil
.
isNotEmpty
(
customerAddRequest
.
get
Tax
List
()))
{
if
(
CollUtil
.
isNotEmpty
(
customerAddRequest
.
get
ApiTaxationDto
List
()))
{
customer
.
setTaxList
(
GSON
.
toJson
(
customerAddRequest
.
get
Tax
List
()));
customer
.
setTaxList
(
GSON
.
toJson
(
customerAddRequest
.
get
ApiTaxationDto
List
()));
}
}
// 校验客户主表信息
// 校验客户主表信息
validCustomer
(
customer
);
validCustomer
(
customer
);
...
@@ -163,8 +163,8 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer>
...
@@ -163,8 +163,8 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer>
BeanUtils
.
copyProperties
(
customerUpdateRequest
,
oldCustomer
,
"customerBizId"
);
BeanUtils
.
copyProperties
(
customerUpdateRequest
,
oldCustomer
,
"customerBizId"
);
// 税务国家列表
// 税务国家列表
if
(
CollUtil
.
isNotEmpty
(
customerUpdateRequest
.
get
Tax
List
()))
{
if
(
CollUtil
.
isNotEmpty
(
customerUpdateRequest
.
get
ApiTaxationDto
List
()))
{
oldCustomer
.
setTaxList
(
GSON
.
toJson
(
customerUpdateRequest
.
get
Tax
List
()));
oldCustomer
.
setTaxList
(
GSON
.
toJson
(
customerUpdateRequest
.
get
ApiTaxationDto
List
()));
}
}
// 地址列表
// 地址列表
if
(
CollUtil
.
isNotEmpty
(
customerUpdateRequest
.
getAddressList
()))
{
if
(
CollUtil
.
isNotEmpty
(
customerUpdateRequest
.
getAddressList
()))
{
...
...
yd-csf-service/src/main/java/com/yd/csf/service/vo/CustomerVO.java
View file @
70490f7f
package
com
.
yd
.
csf
.
service
.
vo
;
package
com
.
yd
.
csf
.
service
.
vo
;
import
com.google.gson.reflect.TypeToken
;
import
com.google.gson.reflect.TypeToken
;
import
com.yd.csf.service.dto.TaxCountry
;
import
com.yd.csf.service.model.Customer
;
import
com.yd.csf.service.model.Customer
;
import
com.yd.csf.service.utils.GSONUtil
;
import
com.yd.csf.service.utils.GSONUtil
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
io.swagger.v3.oas.annotations.media.Schema
;
...
@@ -92,6 +93,12 @@ public class CustomerVO implements Serializable {
...
@@ -92,6 +93,12 @@ public class CustomerVO implements Serializable {
private
String
isOtherCountry
;
private
String
isOtherCountry
;
/**
/**
* 税务国家列表
*/
@Schema
(
description
=
"税务国家列表"
)
private
List
<
TaxCountry
>
apiTaxationDtoList
;
/**
* 吸烟情况(字典)
* 吸烟情况(字典)
*/
*/
@Schema
(
description
=
"吸烟情况(字典)"
)
@Schema
(
description
=
"吸烟情况(字典)"
)
...
@@ -382,6 +389,11 @@ public class CustomerVO implements Serializable {
...
@@ -382,6 +389,11 @@ public class CustomerVO implements Serializable {
}.
getType
());
}.
getType
());
customerVO
.
setAddressList
(
addressList
);
customerVO
.
setAddressList
(
addressList
);
}
}
if
(
ObjectUtils
.
isNotEmpty
(
customer
.
getTaxList
()))
{
List
<
TaxCountry
>
taxList
=
GSONUtil
.
fromJson
((
String
)
customer
.
getTaxList
(),
new
TypeToken
<
List
<
TaxCountry
>>()
{
}.
getType
());
customerVO
.
setApiTaxationDtoList
(
taxList
);
}
return
customerVO
;
return
customerVO
;
}
}
...
...
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