|
@ -32,13 +32,13 @@ public class OptionValue { |
|
|
sb.append("\n").append("else if("); |
|
|
sb.append("\n").append("else if("); |
|
|
} |
|
|
} |
|
|
sb.append(GroovyExpressionReplacer.ARGUMENT_NAME).append(".").append(IdReplacer.fieldName(inOptionParameter.getCode())); |
|
|
sb.append(GroovyExpressionReplacer.ARGUMENT_NAME).append(".").append(IdReplacer.fieldName(inOptionParameter.getCode())); |
|
|
sb.append("=="); |
|
|
sb.append(".equals("); |
|
|
if(ValueTypeUtil.isString(inOptionParameter.getValueType())){ |
|
|
if(ValueTypeUtil.isString(inOptionParameter.getValueType())){ |
|
|
sb.append(GroovyExpressionReplacer.groovy(item.getInputValue(),"java.lang.String")); |
|
|
sb.append(GroovyExpressionReplacer.groovy(item.getInputValue(),"java.lang.String")); |
|
|
}else{ |
|
|
}else{ |
|
|
sb.append(GroovyExpressionReplacer.groovy(item.getInputValue())); |
|
|
sb.append(GroovyExpressionReplacer.groovy(item.getInputValue())); |
|
|
} |
|
|
} |
|
|
sb.append("){ "); |
|
|
sb.append(")){ "); |
|
|
sb.append(GroovyExpressionReplacer.ARGUMENT_NAME).append(".").append(IdReplacer.fieldName(parameter.getCode())); |
|
|
sb.append(GroovyExpressionReplacer.ARGUMENT_NAME).append(".").append(IdReplacer.fieldName(parameter.getCode())); |
|
|
sb.append(" =TypeConvertor.getValue("); |
|
|
sb.append(" =TypeConvertor.getValue("); |
|
|
sb.append(GroovyExpressionReplacer.groovy(item.getValue(),parameter.getValueType())); |
|
|
sb.append(GroovyExpressionReplacer.groovy(item.getValue(),parameter.getValueType())); |
|
|