| | |
| | | import com.vci.corba.omd.ltm.LinkType; |
| | | import com.vci.corba.omd.qtm.QTD; |
| | | import com.vci.pagemodel.OsBtmTypeAttributeVO; |
| | | import com.vci.pagemodel.OsBtmTypeVO; |
| | | import com.vci.pagemodel.OsLinkTypeAttributeVO; |
| | | import com.vci.pagemodel.OsLinkTypeVO; |
| | | import com.vci.starter.web.annotation.controller.VciUnCheckRight; |
| | | import com.vci.starter.web.annotation.log.VciBusinessLog; |
| | | import com.vci.starter.web.exception.VciBaseException; |
| | | import com.vci.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.starter.web.pagemodel.BaseResult; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 查询模板 |
| | | * 保存查询模板 |
| | | * @param qtd 查询模板实体类 |
| | | * @return 保存结果 |
| | | */ |
| | |
| | | return objectBaseResult; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 修改查询模板 |
| | | * @param qtd 查询模板实体类 |
| | | * @return 保存结果 |
| | | */ |
| | | @PostMapping("/updateTemplate") |
| | | public BaseResult updateTemplate(@RequestBody QTD qtd){ |
| | | try { |
| | | return quereyTemplateServiceI.updateTemplate(qtd); |
| | | } catch (PLException e) { |
| | | BaseResult objectBaseResult = new BaseResult<>(); |
| | | objectBaseResult.setCode(Integer.parseInt(e.code)); |
| | | objectBaseResult.setMsg(Arrays.toString(e.messages)); |
| | | return objectBaseResult; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 删除查询模板 |
| | | * @param name 查询模板名 |
| | | * @return 保存结果 |
| | | */ |
| | | @DeleteMapping("/deleteTemplate") |
| | | public BaseResult deleteTemplate(String name){ |
| | | try { |
| | | return quereyTemplateServiceI.deleteTemplate(name); |
| | | } catch (PLException e) { |
| | | BaseResult objectBaseResult = new BaseResult<>(); |
| | | objectBaseResult.setCode(Integer.parseInt(e.code)); |
| | | objectBaseResult.setMsg(Arrays.toString(e.messages)); |
| | | return objectBaseResult; |
| | | } |
| | | } |
| | | } |