|
|
@@ -1,5 +1,6 @@ |
|
|
|
package com.ffii.tsms.modules.data.service |
|
|
|
|
|
|
|
import com.ffii.core.support.JdbcDao |
|
|
|
import com.ffii.tsms.modules.data.entity.CompanyRepository |
|
|
|
import com.ffii.tsms.modules.data.entity.Department |
|
|
|
import com.ffii.tsms.modules.data.entity.DepartmentRepository |
|
|
@@ -13,10 +14,11 @@ import com.ffii.tsms.modules.data.web.models.NewPositionRequest |
|
|
|
import org.springframework.stereotype.Service |
|
|
|
@Service |
|
|
|
class PositionService( |
|
|
|
private val positionRepository: PositionRepository |
|
|
|
private val positionRepository: PositionRepository, |
|
|
|
private val jdbcDao: JdbcDao |
|
|
|
) { |
|
|
|
fun allPositions(): List<PositionSearchInfo>{ |
|
|
|
return positionRepository.findPositionSearchInfoBy() |
|
|
|
return positionRepository.findPositionSearchInfoByDeletedFalse() |
|
|
|
} |
|
|
|
|
|
|
|
fun savePosition(request: NewPositionRequest): Position { |
|
|
@@ -26,7 +28,6 @@ class PositionService( |
|
|
|
code = request.positionCode |
|
|
|
description = request.description |
|
|
|
} |
|
|
|
|
|
|
|
return positionRepository.save(position) |
|
|
|
} |
|
|
|
} |