|
@@ -1259,9 +1259,9 @@ public class MedRuleConvertFacade {
|
|
|
} else if (ListUtil.isNotEmpty(medicineResults)) {
|
|
|
billMsg = MsgUtil.getCommonOtherMsg(orderType, content, medicineResults.get(0).getRuleBaseHisName(), TypeEnum.drug.getName(), lis);
|
|
|
} else if (ListUtil.isNotEmpty(groupResults)) {
|
|
|
- billMsg = MsgUtil.getCommonOtherMsg(orderType, content, groupResults.get(0).getRuleBaseLibName(), ConEnum.group.getName(), lis);
|
|
|
+ billMsg = MsgUtil.getCommonOtherMsg(orderType, content, groupResults.get(0).getRuleBaseLibName(), TypeEnum.group.getName(), lis);
|
|
|
} else {
|
|
|
- billMsg = MsgUtil.getCommonOtherMsg(orderType, content, "", ConEnum.lis.getName(), lis);
|
|
|
+ billMsg = MsgUtil.getCommonOtherMsg(orderType, content, "", TypeEnum.lis.getName(), lis);
|
|
|
}
|
|
|
} else if (ruleLibType.equals(LexiconEnum.PacsResult.getKey())) {
|
|
|
billMsg = MsgUtil.getCommonOtherMsg(orderType, list.get(0).getExpectedOutput(), "", "", null);
|
|
@@ -1604,9 +1604,9 @@ public class MedRuleConvertFacade {
|
|
|
} else if (ListUtil.isNotEmpty(medicineResults)) {
|
|
|
billMsg = MsgUtil.getCommonOtherMsg(orderType, content, medicineResults.get(0).getRuleBaseLibName(), TypeEnum.drug.getName(), lis);
|
|
|
} else if (ListUtil.isNotEmpty(groupResults)) {
|
|
|
- billMsg = MsgUtil.getCommonOtherMsg(orderType, content, groupResults.get(0).getRuleBaseLibName(), ConEnum.group.getName(), lis);
|
|
|
+ billMsg = MsgUtil.getCommonOtherMsg(orderType, content, groupResults.get(0).getRuleBaseLibName(), TypeEnum.group.getName(), lis);
|
|
|
} else {
|
|
|
- billMsg = MsgUtil.getCommonOtherMsg(orderType, content, "", ConEnum.lis.getName(), lis);
|
|
|
+ billMsg = MsgUtil.getCommonOtherMsg(orderType, content, "", TypeEnum.lis.getName(), lis);
|
|
|
}
|
|
|
} else if (ruleLibType.equals(LexiconEnum.PacsResult.getKey())) {
|
|
|
billMsg = MsgUtil.getCommonOtherMsg(orderType, list.get(0).getExpectedOutput(), "", "", null);
|
|
@@ -1659,12 +1659,19 @@ public class MedRuleConvertFacade {
|
|
|
max = min.add(BigDecimal.TEN);
|
|
|
}
|
|
|
BigDecimal randomVal = new BigDecimal(Math.random() * (max.doubleValue() - min.doubleValue()) + min.doubleValue());
|
|
|
- BigDecimal random_dec = randomVal.setScale(2, BigDecimal.ROUND_HALF_UP);
|
|
|
+ BigDecimal random_dec = randomVal.setScale(3, BigDecimal.ROUND_HALF_UP);
|
|
|
//是否包含边界值
|
|
|
- if (!minBoundary || maxBoundary) {
|
|
|
- random_dec.add(new BigDecimal(0.01d));
|
|
|
+ if (!minBoundary) {
|
|
|
+ if (maxBoundary) {
|
|
|
+ if (randomVal.setScale(3, BigDecimal.ROUND_UP).doubleValue() <= max.setScale(3, BigDecimal.ROUND_HALF_UP).doubleValue()) {
|
|
|
+ random_dec = randomVal.setScale(3, BigDecimal.ROUND_UP);
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (randomVal.setScale(3, BigDecimal.ROUND_UP).doubleValue() < max.setScale(3, BigDecimal.ROUND_HALF_UP).doubleValue()) {
|
|
|
+ random_dec = randomVal.setScale(3, BigDecimal.ROUND_UP);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
- random_dec = randomVal.setScale(2, BigDecimal.ROUND_HALF_UP);
|
|
|
return random_dec;
|
|
|
}
|
|
|
|