|
@@ -1453,7 +1453,11 @@ public class RuleConvertFacade {
|
|
|
if (result.getMinValue() != null) {
|
|
|
ResultBill minResult = new ResultBill();
|
|
|
BeanUtil.copyProperties(result, minResult);
|
|
|
- minResult.setInputValue(random(null, result.getMinValue()).toString());
|
|
|
+ if (result.getConflictItemType().equals(GraphLabelEnum.Vital.getName()) && result.getConflictItemName().equals("年龄")) {
|
|
|
+ minResult.setInputValue(random_int(null, result.getMinValue().intValue()).toString());
|
|
|
+ } else {
|
|
|
+ minResult.setInputValue(random(null, result.getMinValue()).toString());
|
|
|
+ }
|
|
|
BillMsg billMsg = getBillMsg(minResult);
|
|
|
minResult.setExpectedOutput(billMsg.getMsg());
|
|
|
retList.add(minResult);
|
|
@@ -1461,13 +1465,21 @@ public class RuleConvertFacade {
|
|
|
if (result.getMaxValue() != null) {
|
|
|
ResultBill maxResult = new ResultBill();
|
|
|
BeanUtil.copyProperties(result, maxResult);
|
|
|
- maxResult.setInputValue(random(result.getMaxValue(), null).toString());
|
|
|
+ if (result.getConflictItemType().equals(GraphLabelEnum.Vital.getName()) && result.getConflictItemName().equals("年龄")) {
|
|
|
+ maxResult.setInputValue(random_int(result.getMaxValue().intValue(), null).toString());
|
|
|
+ } else {
|
|
|
+ maxResult.setInputValue(random(result.getMaxValue(), null).toString());
|
|
|
+ }
|
|
|
BillMsg billMsg = getBillMsg(maxResult);
|
|
|
maxResult.setExpectedOutput(billMsg.getMsg());
|
|
|
retList.add(maxResult);
|
|
|
}
|
|
|
} else {
|
|
|
- result.setInputValue(random(result.getMinValue(), result.getMaxValue()).toString());
|
|
|
+ if (result.getConflictItemType().equals(GraphLabelEnum.Vital.getName()) && result.getConflictItemName().equals("年龄")) {
|
|
|
+ result.setInputValue(random_int(result.getMinValue().intValue(), result.getMaxValue().intValue()).toString());
|
|
|
+ } else {
|
|
|
+ result.setInputValue(random(result.getMinValue(), result.getMaxValue()).toString());
|
|
|
+ }
|
|
|
BillMsg billMsg = getBillMsg(result);
|
|
|
result.setExpectedOutput(billMsg.getMsg());
|
|
|
retList.add(result);
|