Class OrganizationApplyRestService
java.lang.Object
com.bytedesk.core.base.BaseRestService<T,TRequest,TResponse>
com.bytedesk.core.base.BaseRestServiceWithExcel<OrganizationApplyEntity,OrganizationApplyRequest,OrganizationApplyResponse,OrganizationApplyExcel>
com.bytedesk.team.organization_apply.OrganizationApplyRestService
@Service
public class OrganizationApplyRestService
extends BaseRestServiceWithExcel<OrganizationApplyEntity,OrganizationApplyRequest,OrganizationApplyResponse,OrganizationApplyExcel>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AuthServiceprivate final org.modelmapper.ModelMapperprivate final OrganizationApplyRepositoryprivate final UidUtils -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(OrganizationApplyRequest request) voiddelete(OrganizationApplyRequest request) voiddeleteByUid(String uid) protected OrganizationApplyEntitydoSave(OrganizationApplyEntity entity) existsByUid(String uid) handleOptimisticLockingFailureException(org.springframework.orm.ObjectOptimisticLockingFailureException e, OrganizationApplyEntity entity) org.springframework.data.domain.Page<OrganizationApplyResponse>queryByOrg(OrganizationApplyRequest request) org.springframework.data.domain.Page<OrganizationApplyEntity>queryByOrgEntity(OrganizationApplyRequest request) queryByUid(OrganizationApplyRequest request) org.springframework.data.domain.Page<OrganizationApplyResponse>queryByUser(OrganizationApplyRequest request) update(OrganizationApplyRequest request) Methods inherited from class com.bytedesk.core.base.BaseRestService
getUidFromRequest, recover, save
-
Field Details
-
organizationRepository
-
modelMapper
private final org.modelmapper.ModelMapper modelMapper -
uidUtils
-
authService
-
-
Constructor Details
-
OrganizationApplyRestService
public OrganizationApplyRestService()
-
-
Method Details
-
queryByOrgEntity
public org.springframework.data.domain.Page<OrganizationApplyEntity> queryByOrgEntity(OrganizationApplyRequest request) -
queryByOrg
public org.springframework.data.domain.Page<OrganizationApplyResponse> queryByOrg(OrganizationApplyRequest request) - Specified by:
queryByOrgin classBaseRestService<OrganizationApplyEntity,OrganizationApplyRequest, OrganizationApplyResponse>
-
queryByUser
public org.springframework.data.domain.Page<OrganizationApplyResponse> queryByUser(OrganizationApplyRequest request) - Specified by:
queryByUserin classBaseRestService<OrganizationApplyEntity,OrganizationApplyRequest, OrganizationApplyResponse>
-
queryByUid
- Overrides:
queryByUidin classBaseRestService<OrganizationApplyEntity,OrganizationApplyRequest, OrganizationApplyResponse>
-
findByUid
@Cacheable(value="tag", key="#uid", unless="#result==null") public Optional<OrganizationApplyEntity> findByUid(String uid) - Specified by:
findByUidin classBaseRestService<OrganizationApplyEntity,OrganizationApplyRequest, OrganizationApplyResponse>
-
existsByUid
-
create
- Specified by:
createin classBaseRestService<OrganizationApplyEntity,OrganizationApplyRequest, OrganizationApplyResponse>
-
update
- Specified by:
updatein classBaseRestService<OrganizationApplyEntity,OrganizationApplyRequest, OrganizationApplyResponse>
-
doSave
- Specified by:
doSavein classBaseRestService<OrganizationApplyEntity,OrganizationApplyRequest, OrganizationApplyResponse>
-
handleOptimisticLockingFailureException
public OrganizationApplyEntity handleOptimisticLockingFailureException(org.springframework.orm.ObjectOptimisticLockingFailureException e, OrganizationApplyEntity entity) -
deleteByUid
- Specified by:
deleteByUidin classBaseRestService<OrganizationApplyEntity,OrganizationApplyRequest, OrganizationApplyResponse>
-
delete
- Specified by:
deletein classBaseRestService<OrganizationApplyEntity,OrganizationApplyRequest, OrganizationApplyResponse>
-
convertToResponse
- Specified by:
convertToResponsein classBaseRestService<OrganizationApplyEntity,OrganizationApplyRequest, OrganizationApplyResponse>
-
convertToExcel
-