配置文件中明明有前置请求id,
但是打开工具时,没有设置上
为什么呢?
有问题的代码:
- for(int i=0;i<size;i++){
- RequestPanel requestPanel=this.allRequestPanelList.get(i);
- //设置前置请求下拉框
- requestPanel.requestIDDispache();
- RequestInfoBean requestInfoBean=list.get(i);
- if(null==requestInfoBean){
- continue;
- }
- String beforeId=requestInfoBean.getPreRequestId();
- if(!ValueWidget.isNullOrEmpty(beforeId)){
- requestPanel.setPreRequestId(beforeId);
- /*if(!SystemHWUtil.MIDDLE_LINE.equals(beforeId)){
- requestPanel.toExecutePreQequest();
- }*/
- }
- }
修复之后的代码
- for(int i=0;i<size;i++){
- RequestPanel requestPanel=this.allRequestPanelList.get(i);
- //设置前置请求下拉框
- requestPanel.requestIDDispache();
- }
- for(int i=0;i<size;i++){
- RequestInfoBean requestInfoBean=list.get(i);
- if(null==requestInfoBean){
- continue;
- }
- RequestPanel requestPanel=this.allRequestPanelList.get(i);
- String beforeId=requestInfoBean.getPreRequestId();
- if(!ValueWidget.isNullOrEmpty(beforeId)){
- requestPanel.setPreRequestId(beforeId);
- /*if(!SystemHWUtil.MIDDLE_LINE.equals(beforeId)){
- requestPanel.toExecutePreQequest();
- }*/
- }
- }