|
@@ -42,13 +42,13 @@ public class FollowupPlanInfoFacade extends FollowupPlanInfoServiceImpl {
|
|
|
FollowupPlanDetailHospitalFacade followupPlanDetailHospitalFacade;
|
|
|
|
|
|
/**
|
|
|
- *
|
|
|
* @param operationName
|
|
|
* @param hospitalId
|
|
|
* @return
|
|
|
*/
|
|
|
public PushPlanDTO getFollowUpPlans(Item operationName, Long hospitalId) {
|
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
+ Date now = DateUtil.now();
|
|
|
PushPlanDTO pushPlanDTO = new PushPlanDTO();
|
|
|
List<PushPlansDTO> pushPlans = new ArrayList<>();
|
|
|
if (operationName == null
|
|
@@ -97,8 +97,14 @@ public class FollowupPlanInfoFacade extends FollowupPlanInfoServiceImpl {
|
|
|
|
|
|
if (ListUtil.isNotEmpty(entry.getValue())) {
|
|
|
PushPlanDetailDTO pushPlanDetailDTO = new PushPlanDetailDTO();
|
|
|
- pushPlanDetailDTO.setExamineDate(DateUtil.addMonth(date, entry.getKey()));
|
|
|
+ Date examineDate = DateUtil.addMonth(date, entry.getKey());
|
|
|
+ pushPlanDetailDTO.setExamineDate(examineDate);
|
|
|
pushPlanDetailDTO.setDescription(entry.getValue().get(0).getFollowUpTime());
|
|
|
+ if (examineDate.after(now)) {
|
|
|
+ pushPlanDetailDTO.setHistory(0);
|
|
|
+ } else {
|
|
|
+ pushPlanDetailDTO.setHistory(1);
|
|
|
+ }
|
|
|
Map<Integer, List<FollowupPlanDetailHospital>> itemTypeMap
|
|
|
= EntityUtil.makeEntityListMap(entry.getValue(), "itemType");
|
|
|
//检验
|
|
@@ -125,8 +131,14 @@ public class FollowupPlanInfoFacade extends FollowupPlanInfoServiceImpl {
|
|
|
|
|
|
if (ListUtil.isNotEmpty(entry.getValue())) {
|
|
|
PushPlanDetailDTO pushPlanDetailDTO = new PushPlanDetailDTO();
|
|
|
- pushPlanDetailDTO.setExamineDate(DateUtil.addMonth(date, entry.getKey()));
|
|
|
+ Date examineDate = DateUtil.addMonth(date, entry.getKey());
|
|
|
+ pushPlanDetailDTO.setExamineDate(examineDate);
|
|
|
pushPlanDetailDTO.setDescription(entry.getValue().get(0).getFollowUpTime());
|
|
|
+ if (examineDate.after(now)) {
|
|
|
+ pushPlanDetailDTO.setHistory(0);
|
|
|
+ } else {
|
|
|
+ pushPlanDetailDTO.setHistory(1);
|
|
|
+ }
|
|
|
Map<Integer, List<FollowupPlanDetail>> itemTypeMap
|
|
|
= EntityUtil.makeEntityListMap(entry.getValue(), "itemType");
|
|
|
//检验
|