jinpengyong
2023-10-25 1de4906d90e268579128b9fae911ea48c6f22469
screen-api/src/main/java/com/moral/api/service/AllocationService.java
@@ -14,6 +14,8 @@
import com.moral.api.pojo.query.allocation.*;
import com.moral.api.pojo.dto.allocation.AllocationUnitDto;
import com.moral.api.pojo.query.allocationextension.AllocationExtensionAddCond;
import com.moral.api.pojo.vo.allocation.AllocationFindVo;
import com.moral.api.pojo.vo.allocation.AllocationPageVo;
public interface AllocationService extends IService<Allocation> {
@@ -25,8 +27,17 @@
    void updateAll(AllocationUpdateCond allocationUpdateCond);
    /**
     *  列表数据权限 0无权 空值,管理员
     * @return
     */
    List<Integer> unitResult();
    /**
     * 区域权限 是否是区域管理员 1,超级管理员2区域管理员0普通权限
     * 验证是否出现审批按钮
     * @return
     */
    Integer unitAreaCode();
    Map<String, Object> selectUnitView(Map<String,Object> map);
@@ -41,14 +52,38 @@
     */
    AllocationExt extOne(Integer id);
    /**
     * 单个详情
     * @param id
     * @return
     */
     AllocationExt oneAllocation(Integer id);
    /**
     * 整改
     * @param changeCond
     */
    void changeAllocation(AllocationChangeCond changeCond);
    /**
     * 审批
     * @param checkCond
     */
    void checkAllocation(AllocationCheckCond checkCond);
    /**
     * 删除
     * @param id
     * @return
     */
    boolean removeById(Integer id);
    /**
     * 作废
     * @param id
     * @param invalidReason
     * @return
     */
    boolean invalidResult (Integer id,String invalidReason);
    /**
@@ -58,5 +93,34 @@
     */
    List<AllocationListExt> extList(AllocationListCond allocationListCond);
    /**
     * 延期申请
     * @param allocationExtensionAddCond
     * @return
     */
    boolean applyFor (AllocationExtensionAddCond allocationExtensionAddCond);
    /**
     * 小程序查询
     * @param state
     * @return
     */
    List<AllocationFindVo> selectSmallRoutine(Integer state,String startTime,String endTime);
    /**
     * 小程序整改
     * @param changeCond
     */
    void changeSmallRoutine(AllocationChangeCond changeCond);
    /**
     * 小程序审批
     * @param checkCond
     */
    void checkSmallRoutine(AllocationCheckCond checkCond);
}