|
|
@@ -5,6 +5,8 @@ import com.ffii.tsms.modules.data.service.CustomerContactService |
|
|
|
import com.ffii.tsms.modules.project.entity.projections.ProjectSearchInfo |
|
|
|
import com.ffii.tsms.modules.data.service.CustomerService |
|
|
|
import com.ffii.tsms.modules.project.entity.* |
|
|
|
import com.ffii.tsms.modules.project.entity.projections.InvoiceInfoSearchInfo |
|
|
|
import com.ffii.tsms.modules.project.entity.projections.InvoiceSearchInfo |
|
|
|
import com.ffii.tsms.modules.project.web.models.NewProjectRequest |
|
|
|
import org.springframework.stereotype.Service |
|
|
|
import org.springframework.transaction.annotation.Transactional |
|
|
@@ -28,6 +30,18 @@ open class ProjectsService( |
|
|
|
return projectRepository.findProjectSearchInfoBy() |
|
|
|
} |
|
|
|
|
|
|
|
open fun allInvoices(): List<InvoiceSearchInfo> { |
|
|
|
return projectRepository.findInvoiceSearchInfoBy() |
|
|
|
} |
|
|
|
|
|
|
|
open fun getProjectDetailById(id: Long): List<InvoiceSearchInfo> { |
|
|
|
return projectRepository.findInvoiceSearchInfoById(id) |
|
|
|
} |
|
|
|
|
|
|
|
open fun getInvoiceInfoById(id: Long): List<InvoiceInfoSearchInfo> { |
|
|
|
return projectRepository.findInvoiceInfoSearchInfoById(id) |
|
|
|
} |
|
|
|
|
|
|
|
open fun allProjectCategories(): List<ProjectCategory> { |
|
|
|
return projectCategoryRepository.findAll() |
|
|
|
} |
|
|
|