Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
long-tern-care-service
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
hubin
long-tern-care-service
Commits
a2963b16
Commit
a2963b16
authored
Apr 29, 2022
by
蔡镇泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
费用结算
parent
43599d4f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
12 deletions
+57
-12
ChCfgCareServiceMapper.java
.../com/hungraim/ltc/account/dao/ChCfgCareServiceMapper.java
+11
-0
AccountServiceImpl.java
...hungraim/ltc/account/service/impl/AccountServiceImpl.java
+8
-12
ChCfgCareService.java
.../hungraim/ltc/pojo/entity/SysConfig/ChCfgCareService.java
+38
-0
No files found.
account/account-service/src/main/java/com/hungraim/ltc/account/dao/ChCfgCareServiceMapper.java
0 → 100644
View file @
a2963b16
package
com
.
hungraim
.
ltc
.
account
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChCfgCareService
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Repository
;
@Mapper
@Repository
public
interface
ChCfgCareServiceMapper
extends
BaseMapper
<
ChCfgCareService
>
{
}
account/account-service/src/main/java/com/hungraim/ltc/account/service/impl/AccountServiceImpl.java
View file @
a2963b16
...
@@ -8,6 +8,7 @@ import com.hungraim.ltc.account.dao.*;
...
@@ -8,6 +8,7 @@ import com.hungraim.ltc.account.dao.*;
import
com.hungraim.ltc.account.service.AccountService
;
import
com.hungraim.ltc.account.service.AccountService
;
import
com.hungraim.ltc.account.service.BaseAccountService
;
import
com.hungraim.ltc.account.service.BaseAccountService
;
import
com.hungraim.ltc.api.AttachFeignService
;
import
com.hungraim.ltc.api.AttachFeignService
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChCfgCareService
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach
;
import
com.hungraim.ltc.pojo.entity.account.ChDisabAccounts
;
import
com.hungraim.ltc.pojo.entity.account.ChDisabAccounts
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskDetail
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskDetail
;
...
@@ -39,6 +40,7 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
...
@@ -39,6 +40,7 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
private
final
ChSrvTaskFinishItemMapper
taskFinishItemMapper
;
private
final
ChSrvTaskFinishItemMapper
taskFinishItemMapper
;
private
final
ChSrvProgramMapper
programMapper
;
private
final
ChSrvProgramMapper
programMapper
;
private
final
ChSrvProgramSetMapper
programSetMapper
;
private
final
ChSrvProgramSetMapper
programSetMapper
;
private
final
ChCfgCareServiceMapper
chCfgCareServiceMapper
;
@Override
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
...
@@ -105,7 +107,7 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
...
@@ -105,7 +107,7 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
int
endDay
=
getDay
(
vo
.
getSrvEndTime
());
int
endDay
=
getDay
(
vo
.
getSrvEndTime
());
vo
.
setEffectiveSettlementDate
(
endDay
-
startDay
+
1
);
vo
.
setEffectiveSettlementDate
(
endDay
-
startDay
+
1
);
//基护费用
//基护费用
Integer
effectiveSettlementDate
=
vo
.
getEffectiveSettlementDate
();
Integer
effectiveSettlementDate
=
vo
.
getEffectiveSettlementDate
();
//有效结算日
int
costStandardOfFoundationProtection
=
30
;
//基护费用标准(可配置)
int
costStandardOfFoundationProtection
=
30
;
//基护费用标准(可配置)
BigDecimal
foundation
=
BigDecimal
.
valueOf
(
costStandardOfFoundationProtection
).
multiply
(
BigDecimal
.
valueOf
(
effectiveSettlementDate
));
BigDecimal
foundation
=
BigDecimal
.
valueOf
(
costStandardOfFoundationProtection
).
multiply
(
BigDecimal
.
valueOf
(
effectiveSettlementDate
));
vo
.
setFoundationProtectionCost
(
foundation
.
doubleValue
());
vo
.
setFoundationProtectionCost
(
foundation
.
doubleValue
());
...
@@ -221,17 +223,11 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
...
@@ -221,17 +223,11 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
careCosts
=
BigDecimal
.
valueOf
(
standardCareCost
).
multiply
(
BigDecimal
.
valueOf
(
taskDetails2
.
size
()));
careCosts
=
BigDecimal
.
valueOf
(
standardCareCost
).
multiply
(
BigDecimal
.
valueOf
(
taskDetails2
.
size
()));
}
}
if
(
FndSrvMode
.
PATROL
.
getCode
().
equals
(
bo
.
getSrvModeId
()))
{
//巡护
if
(
FndSrvMode
.
PATROL
.
getCode
().
equals
(
bo
.
getSrvModeId
()))
{
//巡护
if
(
CfgSrvLevel
.
ONE
.
getCode
().
equals
(
bo
.
getSrvLevelId
()))
{
//服务等级
ChCfgCareService
chCfgCareService
=
chCfgCareServiceMapper
.
selectOne
(
new
LambdaQueryWrapper
<
ChCfgCareService
>()
if
(
careCosts
.
intValue
()
>
600
)
{
.
eq
(
ChCfgCareService:
:
getSrvlevelId
,
bo
.
getSrvLevelId
()));
//根据服务等级查询照护服务费用限额配置表
careCosts
=
BigDecimal
.
valueOf
(
600
);
if
(
chCfgCareService
!=
null
)
{
}
if
(
careCosts
.
intValue
()
>
chCfgCareService
.
getMonthlyPaymentLimit
())
{
}
else
if
(
CfgSrvLevel
.
TWO
.
getCode
().
equals
(
bo
.
getSrvLevelId
()))
{
careCosts
=
BigDecimal
.
valueOf
(
chCfgCareService
.
getMonthlyPaymentLimit
());
if
(
careCosts
.
intValue
()
>
800
)
{
careCosts
=
BigDecimal
.
valueOf
(
800
);
}
}
else
if
(
CfgSrvLevel
.
THREE
.
getCode
().
equals
(
bo
.
getSrvLevelId
()))
{
if
(
careCosts
.
intValue
()
>
1000
)
{
careCosts
=
BigDecimal
.
valueOf
(
1000
);
}
}
}
}
}
}
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/SysConfig/ChCfgCareService.java
0 → 100644
View file @
a2963b16
package
com
.
hungraim
.
ltc
.
pojo
.
entity
.
SysConfig
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.KeySequence
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* CH_CFG_CARE_SERVICE
*
* @author
*/
@Data
@TableName
(
"CH_CFG_CARE_SERVICE"
)
@KeySequence
(
"SEQ_CH_CFG_CARE_SERVICE"
)
public
class
ChCfgCareService
implements
Serializable
{
/**
* 照护服务费用限额配置id
*/
@TableId
(
type
=
IdType
.
INPUT
)
private
Long
careServiceId
;
/**
* 服务等级id
*/
private
Integer
srvlevelId
;
/**
* 月支付限额(元/人)
*/
private
Integer
monthlyPaymentLimit
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
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