| | |
| | | import com.vci.pagemodel.OsBtmTypeAttributeVO; |
| | | import com.vci.pagemodel.OsLinkTypeAttributeVO; |
| | | import com.vci.pagemodel.OsLinkTypeVO; |
| | | import com.vci.starter.web.annotation.controller.VciUnCheckRight; |
| | | import com.vci.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.starter.web.pagemodel.BaseResult; |
| | | import com.vci.starter.web.pagemodel.DataGrid; |
| | | import com.vci.starter.web.util.VciBaseUtil; |
| | | import com.vci.web.service.OsLinkTypeServiceI; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | private OsLinkTypeServiceI linkTypeService; |
| | | |
| | | /** |
| | | * 日志 |
| | | */ |
| | | private Logger logger = LoggerFactory.getLogger(getClass()); |
| | | |
| | | /** |
| | | * 链接类型的列表 |
| | | * @param baseQueryObject 查询对象 |
| | | * @return 链接类型的显示对象 |
| | |
| | | } |
| | | |
| | | /** |
| | | * 查询所有的链接类型名称,可用于属性池的连接类型选择时的对话框 |
| | | * @return 链接类型的显示对象 |
| | | */ |
| | | @GetMapping("/getAllLtName") |
| | | @VciUnCheckRight |
| | | public BaseResult getAllLtName(){ |
| | | try { |
| | | return BaseResult.dataList(linkTypeService.getAllLtName()); |
| | | }catch (Exception e) { |
| | | e.printStackTrace(); |
| | | String exceptionMessage = "链接类型列表查询时出现错误,原因:" + VciBaseUtil.getExceptionMessage(e); |
| | | logger.error(exceptionMessage); |
| | | return BaseResult.fail(exceptionMessage); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 获取链接类型包含的属性 |
| | | * @param linkTypeOid 链接类型的主键 |
| | | * @param baseQueryObject 查询对象 |