| | |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.corba.omd.ltm.LinkType; |
| | | import com.vci.corba.omd.qtm.QTD; |
| | | import com.vci.dto.QTInfoDTO; |
| | | import com.vci.pagemodel.OsBtmTypeAttributeVO; |
| | | import com.vci.pagemodel.OsBtmTypeVO; |
| | | import com.vci.pagemodel.OsLinkTypeAttributeVO; |
| | |
| | | objectBaseResult.setMsg(Arrays.toString(e.messages)); |
| | | return objectBaseResult; |
| | | } catch (DocumentException e) { |
| | | throw new RuntimeException(e); |
| | | e.printStackTrace(); |
| | | BaseResult objectBaseResult = new BaseResult<>(); |
| | | objectBaseResult.setCode(500); |
| | | objectBaseResult.setMsg(Arrays.toString(e.getMessage().toCharArray())); |
| | | return objectBaseResult; |
| | | } |
| | | } |
| | | |
| | |
| | | return objectBaseResult; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 链接类型查询模板保存 |
| | | * @param qtInfoDTO 保存传输对象 |
| | | * @return 保存结果 |
| | | */ |
| | | @PostMapping("/linkSave") |
| | | public BaseResult linkSave(@RequestBody QTInfoDTO qtInfoDTO){ |
| | | try { |
| | | return quereyTemplateServiceI.linkSave(qtInfoDTO); |
| | | } catch (PLException e) { |
| | | BaseResult objectBaseResult = new BaseResult<>(); |
| | | objectBaseResult.setCode(Integer.parseInt(e.code)); |
| | | objectBaseResult.setMsg(Arrays.toString(e.messages)); |
| | | return objectBaseResult; |
| | | } |
| | | } |
| | | } |