|
|
|
@ -6,7 +6,6 @@ import com.fanruan.api.util.ArrayKit;
|
|
|
|
|
import com.fanruan.api.util.GeneralKit; |
|
|
|
|
import com.fanruan.api.util.RenderKit; |
|
|
|
|
import com.fanruan.api.util.StringKit; |
|
|
|
|
import com.fr.base.Parameter; |
|
|
|
|
import com.fr.json.JSONArray; |
|
|
|
|
import com.fr.plugin.db.redis.core.order.OrderValue; |
|
|
|
|
import com.fr.plugin.db.redis.help.ScriptBridge; |
|
|
|
@ -75,9 +74,9 @@ public class RedisUtils {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static ParameterProvider[] analyzeParameter(JSONArray existParameters, OrderValue orderValue, String... parameterTexts) { |
|
|
|
|
Parameter[] oldParameters = new Parameter[existParameters.size()]; |
|
|
|
|
ParameterProvider[] oldParameters = new ParameterProvider[existParameters.size()]; |
|
|
|
|
for (int i = 0; i < existParameters.size(); i++) { |
|
|
|
|
oldParameters[i] = Parameter.getParameterFromJson(existParameters.getJSONObject(i)); |
|
|
|
|
oldParameters[i] = ParameterKit.json2Parameter(existParameters.getJSONObject(i)); |
|
|
|
|
} |
|
|
|
|
ParameterProvider[] newParameters = ParameterKit.analyzeAndUnionSameParameters(parameterTexts, oldParameters); |
|
|
|
|
ParameterProvider[] newOrderParameters = orderValue.analyze4Parameters(); |
|
|
|
|