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
800b5c38
Commit
800b5c38
authored
Dec 14, 2022
by
李灿灿
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-licancan' into 'feature/insurance-1.3.0'
Feature licancan See merge request
!300
parents
1764219b
7b7ee88c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
22 deletions
+24
-22
InsuranceExportListParam.java
.../plus/v1/yifu/insurances/vo/InsuranceExportListParam.java
+2
-2
InsuranceListParam.java
.../cloud/plus/v1/yifu/insurances/vo/InsuranceListParam.java
+2
-2
TInsuranceDetailServiceImpl.java
...s/service/insurance/impl/TInsuranceDetailServiceImpl.java
+14
-12
TInsuranceDetailMapper.xml
...in/resources/mapper/insurances/TInsuranceDetailMapper.xml
+6
-6
No files found.
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/vo/InsuranceExportListParam.java
View file @
800b5c38
...
...
@@ -85,11 +85,11 @@ public class InsuranceExportListParam extends BaseEntity implements Serializable
* 购买标准开始
*/
@Schema
(
description
=
"购买标准开始"
)
private
String
buyStandardMin
;
private
Integer
buyStandardMin
;
/**
* 购买标准结束
*/
@Schema
(
description
=
"购买标准结束"
)
private
String
buyStandardMax
;
private
Integer
buyStandardMax
;
}
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/vo/InsuranceListParam.java
View file @
800b5c38
...
...
@@ -98,12 +98,12 @@ public class InsuranceListParam extends BaseEntity {
* 购买标准开始
*/
@Schema
(
description
=
"购买标准开始"
)
private
String
buyStandardMin
;
private
Integer
buyStandardMin
;
/**
* 购买标准结束
*/
@Schema
(
description
=
"购买标准结束"
)
private
String
buyStandardMax
;
private
Integer
buyStandardMax
;
}
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/TInsuranceDetailServiceImpl.java
View file @
800b5c38
...
...
@@ -3440,22 +3440,25 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
}
}
//批增类型,保单号
不
存在
//批增类型,保单号存在
if
(
detail
.
getBuyType
()
==
CommonConstants
.
THREE_INT
){
if
(
StringUtils
.
isNotBlank
(
param
.
getPolicyNo
())){
TInsuranceDetail
batchPolicyNo
=
this
.
baseMapper
.
selectOne
(
Wrappers
.<
TInsuranceDetail
>
query
().
lambda
()
.
eq
(
TInsuranceDetail:
:
getPolicyNo
,
param
.
getPolicyNo
())
.
eq
(
TInsuranceDetail:
:
getDeleteFlag
,
CommonConstants
.
ZERO_INT
)
.
orderByDesc
(
TInsuranceDetail:
:
getUpdateTime
)
TInsurancePolicy
batchPolicyNo
=
tInsurancePolicyService
.
getOne
(
Wrappers
.<
TInsurancePolicy
>
query
().
lambda
()
.
eq
(
TInsurancePolicy:
:
getPolicyNo
,
param
.
getPolicyNo
())
.
eq
(
TInsurancePolicy:
:
getDeleteFlag
,
CommonConstants
.
ZERO_INT
)
.
last
(
CommonConstants
.
LAST_ONE_SQL
)
);
if
(!
Optional
.
ofNullable
(
batchPolicyNo
).
isPresent
()){
param
.
setErrorMessage
(
InsurancesConstants
.
POLICY_NO_NOT_EXIST
);
continue
;
}
else
{
//批增类型,保单号已存在但是和派单时填写的不一致
if
(!
detail
.
getPolicyNo
().
equals
(
param
.
getPolicyNo
())){
param
.
setErrorMessage
(
InsurancesConstants
.
POLICY_NO_ERROR
);
//保单表中存在保单号,判断保险公司和险种是否一致
if
(!
batchPolicyNo
.
getInsuranceCompanyName
().
equals
(
param
.
getInsuranceCompanyName
())){
param
.
setErrorMessage
(
InsurancesConstants
.
POLICY_NO_COMPANY_NAME_NOT_SAME
);
continue
;
}
if
(!
batchPolicyNo
.
getInsuranceTypeName
().
equals
(
param
.
getInsuranceTypeName
())){
param
.
setErrorMessage
(
InsurancesConstants
.
POLICY_NO_TYPE_NAME_NOT_SAME
);
continue
;
}
}
...
...
@@ -3465,10 +3468,9 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
//新增类型,保单号已存在但是和填写的保险公司不一致
if
(
detail
.
getBuyType
()
==
CommonConstants
.
ONE_INT
){
if
(
StringUtils
.
isNotBlank
(
param
.
getPolicyNo
())){
TInsuranceDetail
addPolicyNo
=
this
.
baseMapper
.
selectOne
(
Wrappers
.<
TInsuranceDetail
>
query
().
lambda
()
.
eq
(
TInsuranceDetail:
:
getPolicyNo
,
param
.
getPolicyNo
())
.
eq
(
TInsuranceDetail:
:
getDeleteFlag
,
CommonConstants
.
ZERO_INT
)
.
orderByDesc
(
TInsuranceDetail:
:
getUpdateTime
)
TInsurancePolicy
addPolicyNo
=
tInsurancePolicyService
.
getOne
(
Wrappers
.<
TInsurancePolicy
>
query
().
lambda
()
.
eq
(
TInsurancePolicy:
:
getPolicyNo
,
param
.
getPolicyNo
())
.
eq
(
TInsurancePolicy:
:
getDeleteFlag
,
CommonConstants
.
ZERO_INT
)
.
last
(
CommonConstants
.
LAST_ONE_SQL
)
);
if
(
Optional
.
ofNullable
(
addPolicyNo
).
isPresent
()){
...
...
yifu-insurances/yifu-insurances-biz/src/main/resources/mapper/insurances/TInsuranceDetailMapper.xml
View file @
800b5c38
...
...
@@ -278,10 +278,10 @@
<if
test=
"param.authSql != null and param.authSql.trim() != ''"
>
${param.authSql}
</if>
<if
test=
"param.buyStandardMin != null
and param.buyStandardMin.trim() != ''
"
>
AND a.BUY_STANDARD
<![CDATA[ >= ]]>
#{param.buyStandardMin}
<if
test=
"param.buyStandardMin != null"
>
AND a.BUY_STANDARD
<![CDATA[ >= ]]>
#{param.buyStandardMin}
</if>
<if
test=
"param.buyStandardMax != null
and param.buyStandardMax.trim() != ''
"
>
<if
test=
"param.buyStandardMax != null"
>
AND a.BUY_STANDARD
<![CDATA[ <= ]]>
#{param.buyStandardMax}
</if>
ORDER BY a.BUY_HANDLE_STATUS,a.CREATE_TIME DESC
...
...
@@ -427,10 +427,10 @@
<if
test=
"param.authSql != null and param.authSql.trim() != ''"
>
${param.authSql}
</if>
<if
test=
"param.buyStandardMin != null
and param.buyStandardMin.trim() != ''
"
>
AND a.BUY_STANDARD
<![CDATA[ >= ]]>
#{param.buyStandardMin}
<if
test=
"param.buyStandardMin != null"
>
AND a.BUY_STANDARD
<![CDATA[ >= ]]>
#{param.buyStandardMin}
</if>
<if
test=
"param.buyStandardMax != null
and param.buyStandardMax.trim() != ''
"
>
<if
test=
"param.buyStandardMax != null"
>
AND a.BUY_STANDARD
<![CDATA[ <= ]]>
#{param.buyStandardMax}
</if>
ORDER BY a.CREATE_TIME DESC
...
...
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