/*
|
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
|
*
|
* Redistribution and use in source and binary forms, with or without
|
* modification, are permitted provided that the following conditions are met:
|
*
|
* Redistributions of source code must retain the above copyright notice,
|
* this list of conditions and the following disclaimer.
|
* Redistributions in binary form must reproduce the above copyright
|
* notice, this list of conditions and the following disclaimer in the
|
* documentation and/or other materials provided with the distribution.
|
* Neither the name of the dreamlu.net developer nor the names of its
|
* contributors may be used to endorse or promote products derived from
|
* this software without specific prior written permission.
|
* Author: Chill 庄骞 (smallchill@163.com)
|
*/
|
package org.springblade.modules.application.service;
|
|
import org.springblade.Application;
|
import org.springblade.flow.core.entity.BladeFlow;
|
import org.springblade.modules.application.entity.*;
|
import org.springblade.modules.application.vo.ApplicationVO;
|
import org.springblade.core.mp.base.BaseService;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import org.springblade.modules.reject.entity.RejectEntity;
|
|
import java.util.List;
|
|
/**
|
* 申请表 服务类
|
*
|
* @author BladeX
|
* @since 2022-12-13
|
*/
|
public interface IApplicationService extends BaseService<ApplicationEntity> {
|
|
/**
|
* 自定义分页
|
*
|
* @param page
|
* @param application
|
* @return
|
*/
|
IPage<ApplicationVO> selectApplicationPage(IPage<ApplicationVO> page, ApplicationVO application);
|
|
Boolean saveVo(ApplicationEntity application, BasicInfoEntity basicInfoEntity, CarEntity carEntity, PlanEntity planEntity, SchemeEntity schemeEntity, GoodsEntity goodsEntity);
|
|
ApplicationVO getVo(ApplicationEntity application);
|
|
ApplicationEntity getMaxNoEntity();
|
|
Boolean updateVoById(ApplicationEntity application, BasicInfoEntity basicInfoEntity, CarEntity carEntity, PlanEntity planEntity, SchemeEntity schemeEntity, GoodsEntity goodsEntity);
|
|
ApplicationEntity getByNo(String no);
|
|
/**
|
* application 工作流
|
* @param application
|
* @param basicInfoEntity
|
* @param carEntity
|
* @param planEntity
|
* @param schemeEntity
|
* @param goodsEntity
|
* @return
|
*/
|
Boolean startProcess(ApplicationEntity application, BasicInfoEntity basicInfoEntity, CarEntity carEntity, PlanEntity planEntity, SchemeEntity schemeEntity, GoodsEntity goodsEntity);
|
|
/**
|
* 审核信息
|
* @param flow
|
* @return
|
*/
|
Boolean completeTask(BladeFlow flow, ApplicationEntity applicationEntity, RejectEntity rejectEntity);
|
|
Boolean userCompleteTask(BladeFlow flow, ApplicationEntity application, BasicInfoEntity basicInfoEntity, CarEntity carEntity, PlanEntity planEntity, SchemeEntity schemeEntity, GoodsEntity goodsEntity, RejectEntity rejectEntity);
|
|
/**
|
* 获取所有申请
|
* @return
|
*/
|
List<ApplicationVO> getAll(ApplicationVO applicationVO);
|
}
|