Commit 248c3e7c by zhouhaibao

fix(strategy): 修复策略条件引擎中的值类型映射错误

- 修正了文本值和日期值的返回逻辑,将原本的 textValue 和 dateValue 的返回位置进行了调换
- 确保类型 1 正确返回日期值,类型 3 正确返回文本值
- 解决了因值类型映射错误导致的策略计算问题
1 parent cff79920
...@@ -100,11 +100,11 @@ public class SopConditionEngine { ...@@ -100,11 +100,11 @@ public class SopConditionEngine {
private Object getFixedValue(SopStrategyCondition condition, Integer valueType) { private Object getFixedValue(SopStrategyCondition condition, Integer valueType) {
switch (valueType != null ? valueType : 1) { switch (valueType != null ? valueType : 1) {
case 1: case 1:
return condition.getTextValue(); return condition.getDateValue();
case 2: case 2:
return condition.getNumberValue(); return condition.getNumberValue();
case 3: case 3:
return condition.getDateValue(); return condition.getTextValue();
case 4: case 4:
return condition.getEnumValue(); return condition.getEnumValue();
default: default:
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!