|
@@ -5,7 +5,6 @@ import com.diagbot.dto.DeptBaseDTO;
|
|
import com.diagbot.dto.DeptNumDTO;
|
|
import com.diagbot.dto.DeptNumDTO;
|
|
import com.diagbot.dto.LevelStatisticsDTO;
|
|
import com.diagbot.dto.LevelStatisticsDTO;
|
|
import com.diagbot.dto.NumDTO;
|
|
import com.diagbot.dto.NumDTO;
|
|
-import com.diagbot.entity.BehospitalInfo;
|
|
|
|
import com.diagbot.util.BeanUtil;
|
|
import com.diagbot.util.BeanUtil;
|
|
import com.diagbot.util.DateUtil;
|
|
import com.diagbot.util.DateUtil;
|
|
import com.diagbot.util.EntityUtil;
|
|
import com.diagbot.util.EntityUtil;
|
|
@@ -209,9 +208,8 @@ public class ConsoleByDeptFacade {
|
|
thirdLevelNumDTO.setName("丙级病历");
|
|
thirdLevelNumDTO.setName("丙级病历");
|
|
thirdLevelNumDTO.setNum(thirdLevelNum);
|
|
thirdLevelNumDTO.setNum(thirdLevelNum);
|
|
thirdLevelNumDTO.setTotleNum(totleNum);
|
|
thirdLevelNumDTO.setTotleNum(totleNum);
|
|
- Double thirdPercent = BigDecimal.valueOf(1)
|
|
|
|
- .subtract(BigDecimal.valueOf(firstPercent))
|
|
|
|
- .subtract(BigDecimal.valueOf(secondPercent))
|
|
|
|
|
|
+ Double thirdPercent = BigDecimal.valueOf(thirdLevelNum)
|
|
|
|
+ .divide(BigDecimal.valueOf(totleNum), 4, RoundingMode.HALF_UP)
|
|
.doubleValue();
|
|
.doubleValue();
|
|
String thirdPercentStr = df.format(BigDecimal.valueOf(thirdPercent).multiply(BigDecimal.valueOf(100))) + "%";
|
|
String thirdPercentStr = df.format(BigDecimal.valueOf(thirdPercent).multiply(BigDecimal.valueOf(100))) + "%";
|
|
thirdLevelNumDTO.setPercent(thirdPercent);
|
|
thirdLevelNumDTO.setPercent(thirdPercent);
|
|
@@ -411,8 +409,8 @@ public class ConsoleByDeptFacade {
|
|
otherNumDTO.setName("其他");
|
|
otherNumDTO.setName("其他");
|
|
otherNumDTO.setNum(num);
|
|
otherNumDTO.setNum(num);
|
|
otherNumDTO.setTotleNum(totle);
|
|
otherNumDTO.setTotleNum(totle);
|
|
- Double percent = BigDecimal.valueOf(1)
|
|
|
|
- .subtract(BigDecimal.valueOf(sumPercent))
|
|
|
|
|
|
+ Double percent = BigDecimal.valueOf(num)
|
|
|
|
+ .divide(BigDecimal.valueOf(totle), 4, RoundingMode.HALF_UP)
|
|
.doubleValue();
|
|
.doubleValue();
|
|
otherNumDTO.setPercent(percent);
|
|
otherNumDTO.setPercent(percent);
|
|
String percentStr
|
|
String percentStr
|
|
@@ -691,8 +689,8 @@ public class ConsoleByDeptFacade {
|
|
String firstLevelPercentStr
|
|
String firstLevelPercentStr
|
|
= df.format(BigDecimal.valueOf(firstLevelPercent).multiply(BigDecimal.valueOf(100))) + "%";
|
|
= df.format(BigDecimal.valueOf(firstLevelPercent).multiply(BigDecimal.valueOf(100))) + "%";
|
|
Integer secondLevelNum = mrNum - firstLevelNum;
|
|
Integer secondLevelNum = mrNum - firstLevelNum;
|
|
- Double secondLevelPercent = BigDecimal.valueOf(1)
|
|
|
|
- .subtract(BigDecimal.valueOf(firstLevelPercent))
|
|
|
|
|
|
+ Double secondLevelPercent = BigDecimal.valueOf(secondLevelNum)
|
|
|
|
+ .divide(BigDecimal.valueOf(mrNum), 4, RoundingMode.HALF_UP)
|
|
.doubleValue();
|
|
.doubleValue();
|
|
String secondLevelPercentStr
|
|
String secondLevelPercentStr
|
|
= df.format(BigDecimal.valueOf(secondLevelPercent).multiply(BigDecimal.valueOf(100))) + "%";
|
|
= df.format(BigDecimal.valueOf(secondLevelPercent).multiply(BigDecimal.valueOf(100))) + "%";
|