|
|
|
@ -1,6 +1,9 @@
|
|
|
|
|
package cn.estsh.i3plus.pojo.softswitch.sqlpack;
|
|
|
|
|
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.bean.DdlPackBean;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.tool.DdlPreparedPack;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.tool.HqlPack;
|
|
|
|
|
import cn.estsh.i3plus.pojo.softswitch.bean.BsSuitCaseParam;
|
|
|
|
|
import cn.estsh.i3plus.pojo.softswitch.bean.TestDataBase;
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
|
|
|
@ -13,7 +16,6 @@ import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
**/
|
|
|
|
|
public class SoftSwitchHqlPack {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* In 参数封装
|
|
|
|
|
* @param columnName
|
|
|
|
@ -41,4 +43,20 @@ public class SoftSwitchHqlPack {
|
|
|
|
|
return result.toString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 适配套件参数条件封装
|
|
|
|
|
* @param bsSuitCaseParam 查询条件
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static DdlPackBean packHqlBsSuitCaseParam(BsSuitCaseParam bsSuitCaseParam){
|
|
|
|
|
DdlPackBean ddlPackBean = new DdlPackBean();
|
|
|
|
|
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(bsSuitCaseParam.getParamName(),"paramName",ddlPackBean);
|
|
|
|
|
DdlPreparedPack.getNumEqualPack(bsSuitCaseParam.getParamTypeId(), "paramTypeId", ddlPackBean);
|
|
|
|
|
DdlPreparedPack.getNumEqualPack(bsSuitCaseParam.getSuitCaseId(), "suitCaseId", ddlPackBean);
|
|
|
|
|
DdlPreparedPack.getStringEqualPack(bsSuitCaseParam.getSuitCaseCodeRdd(),"suitCaseCodeRdd",ddlPackBean);
|
|
|
|
|
|
|
|
|
|
return ddlPackBean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|