File was renamed from consum-base/src/main/java/com/consum/base/service/FinSysServerImpl.java |
| | |
| | | package com.consum.base.service; |
| | | package com.consum.base.service.impl; |
| | | |
| | | import com.consum.base.pojo.FinSysServerSearchParam; |
| | | import com.consum.base.pojo.FinSysServerVo; |
| | | import com.consum.base.service.FinSysServerService; |
| | | import com.consum.model.po.FinSysServer; |
| | | import com.iplatform.model.po.S_role; |
| | | import com.walker.db.page.GenericPager; |
| | | import com.walker.jdbc.service.BaseServiceImpl; |
| | | import com.walker.jdbc.util.StringUtils; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service |
| | | public class FinSysServerImpl extends BaseServiceImpl { |
| | | public class FinSysServerServiceImpl extends BaseServiceImpl implements FinSysServerService { |
| | | |
| | | private static final String SELECT_TREE_ALL = "select * from FIN_SYS_SERVER"; |
| | | private static final String SELECT_CHILD_BY_ID = "select * from FIN_SYS_SERVER where 1=1"; |
| | | |
| | | // private static final String S |
| | | |
| | | /** |
| | | * 查询所有服务目录 |
| | | * |
| | |
| | | * @date 2023-07-11 |
| | | */ |
| | | public List<FinSysServerVo> queryAllCategory() { |
| | | List<FinSysServer> finSysCategories = this.select(SELECT_TREE_ALL, new Object[] {}, new FinSysServer()); |
| | | List<FinSysServer> finSysCategories = this.select(SELECT_TREE_ALL, new Object[]{}, new FinSysServer()); |
| | | List<FinSysServerVo> result = null; |
| | | if (finSysCategories != null) { |
| | | List<FinSysServerVo> finSysCategoryVos = finSysCategories.stream().map(category -> { |
| | |
| | | * 根据id查询当下菜单所属子菜单 |
| | | */ |
| | | public List<FinSysServer> findChildById(Long parentId) { |
| | | List<FinSysServer> children = this.select(SELECT_CHILD_BY_ID, new Object[] {parentId}, new FinSysServer()); |
| | | List<FinSysServer> children = this.select(SELECT_CHILD_BY_ID, new Object[]{parentId}, new FinSysServer()); |
| | | return children; |
| | | } |
| | | |