Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
d610e8e7
Commit
d610e8e7
authored
Sep 01, 2025
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保单号维护表分页-fxj
parent
06138ed9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
8 deletions
+26
-8
PolicyListVo.java
...m/yifu/cloud/plus/v1/yifu/insurances/vo/PolicyListVo.java
+18
-0
TInsurancePolicyServiceImpl.java
...s/service/insurance/impl/TInsurancePolicyServiceImpl.java
+8
-8
No files found.
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/vo/PolicyListVo.java
View file @
d610e8e7
...
@@ -27,6 +27,12 @@ import java.time.LocalDate;
...
@@ -27,6 +27,12 @@ import java.time.LocalDate;
@Tag
(
name
=
"已投保查询返回类"
)
@Tag
(
name
=
"已投保查询返回类"
)
public
class
PolicyListVo
implements
Serializable
{
public
class
PolicyListVo
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
6673220061558171816L
;
private
static
final
long
serialVersionUID
=
-
6673220061558171816L
;
/**
* 主键
*/
@Schema
(
description
=
"主键"
)
private
String
id
;
/**
/**
* 保单号
* 保单号
*/
*/
...
@@ -96,4 +102,16 @@ public class PolicyListVo implements Serializable {
...
@@ -96,4 +102,16 @@ public class PolicyListVo implements Serializable {
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
value
=
"商险购买地"
)
@ExcelProperty
(
value
=
"商险购买地"
)
private
String
insuranceCityName
;
private
String
insuranceCityName
;
/**
* 购买标准
*/
@Schema
(
description
=
"购买标准"
)
private
String
buyStandard
;
/**
* 险种主键
*/
@Schema
(
description
=
"险种主键"
)
private
Long
insuranceTypeId
;
}
}
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/TInsurancePolicyServiceImpl.java
View file @
d610e8e7
...
@@ -233,6 +233,7 @@ public class TInsurancePolicyServiceImpl extends ServiceImpl<TInsurancePolicyMap
...
@@ -233,6 +233,7 @@ public class TInsurancePolicyServiceImpl extends ServiceImpl<TInsurancePolicyMap
data
.
setRowIndex
(
rowIndex
+
1
);
data
.
setRowIndex
(
rowIndex
+
1
);
ErrorMessage
errorMessage
=
util1
.
checkEntity
(
data
,
data
.
getRowIndex
());
ErrorMessage
errorMessage
=
util1
.
checkEntity
(
data
,
data
.
getRowIndex
());
if
(
Common
.
isNotNull
(
errorMessage
))
{
if
(
Common
.
isNotNull
(
errorMessage
))
{
errorMessage
.
setData
(
data
);
errorMessageList
.
add
(
errorMessage
);
errorMessageList
.
add
(
errorMessage
);
}
else
{
}
else
{
cachedDataList
.
add
(
data
);
cachedDataList
.
add
(
data
);
...
@@ -291,33 +292,33 @@ public class TInsurancePolicyServiceImpl extends ServiceImpl<TInsurancePolicyMap
...
@@ -291,33 +292,33 @@ public class TInsurancePolicyServiceImpl extends ServiceImpl<TInsurancePolicyMap
excel
=
excelVOList
.
get
(
i
);
excel
=
excelVOList
.
get
(
i
);
// 判断保单号是否重复
// 判断保单号是否重复
if
(
policyNoMap
.
get
(
excel
.
getPolicyNo
())
!=
null
)
{
if
(
policyNoMap
.
get
(
excel
.
getPolicyNo
())
!=
null
)
{
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"保单号【"
+
excel
.
getPolicyNo
()
+
"】与第"
+
policyNoMap
.
get
(
excel
.
getPolicyNo
())
+
"行重复,未导入"
));
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"保单号【"
+
excel
.
getPolicyNo
()
+
"】与第"
+
policyNoMap
.
get
(
excel
.
getPolicyNo
())
+
"行重复,未导入"
,
excel
));
continue
;
continue
;
}
}
if
(
existMap
.
get
(
excel
.
getPolicyNo
())
!=
null
){
if
(
existMap
.
get
(
excel
.
getPolicyNo
())
!=
null
){
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"保单号【"
+
excel
.
getPolicyNo
()
+
"】已存在,未导入"
));
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"保单号【"
+
excel
.
getPolicyNo
()
+
"】已存在,未导入"
,
excel
));
continue
;
continue
;
}
}
company
=
companyMap
.
get
(
excel
.
getInsuranceCompanyName
());
company
=
companyMap
.
get
(
excel
.
getInsuranceCompanyName
());
if
(
null
==
company
){
if
(
null
==
company
){
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"保单号【"
+
excel
.
getPolicyNo
()
+
"】的保险公司名称未找到,未导入"
));
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"保单号【"
+
excel
.
getPolicyNo
()
+
"】的保险公司名称未找到,未导入"
,
excel
));
continue
;
continue
;
}
}
type
=
typeMap
.
get
(
excel
.
getInsuranceTypeName
());
type
=
typeMap
.
get
(
excel
.
getInsuranceTypeName
());
if
(
null
==
type
){
if
(
null
==
type
){
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"保单号【"
+
excel
.
getPolicyNo
()
+
"】的险种名称未找到,未导入"
));
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"保单号【"
+
excel
.
getPolicyNo
()
+
"】的险种名称未找到,未导入"
,
excel
));
continue
;
continue
;
}
}
if
(!
type
.
getInsuranceCompanyId
().
equals
(
company
.
getId
())){
if
(!
type
.
getInsuranceCompanyId
().
equals
(
company
.
getId
())){
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"保单号【"
+
excel
.
getPolicyNo
()
+
"】的险种与保险公司不一致,未导入"
));
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"保单号【"
+
excel
.
getPolicyNo
()
+
"】的险种与保险公司不一致,未导入"
,
excel
));
continue
;
continue
;
}
}
if
(
LocalDateUtil
.
parseLocalDate
(
excel
.
getPolicyStart
())
==
null
){
if
(
LocalDateUtil
.
parseLocalDate
(
excel
.
getPolicyStart
())
==
null
){
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"保单号【"
+
excel
.
getPolicyNo
()
+
"】的保单开始时间格式错误,未导入"
));
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"保单号【"
+
excel
.
getPolicyNo
()
+
"】的保单开始时间格式错误,未导入"
,
excel
));
continue
;
continue
;
}
}
if
(
LocalDateUtil
.
parseLocalDate
(
excel
.
getPolicyEnd
())
==
null
){
if
(
LocalDateUtil
.
parseLocalDate
(
excel
.
getPolicyEnd
())
==
null
){
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"保单号【"
+
excel
.
getPolicyNo
()
+
"】的保单截止时间格式错误,未导入"
));
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"保单号【"
+
excel
.
getPolicyNo
()
+
"】的保单截止时间格式错误,未导入"
,
excel
));
continue
;
continue
;
}
}
policy
=
new
TInsurancePolicy
();
policy
=
new
TInsurancePolicy
();
...
@@ -332,7 +333,6 @@ public class TInsurancePolicyServiceImpl extends ServiceImpl<TInsurancePolicyMap
...
@@ -332,7 +333,6 @@ public class TInsurancePolicyServiceImpl extends ServiceImpl<TInsurancePolicyMap
policy
.
setDeleteFlag
(
CommonConstants
.
ZERO_INT
);
policy
.
setDeleteFlag
(
CommonConstants
.
ZERO_INT
);
//插入保单维护信息
//插入保单维护信息
baseMapper
.
insert
(
policy
);
baseMapper
.
insert
(
policy
);
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"保存成功"
,
CommonConstants
.
GREEN
));
//插入保单维护操作日志
//插入保单维护操作日志
//第一次新增插入变更记录表为insert,前端会将insert渲染为批量导入
//第一次新增插入变更记录表为insert,前端会将insert渲染为批量导入
operate
=
new
TBusinessOperate
();
operate
=
new
TBusinessOperate
();
...
...
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