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
536b3944
Commit
536b3944
authored
Mar 21, 2023
by
zhangwanglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
评定结算
parent
afc08e18
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
41 additions
and
32 deletions
+41
-32
ChAssessAccountsDetailMapper.java
...va/com/hungraim/ltc/dao/ChAssessAccountsDetailMapper.java
+10
-0
ChAssessDetailAccountsMapper.java
...va/com/hungraim/ltc/dao/ChAssessDetailAccountsMapper.java
+0
-22
TaskServiceImpl.java
...n/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
+22
-9
ChAssessDetailAccountsMapper.xml
...rc/main/resources/mapper/ChAssessDetailAccountsMapper.xml
+6
-1
ChAssessDetailAccounts.java
...im/ltc/pojo/entity/assessment/ChAssessDetailAccounts.java
+3
-0
No files found.
assessment/assessment-service/src/main/java/com/hungraim/ltc/dao/ChAssessAccountsDetailMapper.java
View file @
536b3944
...
@@ -2,12 +2,21 @@ package com.hungraim.ltc.dao;
...
@@ -2,12 +2,21 @@ package com.hungraim.ltc.dao;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.hungraim.ltc.pojo.entity.assessment.ChAssessDetailAccounts
;
import
com.hungraim.ltc.pojo.entity.assessment.ChAssessDetailAccounts
;
import
com.hungraim.ltc.pojo.entity.assessment.ChAssessDetailAccountsResp
;
import
com.hungraim.ltc.pojo.vo.account.AssessAccountsExportResp
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
@Mapper
@Mapper
@Repository
@Repository
public
interface
ChAssessAccountsDetailMapper
extends
BaseMapper
<
ChAssessDetailAccounts
>
{
public
interface
ChAssessAccountsDetailMapper
extends
BaseMapper
<
ChAssessDetailAccounts
>
{
List
<
ChAssessDetailAccountsResp
>
queryAssessAccountsDetail
(
String
assessAccountsId
);
List
<
AssessAccountsExportResp
>
assessAccountDetailExport
(
String
assessAccountsId
);
ChAssessDetailAccounts
selectAssessDetailInfo
(
Integer
applyId
,
Integer
empId
,
Integer
evaluateType
);
}
}
\ No newline at end of file
assessment/assessment-service/src/main/java/com/hungraim/ltc/dao/ChAssessDetailAccountsMapper.java
deleted
100644 → 0
View file @
afc08e18
package
com
.
hungraim
.
ltc
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.hungraim.ltc.pojo.entity.assessment.ChAssessDetailAccounts
;
import
com.hungraim.ltc.pojo.entity.assessment.ChAssessDetailAccountsResp
;
import
com.hungraim.ltc.pojo.vo.account.AssessAccountsExportResp
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
/**
* @author mq
*/
@Mapper
@Repository
public
interface
ChAssessDetailAccountsMapper
extends
BaseMapper
<
ChAssessDetailAccounts
>
{
List
<
ChAssessDetailAccountsResp
>
queryAssessAccountsDetail
(
String
assessAccountsId
);
List
<
AssessAccountsExportResp
>
assessAccountDetailExport
(
String
assessAccountsId
);
}
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
View file @
536b3944
...
@@ -67,11 +67,10 @@ public class TaskServiceImpl implements TaskService {
...
@@ -67,11 +67,10 @@ public class TaskServiceImpl implements TaskService {
private
final
ChTaskReportFractionDtlMapper
chTaskReportFractionDtlMapper
;
private
final
ChTaskReportFractionDtlMapper
chTaskReportFractionDtlMapper
;
private
final
ChAssessAccountsDetailMapper
chAssessAccountsDetailMapper
;
private
final
ChAssessAccountsMapper
chAssessAccountsMapper
;
private
final
ChAssessAccountsMapper
chAssessAccountsMapper
;
private
final
ChAssess
DetailAccounts
Mapper
chAssessDetailAccountsMapper
;
private
final
ChAssess
AccountsDetail
Mapper
chAssessDetailAccountsMapper
;
...
@@ -242,7 +241,9 @@ public class TaskServiceImpl implements TaskService {
...
@@ -242,7 +241,9 @@ public class TaskServiceImpl implements TaskService {
// 根据评定机构id和评估结算时间查找表里有没有数据,有数据直接累加费用
// 根据评定机构id和评估结算时间查找表里有没有数据,有数据直接累加费用
// 评定人员结算表插入
// 评定人员结算表插入
if
(
person1
!=
null
)
{
if
(
person1
!=
null
)
{
ChAssessDetailAccounts
chAssessDetailAccounts
=
new
ChAssessDetailAccounts
();
ChAssessDetailAccounts
chAssessDetailAccounts
=
chAssessDetailAccountsMapper
.
selectAssessDetailInfo
(
chDisableInfo
.
getApplyId
(),
person1
,
reportDetailVo
.
getEvaluateType
());
if
(
Objects
.
isNull
(
chAssessDetailAccounts
)){
chAssessDetailAccounts
=
new
ChAssessDetailAccounts
();
chAssessDetailAccounts
.
setEmpId
(
String
.
valueOf
(
person1
));
chAssessDetailAccounts
.
setEmpId
(
String
.
valueOf
(
person1
));
ChAprEmp
chAprEmp
=
aprEmpMapper
.
selectById
(
person1
);
ChAprEmp
chAprEmp
=
aprEmpMapper
.
selectById
(
person1
);
...
@@ -252,6 +253,7 @@ public class TaskServiceImpl implements TaskService {
...
@@ -252,6 +253,7 @@ public class TaskServiceImpl implements TaskService {
chAssessDetailAccounts
.
setCreationTime
(
new
Date
());
chAssessDetailAccounts
.
setCreationTime
(
new
Date
());
chAssessDetailAccounts
.
setAccountsTime
(
evaluateDate
);
chAssessDetailAccounts
.
setAccountsTime
(
evaluateDate
);
chAssessDetailAccounts
.
setAssessTime
(
evaluateDate
);
chAssessDetailAccounts
.
setAssessTime
(
evaluateDate
);
chAssessDetailAccounts
.
setEvaluateType
(
reportDetailVo
.
getEvaluateType
());
Integer
aprempTypeIdS
=
chAprEmp
.
getAprempTypeIdS
();
Integer
aprempTypeIdS
=
chAprEmp
.
getAprempTypeIdS
();
// 1 评估员上门评估,每人次 100 元
// 1 评估员上门评估,每人次 100 元
// 5 评估专家上门评估,每人次 150 元
// 5 评估专家上门评估,每人次 150 元
...
@@ -260,12 +262,18 @@ public class TaskServiceImpl implements TaskService {
...
@@ -260,12 +262,18 @@ public class TaskServiceImpl implements TaskService {
Long
assessAccountsId
=
saveAssess
(
aprOrganId
,
assessCost
,
srvModeId
,
evaluateDate
);
Long
assessAccountsId
=
saveAssess
(
aprOrganId
,
assessCost
,
srvModeId
,
evaluateDate
);
if
(
assessAccountsId
!=
null
){
if
(
assessAccountsId
!=
null
){
chAssessDetailAccounts
.
setAssessAccountsId
(
assessAccountsId
);
chAssessDetailAccounts
.
setAssessAccountsId
(
assessAccountsId
);
chAssessAccountsDetailMapper
.
insert
(
chAssessDetailAccounts
);
chAssessDetailAccountsMapper
.
insert
(
chAssessDetailAccounts
);
}
}
else
{
log
.
info
(
"{},该失能人员已进行评估结算,护理人员:{}"
,
chDisableInfo
.
getApplyId
(),
person1
);
}
}
}
}
if
(
person2
!=
null
)
{
if
(
person2
!=
null
)
{
ChAssessDetailAccounts
chAssessDetailAccounts
=
new
ChAssessDetailAccounts
();
ChAssessDetailAccounts
chAssessDetailAccounts
=
chAssessDetailAccountsMapper
.
selectAssessDetailInfo
(
chDisableInfo
.
getApplyId
(),
person2
,
reportDetailVo
.
getEvaluateType
());
if
(
Objects
.
isNull
(
chAssessDetailAccounts
))
{
chAssessDetailAccounts
=
new
ChAssessDetailAccounts
();
chAssessDetailAccounts
.
setEmpId
(
String
.
valueOf
(
person2
));
chAssessDetailAccounts
.
setEmpId
(
String
.
valueOf
(
person2
));
ChAprEmp
chAprEmp
=
aprEmpMapper
.
selectById
(
person2
);
ChAprEmp
chAprEmp
=
aprEmpMapper
.
selectById
(
person2
);
Integer
aprOrganId
=
chAprEmp
.
getAprOrganId
();
Integer
aprOrganId
=
chAprEmp
.
getAprOrganId
();
...
@@ -274,15 +282,19 @@ public class TaskServiceImpl implements TaskService {
...
@@ -274,15 +282,19 @@ public class TaskServiceImpl implements TaskService {
chAssessDetailAccounts
.
setCreationTime
(
new
Date
());
chAssessDetailAccounts
.
setCreationTime
(
new
Date
());
chAssessDetailAccounts
.
setAccountsTime
(
evaluateDate
);
chAssessDetailAccounts
.
setAccountsTime
(
evaluateDate
);
chAssessDetailAccounts
.
setAssessTime
(
evaluateDate
);
chAssessDetailAccounts
.
setAssessTime
(
evaluateDate
);
chAssessDetailAccounts
.
setEvaluateType
(
reportDetailVo
.
getEvaluateType
());
Integer
aprempTypeIdS
=
chAprEmp
.
getAprempTypeIdS
();
Integer
aprempTypeIdS
=
chAprEmp
.
getAprempTypeIdS
();
// 1 评估员上门评估,每人次 100 元
// 1 评估员上门评估,每人次 100 元
// 5 评估专家上门评估,每人次 150 元
// 5 评估专家上门评估,每人次 150 元
String
assessCost
=
aprempTypeIdS
==
1
?
"100"
:
"150"
;
String
assessCost
=
aprempTypeIdS
==
1
?
"100"
:
"150"
;
chAssessDetailAccounts
.
setAssessCost
(
assessCost
);
chAssessDetailAccounts
.
setAssessCost
(
assessCost
);
Long
assessAccountsId
=
saveAssess
(
aprOrganId
,
assessCost
,
srvModeId
,
evaluateDate
);
Long
assessAccountsId
=
saveAssess
(
aprOrganId
,
assessCost
,
srvModeId
,
evaluateDate
);
if
(
assessAccountsId
!=
null
)
{
if
(
assessAccountsId
!=
null
)
{
chAssessDetailAccounts
.
setAssessAccountsId
(
assessAccountsId
);
chAssessDetailAccounts
.
setAssessAccountsId
(
assessAccountsId
);
chAssessAccountsDetailMapper
.
insert
(
chAssessDetailAccounts
);
chAssessDetailAccountsMapper
.
insert
(
chAssessDetailAccounts
);
}
}
else
{
log
.
info
(
"{},该失能人员已进行评估结算,护理人员:{}"
,
chDisableInfo
.
getApplyId
(),
person2
);
}
}
}
}
...
@@ -440,6 +452,7 @@ public class TaskServiceImpl implements TaskService {
...
@@ -440,6 +452,7 @@ public class TaskServiceImpl implements TaskService {
reportDetailVO
.
setPerson2
(
vo
.
getPerson2
());
reportDetailVO
.
setPerson2
(
vo
.
getPerson2
());
reportDetailVO
.
setDisableLevelId
(
vo
.
getDisableLevelId
());
reportDetailVO
.
setDisableLevelId
(
vo
.
getDisableLevelId
());
reportDetailVO
.
setEvaluateTime
(
vo
.
getEvaluateTime
());
reportDetailVO
.
setEvaluateTime
(
vo
.
getEvaluateTime
());
reportDetailVO
.
setEvaluateType
(
vo
.
getEvaluateType
());
assessAccount
(
reportDetailVO
);
assessAccount
(
reportDetailVO
);
}
}
...
...
assessment/assessment-service/src/main/resources/mapper/ChAssessDetailAccountsMapper.xml
View file @
536b3944
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.hungraim.ltc.dao.ChAssess
DetailAccounts
Mapper"
>
<mapper
namespace=
"com.hungraim.ltc.dao.ChAssess
AccountsDetail
Mapper"
>
<select
id=
"queryAssessAccountsDetail"
<select
id=
"queryAssessAccountsDetail"
...
@@ -38,5 +38,10 @@ FROM
...
@@ -38,5 +38,10 @@ FROM
left join CH_APR_EMP t4 on t4.EMP_ID = t1.EMP_ID
left join CH_APR_EMP t4 on t4.EMP_ID = t1.EMP_ID
where t1.ASSESS_ACCOUNTS_ID = #{assessAccountsId}
where t1.ASSESS_ACCOUNTS_ID = #{assessAccountsId}
</select>
</select>
<select
id=
"selectAssessDetailInfo"
resultType=
"com.hungraim.ltc.pojo.entity.assessment.ChAssessDetailAccounts"
>
select * from CH_ASSESS_ACCOUNTS_DETAIL d where d.APPLY_ID =#{applyId} and d.EMP_ID = #{empId}
and d.EVALUATE_TYPE = #{evaluateType}
</select>
</mapper>
</mapper>
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/assessment/ChAssessDetailAccounts.java
View file @
536b3944
...
@@ -54,6 +54,8 @@ public class ChAssessDetailAccounts implements Serializable {
...
@@ -54,6 +54,8 @@ public class ChAssessDetailAccounts implements Serializable {
private
String
assessCost
;
private
String
assessCost
;
private
Integer
evaluateType
;
private
static
final
long
serialVersionUID
=
1L
;
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