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
6b84620e
Commit
6b84620e
authored
Sep 22, 2025
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
bea0e9af
Show whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
2085 additions
and
14 deletions
+2085
-14
yd-csf-api/src/main/java/com/yd/csf/api/controller/ApiAppointmentFileController.java
+23
-0
yd-csf-api/src/main/java/com/yd/csf/api/service/ApiAppointmentFileService.java
+8
-0
yd-csf-api/src/main/java/com/yd/csf/api/service/ApiAppointmentService.java
+3
-0
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiAppointmentFileServiceImpl.java
+195
-13
yd-csf-feign/pom.xml
+5
-0
yd-csf-feign/src/main/java/com/yd/csf/feign/client/appointmentfile/ApiAppointmentFileFeignClient.java
+21
-1
yd-csf-feign/src/main/java/com/yd/csf/feign/dto/excel/ApiExcelAdditionalDto.java
+57
-0
yd-csf-feign/src/main/java/com/yd/csf/feign/dto/excel/ApiExcelAppointmentMainDto.java
+83
-0
yd-csf-feign/src/main/java/com/yd/csf/feign/dto/excel/ApiExcelAppointmentPlanDto.java
+195
-0
yd-csf-feign/src/main/java/com/yd/csf/feign/dto/excel/ApiExcelBeneficiaryDto.java
+106
-0
yd-csf-feign/src/main/java/com/yd/csf/feign/dto/excel/ApiExcelHkStayDto.java
+116
-0
yd-csf-feign/src/main/java/com/yd/csf/feign/dto/excel/ApiExcelImportAdditionalDto.java
+22
-0
yd-csf-feign/src/main/java/com/yd/csf/feign/dto/excel/ApiExcelImportAppointmentDto.java
+470
-0
yd-csf-feign/src/main/java/com/yd/csf/feign/dto/excel/ApiExcelImportBeneficiaryDto.java
+49
-0
yd-csf-feign/src/main/java/com/yd/csf/feign/dto/excel/ApiExcelImportHealthDto.java
+11
-0
yd-csf-feign/src/main/java/com/yd/csf/feign/dto/excel/ApiExcelInsurantDto.java
+296
-0
yd-csf-feign/src/main/java/com/yd/csf/feign/dto/excel/ApiExcelPolicyholderDto.java
+284
-0
yd-csf-feign/src/main/java/com/yd/csf/feign/dto/excel/ApiExcelSecondHolderDto.java
+96
-0
yd-csf-feign/src/main/java/com/yd/csf/feign/fallback/appointmentfile/ApiAppointmentFileFeignFallbackFactory.java
+14
-0
yd-csf-feign/src/main/java/com/yd/csf/feign/request/appointmentfile/ApiAppointmentImportExcelRequest.java
+15
-0
yd-csf-feign/src/main/java/com/yd/csf/feign/response/appointmentfile/ApiAppointmentImportExcelResponse.java
+8
-0
yd-csf-service/src/main/java/com/yd/csf/service/model/Appointment.java
+6
-0
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/AdditionalServiceImpl.java
+2
-0
No files found.
yd-csf-api/src/main/java/com/yd/csf/api/controller/ApiAppointmentFileController.java
View file @
6b84620e
...
...
@@ -7,11 +7,14 @@ import com.yd.csf.feign.client.appointmentfile.ApiAppointmentFileFeignClient;
import
com.yd.csf.feign.request.appointmentfile.ApiAppointmentFileAddRequest
;
import
com.yd.csf.feign.request.appointmentfile.ApiAppointmentFileEditRequest
;
import
com.yd.csf.feign.request.appointmentfile.ApiAppointmentFilePageRequest
;
import
com.yd.csf.feign.request.appointmentfile.ApiAppointmentImportExcelRequest
;
import
com.yd.csf.feign.response.appointmentfile.ApiAppointmentFilePageResponse
;
import
com.yd.csf.feign.response.appointmentfile.ApiAppointmentImportExcelResponse
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.multipart.MultipartFile
;
import
javax.validation.constraints.NotBlank
;
...
...
@@ -89,5 +92,25 @@ public class ApiAppointmentFileController implements ApiAppointmentFileFeignClie
return
apiAppointmentFileService
.
itineraryPdf
(
appointmentBizId
);
}
/**
* Excel导出-预约信息
* @param appointmentBizId
* @return
*/
@Override
public
Result
<
String
>
appointmentExportExcel
(
String
appointmentBizId
)
{
return
apiAppointmentFileService
.
appointmentExportExcel
(
appointmentBizId
);
}
/**
* Excel导入-预约信息
* @return
*/
@Override
public
Result
<
ApiAppointmentImportExcelResponse
>
appointmentImportExcel
(
MultipartFile
file
,
ApiAppointmentImportExcelRequest
request
)
{
return
apiAppointmentFileService
.
appointmentImportExcel
(
file
,
request
);
}
}
yd-csf-api/src/main/java/com/yd/csf/api/service/ApiAppointmentFileService.java
View file @
6b84620e
...
...
@@ -6,7 +6,10 @@ import com.yd.csf.feign.dto.appointmentfile.ApiAppointmentFileDto;
import
com.yd.csf.feign.request.appointmentfile.ApiAppointmentFileAddRequest
;
import
com.yd.csf.feign.request.appointmentfile.ApiAppointmentFileEditRequest
;
import
com.yd.csf.feign.request.appointmentfile.ApiAppointmentFilePageRequest
;
import
com.yd.csf.feign.request.appointmentfile.ApiAppointmentImportExcelRequest
;
import
com.yd.csf.feign.response.appointmentfile.ApiAppointmentFilePageResponse
;
import
com.yd.csf.feign.response.appointmentfile.ApiAppointmentImportExcelResponse
;
import
org.springframework.web.multipart.MultipartFile
;
import
java.util.List
;
...
...
@@ -25,4 +28,9 @@ public interface ApiAppointmentFileService {
Result
download
(
String
appointmentFileBizId
);
Result
<
String
>
itineraryPdf
(
String
appointmentBizId
);
Result
<
String
>
appointmentExportExcel
(
String
appointmentBizId
);
Result
<
ApiAppointmentImportExcelResponse
>
appointmentImportExcel
(
MultipartFile
file
,
ApiAppointmentImportExcelRequest
request
);
}
yd-csf-api/src/main/java/com/yd/csf/api/service/ApiAppointmentService.java
View file @
6b84620e
...
...
@@ -6,6 +6,7 @@ import com.yd.csf.feign.dto.appointment.ApiAppointmentInfoDto;
import
com.yd.csf.feign.request.appointment.*
;
import
com.yd.csf.feign.response.appointment.ApiAppointmentDetailResponse
;
import
com.yd.csf.feign.response.appointment.ApiAppointmentPageResponse
;
import
com.yd.csf.service.model.Appointment
;
public
interface
ApiAppointmentService
{
Result
<
IPage
<
ApiAppointmentPageResponse
>>
page
(
ApiAppointmentPageRequest
request
);
...
...
@@ -31,4 +32,6 @@ public interface ApiAppointmentService {
Result
editProposal
(
ApiAppointmentEditProposalRequest
request
);
Result
removeProposal
(
ApiAppointmentRemoveProposalRequest
request
);
Result
<
Appointment
>
checkAppointmentIsExist
(
String
appointmentBizId
);
}
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiAppointmentFileServiceImpl.java
View file @
6b84620e
...
...
@@ -2,38 +2,39 @@ package com.yd.csf.api.service.impl;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yd.auth.core.dto.AuthUserDto
;
import
com.yd.auth.core.utils.SecurityUtil
;
import
com.yd.common.enums.CommonEnum
;
import
com.yd.common.enums.ResultCode
;
import
com.yd.common.exception.BusinessException
;
import
com.yd.common.result.Result
;
import
com.yd.common.utils.BeanMapUtils
;
import
com.yd.common.utils.RandomStringGenerator
;
import
com.yd.csf.api.service.ApiAppointmentFileService
;
import
com.yd.csf.api.service.ApiAppointmentService
;
import
com.yd.csf.feign.dto.appointmentfile.ApiAppointmentFileDto
;
import
com.yd.csf.feign.dto.excel.*
;
import
com.yd.csf.feign.request.appointmentfile.ApiAppointmentFileAddRequest
;
import
com.yd.csf.feign.request.appointmentfile.ApiAppointmentFileEditRequest
;
import
com.yd.csf.feign.request.appointmentfile.ApiAppointmentFilePageRequest
;
import
com.yd.csf.feign.request.appointmentfile.ApiAppointmentImportExcelRequest
;
import
com.yd.csf.feign.response.appointmentfile.ApiAppointmentFilePageResponse
;
import
com.yd.csf.feign.response.appointmentfile.ApiAppointmentImportExcelResponse
;
import
com.yd.csf.service.dto.AdditionalDto
;
import
com.yd.csf.service.dto.BeneficiaryDto
;
import
com.yd.csf.service.dto.ItineraryDto
;
import
com.yd.csf.service.model.
AppointmentFile
;
import
com.yd.csf.service.
model.Policyholder
;
import
com.yd.
csf.service.service.IAppointmentFileService
;
import
com.yd.
csf.service.service.IAppointmentService
;
import
com.yd.oss.
service.enums.TemplateTypeEnum
;
import
com.yd.csf.service.model.
*
;
import
com.yd.csf.service.
service.*
;
import
com.yd.
oss.feign.client.ApiExcelFeignClient
;
import
com.yd.
oss.feign.enums.TemplateTypeEnum
;
import
com.yd.oss.
feign.response.ApiOssExcelParseResponse
;
import
com.yd.oss.service.service.PdfService
;
import
com.yd.user.feign.response.sysuser.ApiSysUserPageResponse
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.web.multipart.MultipartFile
;
import
java.io.IOException
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Objects
;
import
java.util.*
;
import
java.util.stream.Collectors
;
/**
...
...
@@ -50,8 +51,32 @@ public class ApiAppointmentFileServiceImpl implements ApiAppointmentFileService
private
IAppointmentService
iAppointmentService
;
@Autowired
private
ApiAppointmentService
apiAppointmentService
;
@Autowired
private
IProductPlanService
iProductPlanService
;
@Autowired
private
IAdditionalService
iAdditionalService
;
@Autowired
private
IBeneficiaryService
iBeneficiaryService
;
@Autowired
private
IInsurantService
iInsurantService
;
@Autowired
private
IPolicyholderService
iPolicyholderService
;
@Autowired
private
ISecondHolderService
iSecondHolderService
;
@Autowired
private
PdfService
pdfService
;
@Autowired
private
ApiExcelFeignClient
apiExcelFeignClient
;
/**
* 预约附件信息分页查询
* @param request
...
...
@@ -170,6 +195,163 @@ public class ApiAppointmentFileServiceImpl implements ApiAppointmentFileService
}
/**
* Excel导出-预约信息
* @param appointmentBizId
* @return
*/
@Override
public
Result
<
String
>
appointmentExportExcel
(
String
appointmentBizId
)
{
Map
<
String
,
Object
>
data
=
new
HashMap
<>();
try
{
//预约信息
Result
<
Appointment
>
result
=
apiAppointmentService
.
checkAppointmentIsExist
(
appointmentBizId
);
Appointment
appointment
=
result
.
getData
();
//Excel-预约主信息
ApiExcelAppointmentMainDto
mainDto
=
new
ApiExcelAppointmentMainDto
();
BeanUtils
.
copyProperties
(
appointment
,
mainDto
);
mainDto
=
ApiExcelAppointmentMainDto
.
setApiExcelAppointmentMainDto
(
mainDto
);
//对象转成map.方便excel做占位符字段替换
Map
<
String
,
Object
>
mainMap
=
BeanMapUtils
.
convertToMapSafely
(
mainDto
);
data
.
putAll
(
mainMap
);
//Excel-预约资料及计划内容信息
ProductPlan
productPlan
=
iProductPlanService
.
queryOne
(
appointmentBizId
,
""
);
if
(!
Objects
.
isNull
(
productPlan
))
{
ApiExcelAppointmentPlanDto
planDto
=
new
ApiExcelAppointmentPlanDto
();
BeanUtils
.
copyProperties
(
productPlan
,
planDto
);
planDto
=
ApiExcelAppointmentPlanDto
.
setApiExcelAppointmentPlanDto
(
planDto
);
//对象转成map.方便excel做占位符字段替换
Map
<
String
,
Object
>
planMap
=
BeanMapUtils
.
convertToMapSafely
(
planDto
);
data
.
putAll
(
planMap
);
//附加计划(附加险)
List
<
Additional
>
additionalList
=
iAdditionalService
.
queryList
(
AdditionalDto
.
builder
()
.
planBizId
(
productPlan
.
getPlanBizId
())
.
build
());
if
(!
CollectionUtils
.
isEmpty
(
additionalList
))
{
List
<
ApiExcelAdditionalDto
>
additionalDtoList
=
additionalList
.
stream
()
.
map
(
dto
->
{
ApiExcelAdditionalDto
additionalDto
=
new
ApiExcelAdditionalDto
();
BeanUtils
.
copyProperties
(
dto
,
additionalDto
);
return
additionalDto
;
}).
collect
(
Collectors
.
toList
());
additionalDtoList
=
ApiExcelAdditionalDto
.
setApiExcelAdditionalDtoList
(
additionalDtoList
);
List
<
Map
<
String
,
Object
>>
mapList
=
BeanMapUtils
.
convertListToMapListSafelyWithEmpty
(
additionalDtoList
);
data
.
put
(
"additionalList"
,
mapList
);
}
}
//受益人列表
List
<
Beneficiary
>
beneficiaryList
=
iBeneficiaryService
.
queryList
(
BeneficiaryDto
.
builder
()
.
appointmentBizId
(
appointmentBizId
)
.
build
());
if
(!
CollectionUtils
.
isEmpty
(
beneficiaryList
))
{
List
<
ApiExcelBeneficiaryDto
>
apiExcelBeneficiaryDtoList
=
beneficiaryList
.
stream
()
.
map
(
dto
->
{
ApiExcelBeneficiaryDto
beneficiaryDto
=
new
ApiExcelBeneficiaryDto
();
BeanUtils
.
copyProperties
(
dto
,
beneficiaryDto
);
return
beneficiaryDto
;
}).
collect
(
Collectors
.
toList
());
apiExcelBeneficiaryDtoList
=
ApiExcelBeneficiaryDto
.
setApiExcelBeneficiaryDtoList
(
apiExcelBeneficiaryDtoList
);
List
<
Map
<
String
,
Object
>>
mapList1
=
BeanMapUtils
.
convertListToMapListSafelyWithEmpty
(
apiExcelBeneficiaryDtoList
);
data
.
put
(
"beneficiaryList"
,
mapList1
);
}
//Excel-客戶在港/澳停留時間信息
ApiExcelHkStayDto
stayDto
=
new
ApiExcelHkStayDto
();
BeanUtils
.
copyProperties
(
appointment
,
stayDto
);
stayDto
=
ApiExcelHkStayDto
.
setApiExcelHkStayDto
(
stayDto
);
Map
<
String
,
Object
>
stayMap
=
BeanMapUtils
.
convertToMapSafely
(
stayDto
);
data
.
putAll
(
stayMap
);
//受保人资料 (如與保單持有人為同一人無須填寫)
Insurant
insurant
=
iInsurantService
.
queryOne
(
appointmentBizId
,
""
);
if
(!
Objects
.
isNull
(
insurant
))
{
ApiExcelInsurantDto
insurantDto
=
new
ApiExcelInsurantDto
();
BeanUtils
.
copyProperties
(
insurant
,
insurantDto
);
insurantDto
=
ApiExcelInsurantDto
.
setApiExcelInsurantDto
(
insurantDto
);
//对象转成map.方便excel做占位符字段替换
Map
<
String
,
Object
>
insurantMap
=
BeanMapUtils
.
convertToMapSafely
(
insurantDto
);
data
.
putAll
(
insurantMap
);
}
//保单持有人资料(投保人信息)
Policyholder
policyholder
=
iPolicyholderService
.
queryOne
(
appointmentBizId
,
""
);
if
(!
Objects
.
isNull
(
policyholder
))
{
ApiExcelPolicyholderDto
policyholderDto
=
new
ApiExcelPolicyholderDto
();
BeanUtils
.
copyProperties
(
policyholder
,
policyholderDto
);
policyholderDto
=
ApiExcelPolicyholderDto
.
setApiExcelPolicyholderDto
(
policyholderDto
);
//对象转成map.方便excel做占位符字段替换
Map
<
String
,
Object
>
policyholderMap
=
BeanMapUtils
.
convertToMapSafely
(
policyholderDto
);
data
.
putAll
(
policyholderMap
);
}
//第二持有人资料
SecondHolder
secondHolder
=
iSecondHolderService
.
queryOne
(
appointmentBizId
,
""
);
if
(!
Objects
.
isNull
(
secondHolder
))
{
ApiExcelSecondHolderDto
secondHolderDto
=
new
ApiExcelSecondHolderDto
();
BeanUtils
.
copyProperties
(
secondHolder
,
secondHolderDto
);
secondHolderDto
=
ApiExcelSecondHolderDto
.
setApiExcelSecondHolderDto
(
secondHolderDto
);
//对象转成map.方便excel做占位符字段替换
Map
<
String
,
Object
>
secondHolderMap
=
BeanMapUtils
.
convertToMapSafely
(
secondHolderDto
);
data
.
putAll
(
secondHolderMap
);
}
return
null
;
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
BusinessException
(
"Excel导出-预约信息异常!"
);
}
}
/**
* Excel导入-预约信息
* @param file
* @param request
* @return
*/
@Override
public
Result
<
ApiAppointmentImportExcelResponse
>
appointmentImportExcel
(
MultipartFile
file
,
ApiAppointmentImportExcelRequest
request
)
{
//校验预约信息是否存在
Result
<
Appointment
>
appointmentResult
=
apiAppointmentService
.
checkAppointmentIsExist
(
request
.
getAppointmentBizId
());
Appointment
appointment
=
appointmentResult
.
getData
();
//需要解析的excel对象
String
[]
s
=
new
String
[]{
"com.yd.csf.feign.dto.excel.ApiExcelImportAppointmentDto"
,
"com.yd.csf.feign.dto.excel.ApiExcelImportHealthDto"
};
//Feign调用-oss服务,通用-Excel解析(支持多sheet页解析)
Result
<
ApiOssExcelParseResponse
>
result
=
apiExcelFeignClient
.
parse
(
file
,
s
);
if
(
Objects
.
isNull
(
result
.
getData
())
||
(!
Objects
.
isNull
(
result
.
getData
())
&&
Objects
.
isNull
(
result
.
getData
().
getMap
()))){
throw
new
BusinessException
(
"导入数据不能为空!"
);
}
//Excel解析出的信息
Map
<
Integer
,
Object
>
data
=
(
Map
<
Integer
,
Object
>)
result
.
getData
().
getMap
();
// 获取第一个Sheet页的解析结果
ApiExcelImportAppointmentDto
appointmentDto
=
(
ApiExcelImportAppointmentDto
)
data
.
get
(
0
);
// 获取第二个Sheet页的解析结果
ApiExcelImportHealthDto
healthDto
=
(
ApiExcelImportHealthDto
)
data
.
get
(
1
);
//校验Excel解析的字段
//更新或者新增表数据
//更新预约主信息数据
return
null
;
}
/**
* 校验预约附件信息是否存在
* @param appointmentFileBizId
* @return
...
...
yd-csf-feign/pom.xml
View file @
6b84620e
...
...
@@ -23,6 +23,11 @@
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
com.yd
</groupId>
<artifactId>
yd-oss-feign
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
com.fasterxml.jackson.core
</groupId>
<artifactId>
jackson-annotations
</artifactId>
</dependency>
...
...
yd-csf-feign/src/main/java/com/yd/csf/feign/client/appointmentfile/ApiAppointmentFileFeignClient.java
View file @
6b84620e
package
com
.
yd
.
csf
.
feign
.
client
.
appointmentfile
;
import
com.yd.common.result.Result
;
import
com.yd.csf.feign.request.appointmentfile.ApiAppointmentImportExcelRequest
;
import
com.yd.csf.feign.fallback.appointmentfile.ApiAppointmentFileFeignFallbackFactory
;
import
com.yd.csf.feign.request.appointmentfile.ApiAppointmentFileAddRequest
;
import
com.yd.csf.feign.request.appointmentfile.ApiAppointmentFileEditRequest
;
import
com.yd.csf.feign.request.appointmentfile.ApiAppointmentFilePageRequest
;
import
com.yd.csf.feign.response.appointmentfile.ApiAppointmentImportExcelResponse
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.http.MediaType
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.multipart.MultipartFile
;
import
javax.validation.constraints.NotBlank
;
/**
...
...
@@ -64,4 +67,21 @@ public interface ApiAppointmentFileFeignClient {
*/
@GetMapping
(
"/pdf/itinerary"
)
Result
<
String
>
itineraryPdf
(
@NotBlank
(
message
=
"预约信息主表唯一业务ID不能为空"
)
@RequestParam
(
value
=
"appointmentBizId"
)
String
appointmentBizId
);
/**
* Excel导出-预约信息
* @param appointmentBizId
* @return
*/
@GetMapping
(
"/excel/export/appointment"
)
Result
<
String
>
appointmentExportExcel
(
@NotBlank
(
message
=
"预约信息主表唯一业务ID不能为空"
)
@RequestParam
(
value
=
"appointmentBizId"
)
String
appointmentBizId
);
/**
* Excel导入-预约信息
* @return
*/
@PostMapping
(
value
=
"/excel/import/appointment"
,
consumes
=
MediaType
.
MULTIPART_FORM_DATA_VALUE
)
Result
<
ApiAppointmentImportExcelResponse
>
appointmentImportExcel
(
@RequestPart
(
"file"
)
MultipartFile
file
,
@RequestPart
(
"request"
)
ApiAppointmentImportExcelRequest
request
);
}
yd-csf-feign/src/main/java/com/yd/csf/feign/dto/excel/ApiExcelAdditionalDto.java
0 → 100644
View file @
6b84620e
package
com
.
yd
.
csf
.
feign
.
dto
.
excel
;
import
com.yd.common.utils.DateUtil
;
import
lombok.Data
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.util.CollectionUtils
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.stream.Collectors
;
@Data
public
class
ApiExcelAdditionalDto
{
//============以下是表字段============
/**
* 保险附加产品名称(中台保险附加产品名称,冗余)
*/
private
String
productName
;
/**
* 保费
*/
private
BigDecimal
premium
;
//============以下是excel显示的字段,同上============
/**
* 保险附加产品名称(中台保险附加产品名称,冗余)
*/
private
String
addProductName
;
/**
* 保费
*/
private
BigDecimal
addPremium
;
/**
* 重新赋值ApiExcelAdditionalDto
* @param list
* @return
*/
public
static
List
<
ApiExcelAdditionalDto
>
setApiExcelAdditionalDtoList
(
List
<
ApiExcelAdditionalDto
>
list
)
{
List
<
ApiExcelAdditionalDto
>
newList
=
new
ArrayList
<>();
if
(!
CollectionUtils
.
isEmpty
(
list
))
{
newList
=
list
.
stream
().
map
(
dto
->
{
ApiExcelAdditionalDto
additionalDto
=
new
ApiExcelAdditionalDto
();
BeanUtils
.
copyProperties
(
dto
,
additionalDto
);
additionalDto
.
setAddPremium
(
dto
.
getPremium
());
additionalDto
.
setAddProductName
(
dto
.
getAddProductName
());
return
additionalDto
;
}).
collect
(
Collectors
.
toList
());
}
return
newList
;
}
}
yd-csf-feign/src/main/java/com/yd/csf/feign/dto/excel/ApiExcelAppointmentMainDto.java
0 → 100644
View file @
6b84620e
package
com
.
yd
.
csf
.
feign
.
dto
.
excel
;
import
com.yd.common.utils.DateUtil
;
import
com.yd.csf.feign.dto.appointment.ApiAppointmentInfoDto
;
import
lombok.Data
;
import
org.springframework.beans.BeanUtils
;
import
java.time.LocalDateTime
;
/**
* Excel-预约主信息
*/
@Data
public
class
ApiExcelAppointmentMainDto
{
//============以下是表字段============
/**
* 介绍人编号(用户)(预约信息主表)
*/
private
String
referrerId
;
// /**
// * 预约日期 (西元 年/月/日)(意向预约时间(年月日))(预约信息主表)
// */
// private LocalDateTime intentionAppointmentDate;
/**
* 是否体检: 0-否, 1-是(字典)(预约信息主表)
*/
private
Integer
isTj
;
/**
* 預約時間(意向预约时间)(预约信息主表)
*/
private
LocalDateTime
intentionAppointmentTime
;
//============以下是excel显示的字段,同上============
/**
* 介绍人编号(用户)(预约信息主表)
*/
private
String
mainReferrerId
;
/**
* 预约日期 (西元 年/月/日)(意向预约时间(年月日))(预约信息主表)
*/
private
String
mainIntentionAppointmentDate
;
/**
* 是否体检: 0-否, 1-是(字典)(预约信息主表)
*/
private
Integer
mainIsTj
;
/**
* 預約時間(意向预约时间(时分))(预约信息主表)
*/
private
String
mainIntentionAppointmentTime
;
/**
* 重新赋值ApiExcelAppointmentMainDto
* @param dto
* @return
*/
public
static
ApiExcelAppointmentMainDto
setApiExcelAppointmentMainDto
(
ApiExcelAppointmentMainDto
dto
)
{
ApiExcelAppointmentMainDto
mainDto
=
new
ApiExcelAppointmentMainDto
();
BeanUtils
.
copyProperties
(
dto
,
mainDto
);
mainDto
.
setMainIntentionAppointmentDate
(
DateUtil
.
getyyyyMMdd
(
dto
.
getIntentionAppointmentTime
()));
mainDto
.
setMainIntentionAppointmentTime
(
DateUtil
.
getHHmm
(
dto
.
getIntentionAppointmentTime
()));
mainDto
.
setMainIsTj
(
dto
.
getIsTj
());
mainDto
.
setMainReferrerId
(
dto
.
getReferrerId
());
return
mainDto
;
}
/**
* ApiExcelAppointmentMainDto构造ApiAppointmentInfoDto用于保存到表
* @param dto
* @return
*/
public
static
ApiAppointmentInfoDto
setApiAppointmentInfoDto
(
ApiExcelAppointmentMainDto
dto
)
{
ApiAppointmentInfoDto
infoDto
=
new
ApiAppointmentInfoDto
();
infoDto
.
setIntentionAppointmentTime
(
DateUtil
.
getLocalDateTime
(
dto
.
getMainIntentionAppointmentDate
()
+
" "
+
dto
.
getMainIntentionAppointmentTime
()));
infoDto
.
setIsTj
(
dto
.
getIsTj
());
return
infoDto
;
}
}
yd-csf-feign/src/main/java/com/yd/csf/feign/dto/excel/ApiExcelAppointmentPlanDto.java
0 → 100644
View file @
6b84620e
package
com
.
yd
.
csf
.
feign
.
dto
.
excel
;
import
com.yd.common.enums.NoYesEnum
;
import
com.yd.common.utils.DateUtil
;
import
lombok.Data
;
import
org.springframework.beans.BeanUtils
;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
import
java.util.List
;
/**
* Excel-预约资料及计划内容信息
*/
@Data
public
class
ApiExcelAppointmentPlanDto
{
//============以下是表字段============
/**
* 保险公司名称(冗余字段)(产品计划信息表)
*/
private
String
companyName
;
/**
* 基本計劃名稱(产品计划信息表,保险产品名称(中台保险产品名称,冗余))
*/
private
String
productName
;
/**
* 附约计划列表(产品计划-附加险信息表的列表)
*/
private
List
<
ApiExcelAdditionalDto
>
additionalDtoList
;
/**
* 保单币别(货币(字典))(产品计划信息表)
*/
private
String
currency
;
/**
* 付款频率(字典)(产品计划信息表)
*/
private
String
paymentFrequency
;
/**
* 保额(产品计划信息表)
*/
private
BigDecimal
sumInsured
;
/**
* 供款年期(字典)(产品计划信息表)
*/
private
String
paymentTerm
;
/**
* 主險每期保费金额(每期保费)(产品计划信息表)
*/
private
BigDecimal
eachIssuePremium
;
/**
* 是否預繳保費 (如是,請填寫首期保費以外的剩餘保費)(是否预缴保费: 0-否, 1-是(字典)(产品计划信息表))
*/
private
String
isPrepay
;
/**
* 首期保费缴付方式
* (銀聯/信用卡/銀行現金入數/現金/支票/電匯轉賬/銀行本票/銀行轉賬/銀行自動轉賬/其他)
* (首期付款方式(字典) )(产品计划信息表)
*/
private
String
initialPaymentMethod
;
/**
* 续期保费缴付方式
* (銀聯/信用卡/銀行現金入數/現金/支票/電匯轉賬/銀行本票/銀行轉賬/銀行自動轉賬/其他)
* (续期付款方式)(产品计划信息表)
*/
private
String
renewalPaymentMethod
;
/**
* 是否參加遞增保障權益/通脹加保權益
* (是否参加递增保障权益: 0-否, 1-是(字典))(产品计划信息表)
*/
private
String
isJoin
;
/**
* 是否需提前保单生效日
* (保单生效日)(产品计划信息表)
*/
private
LocalDateTime
policyEffectiveDate
;
/**
* 红利分配方式 (積存生息 / 現金支付 / 扣除保費 / 購買付清保險)
* 红利分配方式(字典)(产品计划信息表)
*/
private
String
dividendDistributionMethod
;
//============以下是excel显示的字段,同上============
/**
* 保险公司名称(冗余字段)(产品计划信息表)
*/
private
String
planCompanyName
;
/**
* 基本計劃名稱(产品计划信息表,保险产品名称(中台保险产品名称,冗余))
*/
private
String
planProductName
;
/**
* 保单币别(货币(字典))(产品计划信息表)
*/
private
String
planCurrency
;
/**
* 付款频率(字典)(产品计划信息表)
*/
private
String
planPaymentFrequency
;
/**
* 保额(产品计划信息表)
*/
private
BigDecimal
planSumInsured
;
/**
* 供款年期(字典)(产品计划信息表)
*/
private
String
planPaymentTerm
;
/**
* 主險每期保费金额(每期保费)(产品计划信息表)
*/
private
BigDecimal
planEachIssuePremium
;
/**
* 是否預繳保費 (如是,請填寫首期保費以外的剩餘保費)(是否预缴保费: 0-否, 1-是(字典)(产品计划信息表))
*/
private
String
planIsPrepay
;
/**
* 首期保费缴付方式
* (銀聯/信用卡/銀行現金入數/現金/支票/電匯轉賬/銀行本票/銀行轉賬/銀行自動轉賬/其他)
* (首期付款方式(字典) )(产品计划信息表)
*/
private
String
planInitialPaymentMethod
;
/**
* 续期保费缴付方式
* (銀聯/信用卡/銀行現金入數/現金/支票/電匯轉賬/銀行本票/銀行轉賬/銀行自動轉賬/其他)
* (续期付款方式)(产品计划信息表)
*/
private
String
planRenewalPaymentMethod
;
/**
* 是否參加遞增保障權益/通脹加保權益
* (是否参加递增保障权益: 0-否, 1-是(字典))(产品计划信息表)
*/
private
String
planIsJoin
;
/**
* 是否需提前保单生效日
* (保单生效日)(产品计划信息表)
*/
private
String
planPolicyEffectiveDate
;
/**
* 红利分配方式 (積存生息 / 現金支付 / 扣除保費 / 購買付清保險)
* 红利分配方式(字典)(产品计划信息表)
*/
private
String
planDividendDistributionMethod
;
/**
* 重新赋值ApiExcelAppointmentPlanDto
* @param dto
* @return
*/
public
static
ApiExcelAppointmentPlanDto
setApiExcelAppointmentPlanDto
(
ApiExcelAppointmentPlanDto
dto
)
{
ApiExcelAppointmentPlanDto
mainDto
=
new
ApiExcelAppointmentPlanDto
();
BeanUtils
.
copyProperties
(
dto
,
mainDto
);
mainDto
.
setPlanCompanyName
(
dto
.
getCompanyName
());
mainDto
.
setPlanCurrency
(
dto
.
getCurrency
());
mainDto
.
setPlanDividendDistributionMethod
(
dto
.
getDividendDistributionMethod
());
mainDto
.
setPlanEachIssuePremium
(
dto
.
getEachIssuePremium
());
mainDto
.
setPlanInitialPaymentMethod
(
dto
.
getInitialPaymentMethod
());
mainDto
.
setPlanIsJoin
(
dto
.
getIsJoin
());
mainDto
.
setPlanIsPrepay
(
NoYesEnum
.
getLabelByValue
(
dto
.
getIsPrepay
()));
//付款频率(字典)(产品计划信息表)TODO
mainDto
.
setPlanPaymentFrequency
(
dto
.
getPaymentFrequency
());
mainDto
.
setPlanPaymentTerm
(
dto
.
getPaymentTerm
());
//保单生效日(产品计划信息表)TODO
mainDto
.
setPlanPolicyEffectiveDate
(
DateUtil
.
getyyyyMMdd
(
dto
.
getPolicyEffectiveDate
()));
mainDto
.
setPlanProductName
(
dto
.
getProductName
());
//续期保费缴付方式(字典)(产品计划信息表)TODO
mainDto
.
setPlanRenewalPaymentMethod
(
dto
.
getRenewalPaymentMethod
());
mainDto
.
setPlanSumInsured
(
dto
.
getSumInsured
());
return
mainDto
;
}
}
yd-csf-feign/src/main/java/com/yd/csf/feign/dto/excel/ApiExcelBeneficiaryDto.java
0 → 100644
View file @
6b84620e
package
com
.
yd
.
csf
.
feign
.
dto
.
excel
;
import
com.yd.common.utils.DateUtil
;
import
lombok.Data
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.util.CollectionUtils
;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.stream.Collectors
;
/**
* 受益人资料
*/
@Data
public
class
ApiExcelBeneficiaryDto
{
//============以下是表字段============
/**
* 中文姓名(受益人信息表:名字)
*/
private
String
name
;
/**
* 英文姓名 (同护照)(受益人信息表:名字-英文)
*/
private
String
nameEn
;
/**
* 出生日期 (西元 年/月/日)(受益人信息表:出生日期)
*/
private
LocalDateTime
birthTime
;
/**
* 身份证号码(受益人信息表:证件号码)
*/
private
String
idNumber
;
/**
* 與受保人關係(受益人信息表:与受保人关系(字典))
*/
private
String
insurantRel
;
/**
* 受益比例 (%)(受益人信息表:受益比例)
*/
private
BigDecimal
benefitRatio
;
//============以下是excel显示的字段,同上============
/**
* 中文姓名(受益人信息表:名字)
*/
private
String
beneficiaryName
;
/**
* 英文姓名 (同护照)(受益人信息表:名字-英文)
*/
private
String
beneficiaryNameEn
;
/**
* 出生日期 (西元 年/月/日)(受益人信息表:出生日期)
*/
private
String
beneficiaryBirthTime
;
/**
* 身份证号码(受益人信息表:证件号码)
*/
private
String
beneficiaryIdNumber
;
/**
* 與受保人關係(受益人信息表:与受保人关系(字典))
*/
private
String
beneficiaryInsurantRel
;
/**
* 受益比例 (%)(受益人信息表:受益比例)
*/
private
BigDecimal
beneficiaryBenefitRatio
;
/**
* 重新赋值ApiExcelBeneficiaryDto
* @param list
* @return
*/
public
static
List
<
ApiExcelBeneficiaryDto
>
setApiExcelBeneficiaryDtoList
(
List
<
ApiExcelBeneficiaryDto
>
list
)
{
List
<
ApiExcelBeneficiaryDto
>
newList
=
new
ArrayList
<>();
if
(!
CollectionUtils
.
isEmpty
(
list
))
{
newList
=
list
.
stream
().
map
(
dto
->
{
ApiExcelBeneficiaryDto
newDto
=
new
ApiExcelBeneficiaryDto
();
BeanUtils
.
copyProperties
(
dto
,
newDto
);
newDto
.
setBeneficiaryBenefitRatio
(
dto
.
getBeneficiaryBenefitRatio
());
newDto
.
setBeneficiaryBirthTime
(
DateUtil
.
getyyyyMMdd
(
dto
.
getBirthTime
()));
newDto
.
setBeneficiaryIdNumber
(
newDto
.
getIdNumber
());
//與受保人關係(受益人信息表:与受保人关系(字典)) TODO
newDto
.
setBeneficiaryInsurantRel
(
newDto
.
getInsurantRel
());
newDto
.
setBeneficiaryName
(
newDto
.
getName
());
newDto
.
setBeneficiaryNameEn
(
newDto
.
getNameEn
());
return
newDto
;
}).
collect
(
Collectors
.
toList
());
}
return
newList
;
}
}
yd-csf-feign/src/main/java/com/yd/csf/feign/dto/excel/ApiExcelHkStayDto.java
0 → 100644
View file @
6b84620e
package
com
.
yd
.
csf
.
feign
.
dto
.
excel
;
import
com.yd.common.utils.DateUtil
;
import
com.yd.csf.feign.dto.appointment.ApiAppointmentInfoDto
;
import
lombok.Data
;
import
org.springframework.beans.BeanUtils
;
import
java.time.LocalDateTime
;
/**
* Excel-客戶在港/澳停留時間信息
*/
@Data
public
class
ApiExcelHkStayDto
{
//============以下是表字段============
/**
* 抵港(澳)日期及时间(到港时间)(预约信息主表)
*/
private
LocalDateTime
arrivalTime
;
/**
* 离港(澳)日期及时间(离港时间)(预约信息主表)
*/
private
LocalDateTime
departureTime
;
/**
* 会面地点(字典)(会面地点)
*/
private
String
meetingPoint
;
/**
* 客户在港期间联络电话区号(预约信息主表)
*/
private
String
hkMobileCode
;
/**
* 客户在港期间联络电话(预约信息主表)区号+号码
*/
private
String
hkMobile
;
/**
* 随行人员姓名(陪同顾问姓名(FNA Form有填写,可带入))(预约信息主表)
*/
private
String
accompanyName
;
/**
* 隨行人員聯絡電話区号(陪同顾问手机区号)(预约信息主表)
*/
private
String
accompanyMobileCode
;
/**
* 隨行人員聯絡電話(陪同顾问手机)(预约信息主表)区号+号码
*/
private
String
accompanyMobile
;
//============以下是excel显示的字段,同上============
/**
* 抵港(澳)日期及时间(到港时间)(预约信息主表)
*/
private
String
hkArrivalTime
;
/**
* 离港(澳)日期及时间(离港时间)(预约信息主表)
*/
private
String
hkDepartureTime
;
/**
* 会面地点(字典)(会面地点)
*/
private
String
hkMeetingPoint
;
/**
* 客户在港期间联络电话(预约信息主表)区号+号码
*/
private
String
hkHkMobile
;
/**
* 随行人员姓名(陪同顾问姓名(FNA Form有填写,可带入))(预约信息主表)
*/
private
String
hkAccompanyName
;
/**
* 隨行人員聯絡電話(陪同顾问手机)(预约信息主表)区号+号码
*/
private
String
hkAccompanyMobile
;
/**
* 重新赋值ApiExcelHkStayDto
* @param dto
* @return
*/
public
static
ApiExcelHkStayDto
setApiExcelHkStayDto
(
ApiExcelHkStayDto
dto
)
{
ApiExcelHkStayDto
stayDto
=
new
ApiExcelHkStayDto
();
BeanUtils
.
copyProperties
(
dto
,
stayDto
);
stayDto
.
setHkAccompanyMobile
(
dto
.
getAccompanyMobileCode
()
+
"-"
+
dto
.
getAccompanyMobile
());
stayDto
.
setHkAccompanyName
(
dto
.
getAccompanyName
());
//抵港(澳)日期及时间(到港时间)(预约信息主表)年-月-日 时:分 TODO
stayDto
.
setHkArrivalTime
(
DateUtil
.
getyyyyMMddHHmm
(
dto
.
getArrivalTime
()));
//离港(澳)日期及时间(离港时间)(预约信息主表)年-月-日 时:分 TODO
stayDto
.
setHkDepartureTime
(
DateUtil
.
getyyyyMMddHHmm
(
dto
.
getDepartureTime
()));
stayDto
.
setHkHkMobile
(
dto
.
getHkMobileCode
()
+
"-"
+
dto
.
getHkMobile
());
stayDto
.
setHkMeetingPoint
(
dto
.
getMeetingPoint
());
return
stayDto
;
}
/**
* ApiExcelHkStayDto构造ApiAppointmentInfoDto用于保存到表
* @param dto
* @return
*/
public
static
ApiAppointmentInfoDto
setApiAppointmentInfoDto
(
ApiExcelHkStayDto
dto
)
{
ApiAppointmentInfoDto
infoDto
=
new
ApiAppointmentInfoDto
();
return
infoDto
;
}
}
yd-csf-feign/src/main/java/com/yd/csf/feign/dto/excel/ApiExcelImportAdditionalDto.java
0 → 100644
View file @
6b84620e
package
com
.
yd
.
csf
.
feign
.
dto
.
excel
;
import
com.yd.oss.feign.annotation.ExcelField
;
import
lombok.Data
;
import
java.math.BigDecimal
;
@Data
public
class
ApiExcelImportAdditionalDto
{
/**
* 保险附加产品名称(中台保险附加产品名称,冗余)
*/
@ExcelField
(
name
=
"保险附加产品名称"
,
titleRow
=
20
,
titleCol
=
0
,
valueRow
=
20
,
valueCol
=
1
)
private
String
addProductName
;
/**
* 保费
*/
@ExcelField
(
name
=
"保险附加产品名称"
,
titleRow
=
20
,
titleCol
=
1
,
valueRow
=
20
,
valueCol
=
2
)
private
BigDecimal
addPremium
;
}
yd-csf-feign/src/main/java/com/yd/csf/feign/dto/excel/ApiExcelImportAppointmentDto.java
0 → 100644
View file @
6b84620e
package
com
.
yd
.
csf
.
feign
.
dto
.
excel
;
import
com.yd.oss.feign.annotation.ExcelCollection
;
import
com.yd.oss.feign.annotation.ExcelField
;
import
com.yd.oss.feign.annotation.ExcelSheet
;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.util.List
;
@Data
@ExcelSheet
(
sheetIndex
=
0
)
public
class
ApiExcelImportAppointmentDto
{
//============以下是预约主信息-Excel导入字段============
@ExcelField
(
name
=
"介紹人編號"
,
titleRow
=
2
,
titleCol
=
0
,
valueRow
=
2
,
valueCol
=
1
)
private
String
mainReferrerId
;
@ExcelField
(
name
=
"预约日期"
,
titleRow
=
2
,
titleCol
=
2
,
valueRow
=
2
,
valueCol
=
3
)
private
String
mainIntentionAppointmentDate
;
@ExcelField
(
name
=
"是否需体检"
,
titleRow
=
3
,
titleCol
=
0
,
valueRow
=
3
,
valueCol
=
1
)
private
String
mainIsTj
;
@ExcelField
(
name
=
"預約時間"
,
titleRow
=
3
,
titleCol
=
2
,
valueRow
=
3
,
valueCol
=
3
)
private
String
mainIntentionAppointmentTime
;
//============以下是客戶在港/澳停留時間信息-Excel导入字段============
/**
* 抵港(澳)日期及时间(到港时间)(预约信息主表)
*/
@ExcelField
(
name
=
"抵港(澳)日期及时间"
,
titleRow
=
6
,
titleCol
=
0
,
valueRow
=
6
,
valueCol
=
1
)
private
String
hkArrivalTime
;
/**
* 离港(澳)日期及时间(离港时间)(预约信息主表)
*/
@ExcelField
(
name
=
"离港(澳)日期及时间"
,
titleRow
=
6
,
titleCol
=
2
,
valueRow
=
6
,
valueCol
=
3
)
private
String
hkDepartureTime
;
/**
* 会面地点(字典)(会面地点)
*/
@ExcelField
(
name
=
"会面地点"
,
titleRow
=
7
,
titleCol
=
0
,
valueRow
=
7
,
valueCol
=
1
)
private
String
hkMeetingPoint
;
/**
* 客户在港期间联络电话(预约信息主表)区号+号码
*/
@ExcelField
(
name
=
"客户在港期间联络电话"
,
titleRow
=
7
,
titleCol
=
2
,
valueRow
=
7
,
valueCol
=
3
)
private
String
hkHkMobile
;
/**
* 随行人员姓名(陪同顾问姓名(FNA Form有填写,可带入))(预约信息主表)
*/
@ExcelField
(
name
=
"随行人员姓名"
,
titleRow
=
8
,
titleCol
=
0
,
valueRow
=
8
,
valueCol
=
1
)
private
String
hkAccompanyName
;
/**
* 隨行人員聯絡電話(陪同顾问手机)(预约信息主表)区号+号码
*/
@ExcelField
(
name
=
"隨行人員聯絡電話"
,
titleRow
=
8
,
titleCol
=
2
,
valueRow
=
8
,
valueCol
=
3
)
private
String
hkAccompanyMobile
;
//============以下是预约资料及计划内容信息-Excel导入字段============
/**
* 保险公司名称(冗余字段)(产品计划信息表)
*/
@ExcelField
(
name
=
"隨行人員聯絡電話"
,
titleRow
=
19
,
titleCol
=
0
,
valueRow
=
19
,
valueCol
=
1
)
private
String
planCompanyName
;
/**
* 基本計劃名稱(产品计划信息表,保险产品名称(中台保险产品名称,冗余))
*/
@ExcelField
(
name
=
"基本計劃名稱"
,
titleRow
=
19
,
titleCol
=
2
,
valueRow
=
19
,
valueCol
=
3
)
private
String
planProductName
;
/**
* 保单币别(货币(字典))(产品计划信息表)
*/
@ExcelField
(
name
=
"保单币别"
,
titleRow
=
22
,
titleCol
=
0
,
valueRow
=
22
,
valueCol
=
1
)
private
String
planCurrency
;
/**
* 付款频率(字典)(产品计划信息表)
*/
@ExcelField
(
name
=
"付款频率"
,
titleRow
=
22
,
titleCol
=
2
,
valueRow
=
22
,
valueCol
=
3
)
private
String
planPaymentFrequency
;
/**
* 投保额(产品计划信息表)
*/
@ExcelField
(
name
=
"投保额"
,
titleRow
=
23
,
titleCol
=
0
,
valueRow
=
23
,
valueCol
=
1
)
private
BigDecimal
planSumInsured
;
/**
* 供款年期(字典)(产品计划信息表)
*/
@ExcelField
(
name
=
"投保额"
,
titleRow
=
23
,
titleCol
=
2
,
valueRow
=
23
,
valueCol
=
3
)
private
String
planPaymentTerm
;
/**
* 主險每期保费金额(每期保费)(产品计划信息表)
*/
@ExcelField
(
name
=
"主險每期保费金额"
,
titleRow
=
24
,
titleCol
=
0
,
valueRow
=
24
,
valueCol
=
1
)
private
BigDecimal
planEachIssuePremium
;
/**
* 是否預繳保費 (如是,請填寫首期保費以外的剩餘保費)(是否预缴保费: 0-否, 1-是(字典)(产品计划信息表))
*/
@ExcelField
(
name
=
"是否預繳保費"
,
titleRow
=
24
,
titleCol
=
2
,
valueRow
=
24
,
valueCol
=
3
)
private
String
planIsPrepay
;
/**
* 首期保费缴付方式
* (銀聯/信用卡/銀行現金入數/現金/支票/電匯轉賬/銀行本票/銀行轉賬/銀行自動轉賬/其他)
* (首期付款方式(字典) )(产品计划信息表)
*/
@ExcelField
(
name
=
"是否預繳保費"
,
titleRow
=
25
,
titleCol
=
0
,
valueRow
=
25
,
valueCol
=
1
)
private
String
planInitialPaymentMethod
;
/**
* 续期保费缴付方式
* (銀聯/信用卡/銀行現金入數/現金/支票/電匯轉賬/銀行本票/銀行轉賬/銀行自動轉賬/其他)
* (续期付款方式)(产品计划信息表)
*/
@ExcelField
(
name
=
"续期保费缴付方式"
,
titleRow
=
25
,
titleCol
=
1
,
valueRow
=
25
,
valueCol
=
2
)
private
String
planRenewalPaymentMethod
;
/**
* 是否參加遞增保障權益/通脹加保權益
* (是否参加递增保障权益: 0-否, 1-是(字典))(产品计划信息表)
*/
@ExcelField
(
name
=
"是否參加遞增保障權益"
,
titleRow
=
26
,
titleCol
=
0
,
valueRow
=
26
,
valueCol
=
1
)
private
String
planIsJoin
;
/**
* 是否需提前保单生效日
* (保单生效日)(产品计划信息表)
*/
@ExcelField
(
name
=
"是否需提前保单生效日"
,
titleRow
=
26
,
titleCol
=
2
,
valueRow
=
26
,
valueCol
=
3
)
private
String
planPolicyEffectiveDate
;
/**
* 红利分配方式 (積存生息 / 現金支付 / 扣除保費 / 購買付清保險)
* 红利分配方式(字典)(产品计划信息表)
*/
@ExcelField
(
name
=
"红利分配方式"
,
titleRow
=
27
,
titleCol
=
0
,
valueRow
=
27
,
valueCol
=
3
)
private
String
planDividendDistributionMethod
;
//============以下是保单持有人资料(投保人信息)-Excel导入字段============
/**
* 中文姓名(投保人信息表:名字)
*/
@ExcelField
(
name
=
"中文姓名"
,
titleRow
=
30
,
titleCol
=
0
,
valueRow
=
30
,
valueCol
=
1
)
private
String
policyholderName
;
/**
* 英文姓名 (同护照)(投保人信息表:名字-英文)
*/
@ExcelField
(
name
=
"英文姓名 (同护照)"
,
titleRow
=
30
,
titleCol
=
2
,
valueRow
=
30
,
valueCol
=
3
)
private
String
policyholderNameEn
;
/**
* 性别(投保人信息表:性别)
*/
@ExcelField
(
name
=
"性别"
,
titleRow
=
31
,
titleCol
=
0
,
valueRow
=
31
,
valueCol
=
1
)
private
String
policyholderGender
;
/**
* 婚姻状况 (單身 / 已婚 / 離異/ 喪偶)(投保人信息表:婚姻状况(字典))
*/
@ExcelField
(
name
=
"婚姻状况"
,
titleRow
=
31
,
titleCol
=
2
,
valueRow
=
31
,
valueCol
=
3
)
private
String
policyholderMaritalStatus
;
/**
* 出生日期 (西元 年/月/日)(投保人信息表:出生日期)
*/
@ExcelField
(
name
=
"出生日期"
,
titleRow
=
32
,
titleCol
=
0
,
valueRow
=
32
,
valueCol
=
1
)
private
String
policyholderBirthday
;
/**
* 出生地 (省/市)(投保人信息表:出生地(省市))
*/
@ExcelField
(
name
=
"出生地 (省/市)"
,
titleRow
=
32
,
titleCol
=
2
,
valueRow
=
32
,
valueCol
=
3
)
private
String
policyholderBirthplace
;
/**
* 國籍(投保人信息表:国籍)
*/
@ExcelField
(
name
=
"國籍"
,
titleRow
=
33
,
titleCol
=
0
,
valueRow
=
33
,
valueCol
=
1
)
private
String
policyholderNationality
;
/**
* 身份证号码(投保人信息表:证件号码)
*/
@ExcelField
(
name
=
"身份证号码"
,
titleRow
=
33
,
titleCol
=
2
,
valueRow
=
33
,
valueCol
=
3
)
private
String
policyholderIdNumber
;
/**
* 護照號碼(投保人信息表:护照号码)
*/
@ExcelField
(
name
=
"護照號碼"
,
titleRow
=
34
,
titleCol
=
0
,
valueRow
=
34
,
valueCol
=
1
)
private
String
policyholderPassportNo
;
/**
* 港澳通行证号码(投保人信息表:通行证号码)
*/
@ExcelField
(
name
=
"港澳通行证号码"
,
titleRow
=
34
,
titleCol
=
2
,
valueRow
=
34
,
valueCol
=
3
)
private
String
policyholderPassNo
;
/**
* 永久(住宅)地址(投保人信息表:居住地址)
*/
@ExcelField
(
name
=
"永久(住宅)地址"
,
titleRow
=
35
,
titleCol
=
0
,
valueRow
=
35
,
valueCol
=
1
)
private
String
policyholderResidentialAddress
;
/**
* 通訊地址(投保人信息表:通讯地址)
*/
@ExcelField
(
name
=
"通訊地址"
,
titleRow
=
36
,
titleCol
=
0
,
valueRow
=
36
,
valueCol
=
1
)
private
String
policyholderMailingAddress
;
/**
* 聯絡電話(手機)(投保人信息表:移动电话) 区号+号码
*/
@ExcelField
(
name
=
"聯絡電話(手機)"
,
titleRow
=
37
,
titleCol
=
0
,
valueRow
=
37
,
valueCol
=
1
)
private
String
policyholderMobile
;
/**
* 聯絡電話(住宅) 区号+号码 TODO
*/
@ExcelField
(
name
=
"聯絡電話(住宅)"
,
titleRow
=
37
,
titleCol
=
2
,
valueRow
=
37
,
valueCol
=
3
)
private
String
policyholderResidenceMobile
;
/**
* 电邮地址(投保人信息表:邮箱)
*/
@ExcelField
(
name
=
"聯絡電話(住宅)"
,
titleRow
=
38
,
titleCol
=
0
,
valueRow
=
38
,
valueCol
=
1
)
private
String
policyholderEmail
;
/**
* 教育程度 (大學或以上/大專/中學/小學或以下)(投保人信息表:教育程度(字典))
*/
@ExcelField
(
name
=
"教育程度"
,
titleRow
=
39
,
titleCol
=
0
,
valueRow
=
39
,
valueCol
=
1
)
private
String
policyholderEducationLevel
;
/**
* 公司名称(投保人信息表:公司名称)
*/
@ExcelField
(
name
=
"公司名称"
,
titleRow
=
40
,
titleCol
=
0
,
valueRow
=
40
,
valueCol
=
1
)
private
String
policyholderCompanyName
;
/**
* 工作年期(僅限數字)(投保人信息表:总工作年期)
*/
@ExcelField
(
name
=
"工作年期(僅限數字)"
,
titleRow
=
40
,
titleCol
=
2
,
valueRow
=
40
,
valueCol
=
3
)
private
BigDecimal
policyholderTotalWorkingYears
;
/**
* 职位及日常职务(投保人信息表:职位)
*/
@ExcelField
(
name
=
"工作年期(僅限數字)"
,
titleRow
=
41
,
titleCol
=
0
,
valueRow
=
41
,
valueCol
=
1
)
private
String
policyholderPosition
;
/**
* 公司业务性质(投保人信息表:TODO)
*/
@ExcelField
(
name
=
"公司业务性质"
,
titleRow
=
41
,
titleCol
=
2
,
valueRow
=
41
,
valueCol
=
3
)
private
String
policyholderCompanyNature
;
/**
* 公司地址(投保人信息表:公司地址)
*/
@ExcelField
(
name
=
"公司地址"
,
titleRow
=
42
,
titleCol
=
0
,
valueRow
=
42
,
valueCol
=
1
)
private
String
policyholderCompanyAddress
;
/**
* 现时每月收入 (HKD)(投保人信息表:现时每月收入)
*/
@ExcelField
(
name
=
"现时每月收入 (HKD)"
,
titleRow
=
43
,
titleCol
=
0
,
valueRow
=
43
,
valueCol
=
1
)
private
BigDecimal
policyholderCurrentMonthlyIncome
;
//============以下是受保人资料 (如與保單持有人為同一人無須填寫)-Excel导入字段============
/**
* 與投保人關系(受保人信息表:与投保人关系(字典))
*/
@ExcelField
(
name
=
"與投保人關系"
,
titleRow
=
46
,
titleCol
=
0
,
valueRow
=
46
,
valueCol
=
1
)
private
String
insurantPolicyholderRel
;
/**
* 中文姓名(受保人信息表:名字)
*/
@ExcelField
(
name
=
"中文姓名"
,
titleRow
=
47
,
titleCol
=
0
,
valueRow
=
47
,
valueCol
=
1
)
private
String
insurantName
;
/**
* 英文姓名 (同护照)(受保人信息表:名字-英文)
*/
@ExcelField
(
name
=
"英文姓名"
,
titleRow
=
47
,
titleCol
=
2
,
valueRow
=
47
,
valueCol
=
3
)
private
String
insurantNameEn
;
/**
* 性别(受保人信息表:性别)
*/
@ExcelField
(
name
=
"性别"
,
titleRow
=
48
,
titleCol
=
0
,
valueRow
=
48
,
valueCol
=
1
)
private
String
insurantGender
;
/**
* 婚姻状况 (單身 / 已婚 / 離異/ 喪偶)(受保人信息表:婚姻状况(字典))
*/
@ExcelField
(
name
=
"婚姻状况"
,
titleRow
=
48
,
titleCol
=
2
,
valueRow
=
48
,
valueCol
=
3
)
private
String
insurantMaritalStatus
;
/**
* 出生日期 (西元 年/月/日)(受保人信息表:出生日期)
*/
@ExcelField
(
name
=
"出生日期"
,
titleRow
=
49
,
titleCol
=
0
,
valueRow
=
49
,
valueCol
=
1
)
private
String
insurantBirthday
;
/**
* 出生地 (省/市)(受保人信息表:出生地(省市))
*/
@ExcelField
(
name
=
"出生地"
,
titleRow
=
49
,
titleCol
=
2
,
valueRow
=
49
,
valueCol
=
3
)
private
String
insurantBirthplace
;
/**
* 國籍(受保人信息表:国籍)
*/
@ExcelField
(
name
=
"國籍"
,
titleRow
=
50
,
titleCol
=
0
,
valueRow
=
50
,
valueCol
=
1
)
private
String
insurantNationality
;
/**
* 身份证号码(受保人信息表:证件号码)
*/
@ExcelField
(
name
=
"身份证号码"
,
titleRow
=
50
,
titleCol
=
2
,
valueRow
=
50
,
valueCol
=
3
)
private
String
insurantIdNumber
;
/**
* 護照號碼(受保人信息表:护照号码)
*/
@ExcelField
(
name
=
"護照號碼"
,
titleRow
=
51
,
titleCol
=
0
,
valueRow
=
51
,
valueCol
=
1
)
private
String
insurantPassportNo
;
/**
* 港澳通行证号码(受保人信息表:通行证号码)
*/
@ExcelField
(
name
=
"港澳通行证号码"
,
titleRow
=
51
,
titleCol
=
2
,
valueRow
=
51
,
valueCol
=
3
)
private
String
insurantPassNo
;
/**
* 永久(住宅)地址(受保人信息表:居住地址)
*/
@ExcelField
(
name
=
"永久(住宅)地址"
,
titleRow
=
52
,
titleCol
=
0
,
valueRow
=
52
,
valueCol
=
1
)
private
String
insurantResidentialAddress
;
/**
* 通訊地址(受保人信息表:通讯地址)
*/
@ExcelField
(
name
=
"通訊地址"
,
titleRow
=
53
,
titleCol
=
0
,
valueRow
=
53
,
valueCol
=
1
)
private
String
insurantMailingAddress
;
/**
* 聯絡電話(手機)(受保人信息表:移动电话) 区号+号码
*/
@ExcelField
(
name
=
"聯絡電話(手機)"
,
titleRow
=
54
,
titleCol
=
0
,
valueRow
=
54
,
valueCol
=
1
)
private
String
insurantMobile
;
/**
* 聯絡電話(住宅) 区号+号码 TODO
*/
@ExcelField
(
name
=
"聯絡電話(住宅)"
,
titleRow
=
54
,
titleCol
=
2
,
valueRow
=
54
,
valueCol
=
3
)
private
String
insurantResidenceMobile
;
/**
* 电邮地址(受保人信息表:邮箱)
*/
@ExcelField
(
name
=
"电邮地址"
,
titleRow
=
55
,
titleCol
=
0
,
valueRow
=
55
,
valueCol
=
1
)
private
String
insurantEmail
;
/**
* 教育程度 (大學或以上/大專/中學/小學或以下)(受保人信息表:教育程度(字典))
*/
@ExcelField
(
name
=
"教育程度"
,
titleRow
=
56
,
titleCol
=
0
,
valueRow
=
56
,
valueCol
=
1
)
private
String
insurantEducationLevel
;
/**
* 公司名称(受保人信息表:公司名称)
*/
@ExcelField
(
name
=
"公司名称"
,
titleRow
=
57
,
titleCol
=
0
,
valueRow
=
57
,
valueCol
=
1
)
private
String
insurantCompanyName
;
/**
* 工作年期(僅限數字)(受保人信息表:总工作年期)
*/
@ExcelField
(
name
=
"工作年期(僅限數字)"
,
titleRow
=
57
,
titleCol
=
2
,
valueRow
=
57
,
valueCol
=
3
)
private
BigDecimal
insurantTotalWorkingYears
;
/**
* 职位及日常职务(受保人信息表:职位)
*/
@ExcelField
(
name
=
"职位及日常职务"
,
titleRow
=
58
,
titleCol
=
0
,
valueRow
=
58
,
valueCol
=
1
)
private
String
insurantPosition
;
/**
* 公司业务性质(受保人信息表:TODO)
*/
@ExcelField
(
name
=
"公司业务性质"
,
titleRow
=
58
,
titleCol
=
2
,
valueRow
=
58
,
valueCol
=
3
)
private
String
insurantPompanyNature
;
/**
* 公司地址(受保人信息表:公司地址)
*/
@ExcelField
(
name
=
"公司地址"
,
titleRow
=
59
,
titleCol
=
0
,
valueRow
=
59
,
valueCol
=
1
)
private
String
insurantCompanyAddress
;
/**
* 现时每月收入 (HKD)(受保人信息表:现时每月收入)
*/
@ExcelField
(
name
=
"现时每月收入 (HKD)"
,
titleRow
=
60
,
titleCol
=
0
,
valueRow
=
60
,
valueCol
=
1
)
private
BigDecimal
insurantCurrentMonthlyIncome
;
//============以下是第二持有人资料-Excel导入字段============
/**
* 中文姓名(第二持有人信息表:名字)
*/
@ExcelField
(
name
=
"中文姓名"
,
titleRow
=
85
,
titleCol
=
0
,
valueRow
=
85
,
valueCol
=
1
)
private
String
secondHolderName
;
/**
* 英文姓名(同护照)(第二持有人信息表:名字-英文)
*/
@ExcelField
(
name
=
"英文姓名(同护照)"
,
titleRow
=
85
,
titleCol
=
2
,
valueRow
=
85
,
valueCol
=
3
)
private
String
secondHolderNameEn
;
/**
* 出生日期(第二持有人信息表:出生日期)
*/
@ExcelField
(
name
=
"出生日期"
,
titleRow
=
86
,
titleCol
=
0
,
valueRow
=
86
,
valueCol
=
1
)
private
String
secondHolderBirthTime
;
/**
* 身份证号码(第二持有人信息表:证件号码)
*/
@ExcelField
(
name
=
"身份证号码"
,
titleRow
=
86
,
titleCol
=
2
,
valueRow
=
86
,
valueCol
=
3
)
private
String
secondHolderIdNumber
;
/**
* 性別(第二持有人信息表:性别)
*/
@ExcelField
(
name
=
"性別"
,
titleRow
=
87
,
titleCol
=
0
,
valueRow
=
87
,
valueCol
=
1
)
private
String
secondHolderGender
;
/**
* 與受保人關係(第二持有人信息表:与受保人关系(字典))
*/
@ExcelField
(
name
=
"與受保人關係"
,
titleRow
=
87
,
titleCol
=
1
,
valueRow
=
87
,
valueCol
=
2
)
private
String
secondHolderInsurantRel
;
/**
* 受益人列表信息
*/
@ExcelCollection
(
type
=
ApiExcelImportBeneficiaryDto
.
class
,
startRow
=
64
)
private
List
<
ApiExcelImportBeneficiaryDto
>
beneficiaryDtoList
;
/**
* 附加计划(附加险)列表信息
*/
@ExcelCollection
(
type
=
ApiExcelImportAdditionalDto
.
class
,
startRow
=
20
)
private
List
<
ApiExcelImportAdditionalDto
>
additionalDtoList
;
}
yd-csf-feign/src/main/java/com/yd/csf/feign/dto/excel/ApiExcelImportBeneficiaryDto.java
0 → 100644
View file @
6b84620e
package
com
.
yd
.
csf
.
feign
.
dto
.
excel
;
import
com.yd.oss.feign.annotation.ExcelField
;
import
lombok.Data
;
import
java.math.BigDecimal
;
/**
* Excel导入-受益人列表信息
*/
@Data
public
class
ApiExcelImportBeneficiaryDto
{
/**
* 中文姓名(受益人信息表:名字)
*/
@ExcelField
(
name
=
"中文姓名"
,
titleRow
=
64
,
titleCol
=
0
,
valueRow
=
64
,
valueCol
=
1
)
private
String
beneficiaryName
;
/**
* 英文姓名 (同护照)(受益人信息表:名字-英文)
*/
@ExcelField
(
name
=
"英文姓名"
,
titleRow
=
64
,
titleCol
=
2
,
valueRow
=
64
,
valueCol
=
3
)
private
String
beneficiaryNameEn
;
/**
* 出生日期 (西元 年/月/日)(受益人信息表:出生日期)
*/
@ExcelField
(
name
=
"出生日期"
,
titleRow
=
65
,
titleCol
=
0
,
valueRow
=
65
,
valueCol
=
1
)
private
String
beneficiaryBirthTime
;
/**
* 身份证号码(受益人信息表:证件号码)
*/
@ExcelField
(
name
=
"身份证号码"
,
titleRow
=
65
,
titleCol
=
2
,
valueRow
=
65
,
valueCol
=
3
)
private
String
beneficiaryIdNumber
;
/**
* 與受保人關係(受益人信息表:与受保人关系(字典))
*/
@ExcelField
(
name
=
"與受保人關係"
,
titleRow
=
66
,
titleCol
=
0
,
valueRow
=
66
,
valueCol
=
1
)
private
String
beneficiaryInsurantRel
;
/**
* 受益比例 (%)(受益人信息表:受益比例)
*/
@ExcelField
(
name
=
"受益比例 (%)"
,
titleRow
=
66
,
titleCol
=
2
,
valueRow
=
66
,
valueCol
=
3
)
private
BigDecimal
beneficiaryBenefitRatio
;
}
yd-csf-feign/src/main/java/com/yd/csf/feign/dto/excel/ApiExcelImportHealthDto.java
0 → 100644
View file @
6b84620e
package
com
.
yd
.
csf
.
feign
.
dto
.
excel
;
import
com.yd.oss.feign.annotation.ExcelSheet
;
import
lombok.Data
;
@Data
@ExcelSheet
(
sheetIndex
=
1
)
public
class
ApiExcelImportHealthDto
{
}
yd-csf-feign/src/main/java/com/yd/csf/feign/dto/excel/ApiExcelInsurantDto.java
0 → 100644
View file @
6b84620e
package
com
.
yd
.
csf
.
feign
.
dto
.
excel
;
import
com.yd.common.utils.DateUtil
;
import
lombok.Data
;
import
org.springframework.beans.BeanUtils
;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
/**
* 受保人资料 (如與保單持有人為同一人無須填寫)
*/
@Data
public
class
ApiExcelInsurantDto
{
//============以下是表字段============
/**
* 與投保人關系(受保人信息表:与投保人关系(字典))
*/
private
String
policyholderRel
;
/**
* 中文姓名(受保人信息表:名字)
*/
private
String
name
;
/**
* 英文姓名 (同护照)(受保人信息表:名字-英文)
*/
private
String
nameEn
;
/**
* 性别(受保人信息表:性别)
*/
private
String
gender
;
/**
* 婚姻状况 (單身 / 已婚 / 離異/ 喪偶)(受保人信息表:婚姻状况(字典))
*/
private
String
maritalStatus
;
/**
* 出生日期 (西元 年/月/日)(受保人信息表:出生日期)
*/
private
LocalDateTime
birthday
;
/**
* 出生地 (省/市)(受保人信息表:出生地(省市))
*/
private
String
birthplace
;
/**
* 國籍(受保人信息表:国籍)
*/
private
String
nationality
;
/**
* 身份证号码(受保人信息表:证件号码)
*/
private
String
idNumber
;
/**
* 護照號碼(受保人信息表:护照号码)
*/
private
String
passportNo
;
/**
* 港澳通行证号码(受保人信息表:通行证号码)
*/
private
String
passNo
;
/**
* 永久(住宅)地址(受保人信息表:居住地址)
*/
private
String
residentialAddress
;
/**
* 通訊地址(受保人信息表:通讯地址)
*/
private
String
mailingAddress
;
/**
* 聯絡電話(手機)区号(受保人信息表:移动电话区号)
*/
private
String
mobileCode
;
/**
* 聯絡電話(手機)(受保人信息表:移动电话) 区号+号码
*/
private
String
mobile
;
/**
* 聯絡電話(住宅) 区号+号码 TODO
*/
private
String
residenceMobile
;
/**
* 电邮地址(受保人信息表:邮箱)
*/
private
String
email
;
/**
* 教育程度 (大學或以上/大專/中學/小學或以下)(受保人信息表:教育程度(字典))
*/
private
String
educationLevel
;
/**
* 公司名称(受保人信息表:公司名称)
*/
private
String
companyName
;
/**
* 工作年期(僅限數字)(受保人信息表:总工作年期)
*/
private
BigDecimal
totalWorkingYears
;
/**
* 职位及日常职务(受保人信息表:职位)
*/
private
String
position
;
/**
* 公司业务性质(受保人信息表:TODO)
*/
private
String
companyNature
;
/**
* 公司地址(受保人信息表:公司地址)
*/
private
String
companyAddress
;
/**
* 现时每月收入 (HKD)(受保人信息表:现时每月收入)
*/
private
BigDecimal
currentMonthlyIncome
;
//============以下是excel显示的字段,同上============
/**
* 與投保人關系(受保人信息表:与投保人关系(字典))
*/
private
String
insurantPolicyholderRel
;
/**
* 中文姓名(受保人信息表:名字)
*/
private
String
insurantName
;
/**
* 英文姓名 (同护照)(受保人信息表:名字-英文)
*/
private
String
insurantNameEn
;
/**
* 性别(受保人信息表:性别)
*/
private
String
insurantGender
;
/**
* 婚姻状况 (單身 / 已婚 / 離異/ 喪偶)(受保人信息表:婚姻状况(字典))
*/
private
String
insurantMaritalStatus
;
/**
* 出生日期 (西元 年/月/日)(受保人信息表:出生日期)
*/
private
String
insurantBirthday
;
/**
* 出生地 (省/市)(受保人信息表:出生地(省市))
*/
private
String
insurantBirthplace
;
/**
* 國籍(受保人信息表:国籍)
*/
private
String
insurantNationality
;
/**
* 身份证号码(受保人信息表:证件号码)
*/
private
String
insurantIdNumber
;
/**
* 護照號碼(受保人信息表:护照号码)
*/
private
String
insurantPassportNo
;
/**
* 港澳通行证号码(受保人信息表:通行证号码)
*/
private
String
insurantPassNo
;
/**
* 永久(住宅)地址(受保人信息表:居住地址)
*/
private
String
insurantResidentialAddress
;
/**
* 通訊地址(受保人信息表:通讯地址)
*/
private
String
insurantMailingAddress
;
/**
* 聯絡電話(手機)(受保人信息表:移动电话) 区号+号码
*/
private
String
insurantMobile
;
/**
* 聯絡電話(住宅) 区号+号码 TODO
*/
private
String
insurantResidenceMobile
;
/**
* 电邮地址(受保人信息表:邮箱)
*/
private
String
insurantEmail
;
/**
* 教育程度 (大學或以上/大專/中學/小學或以下)(受保人信息表:教育程度(字典))
*/
private
String
insurantEducationLevel
;
/**
* 公司名称(受保人信息表:公司名称)
*/
private
String
insurantCompanyName
;
/**
* 工作年期(僅限數字)(受保人信息表:总工作年期)
*/
private
BigDecimal
insurantTotalWorkingYears
;
/**
* 职位及日常职务(受保人信息表:职位)
*/
private
String
insurantPosition
;
/**
* 公司业务性质(受保人信息表:TODO)
*/
private
String
insurantPompanyNature
;
/**
* 公司地址(受保人信息表:公司地址)
*/
private
String
insurantCompanyAddress
;
/**
* 现时每月收入 (HKD)(受保人信息表:现时每月收入)
*/
private
BigDecimal
insurantCurrentMonthlyIncome
;
/**
* 重新赋值ApiExcelHkStayDto
* @param dto
* @return
*/
public
static
ApiExcelInsurantDto
setApiExcelInsurantDto
(
ApiExcelInsurantDto
dto
)
{
ApiExcelInsurantDto
insurantDto
=
new
ApiExcelInsurantDto
();
BeanUtils
.
copyProperties
(
dto
,
insurantDto
);
insurantDto
.
setInsurantBirthday
(
DateUtil
.
getyyyyMMdd
(
dto
.
getBirthday
()));
//出生地 (省/市)(受保人信息表:出生地(省市))TODO
insurantDto
.
setInsurantBirthplace
(
dto
.
getBirthplace
());
insurantDto
.
setInsurantCompanyAddress
(
dto
.
getCompanyAddress
());
insurantDto
.
setInsurantCompanyName
(
dto
.
getCompanyName
());
insurantDto
.
setInsurantCurrentMonthlyIncome
(
dto
.
getCurrentMonthlyIncome
());
//教育程度 (大學或以上/大專/中學/小學或以下)(受保人信息表:教育程度(字典))TODO
insurantDto
.
setInsurantEducationLevel
(
dto
.
getEducationLevel
());
insurantDto
.
setInsurantEmail
(
dto
.
getEmail
());
//性别(受保人信息表:性别 字典)TODO
insurantDto
.
setInsurantGender
(
dto
.
getGender
());
insurantDto
.
setInsurantIdNumber
(
dto
.
getIdNumber
());
insurantDto
.
setInsurantMailingAddress
(
dto
.
getMailingAddress
());
//婚姻状况 (單身 / 已婚 / 離異/ 喪偶)(受保人信息表:婚姻状况(字典))TODO
insurantDto
.
setInsurantMaritalStatus
(
dto
.
getMaritalStatus
());
insurantDto
.
setInsurantMobile
(
dto
.
getMobileCode
()
+
"-"
+
dto
.
getMobile
());
insurantDto
.
setInsurantName
(
dto
.
getName
());
insurantDto
.
setInsurantNameEn
(
dto
.
getNameEn
());
//國籍(受保人信息表:国籍)字典 TODO
insurantDto
.
setInsurantNationality
(
dto
.
getNationality
());
insurantDto
.
setInsurantPassNo
(
dto
.
getPassNo
());
insurantDto
.
setInsurantPassportNo
(
dto
.
getPassportNo
());
//與投保人關系(受保人信息表:与投保人关系(字典)) TODO
insurantDto
.
setInsurantPolicyholderRel
(
dto
.
getPolicyholderRel
());
//公司业务性质(受保人信息表:TODO)
insurantDto
.
setInsurantPompanyNature
(
dto
.
getInsurantPompanyNature
());
insurantDto
.
setInsurantPosition
(
dto
.
getPosition
());
//聯絡電話(住宅) 区号+号码 TODO
insurantDto
.
setInsurantResidenceMobile
(
dto
.
getResidenceMobile
());
insurantDto
.
setInsurantResidentialAddress
(
dto
.
getResidentialAddress
());
insurantDto
.
setInsurantTotalWorkingYears
(
dto
.
getTotalWorkingYears
());
return
insurantDto
;
}
}
yd-csf-feign/src/main/java/com/yd/csf/feign/dto/excel/ApiExcelPolicyholderDto.java
0 → 100644
View file @
6b84620e
package
com
.
yd
.
csf
.
feign
.
dto
.
excel
;
import
com.yd.common.utils.DateUtil
;
import
lombok.Data
;
import
org.springframework.beans.BeanUtils
;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
/**
* 保单持有人资料(投保人信息)
*/
@Data
public
class
ApiExcelPolicyholderDto
{
//============以下是表字段============
/**
* 中文姓名(投保人信息表:名字)
*/
private
String
name
;
/**
* 英文姓名 (同护照)(投保人信息表:名字-英文)
*/
private
String
nameEn
;
/**
* 性别(投保人信息表:性别)
*/
private
String
gender
;
/**
* 婚姻状况 (單身 / 已婚 / 離異/ 喪偶)(投保人信息表:婚姻状况(字典))
*/
private
String
maritalStatus
;
/**
* 出生日期 (西元 年/月/日)(投保人信息表:出生日期)
*/
private
LocalDateTime
birthday
;
/**
* 出生地 (省/市)(投保人信息表:出生地(省市))
*/
private
String
birthplace
;
/**
* 國籍(投保人信息表:国籍)
*/
private
String
nationality
;
/**
* 身份证号码(投保人信息表:证件号码)
*/
private
String
idNumber
;
/**
* 護照號碼(投保人信息表:护照号码)
*/
private
String
passportNo
;
/**
* 港澳通行证号码(投保人信息表:通行证号码)
*/
private
String
passNo
;
/**
* 永久(住宅)地址(投保人信息表:居住地址)
*/
private
String
residentialAddress
;
/**
* 通訊地址(投保人信息表:通讯地址)
*/
private
String
mailingAddress
;
/**
* 聯絡電話(手機)区号(投保人信息表:移动电话区号)
*/
private
String
mobileCode
;
/**
* 聯絡電話(手機)(投保人信息表:移动电话) 区号+号码
*/
private
String
mobile
;
/**
* 聯絡電話(住宅) 区号+号码 TODO
*/
private
String
residenceMobile
;
/**
* 电邮地址(投保人信息表:邮箱)
*/
private
String
email
;
/**
* 教育程度 (大學或以上/大專/中學/小學或以下)(投保人信息表:教育程度(字典))
*/
private
String
educationLevel
;
/**
* 公司名称(投保人信息表:公司名称)
*/
private
String
companyName
;
/**
* 工作年期(僅限數字)(投保人信息表:总工作年期)
*/
private
BigDecimal
totalWorkingYears
;
/**
* 职位及日常职务(投保人信息表:职位)
*/
private
String
position
;
/**
* 公司业务性质(投保人信息表:TODO)
*/
private
String
companyNature
;
/**
* 公司地址(投保人信息表:公司地址)
*/
private
String
companyAddress
;
/**
* 现时每月收入 (HKD)(投保人信息表:现时每月收入)
*/
private
BigDecimal
currentMonthlyIncome
;
//============以下是excel显示的字段,同上============
/**
* 中文姓名(投保人信息表:名字)
*/
private
String
policyholderName
;
/**
* 英文姓名 (同护照)(投保人信息表:名字-英文)
*/
private
String
policyholderNameEn
;
/**
* 性别(投保人信息表:性别)
*/
private
String
policyholderGender
;
/**
* 婚姻状况 (單身 / 已婚 / 離異/ 喪偶)(投保人信息表:婚姻状况(字典))
*/
private
String
policyholderMaritalStatus
;
/**
* 出生日期 (西元 年/月/日)(投保人信息表:出生日期)
*/
private
String
policyholderBirthday
;
/**
* 出生地 (省/市)(投保人信息表:出生地(省市))
*/
private
String
policyholderBirthplace
;
/**
* 國籍(投保人信息表:国籍)
*/
private
String
policyholderNationality
;
/**
* 身份证号码(投保人信息表:证件号码)
*/
private
String
policyholderIdNumber
;
/**
* 護照號碼(投保人信息表:护照号码)
*/
private
String
policyholderPassportNo
;
/**
* 港澳通行证号码(投保人信息表:通行证号码)
*/
private
String
policyholderPassNo
;
/**
* 永久(住宅)地址(投保人信息表:居住地址)
*/
private
String
policyholderResidentialAddress
;
/**
* 通訊地址(投保人信息表:通讯地址)
*/
private
String
policyholderMailingAddress
;
/**
* 聯絡電話(手機)(投保人信息表:移动电话) 区号+号码
*/
private
String
policyholderMobile
;
/**
* 聯絡電話(住宅) 区号+号码 TODO
*/
private
String
policyholderResidenceMobile
;
/**
* 电邮地址(投保人信息表:邮箱)
*/
private
String
policyholderEmail
;
/**
* 教育程度 (大學或以上/大專/中學/小學或以下)(投保人信息表:教育程度(字典))
*/
private
String
policyholderEducationLevel
;
/**
* 公司名称(投保人信息表:公司名称)
*/
private
String
policyholderCompanyName
;
/**
* 工作年期(僅限數字)(投保人信息表:总工作年期)
*/
private
BigDecimal
policyholderTotalWorkingYears
;
/**
* 职位及日常职务(投保人信息表:职位)
*/
private
String
policyholderPosition
;
/**
* 公司业务性质(投保人信息表:TODO)
*/
private
String
policyholderCompanyNature
;
/**
* 公司地址(投保人信息表:公司地址)
*/
private
String
policyholderCompanyAddress
;
/**
* 现时每月收入 (HKD)(投保人信息表:现时每月收入)
*/
private
BigDecimal
policyholderCurrentMonthlyIncome
;
/**
* 重新赋值ApiExcelPolicyholderDto
* @param dto
* @return
*/
public
static
ApiExcelPolicyholderDto
setApiExcelPolicyholderDto
(
ApiExcelPolicyholderDto
dto
)
{
ApiExcelPolicyholderDto
insurantDto
=
new
ApiExcelPolicyholderDto
();
BeanUtils
.
copyProperties
(
dto
,
insurantDto
);
insurantDto
.
setPolicyholderBirthday
(
DateUtil
.
getyyyyMMdd
(
dto
.
getBirthday
()));
//出生地 (省/市)(投保人信息表:出生地(省市))TODO
insurantDto
.
setPolicyholderBirthplace
(
dto
.
getBirthplace
());
insurantDto
.
setPolicyholderCompanyAddress
(
dto
.
getCompanyAddress
());
insurantDto
.
setPolicyholderCompanyName
(
dto
.
getCompanyName
());
insurantDto
.
setPolicyholderCurrentMonthlyIncome
(
dto
.
getCurrentMonthlyIncome
());
//教育程度 (大學或以上/大專/中學/小學或以下)(投保人信息表:教育程度(字典))TODO
insurantDto
.
setPolicyholderEducationLevel
(
dto
.
getEducationLevel
());
insurantDto
.
setPolicyholderEmail
(
dto
.
getEmail
());
//性别(投保人信息表:性别 字典)TODO
insurantDto
.
setPolicyholderGender
(
dto
.
getGender
());
insurantDto
.
setPolicyholderIdNumber
(
dto
.
getIdNumber
());
insurantDto
.
setPolicyholderMailingAddress
(
dto
.
getMailingAddress
());
//婚姻状况 (單身 / 已婚 / 離異/ 喪偶)(投保人信息表:婚姻状况(字典))TODO
insurantDto
.
setPolicyholderMaritalStatus
(
dto
.
getMaritalStatus
());
insurantDto
.
setPolicyholderMobile
(
dto
.
getMobileCode
()
+
"-"
+
dto
.
getMobile
());
insurantDto
.
setPolicyholderName
(
dto
.
getName
());
insurantDto
.
setPolicyholderNameEn
(
dto
.
getNameEn
());
//國籍(投保人信息表:国籍)字典 TODO
insurantDto
.
setPolicyholderNationality
(
dto
.
getNationality
());
insurantDto
.
setPolicyholderPassNo
(
dto
.
getPassNo
());
insurantDto
.
setPolicyholderPassportNo
(
dto
.
getPassportNo
());
//公司业务性质(投保人信息表:TODO)
insurantDto
.
setPolicyholderCompanyNature
(
dto
.
getCompanyNature
());
insurantDto
.
setPolicyholderPosition
(
dto
.
getPosition
());
//聯絡電話(住宅) 区号+号码 TODO
insurantDto
.
setPolicyholderResidenceMobile
(
dto
.
getResidenceMobile
());
insurantDto
.
setPolicyholderResidentialAddress
(
dto
.
getResidentialAddress
());
insurantDto
.
setPolicyholderTotalWorkingYears
(
dto
.
getTotalWorkingYears
());
return
insurantDto
;
}
}
yd-csf-feign/src/main/java/com/yd/csf/feign/dto/excel/ApiExcelSecondHolderDto.java
0 → 100644
View file @
6b84620e
package
com
.
yd
.
csf
.
feign
.
dto
.
excel
;
import
com.yd.common.utils.DateUtil
;
import
lombok.Data
;
import
org.springframework.beans.BeanUtils
;
import
java.time.LocalDateTime
;
/**
* 第二持有人资料
*/
@Data
public
class
ApiExcelSecondHolderDto
{
//============以下是表字段============
/**
* 中文姓名(第二持有人信息表:名字)
*/
private
String
name
;
/**
* 英文姓名(同护照)(第二持有人信息表:名字-英文)
*/
private
String
nameEn
;
/**
* 出生日期(第二持有人信息表:出生日期)
*/
private
LocalDateTime
birthTime
;
/**
* 身份证号码(第二持有人信息表:证件号码)
*/
private
String
idNumber
;
/**
* 性別(第二持有人信息表:性别)
*/
private
String
gender
;
/**
* 與受保人關係(第二持有人信息表:与受保人关系(字典))
*/
private
String
insurantRel
;
//============以下是excel显示的字段,同上============
/**
* 中文姓名(第二持有人信息表:名字)
*/
private
String
secondHolderName
;
/**
* 英文姓名(同护照)(第二持有人信息表:名字-英文)
*/
private
String
secondHolderNameEn
;
/**
* 出生日期(第二持有人信息表:出生日期)
*/
private
String
secondHolderBirthTime
;
/**
* 身份证号码(第二持有人信息表:证件号码)
*/
private
String
secondHolderIdNumber
;
/**
* 性別(第二持有人信息表:性别)
*/
private
String
secondHolderGender
;
/**
* 與受保人關係(第二持有人信息表:与受保人关系(字典))
*/
private
String
secondHolderInsurantRel
;
/**
* 重新赋值ApiExcelSecondHolderDto
* @param dto
* @return
*/
public
static
ApiExcelSecondHolderDto
setApiExcelSecondHolderDto
(
ApiExcelSecondHolderDto
dto
)
{
ApiExcelSecondHolderDto
secondHolderDto
=
new
ApiExcelSecondHolderDto
();
BeanUtils
.
copyProperties
(
dto
,
secondHolderDto
);
secondHolderDto
.
setSecondHolderBirthTime
(
DateUtil
.
getyyyyMMdd
(
dto
.
getBirthTime
()));
//性別(第二持有人信息表:性别)字典 TODO
secondHolderDto
.
setSecondHolderGender
(
dto
.
getGender
());
secondHolderDto
.
setSecondHolderIdNumber
(
dto
.
getIdNumber
());
//與受保人關係(第二持有人信息表:与受保人关系(字典)) TODO
secondHolderDto
.
setSecondHolderInsurantRel
(
dto
.
getInsurantRel
());
secondHolderDto
.
setSecondHolderName
(
dto
.
getName
());
secondHolderDto
.
setSecondHolderNameEn
(
dto
.
getNameEn
());
return
secondHolderDto
;
}
}
yd-csf-feign/src/main/java/com/yd/csf/feign/fallback/appointmentfile/ApiAppointmentFileFeignFallbackFactory.java
View file @
6b84620e
...
...
@@ -5,9 +5,12 @@ import com.yd.csf.feign.client.appointmentfile.ApiAppointmentFileFeignClient;
import
com.yd.csf.feign.request.appointmentfile.ApiAppointmentFileAddRequest
;
import
com.yd.csf.feign.request.appointmentfile.ApiAppointmentFileEditRequest
;
import
com.yd.csf.feign.request.appointmentfile.ApiAppointmentFilePageRequest
;
import
com.yd.csf.feign.request.appointmentfile.ApiAppointmentImportExcelRequest
;
import
com.yd.csf.feign.response.appointmentfile.ApiAppointmentImportExcelResponse
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.cloud.openfeign.FallbackFactory
;
import
org.springframework.stereotype.Component
;
import
org.springframework.web.multipart.MultipartFile
;
import
javax.validation.constraints.NotBlank
;
...
...
@@ -49,6 +52,17 @@ public class ApiAppointmentFileFeignFallbackFactory implements FallbackFactory<A
public
Result
<
String
>
itineraryPdf
(
String
appointmentBizId
)
{
return
null
;
}
@Override
public
Result
<
String
>
appointmentExportExcel
(
String
appointmentBizId
)
{
return
null
;
}
@Override
public
Result
<
ApiAppointmentImportExcelResponse
>
appointmentImportExcel
(
MultipartFile
file
,
ApiAppointmentImportExcelRequest
request
)
{
return
null
;
}
};
}
}
yd-csf-feign/src/main/java/com/yd/csf/feign/request/appointmentfile/ApiAppointmentImportExcelRequest.java
0 → 100644
View file @
6b84620e
package
com
.
yd
.
csf
.
feign
.
request
.
appointmentfile
;
import
lombok.Data
;
import
javax.validation.constraints.NotBlank
;
@Data
public
class
ApiAppointmentImportExcelRequest
{
/**
* 预约信息主表唯一业务ID
*/
@NotBlank
(
message
=
"预约信息主表唯一业务ID不能为空"
)
private
String
appointmentBizId
;
}
yd-csf-feign/src/main/java/com/yd/csf/feign/response/appointmentfile/ApiAppointmentImportExcelResponse.java
0 → 100644
View file @
6b84620e
package
com
.
yd
.
csf
.
feign
.
response
.
appointmentfile
;
import
lombok.Data
;
@Data
public
class
ApiAppointmentImportExcelResponse
{
}
yd-csf-service/src/main/java/com/yd/csf/service/model/Appointment.java
View file @
6b84620e
...
...
@@ -281,6 +281,12 @@ public class Appointment implements Serializable {
private
Integer
policyTransfer
;
/**
* 是否有用车服务:0-否, 1-是(字典)
*/
@TableField
(
"is_use_car"
)
private
Integer
isUseCar
;
/**
* 通用备注
*/
@TableField
(
"remark"
)
...
...
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/AdditionalServiceImpl.java
View file @
6b84620e
...
...
@@ -12,6 +12,7 @@ import com.yd.csf.service.service.IAdditionalService;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yd.user.service.model.SysProject
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.CollectionUtils
;
...
...
@@ -37,6 +38,7 @@ public class AdditionalServiceImpl extends ServiceImpl<AdditionalMapper, Additio
@Override
public
IPage
<
ApiAdditionalPageResponse
>
page
(
Page
<
ApiAdditionalPageResponse
>
page
,
ApiAdditionalPageRequest
request
)
{
return
baseMapper
.
page
(
page
,
request
);
}
...
...
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