|
@@ -9,11 +9,7 @@ import com.lantone.qc.pub.model.doc.transferrecord.TransferRecordDoc;
|
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.Calendar;
|
|
|
-import java.util.Date;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
+import java.util.*;
|
|
|
|
|
|
/**
|
|
|
* @ClassName : DUT0296
|
|
@@ -104,6 +100,10 @@ public class DUT0296 extends QCCatalogue {
|
|
|
int lengthOfStayNum = 0;
|
|
|
String lengthOfStay = structureMap_leave.get("住院天数");
|
|
|
if (StringUtil.isNotBlank(lengthOfStay)) {
|
|
|
+ String num = lengthOfStay.replaceAll("[^0-9]", "");
|
|
|
+ if (StringUtil.isBlank(num)) {
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
lengthOfStayNum = onlyNum(lengthOfStay);
|
|
|
}
|
|
|
return lengthOfStayNum;
|
|
@@ -191,11 +191,11 @@ public class DUT0296 extends QCCatalogue {
|
|
|
from.setTime(dateIn);
|
|
|
Calendar to = Calendar.getInstance();
|
|
|
to.setTime(dateOut);
|
|
|
- long timeS,timeE,timeDiff = 0;
|
|
|
+ long timeS, timeE, timeDiff = 0;
|
|
|
try {
|
|
|
timeS = from.getTimeInMillis();
|
|
|
timeE = to.getTimeInMillis();
|
|
|
- timeDiff = (timeE - timeS) / (1000 * 60* 60 * 24);
|
|
|
+ timeDiff = (timeE - timeS) / (1000 * 60 * 60 * 24);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|