| | |
| | | import kr.wisestone.owl.service.IssueDepartmentService; |
| | | import kr.wisestone.owl.util.CommonUtil; |
| | | import kr.wisestone.owl.util.MapUtil; |
| | | import kr.wisestone.owl.vo.DepartmentVo; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | return this.issueDepartmentRepository.findByIssueId(issue.getId()); |
| | | } |
| | | |
| | | // 이슈 담당부서 찾기 |
| | | @Override |
| | | @Transactional |
| | | public List<IssueDepartment> findByDepartmentId(Long departmentId) { |
| | | return this.issueDepartmentRepository.findByDepartmentId(departmentId); |
| | | } |
| | | |
| | | /** |
| | | * 이슈의 담당부서에 속해있는지 조회 |
| | | * @param departmentId Long |
| | | * @return useYn |
| | | */ |
| | | @Override |
| | | public boolean usingDepartment(Long departmentId) { |
| | | boolean useYn = false; |
| | | List<IssueDepartment> issueDepartments = this.issueDepartmentRepository.findByDepartmentId(departmentId); |
| | | if (issueDepartments != null && issueDepartments.size() > 0) { |
| | | useYn = true; |
| | | } |
| | | return useYn; |
| | | } |
| | | |
| | | @Override |
| | | @Transactional |
| | | public void insertIssueDepartment(List<Map<String, Long>> issueAssigneeMaps) { |