Browse Source

表单字段下拉框包括了所有版本字段和已被删除字段的bug解决

master
liwenxuan 1 year ago
parent
commit
2a8fa67c7f
  1. 2
      src/main/java/com/hxgk/lowcode/mapper/CustomerFormViewMapper.java
  2. 12
      src/main/java/com/hxgk/lowcode/service/impl/CustomerFormServiceImpl.java
  3. 8
      src/main/resources/mapper/CustomerFormvViewMapper.xml

2
src/main/java/com/hxgk/lowcode/mapper/CustomerFormViewMapper.java

@ -14,4 +14,6 @@ public interface CustomerFormViewMapper {
ArrayList<CustomerFormView> getCustomerFormViewListByGroupid(String groupid);
CustomerFormView getTableNameByCfid(String formId);
String getIdByCfid(String cfid);
}

12
src/main/java/com/hxgk/lowcode/service/impl/CustomerFormServiceImpl.java

@ -304,15 +304,18 @@ public class CustomerFormServiceImpl implements CustomerFormService {
ArrayList<Tree> masterTreeList = new ArrayList<>();
String userKey = key;
String onlyToShowTableId = "";
//上线修改
String url = "http://172.20.2.87:7777/customer_form/gainTableField";//本地+内网
//String url = "http://36.133.126.182:39250/customer_form/gainTableField";//外网
String url = "http://172.20.2.87:7777/customer_form/gainTableVersionField";//本地+内网
//String url = "http://36.133.126.182:39250/customer_form/gainTableVersionField";//外网
if(cfid.contains("zibiaoid-")){
onlyToShowTableId = cfid.split("zibiaoid-")[1];
cfid = cfid.split(":")[0];//当选择某个主表的子表时,连主表数据一并返回。
}
JSONObject param = new JSONObject();
param.put("id", cfid);
String idFilteredVersion = customerFormViewMapper.getIdByCfid(cfid);
System.out.println(idFilteredVersion);
param.put("id", idFilteredVersion);
String post = null;
/*System.out.println("requestBody:"+param);
@ -2163,6 +2166,7 @@ public class CustomerFormServiceImpl implements CustomerFormService {
String singleAsfChildTableFormulaHtml = ((com.alibaba.fastjson2.JSONObject) filterCondition.get("gongShi")).get("formulaHtml").toString();
String singleAsfChildTableMathsFormula = ((com.alibaba.fastjson2.JSONObject) filterCondition.get("gongShi")).get("mathsFormula").toString();
String singleAsfChildTableMathsString = ((com.alibaba.fastjson2.JSONObject) filterCondition.get("gongShi")).get("mathsString").toString();
System.out.println(1);
}else{//没有设置筛选条件
@ -2202,6 +2206,8 @@ public class CustomerFormServiceImpl implements CustomerFormService {
}
System.out.println(1);
}
}
if(resultList.size()>0){

8
src/main/resources/mapper/CustomerFormvViewMapper.xml

@ -34,4 +34,12 @@
where status = 1 and cfid = #{formId}
</select>
<select id="getIdByCfid" resultType="String">
select
id
from customer_form_view
where status = 1 and cfid = #{cfid}
</select>
</mapper>
Loading…
Cancel
Save