Class QualityAppealRestService
java.lang.Object
com.bytedesk.core.base.BaseRestService<T,TRequest,TResponse>
com.bytedesk.core.base.BaseRestServiceWithExport<QualityAppealEntity,QualityAppealRequest,QualityAppealResponse,QualityAppealExcel>
com.bytedesk.service.quality_appeal.QualityAppealRestService
@Service
public class QualityAppealRestService
extends BaseRestServiceWithExport<QualityAppealEntity,QualityAppealRequest,QualityAppealResponse,QualityAppealExcel>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final QualityAppealRepositoryprivate final org.modelmapper.ModelMapperprivate final QualityCheckRestServiceprivate final UidUtilsFields inherited from class com.bytedesk.core.base.BaseRestService
authService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapprove(QualityAppealRequest request) 申诉通过convertToExcel(QualityAppealEntity entity) 转换为Excel对象 子类必须实现此方法convertToResponse(QualityAppealEntity entity) create(QualityAppealRequest request) protected org.springframework.data.jpa.domain.Specification<QualityAppealEntity>createSpecification(QualityAppealRequest request) 创建Specification对象,子类必须实现 用于queryByOrg的通用实现voiddelete(QualityAppealRequest request) voiddeleteByUid(String uid) protected QualityAppealEntitydoSave(QualityAppealEntity entity) 子类实现具体的保存逻辑protected org.springframework.data.domain.Page<QualityAppealEntity>executePageQuery(org.springframework.data.jpa.domain.Specification<QualityAppealEntity> spec, org.springframework.data.domain.Pageable pageable) 执行分页查询,子类必须实现 用于queryByOrg的通用实现existsByUid(String uid) handleOptimisticLockingFailureException(org.springframework.orm.ObjectOptimisticLockingFailureException e, QualityAppealEntity entity) voidinitQualityAppeals(String orgUid) reject(QualityAppealRequest request) 申诉驳回update(QualityAppealRequest request) Methods inherited from class com.bytedesk.core.base.BaseRestServiceWithExport
queryByOrgEntityMethods inherited from class com.bytedesk.core.base.BaseRestService
deleteByOrgUid, findByOrgUid, getUidFromRequest, queryByOrg, queryByUid, queryByUser, recover, save, setUserUidToRequest
-
Field Details
-
appealRepository
-
modelMapper
private final org.modelmapper.ModelMapper modelMapper -
uidUtils
-
qualityCheckRestService
-
-
Constructor Details
-
QualityAppealRestService
public QualityAppealRestService()
-
-
Method Details
-
createSpecification
protected org.springframework.data.jpa.domain.Specification<QualityAppealEntity> createSpecification(QualityAppealRequest request) Description copied from class:BaseRestService创建Specification对象,子类必须实现 用于queryByOrg的通用实现- Specified by:
createSpecificationin classBaseRestService<QualityAppealEntity,QualityAppealRequest, QualityAppealResponse>
-
executePageQuery
protected org.springframework.data.domain.Page<QualityAppealEntity> executePageQuery(org.springframework.data.jpa.domain.Specification<QualityAppealEntity> spec, org.springframework.data.domain.Pageable pageable) Description copied from class:BaseRestService执行分页查询,子类必须实现 用于queryByOrg的通用实现- Specified by:
executePageQueryin classBaseRestService<QualityAppealEntity,QualityAppealRequest, QualityAppealResponse>
-
findByUid
@Cacheable(value="appeal", key="#uid", unless="#result==null") public Optional<QualityAppealEntity> findByUid(String uid) - Specified by:
findByUidin classBaseRestService<QualityAppealEntity,QualityAppealRequest, QualityAppealResponse>
-
existsByUid
-
create
- Specified by:
createin classBaseRestService<QualityAppealEntity,QualityAppealRequest, QualityAppealResponse>
-
update
- Specified by:
updatein classBaseRestService<QualityAppealEntity,QualityAppealRequest, QualityAppealResponse>
-
doSave
Description copied from class:BaseRestService子类实现具体的保存逻辑- Specified by:
doSavein classBaseRestService<QualityAppealEntity,QualityAppealRequest, QualityAppealResponse>
-
handleOptimisticLockingFailureException
public QualityAppealEntity handleOptimisticLockingFailureException(org.springframework.orm.ObjectOptimisticLockingFailureException e, QualityAppealEntity entity) -
deleteByUid
- Specified by:
deleteByUidin classBaseRestService<QualityAppealEntity,QualityAppealRequest, QualityAppealResponse>
-
delete
- Specified by:
deletein classBaseRestService<QualityAppealEntity,QualityAppealRequest, QualityAppealResponse>
-
convertToResponse
- Specified by:
convertToResponsein classBaseRestService<QualityAppealEntity,QualityAppealRequest, QualityAppealResponse>
-
convertToExcel
Description copied from class:BaseRestServiceWithExport转换为Excel对象 子类必须实现此方法 -
approve
申诉通过 -
reject
申诉驳回 -
initQualityAppeals
-