| | |
| | | import org.springframework.transaction.support.DefaultTransactionDefinition; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import javax.validation.constraints.NotEmpty; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | |
| | | throw new RuntimeException(e); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public boolean deleteLogic(@NotEmpty List<Long> ids) { |
| | | return false; |
| | | } |
| | | |
| | | @Override |
| | | public boolean changeStatus(@NotEmpty List<Long> ids, Integer status) { |
| | | return false; |
| | | } |
| | | |
| | | /** |
| | | * 获取链接类型,只有默认字段 |
| | | * |
| | | * @param linkTypeId 链接类型id |
| | | * @return 默认字段属性 |
| | | */ |
| | | @Override |
| | | public LinkTypeVO getLinkTypeDefaultAttrById(String linkTypeId) { |
| | | LinkTypeVO vo = getLinkTypeById(linkTypeId); |
| | | List<LinkTypeAttributeVO> attributes = linkTypeAttributeService.getDefaultAttributes(vo); |
| | | vo.setAttributes(attributes); |
| | | return vo; |
| | | } |
| | | |
| | | /** |
| | | * 获取链接类型,有所有的字段 |
| | | * |
| | | * @param linkTypeId 链接类型id |
| | | * @return 所有字段 |
| | | */ |
| | | @Override |
| | | public LinkTypeVO getLinkTypeAllAttrById(String linkTypeId) { |
| | | LinkTypeVO vo = getLinkTypeById(linkTypeId); |
| | | List<LinkTypeAttributeVO> attributes = linkTypeAttributeService.getAllAttributes(vo); |
| | | vo.setAttributes(attributes); |
| | | return vo; |
| | | } |
| | | |
| | | /** |
| | | * 获取链接类型,有所有的字段 |
| | | * |
| | | * @param linkTypeOid 链接类型主键 |
| | | * @return 所有字段 |
| | | */ |
| | | @Override |
| | | public LinkTypeVO getLinkTypeAllAttrByOid(String linkTypeOid) { |
| | | LinkTypeVO vo = getLinkTypeByOid(linkTypeOid); |
| | | List<LinkTypeAttributeVO> attributes = linkTypeAttributeService.getAllAttributes(vo); |
| | | vo.setAttributes(attributes); |
| | | return vo; |
| | | } |
| | | } |