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
eeab3d50
Commit
eeab3d50
authored
Jul 29, 2022
by
zhaji
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into feature-zhaji
parents
0614c32d
0ddfdc1e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
15 deletions
+11
-15
TCustomerInfoController.java
.../v1/yifu/archives/controller/TCustomerInfoController.java
+3
-5
TSettleDomainController.java
.../v1/yifu/archives/controller/TSettleDomainController.java
+3
-5
InsurancesConstants.java
...lus/v1/yifu/insurances/constants/InsurancesConstants.java
+2
-2
TInsuranceDetailServiceImpl.java
.../insurances/service/impl/TInsuranceDetailServiceImpl.java
+3
-3
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TCustomerInfoController.java
View file @
eeab3d50
...
...
@@ -54,7 +54,6 @@ public class TCustomerInfoController {
*/
@Operation
(
summary
=
"分页查询"
,
description
=
"分页查询"
)
@GetMapping
(
"/page"
)
@PreAuthorize
(
"@pms.hasPermission('demo_tcustomerinfo_get')"
)
public
R
<
IPage
<
TCustomerInfo
>>
getTCustomerInfoPage
(
Page
<
TCustomerInfo
>
page
,
TCustomerInfo
tCustomerInfo
)
{
return
R
.
ok
(
tCustomerInfoService
.
page
(
page
,
Wrappers
.
query
(
tCustomerInfo
)));
}
...
...
@@ -68,7 +67,6 @@ public class TCustomerInfoController {
*/
@Operation
(
summary
=
"通过id查询"
,
description
=
"通过id查询"
)
@GetMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('demo_tcustomerinfo_get')"
)
public
R
<
TCustomerInfo
>
getById
(
@PathVariable
(
"id"
)
String
id
)
{
return
R
.
ok
(
tCustomerInfoService
.
getById
(
id
));
}
...
...
@@ -82,7 +80,7 @@ public class TCustomerInfoController {
@Operation
(
summary
=
"新增客户信息"
,
description
=
"新增客户信息"
)
@SysLog
(
"新增客户信息"
)
@PostMapping
@PreAuthorize
(
"@pms.hasPermission('
demo_
tcustomerinfo_add')"
)
@PreAuthorize
(
"@pms.hasPermission('tcustomerinfo_add')"
)
public
R
<
Boolean
>
save
(
@RequestBody
TCustomerInfo
tCustomerInfo
)
{
return
R
.
ok
(
tCustomerInfoService
.
save
(
tCustomerInfo
));
}
...
...
@@ -96,7 +94,7 @@ public class TCustomerInfoController {
@Operation
(
summary
=
"修改客户信息"
,
description
=
"修改客户信息"
)
@SysLog
(
"修改客户信息"
)
@PutMapping
@PreAuthorize
(
"@pms.hasPermission('
demo_
tcustomerinfo_edit')"
)
@PreAuthorize
(
"@pms.hasPermission('tcustomerinfo_edit')"
)
public
R
<
Boolean
>
updateById
(
@RequestBody
TCustomerInfo
tCustomerInfo
)
{
return
R
.
ok
(
tCustomerInfoService
.
updateById
(
tCustomerInfo
));
}
...
...
@@ -110,7 +108,7 @@ public class TCustomerInfoController {
@Operation
(
summary
=
"通过id删除客户信息"
,
description
=
"通过id删除客户信息"
)
@SysLog
(
"通过id删除客户信息"
)
@DeleteMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('
demo_
tcustomerinfo_del')"
)
@PreAuthorize
(
"@pms.hasPermission('tcustomerinfo_del')"
)
public
R
<
Boolean
>
removeById
(
@PathVariable
String
id
)
{
return
R
.
ok
(
tCustomerInfoService
.
removeById
(
id
));
}
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TSettleDomainController.java
View file @
eeab3d50
...
...
@@ -60,7 +60,6 @@ public class TSettleDomainController {
*/
@Operation
(
summary
=
"分页查询"
,
description
=
"分页查询"
)
@GetMapping
(
"/page"
)
@PreAuthorize
(
"@pms.hasPermission('demo_tsettledomain_get')"
)
public
R
<
IPage
<
TSettleDomain
>>
getTSettleDomainPage
(
Page
<
TSettleDomain
>
page
,
TSettleDomain
tSettleDomain
)
{
return
R
.
ok
(
tSettleDomainService
.
page
(
page
,
Wrappers
.
query
(
tSettleDomain
)));
}
...
...
@@ -74,7 +73,6 @@ public class TSettleDomainController {
*/
@Operation
(
summary
=
"通过id查询"
,
description
=
"通过id查询"
)
@GetMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('demo_tsettledomain_get')"
)
public
R
<
TSettleDomain
>
getById
(
@PathVariable
(
"id"
)
String
id
)
{
return
R
.
ok
(
tSettleDomainService
.
getById
(
id
));
}
...
...
@@ -88,7 +86,7 @@ public class TSettleDomainController {
@Operation
(
summary
=
"新增项目表"
,
description
=
"新增项目表"
)
@SysLog
(
"新增项目表"
)
@PostMapping
@PreAuthorize
(
"@pms.hasPermission('
demo_
tsettledomain_add')"
)
@PreAuthorize
(
"@pms.hasPermission('tsettledomain_add')"
)
public
R
<
Boolean
>
save
(
@RequestBody
TSettleDomain
tSettleDomain
)
{
return
R
.
ok
(
tSettleDomainService
.
save
(
tSettleDomain
));
}
...
...
@@ -102,7 +100,7 @@ public class TSettleDomainController {
@Operation
(
summary
=
"修改项目表"
,
description
=
"修改项目表"
)
@SysLog
(
"修改项目表"
)
@PutMapping
@PreAuthorize
(
"@pms.hasPermission('
demo_
tsettledomain_edit')"
)
@PreAuthorize
(
"@pms.hasPermission('tsettledomain_edit')"
)
public
R
<
Boolean
>
updateById
(
@RequestBody
TSettleDomain
tSettleDomain
)
{
return
R
.
ok
(
tSettleDomainService
.
updateById
(
tSettleDomain
));
}
...
...
@@ -116,7 +114,7 @@ public class TSettleDomainController {
@Operation
(
summary
=
"通过id删除项目表"
,
description
=
"通过id删除项目表"
)
@SysLog
(
"通过id删除项目表"
)
@DeleteMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('
demo_
tsettledomain_del')"
)
@PreAuthorize
(
"@pms.hasPermission('tsettledomain_del')"
)
public
R
<
Boolean
>
removeById
(
@PathVariable
String
id
)
{
return
R
.
ok
(
tSettleDomainService
.
removeById
(
id
));
}
...
...
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/constants/InsurancesConstants.java
View file @
eeab3d50
...
...
@@ -125,9 +125,9 @@ public class InsurancesConstants {
*/
public
static
final
String
REDUCE_REPLACE_IS_NOT_ALLOW
=
"当前记录在减员流程中,无法替换"
;
/**
* 投保状态不是
投保中或
已投保,无法退回
* 投保状态不是
待投保、投保中、
已投保,无法退回
*/
public
static
final
String
REDUCE_ROLLBACK_IS_NOT_ALLOW
=
"投保状态不是
投保中或
已投保,无法退回"
;
public
static
final
String
REDUCE_ROLLBACK_IS_NOT_ALLOW
=
"投保状态不是
待投保、投保中、
已投保,无法退回"
;
/**
* 减员中,无法退回
*/
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/impl/TInsuranceDetailServiceImpl.java
View file @
eeab3d50
...
...
@@ -579,8 +579,8 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
List
<
TInsuranceDetail
>
successList
=
new
ArrayList
<>();
if
(
CollectionUtils
.
isNotEmpty
(
detailList
)){
for
(
TInsuranceDetail
detail
:
detailList
)
{
if
(
detail
.
getBuyHandleStatus
()
!=
CommonConstants
.
TWO
_INT
&&
detail
.
getBuyHandleStatus
()
!=
CommonConstants
.
THRE
E_INT
){
if
(
detail
.
getBuyHandleStatus
()
==
CommonConstants
.
FOUR
_INT
||
detail
.
getBuyHandleStatus
()
==
CommonConstants
.
FIV
E_INT
){
InsuranceListVO
listVO
=
new
InsuranceListVO
();
BeanCopyUtils
.
copyProperties
(
detail
,
listVO
);
listVO
.
setErrorMessage
(
InsurancesConstants
.
REDUCE_ROLLBACK_IS_NOT_ALLOW
);
...
...
@@ -741,7 +741,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
//计算起止时间的天数
long
day
=
LocalDateUtil
.
betweenDay
(
detail
.
getPolicyStart
().
toString
(),
detail
.
getPolicyEnd
().
toString
());
//预估保费 = (购买标准 / 365) * 天数
BigDecimal
estimatePremium
=
new
BigDecimal
(
detail
.
getBuyStandard
()).
divide
(
new
BigDecimal
(
"365"
)).
multiply
(
new
BigDecimal
(
day
)).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
BigDecimal
estimatePremium
=
new
BigDecimal
(
detail
.
getBuyStandard
()).
divide
(
new
BigDecimal
(
"365"
)
,
BigDecimal
.
ROUND_HALF_UP
).
multiply
(
new
BigDecimal
(
day
)).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
detail
.
setEstimatePremium
(
estimatePremium
);
if
(
detail
.
getBuyType
()
==
CommonConstants
.
THREE_INT
){
detail
.
setPolicyEffect
(
LocalDate
.
now
().
plusDays
(
CommonConstants
.
ONE_INT
));
...
...
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