com.kel.service.impl.ReasoningServiceImpl Maven / Gradle / Ivy
The newest version!
package com.kel.service.impl;
import java.sql.SQLException;
import java.util.Map;
import com.kel.handler.ReasoningHandler;
import com.kel.model.ReasoningModel;
import com.kel.service.ReasoningService;
/**
* Description :
*
* Created by shin on 2018/11/19 18:53.
*/
public class ReasoningServiceImpl implements ReasoningService {
private ReasoningHandler reasoningHandler = new ReasoningHandler();
@Override
public String reasoning(ReasoningModel reasoningModel, Map data) throws SQLException {
return reasoningHandler.handler(reasoningModel.getConditionStr(), data) ? reasoningModel.getSureResult()
: reasoningModel.getFailResult();
}
}