Commit 7392734e authored by 董天德's avatar 董天德

Merge remote-tracking branch 'origin/dev_nursing_records_20230214' into dev_ch_master

# Conflicts: # account/account-service/src/main/resources/mapper/ChDisabAccountsDetailMapper.xml
parents c80f0408 a559fd3b
...@@ -3,8 +3,7 @@ package com.hungraim.ltc.account.controller; ...@@ -3,8 +3,7 @@ package com.hungraim.ltc.account.controller;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hungraim.ltc.account.service.AccountService; import com.hungraim.ltc.account.service.AccountService;
import com.hungraim.ltc.pojo.entity.account.ChDisabAccounts; import com.hungraim.ltc.pojo.entity.account.*;
import com.hungraim.ltc.pojo.entity.account.ChDisabDetailAccountsResp;
import com.hungraim.ltc.pojo.vo.account.*; import com.hungraim.ltc.pojo.vo.account.*;
import com.hungraim.ltc.util.FileUtils; import com.hungraim.ltc.util.FileUtils;
import com.hungraim.ltc.util.Result; import com.hungraim.ltc.util.Result;
...@@ -100,8 +99,12 @@ public class AccountController { ...@@ -100,8 +99,12 @@ public class AccountController {
/**
@RequestMapping("/organAccountTaskExecute") * 任务执行
*
* @return
*/
@PostMapping("/organAccountTaskExecute")
public Result organAccountTaskExecute(AccountTaskReqVO accountTaskReqVO){ public Result organAccountTaskExecute(AccountTaskReqVO accountTaskReqVO){
List<AccountTaskExecuteReqVO> accountTaskExecuteReqVOS = accountTaskReqVO.getAccountTaskList(); List<AccountTaskExecuteReqVO> accountTaskExecuteReqVOS = accountTaskReqVO.getAccountTaskList();
accountService.organAccountTaskExecute(accountTaskExecuteReqVOS); accountService.organAccountTaskExecute(accountTaskExecuteReqVOS);
...@@ -164,17 +167,136 @@ public class AccountController { ...@@ -164,17 +167,136 @@ public class AccountController {
/** /**
* 查询机构结算信息列表明细 * 查询机构结算信息列表明细
* *
* @param id 结算id * @param accountsId 结算id
* @return * @return
*/ */
@GetMapping("/queryOrganAccountsDetail") @GetMapping("/queryOrganAccountsDetail")
public Result<List<ChDisabDetailAccountsResp>> queryOrganAccountsDetail(String id) { public Result<Page<ChDisabDetailAccountsResp>> queryOrganAccountsDetail(Integer pageNum, Integer pageSize, String accountsId) {
List<ChDisabDetailAccountsResp> chAssessDetailAccounts = accountService.queryOrganAccountsDetail(id); if (StringUtils.isBlank(accountsId)) {
return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
}
Page<ChDisabDetailAccountsResp> chAssessDetailAccounts = accountService.queryOrganAccountsDetail(pageNum,pageSize,accountsId,null);
return Result.success(chAssessDetailAccounts);
}
/**
* 基金申报列表查询
* @param
* @return
*/
@GetMapping("/queryAccountsDeclareList")
public Result<Page<ChDisabDetailAccountsResp>> queryAccountsDeclareList(Integer pageNum, Integer pageSize) {
Page<ChDisabDetailAccountsResp> chAssessDetailAccounts = accountService.queryOrganAccountsDetail(pageNum,pageSize,null,0);
return Result.success(chAssessDetailAccounts);
}
/**
* 暂缓列表查询
* @param
* @return
*/
@GetMapping("/queryDelayAccountList")
public Result<Page<ChDisabDetailAccountsResp>> queryDelayAccountList(Integer pageNum, Integer pageSize) {
Page<ChDisabDetailAccountsResp> chAssessDetailAccounts = accountService.queryOrganAccountsDetail(pageNum,pageSize,null,2);
return Result.success(chAssessDetailAccounts); return Result.success(chAssessDetailAccounts);
} }
/**
* 暂缓
* @param status 1 恢复 2 暂缓
* @return
*/
@PostMapping("/delayAccountCommit")
public Result<Page<ChDisabDetailAccountsResp>> delayAccountCommit(Long accountsDetailId, Short status) {
int result = accountService.delayAccountCommit(accountsDetailId, status);
if (result > 0) {
return Result.success();
} else {
return Result.failed();
}
}
/**
* 基金申报提交
* @param
* @return
*/
@PostMapping("/accountsFreeCommit")
public Result accountsFreeCommit(Long accountsDetailId) {
int result = accountService.accountsFreeCommit(accountsDetailId);
if (result > 0) {
return Result.success();
} else {
return Result.failed();
}
}
/**
* 查询护理记录
*
* @param taskDetailId 结算详情id
* @return
*/
@GetMapping("/queryNursingRecords")
public Result<Page<NursingRecordsRespVO>> queryNursingRecords(Integer pageNum, Integer pageSize, String taskDetailId) {
Page<NursingRecordsRespVO> nursingRecordsRespVOList = accountService.queryNursingRecords(pageNum,pageSize,taskDetailId);
return Result.success(nursingRecordsRespVOList);
}
@GetMapping("/queryOverallCostRecords")
public Result<OverallEduceDecreaseCostRespVO> queryOverallCostRecords(OverallCostReqVO req) {
String certiCode = req.getCertiCode();
if (StringUtils.isBlank(certiCode)) {
return Result.failed("查询条件证件号不能为空");
}
OverallEduceDecreaseCostRespVO overallCostRecords = accountService.queryOverallCostRecords(req);
return Result.success(overallCostRecords);
}
/**
* 费用扣减提交
*
* @param req
* @return
*/
@PostMapping("/overallCostSubmit")
public Result overallCostSubmit(OverallCostSubmitReqVO req) {
int result = accountService.overallCostSubmit(req);
if(result > 0){
return Result.success();
}else{
return Result.failed();
}
}
/**
* 删除护理机构
*
* @param accountsDetailId 结算详情id
*/
@DeleteMapping("/deleteAccountsDetail")
public Result deleteAccountsDetail(Long accountsDetailId) {
if (null == accountsDetailId) {
return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
}
int result = accountService.deleteAccountsDetail(accountsDetailId);
if(result > 0){
return Result.success();
}else{
return Result.failed();
}
}
@GetMapping("/queryOverallCostList")
public Result<Page<OverallCostListRespVO>> queryOverallCostList(OverallCostReqVO req) {
Page<OverallCostListRespVO> overallCostRecords = accountService.queryOverallCostList(req);
return Result.success(overallCostRecords);
}
/** /**
* 机构结算管理提交复核 * 机构结算管理提交复核
......
...@@ -2,12 +2,11 @@ package com.hungraim.ltc.account.dao; ...@@ -2,12 +2,11 @@ package com.hungraim.ltc.account.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hungraim.ltc.pojo.entity.account.ChDisabAccounts; import com.hungraim.ltc.pojo.entity.account.*;
import com.hungraim.ltc.pojo.entity.account.ChDisabDetailAccounts; import com.hungraim.ltc.pojo.vo.account.AccountExportDetailListResp;
import com.hungraim.ltc.pojo.vo.account.*; import com.hungraim.ltc.pojo.vo.account.OrganAccountsVO;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
import java.util.List; import java.util.List;
...@@ -19,15 +18,22 @@ public interface ChDisabAccountsDetailMapper extends BaseMapper<ChDisabDetailAcc ...@@ -19,15 +18,22 @@ public interface ChDisabAccountsDetailMapper extends BaseMapper<ChDisabDetailAcc
List<OrganAccountsVO> getOrganAccountsList(String taskDetailId); List<OrganAccountsVO> getOrganAccountsList(String taskDetailId);
Page<SrvOrganAccountListResp> searchSrvOrganAccountList(Page page, List<Long> organIds, SrvOrganListReq req);
List<AccountExportDetailListResp> searchSrvOrganAccountDetailExport(String accountsId); List<AccountExportDetailListResp> searchSrvOrganAccountDetailExport(String accountsId);
List<ChDisabDetailAccounts> queryAccountByCondition(@Param("taskDetailIds") List<String> taskDetailIds); List<ChDisabDetailAccounts> queryAccountByCondition(@Param("taskDetailIds") List<String> taskDetailIds);
List<OrganAccountsVO> getOtherPlaceList(String programId); List<OrganAccountsVO> getOtherPlaceList(String programId);
Page<ChDisabDetailAccountsResp> queryOrganAccountsDetail(Page page,String accountsId,Integer status);
Page<NursingRecordsRespVO> queryNursingRecords(Page page, String taskDetailId);
OverallEduceDecreaseCostRespVO queryOverallCostRecords(OverallCostReqVO req);
Page<OverallCostListRespVO> queryOverallCostList(Page page, OverallCostReqVO req);
int updateByAccountsId(String accountsId);
......
...@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; ...@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hungraim.ltc.pojo.entity.account.ChDisabAccounts; import com.hungraim.ltc.pojo.entity.account.ChDisabAccounts;
import com.hungraim.ltc.pojo.vo.account.AccountOperVo; import com.hungraim.ltc.pojo.vo.account.AccountOperVo;
import com.hungraim.ltc.pojo.vo.account.SrvOrganAccountListResp;
import com.hungraim.ltc.pojo.vo.account.SrvOrganListReq; import com.hungraim.ltc.pojo.vo.account.SrvOrganListReq;
import com.hungraim.ltc.pojo.vo.account.SrvOrganListResp; import com.hungraim.ltc.pojo.vo.account.SrvOrganListResp;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
...@@ -52,5 +53,10 @@ public interface ChDisabAccountsMapper extends BaseMapper<ChDisabAccounts> { ...@@ -52,5 +53,10 @@ public interface ChDisabAccountsMapper extends BaseMapper<ChDisabAccounts> {
ChDisabAccounts queryAccountByCondition(String accountsTime, String modeName, String srvOrganId); ChDisabAccounts queryAccountByCondition(String accountsTime, String modeName, String srvOrganId,Integer isDelay);
Page<SrvOrganAccountListResp> searchSrvOrganAccountList(Page page, List<Long> organIds, SrvOrganListReq req);
} }
\ No newline at end of file
package com.hungraim.ltc.account.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hungraim.ltc.pojo.entity.account.ChDisabDetailAccounts;
import com.hungraim.ltc.pojo.entity.account.ChDisabDetailAccountsResp;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* @author mq
*/
@Mapper
@Repository
public interface ChDisabDetailAccountsMapper extends BaseMapper<ChDisabDetailAccounts> {
List<ChDisabDetailAccountsResp> queryOrganAccountsDetail(String accountsId);
}
...@@ -31,7 +31,16 @@ public interface AccountService extends IService<ChDisabAccounts> { ...@@ -31,7 +31,16 @@ public interface AccountService extends IService<ChDisabAccounts> {
List<ChDisabDetailAccountsResp> queryOrganAccountsDetail(String id); Page<ChDisabDetailAccountsResp> queryOrganAccountsDetail(Integer pageNum, Integer pageSize,String accountsId,Integer status);
Page<NursingRecordsRespVO> queryNursingRecords(Integer pageNum, Integer pageSize, String taskDetailId);
OverallEduceDecreaseCostRespVO queryOverallCostRecords(OverallCostReqVO req);
Page<OverallCostListRespVO> queryOverallCostList(OverallCostReqVO req);
int overallCostSubmit(OverallCostSubmitReqVO req);
int updateChDisabAccounts(int id); int updateChDisabAccounts(int id);
...@@ -39,4 +48,10 @@ public interface AccountService extends IService<ChDisabAccounts> { ...@@ -39,4 +48,10 @@ public interface AccountService extends IService<ChDisabAccounts> {
void organAccountTaskExecute(List<AccountTaskExecuteReqVO> accountTaskExecuteReqVOS); void organAccountTaskExecute(List<AccountTaskExecuteReqVO> accountTaskExecuteReqVOS);
void otherPlaceHandler(String programId); void otherPlaceHandler(String programId);
int deleteAccountsDetail(Long accountsDetailId);
int accountsFreeCommit(Long accountsDetailId);
int delayAccountCommit(Long accountsDetailId,Short status);
} }
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
</select> </select>
<select id="getOtherPlaceList" resultType="com.hungraim.ltc.pojo.vo.account.OrganAccountsVO"> <select id="getOtherPlaceList" resultType="com.hungraim.ltc.pojo.vo.account.OrganAccountsVO">
select select
detail.TASK_DETAIL_ID taskDetailId, detail.TASK_DETAIL_ID taskDetailId,
--失能人员姓名 --失能人员姓名
disable.real_name realName, disable.real_name realName,
...@@ -167,7 +167,7 @@ select ...@@ -167,7 +167,7 @@ select
organ.LEVEL_CODE levelCode, organ.LEVEL_CODE levelCode,
-- 失能等级 -- 失能等级
level1.DISABLE_LEVEL_NAME disableLevelName level1.DISABLE_LEVEL_NAME disableLevelName
from ch_srv_task_detail detail--服务计划 from ch_srv_task_detail detail--服务计划
left join ch_srv_task task on task.srv_task_id = detail.srv_task_id--服务计划详情 left join ch_srv_task task on task.srv_task_id = detail.srv_task_id--服务计划详情
left join ch_disable_info disable on task.disab_info_id = disable.disab_info_id--失能人员 left join ch_disable_info disable on task.disab_info_id = disable.disab_info_id--失能人员
left join CH_DISABLE_APPLY apply on apply.apply_id = disable.apply_id left join CH_DISABLE_APPLY apply on apply.apply_id = disable.apply_id
...@@ -179,7 +179,7 @@ from ch_srv_task_detail detail--服务计划 ...@@ -179,7 +179,7 @@ from ch_srv_task_detail detail--服务计划
left join ch_srv_organ_emp emp on task.srv_emp_id = emp.emp_id--护理人员 left join ch_srv_organ_emp emp on task.srv_emp_id = emp.emp_id--护理人员
-- 失能等级 -- 失能等级
left join ch_cfg_srv_disable_level level1 on report.disable_level_id = level1.disable_level_id left join ch_cfg_srv_disable_level level1 on report.disable_level_id = level1.disable_level_id
where mode1.MODE_ID = '4' and level1.DISABLE_LEVEL_NAME like '重度%' and program.program_id = #{programId} where mode1.MODE_ID = '4' and level1.DISABLE_LEVEL_NAME like '重度%' and program.program_id = #{programId}
</select> </select>
</mapper> </mapper>
...@@ -17,15 +17,59 @@ ...@@ -17,15 +17,59 @@
</sql> </sql>
<select id="queryAccountByCondition" resultType="com.hungraim.ltc.pojo.entity.account.ChDisabAccounts"> <select id="queryAccountByCondition" resultType="com.hungraim.ltc.pojo.entity.account.ChDisabAccounts">
select * from CH_DISAB_ACCOUNTS t where t.MODE_NAME = #{modeName} select * from CH_DISAB_ACCOUNTS t where t.MODE_NAME = #{modeName}
and to_char(t.ACCOUNTS_TIME,'yyyy-MM') = #{accountsTime} and to_char(t.ACCOUNTS_TIME,'yyyy-MM') = #{accountsTime}
and t.SRV_ORGAN_ID = #{srvOrganId} and t.SRV_ORGAN_ID = #{srvOrganId}
<if test="isDelay !=null">
and t.IS_DELAY = 2
</if>
</select> </select>
<select id="searchSrvOrganAccountList" resultType="com.hungraim.ltc.pojo.vo.account.SrvOrganAccountListResp">
SELECT
t1.ACCOUNTS_ID,
t3.ORGAN_ID,
t3.ORGAN_NAME,
t2.SRV_ORGAN_ID,
t2.SRV_ORGAN_NAME,
t1.ACCOUNTS_TIME,
t1.ACCOUNTS_STATUS,
t1.ALL_COST,
t1.OVERALL_COST,
t1.PERSONAL_COST,
t1.SVR_START_TIME,
t1.MODE_NAME,
to_char(t1.SVR_START_TIME,'yyyy-MM-dd') svrStartTime,
to_char(t1.SVR_END_TIME,'yyyy-MM-dd') svrEndTime,
t1.TOTAL_ALLOCATED_EXPENSES totalAllocatedExpenses,
t1.REISSUE_AMOUNT_TOTAL reissueAmountTotal,
t1.DEDUCTION_AMOUNT_TOTAL deductionAmountTotal
FROM
CH_DISAB_ACCOUNTS t1
LEFT JOIN CH_SRV_ORGAN t2 ON t1.SRV_ORGAN_ID = t2.SRV_ORGAN_ID
LEFT JOIN CH_FND_ORGAN t3 ON t2.ORGAN_ID = t3.ORGAN_ID
<where>
t1.ACCOUNTS_STATUS !=0
<if test='organIds != null and organIds.size()>0'>
AND t3.ORGAN_ID IN
<foreach collection="organIds" open="(" close=")" item="organId" separator=",">
#{organId}
</foreach>
</if>
<if test='req.srvOrganId != null'>
AND t2.SRV_ORGAN_ID = #{req.srvOrganId}
</if>
<if test='req.accountsTime != null'>
AND t1.ACCOUNTS_TIME = #{req.accountsTime}
</if>
<if test="req.accountsStatus != null and req.accountsStatus != ''">
and t1.ACCOUNTS_STATUS = #{req.accountsStatus}
</if>
</where>
</select>
</mapper> </mapper>
\ No newline at end of file
<?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">
<mapper namespace="com.hungraim.ltc.account.dao.ChDisabDetailAccountsMapper">
<select id="queryOrganAccountsDetail" resultType="com.hungraim.ltc.pojo.entity.account.ChDisabDetailAccountsResp">
select
d.MODE_NAME modeName,
to_char(d.ACCOUNTS_START_TIME,'yyyy-MM-dd HH24:mi:ss') accountsStartTime,
to_char(d.ACCOUNTS_END_TIME,'yyyy-MM-dd HH24:mi:ss') accountsEndTime,
to_char(d.ACCOUNTS_TIME,'yyyy-MM') accountsTime,
d.ACCOUNTS_ALL_COST accountsAllCost,
d.ACCOUNTS_OVERALL_COST accountsOverallCost,
d.ACCOUNTS_PERSONAL_COST accountsPersonalCost,
(select district_name from ch_fnd_district dis where apply.MEDICAL_AREA = dis.district_code) medicalArea,
o.SRV_ORGAN_NAME srvOrganName,
info.REAL_NAME realName
from CH_DISAB_ACCOUNTS_DETAIL d
left join CH_DISABLE_INFO info on d.DISAB_INFO_ID = info.DISAB_INFO_ID
left join CH_DISABLE_APPLY apply on info.APPLY_ID=apply.APPLY_ID
left join CH_SRV_ORGAN o on d.SRV_ORGAN_ID = o.SRV_ORGAN_ID
where d.ACCOUNTS_ID = #{accountsId}
</select>
</mapper>
\ No newline at end of file
...@@ -18,13 +18,13 @@ ...@@ -18,13 +18,13 @@
left join ch_srv_organ_emp emp on plan.emp_id = emp.emp_id left join ch_srv_organ_emp emp on plan.emp_id = emp.emp_id
left join CH_SRV_ORGAN organ on organ.SRV_ORGAN_ID = plan.SRV_ORGAN_ID left join CH_SRV_ORGAN organ on organ.SRV_ORGAN_ID = plan.SRV_ORGAN_ID
<where> <where>
<if test="req.status != null"> <if test="req.status != null and req.status != ''">
and plan.IS_STATUS = #{req.status} and plan.IS_STATUS = #{req.status}
</if> </if>
<if test="req.realName != null"> <if test="req.realName != null and req.realName != ''">
AND info.real_name LIKE CONCAT('%',CONCAT(#{req.realName},'%')) AND info.real_name LIKE CONCAT('%',CONCAT(#{req.realName},'%'))
</if> </if>
<if test="req.srvOrganName != null"> <if test="req.srvOrganName != null and req.srvOrganName != ''">
AND organ.SRV_ORGAN_NAME LIKE CONCAT('%',CONCAT(#{req.srvOrganName},'%')) AND organ.SRV_ORGAN_NAME LIKE CONCAT('%',CONCAT(#{req.srvOrganName},'%'))
</if> </if>
</where> </where>
......
...@@ -9,6 +9,7 @@ import lombok.Data; ...@@ -9,6 +9,7 @@ import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable; import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
/** /**
...@@ -33,7 +34,7 @@ public class ChDisabAccounts implements Serializable { ...@@ -33,7 +34,7 @@ public class ChDisabAccounts implements Serializable {
/** /**
* 实拨总费用 * 实拨总费用
*/ */
private String totalAllocatedExpenses; private BigDecimal totalAllocatedExpenses;
/** /**
* 创建时间 * 创建时间
...@@ -52,7 +53,7 @@ public class ChDisabAccounts implements Serializable { ...@@ -52,7 +53,7 @@ public class ChDisabAccounts implements Serializable {
/** /**
* 应拨总费用 * 应拨总费用
*/ */
private String totalExpensesPayable; private BigDecimal totalExpensesPayable;
/** /**
* 是否结算(0未结算,1已结算) * 是否结算(0未结算,1已结算)
...@@ -60,7 +61,7 @@ public class ChDisabAccounts implements Serializable { ...@@ -60,7 +61,7 @@ public class ChDisabAccounts implements Serializable {
private Short chooseSettle; private Short chooseSettle;
/** /**
* 状态(0-待提交;1-待审核;2-已审核;3-已失效; * 状态(1 待审核 2 已审核 3 已结算
*/ */
private Short accountsStatus; private Short accountsStatus;
...@@ -90,17 +91,33 @@ public class ChDisabAccounts implements Serializable { ...@@ -90,17 +91,33 @@ public class ChDisabAccounts implements Serializable {
/** /**
* 总费用合计 * 总费用合计
*/ */
private String allCost; private BigDecimal allCost;
/** /**
* 统筹支出 * 统筹支出
*/ */
private String overallCost; private BigDecimal overallCost;
/** /**
* 个人支出 * 个人支出
*/ */
private String personalCost; private BigDecimal personalCost;
/**
*扣减金额合计
*/
private BigDecimal deductionAmountTotal;
/**
*补发金额
*/
private BigDecimal reissueAmountTotal;
/**
* 是否暂缓 2 暂缓
*/
private Short isDelay;
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
} }
\ No newline at end of file
...@@ -52,9 +52,16 @@ public class ChDisabDetailAccounts implements Serializable { ...@@ -52,9 +52,16 @@ public class ChDisabDetailAccounts implements Serializable {
*/ */
private BigDecimal accountsAllCost; private BigDecimal accountsAllCost;
/**
* 统筹费用
*/
private BigDecimal accountsOverallCost; private BigDecimal accountsOverallCost;
/**
* 个人支付
*/
private BigDecimal accountsPersonalCost; private BigDecimal accountsPersonalCost;
/** /**
* 服务方式 * 服务方式
*/ */
...@@ -64,16 +71,50 @@ public class ChDisabDetailAccounts implements Serializable { ...@@ -64,16 +71,50 @@ public class ChDisabDetailAccounts implements Serializable {
* 费用开始日期 * 费用开始日期
*/ */
private Date accountsStartTime; private Date accountsStartTime;
/** /**
* 费用结束日期 * 费用结束日期
*/ */
private Date accountsEndTime; private Date accountsEndTime;
/**
* 任务详情id
*/
private String taskDetailId; private String taskDetailId;
/**
* 护理人员id
*/
private Long empId;
/**
* 统筹区
*/
private String medicalArea; private String medicalArea;
private String itemIds; /**
*交易类型 1、补发 2、扣减
*/
private int dealType;
/**
*扣减金额
*/
private BigDecimal deductionAmount;
/**
*补发金额
*/
private BigDecimal reissueAmount;
/**
* 备注
*/
private String remarks;
/**
* 状态(1 恢复状态 2 暂缓状态 3)
*/
private Short status;
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -35,6 +35,8 @@ public class ChDisabDetailAccountsResp implements Serializable { ...@@ -35,6 +35,8 @@ public class ChDisabDetailAccountsResp implements Serializable {
*/ */
private String modeName; private String modeName;
private String empName;
/** /**
* 费用开始日期 * 费用开始日期
*/ */
...@@ -51,5 +53,15 @@ public class ChDisabDetailAccountsResp implements Serializable { ...@@ -51,5 +53,15 @@ public class ChDisabDetailAccountsResp implements Serializable {
private String realName; private String realName;
private String taskDetailId;
private String deductionAmount;
private String reissueAmount;
private String accountsDetailId;
private Integer status;
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
} }
\ No newline at end of file
package com.hungraim.ltc.pojo.entity.account;
import lombok.Data;
/**
* @author zwl
* @ClassName NursingRecordsRespVO
* @description
* @date 2023/2/14 10:10
**/
@Data
public class NursingRecordsRespVO {
/**
* 护理机构
**/
private String srvOrganName;
/**
* 服务方式
**/
private String modeName;
/**
*执行日期
**/
private String executionTime;
/**
*任务名称
**/
private String itemName;
}
package com.hungraim.ltc.pojo.entity.account;
import lombok.Data;
/**
* @author zwl
* @ClassName OverallCostListRespVO
* @description
* @date 2023/2/14 21:10
**/
@Data
public class OverallCostListRespVO {
/**
*失能人员姓名
*/
private String realName;
/**
*身份证号
*/
private String certiCode;
/**
*医保统筹区
*/
private String medicalArea;
/**
* 费用开始时间
*/
private String svrStartTime;
/**
* 费用结束时间
*/
private String svrEndTime;
/**
*交易类型 1、补发 2、扣减
*/
private int dealType;
/**
*扣减金额
*/
private String deductionAmount;
/**
*补发金额
*/
private String reissueAmount;
private String amountOfMoney;
private String accountsDetailId;
private String accountsOverallCost;
private String srvOrganName;
}
package com.hungraim.ltc.pojo.entity.account;
import com.hungraim.ltc.pojo.vo.BaseReq;
import lombok.Data;
/**
* @author zwl
* @ClassName OverallCostReqVO
* @description
* @date 2023/2/14 15:11
**/
@Data
public class OverallCostReqVO extends BaseReq {
/**
*失能人员姓名
*/
private String realName;
/**
*身份证号
*/
private String certiCode;
/**
* 护理机构名称
*/
private String srvOrganName;
private String accountsTime;
private Integer dealType;
}
package com.hungraim.ltc.pojo.entity.account;
import lombok.Data;
/**
* @author zwl
* @ClassName OverallCostSubmitReqVO
* @description
* @date 2023/2/14 16:56
**/
@Data
public class OverallCostSubmitReqVO {
/**
* 结算详情Id
*/
private Long accountsDetailId;
private Long accountsId;
/**
* 交易类型 1、补发 2、扣减
*/
private int dealType;
/**
* 金额
*/
private String amountOfMoney;
/**
* 备注
*/
private String remarks;
}
package com.hungraim.ltc.pojo.entity.account;
import lombok.Data;
/**
* @author zwl
* @ClassName OverallEduceDecreaseCostRespVO
* @description
* @date 2023/2/14 15:11
**/
@Data
public class OverallEduceDecreaseCostRespVO {
/**
*失能人员姓名
*/
private String realName;
/**
*身份证号
*/
private String certiCode;
/**
*医保统筹区
*/
private String medicalArea;
/**
* 费用开始时间
*/
private String svrStartTime;
/**
* 费用结束时间
*/
private String svrEndTime;
/**
*交易类型 1、补发 2、扣减
*/
private int dealType;
/**
*扣减金额
*/
private String deductionAmount;
/**
*补发金额
*/
private String reissueAmount;
private String accountsDetailId;
private String accountsOverallCost;
private String srvOrganName;
private Long accountsId;
}
...@@ -49,9 +49,9 @@ public class OrganAccountsVO { ...@@ -49,9 +49,9 @@ public class OrganAccountsVO {
*/ */
private String medicalArea; private String medicalArea;
/** /**
* 护理服务人员 * 护理服务人员Id
*/ */
private String empName; private Long empId;
/** /**
* 任务时间 * 任务时间
*/ */
...@@ -70,10 +70,7 @@ public class OrganAccountsVO { ...@@ -70,10 +70,7 @@ public class OrganAccountsVO {
* 机构等级 * 机构等级
*/ */
private String levelCode; private String levelCode;
/**
* 失能等级
*/
private String disableLevelName;
/** /**
* 总费用 * 总费用
*/ */
......
...@@ -5,6 +5,7 @@ import lombok.Data; ...@@ -5,6 +5,7 @@ import lombok.Data;
import org.checkerframework.checker.units.qual.C; import org.checkerframework.checker.units.qual.C;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
@Data @Data
...@@ -81,5 +82,15 @@ public class SrvOrganAccountListResp { ...@@ -81,5 +82,15 @@ public class SrvOrganAccountListResp {
*/ */
private String totalAllocatedExpenses; private String totalAllocatedExpenses;
/**
*扣减金额总合计
*/
private String deductionAmountTotal;
/**
*补发总金额
*/
private String reissueAmountTotal;
} }
...@@ -39,4 +39,6 @@ public class SrvOrganListReq extends BaseReq { ...@@ -39,4 +39,6 @@ public class SrvOrganListReq extends BaseReq {
@JsonFormat(pattern = "yyyy-MM", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM", timezone = "GMT+8")
private Date accountsTime; private Date accountsTime;
private String accountsStatus;
} }
...@@ -3,7 +3,6 @@ package com.hungraim.ltc.util; ...@@ -3,7 +3,6 @@ package com.hungraim.ltc.util;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import java.text.DateFormat;
import java.text.ParseException; import java.text.ParseException;
import java.text.ParsePosition; import java.text.ParsePosition;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
...@@ -879,27 +878,42 @@ public class DateUtils { ...@@ -879,27 +878,42 @@ public class DateUtils {
* *
* @return * @return
*/ */
public static String getlastMonth(){ public static Date getlastDayOfMonth(Date date){
SimpleDateFormat ym=new SimpleDateFormat(DATE_PATTERN_yyyy_MM_dd); Calendar cale = Calendar.getInstance();
Calendar calendar = Calendar.getInstance(); cale.setTime(date);
calendar.add(Calendar.MONTH,-1); cale.add(Calendar.MONTH, 1);
String lastMonth =ym.format(calendar.getTime()); cale.set(Calendar.DAY_OF_MONTH, 0);
return lastMonth; return cale.getTime();
} }
/** /**
* 获取当前月份的上个月 * 获取月份的第一天
* *
* @return * @return
*/ */
public static Date getlastMonth(String str){ public static Date getFirstDayOfMonth(Date date) {
DateFormat fmt =new SimpleDateFormat(DATE_PATTERN_yyyy_MM_dd); Calendar cale = Calendar.getInstance();
Date date = null; cale.setTime(date);
try { cale.add(Calendar.MONTH, 0);
date = fmt.parse(str); cale.set(Calendar.DAY_OF_MONTH, 1);
} catch (ParseException e) { return cale.getTime();
e.printStackTrace();
} }
return date;
public static Boolean inCurrentMonth(Date date) {
Calendar cal1 = Calendar.getInstance();
Calendar cal2 = Calendar.getInstance();
//set the given date in date of the instance and current date in the other
cal1.setTime(date);
cal2.setTime(new Date());
//now compare the dates using methods on Calendar
if (cal1.get(Calendar.YEAR) == cal2.get(Calendar.YEAR)) {
if (cal1.get(Calendar.MONTH) == cal2.get(Calendar.MONTH)) {
return true;
}
}
return false;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment