Commit 63bca032 authored by zhangwanglin's avatar zhangwanglin

异地时间为空处理

parent 5e6b7aad
...@@ -533,8 +533,11 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis ...@@ -533,8 +533,11 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
BigDecimal institutionsDeserve = new BigDecimal(0); BigDecimal institutionsDeserve = new BigDecimal(0);
BigDecimal personalDeserve = new BigDecimal(0); BigDecimal personalDeserve = new BigDecimal(0);
String accountsStartTime = record.getAccountsStartTime(); String accountsStartTime = record.getAccountsStartTime();
if(StringUtils.isEmpty(accountsStartTime)){
accountsStartTime = record.getAccountsTime()+"-01";
}
Date date = DateUtils.strToDate(accountsStartTime); Date date = DateUtils.strToDate(accountsStartTime);
int daysOfMonth = DateUtils.getDaysOfMonth(date); int daysOfMonth = getDaysOfMonth(date);
String modeName = record.getModeName(); String modeName = record.getModeName();
if ("上门".equals(modeName)) { if ("上门".equals(modeName)) {
reportableAmount = new BigDecimal(1200); reportableAmount = new BigDecimal(1200);
...@@ -566,6 +569,11 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis ...@@ -566,6 +569,11 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
public static int getDaysOfMonth(Date date) {
Calendar calendar = Calendar.getInstance();
calendar.setTime(date);
return calendar.getActualMaximum(Calendar.DAY_OF_MONTH);
}
@Override @Override
public Page<NursingRecordsRespVO> queryNursingRecords(NursingReqVO nursingReqVO) { public Page<NursingRecordsRespVO> queryNursingRecords(NursingReqVO nursingReqVO) {
......
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