|
@@ -1,4 +1,4 @@
|
|
|
-package com.lantone.qc.kernel.catalogue.threelevelward;
|
|
|
+package com.lantone.qc.kernel.catalogue.operationdiscussion;
|
|
|
|
|
|
import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
|
import com.lantone.qc.kernel.util.CatalogueUtil;
|
|
@@ -26,7 +26,7 @@ import java.util.Map;
|
|
|
* @Date: 2020-03-30 16:17
|
|
|
*/
|
|
|
@Component
|
|
|
-public class THR0587 extends QCCatalogue {
|
|
|
+public class OPE0587 extends QCCatalogue {
|
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
status.set("0");
|
|
|
List<OperationDoc> operationDocs = inputInfo.getOperationDocs();
|
|
@@ -36,10 +36,10 @@ public class THR0587 extends QCCatalogue {
|
|
|
}
|
|
|
//所有查房记录的日期天
|
|
|
List<ThreeLevelWardDoc> allDoctorWradDocs = threeLevelWardDocs.get(0).getAllDoctorWradDocs();
|
|
|
- List<Integer> wardRecordDayList = getWardRecordDay(allDoctorWradDocs);
|
|
|
+ List<Date> wardRecordDayList = getWardRecordDay(allDoctorWradDocs);
|
|
|
String OperationEndDateStr = "";
|
|
|
//转入日期后应该有的查房记录的日期天
|
|
|
- List<Integer> rollInDay = null;
|
|
|
+ List<Date> rollInDay = null;
|
|
|
for (OperationDoc operationDoc : operationDocs) {
|
|
|
OperationRecordDoc operationRecordDoc = operationDoc.getOperationRecordDoc();
|
|
|
if (operationRecordDoc == null) {
|
|
@@ -53,7 +53,7 @@ public class THR0587 extends QCCatalogue {
|
|
|
Date OperationEndDate = StringUtil.parseDateTime(OperationEndDateStr);
|
|
|
rollInDay = new ArrayList<>();
|
|
|
for (int i = 1; i <= 3; i++) {
|
|
|
- int wardRecordDay = DateUtil.getDay(DateUtil.addDate(OperationEndDate, i));
|
|
|
+ Date wardRecordDay = DateUtil.dateZeroClear(DateUtil.addDate(OperationEndDate, i));
|
|
|
rollInDay.add(wardRecordDay);
|
|
|
}
|
|
|
if (!wardRecordDayList.containsAll(rollInDay)) {
|
|
@@ -68,8 +68,8 @@ public class THR0587 extends QCCatalogue {
|
|
|
*
|
|
|
* @param threeLevelWardDocs
|
|
|
*/
|
|
|
- private List<Integer> getWardRecordDay(List<ThreeLevelWardDoc> threeLevelWardDocs) {
|
|
|
- List<Integer> dateRecordDay = new ArrayList<>();
|
|
|
+ private List<Date> getWardRecordDay(List<ThreeLevelWardDoc> threeLevelWardDocs) {
|
|
|
+ List<Date> dateRecordDay = new ArrayList<>();
|
|
|
String recordTime = "";
|
|
|
for (ThreeLevelWardDoc threeLevelWardDoc : threeLevelWardDocs) {
|
|
|
Map<String, String> rescueStructureMap = threeLevelWardDoc.getStructureMap();
|
|
@@ -78,7 +78,7 @@ public class THR0587 extends QCCatalogue {
|
|
|
if (recordDate == null) {
|
|
|
continue;
|
|
|
}
|
|
|
- dateRecordDay.add(DateUtil.getDay(recordDate));
|
|
|
+ dateRecordDay.add(DateUtil.dateZeroClear(recordDate));
|
|
|
}
|
|
|
return dateRecordDay;
|
|
|
}
|