esoe
1 week ago
15 changed files with 151 additions and 20 deletions
@ -0,0 +1,23 @@
@@ -0,0 +1,23 @@
|
||||
package gsp.technologies.main.api.organization; |
||||
|
||||
import org.slf4j.Logger; |
||||
import org.slf4j.LoggerFactory; |
||||
import org.springframework.stereotype.Controller; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
||||
@Controller |
||||
@RequestMapping(path = "/organizations") |
||||
public class OrganizationFaceController { |
||||
private static final Logger log = LoggerFactory.getLogger(OrganizationFaceController.class); |
||||
|
||||
/** |
||||
* Главная страница для работы с перечнем организаций |
||||
* @return |
||||
*/ |
||||
@GetMapping("") |
||||
public String organizations() { |
||||
log.info("GET /organizations"); |
||||
return "organizations/main"; |
||||
} |
||||
} |
@ -1,9 +1,13 @@
@@ -1,9 +1,13 @@
|
||||
package gsp.technologies.main.api.position; |
||||
|
||||
import org.springframework.data.domain.Page; |
||||
import org.springframework.data.domain.Pageable; |
||||
import org.springframework.data.jpa.repository.JpaRepository; |
||||
import org.springframework.stereotype.Repository; |
||||
|
||||
@Repository |
||||
public interface PositionRepository extends JpaRepository<PositionEntity, Long> { |
||||
|
||||
Page<PositionEntity> findByOrganizationId(Pageable of, long organizationId); |
||||
|
||||
} |
||||
|
Before Width: | Height: | Size: 143 KiB After Width: | Height: | Size: 215 KiB |
@ -0,0 +1,19 @@
@@ -0,0 +1,19 @@
|
||||
<!DOCTYPE html> |
||||
<html xmlns="http://www.w3.org/1999/xhtml" |
||||
xmlns:th="http://www.thymeleaf.org"> |
||||
<head> |
||||
<meta charset="UTF-8"> |
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
||||
<title>exam-main-hello</title> |
||||
<script src="https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs@2/webcomponents-loader.min.js"></script> |
||||
<script type="module" src="https://cdn.jsdelivr.net/gh/zerodevx/zero-md@1/src/zero-md.min.js"></script> |
||||
</head> |
||||
<header> |
||||
</header> |
||||
<body> |
||||
<h1>organizations</h1> |
||||
</body> |
||||
<footer> |
||||
<div th:insert="~{fragments/common/footer :: copy}"></div> |
||||
</footer> |
||||
</html> |
Before Width: | Height: | Size: 143 KiB After Width: | Height: | Size: 215 KiB |
Loading…
Reference in new issue