Browse Source

REPORT-149012 alphafine中搜索之前可以在设计器中搜到BI的模板,现在增加cid参数,只搜索fr相关模板

release/11.0
shengzu.xue 2 weeks ago
parent
commit
caede8d25f
  1. 4
      designer-realize/src/main/java/com/fr/design/mainframe/alphafine/search/helper/FineMarketClientHelper.java

4
designer-realize/src/main/java/com/fr/design/mainframe/alphafine/search/helper/FineMarketClientHelper.java

@ -55,6 +55,8 @@ public class FineMarketClientHelper {
public static final String TEMPLATES_PARENT_PACKAGE = "parent/";
public static final String TEMPLATES_TAGS = "filter";
public static final String NAME_SEARCH = "?searchKeyword=";
public static final String CID_SEARCH = "&cid=";
public static final String FR_CID_TYPE = "template_type-1,template_type-2,template_type-3";
public static final String RESPONSE_STATE = "state";
public static final String RESPONSE_SUCCESS = "ok";
@ -273,7 +275,7 @@ public class FineMarketClientHelper {
* 通过名字搜索模板信息
*/
public @Nullable JSONArray getTemplateInfoByName(String name) throws IOException {
String url = FINE_MARKET_TEMPLATE_INFO + NAME_SEARCH + ClientHelper.urlEncode(name, EncodeConstants.ENCODING_UTF_8);
String url = FINE_MARKET_TEMPLATE_INFO + NAME_SEARCH + ClientHelper.urlEncode(name, EncodeConstants.ENCODING_UTF_8) + CID_SEARCH + FR_CID_TYPE;
String jsonString = HttpToolbox.get(url);
JSONObject jsonObject = new JSONObject(jsonString);
String responseState = (String) jsonObject.get(RESPONSE_STATE);

Loading…
Cancel
Save