package com.xinelu.familydoctor.applet.mapper;

import com.xinelu.familydoctor.applet.pojo.body.ApprovalBody;
import com.xinelu.familydoctor.applet.pojo.entity.ResidentRescindApplyEntity;
import com.xinelu.familydoctor.applet.pojo.query.ApplyQuery;
import com.xinelu.familydoctor.applet.pojo.vo.ResidentRescindApplyVo;

import java.util.List;

/**
 * @Author mengkuiliang
 * @Description 解约申请Mapper
 * @Date 2023-09-27 027 16:59
 * @Param
 * @return
 **/
public interface ResidentRescindApplyMapper {
    /**
     * 查询
     * @author lixinying
     * @param query:
     * @return List<FdResidentRescindApplyVo>
     * @date 2022/11/21 15:48
     */
    List<ResidentRescindApplyVo> findByBody(ApplyQuery query);

    /**
     * 审批功能
     * @author lixinying
     * @param body:
     * @return Integer
     * @date 2022/11/21 17:22
     */
    Integer updateEx(ApprovalBody body);

    /**
     * @Author mengkuiliang
     * @Description 解约申请详情
     * @Date 2022-11-23 10:03
     * @Param [applyNo]
     * @return com.xinelu.mp.sign.pojo.vo.FdResidentRescindApplyVo
     **/
    ResidentRescindApplyVo detail(String applyNo);

    /**
     * @Author mengkuiliang
     * @Description 取消解约申请
     * @Date 2022-11-23 14:41
     * @Param [applyNo]
     * @return void
     **/
    void cancel(String applyNo);

    /**
     * @Author mengkuiliang
     * @Description 新增
     * @Date 2023-09-27 027 17:12
     * @Param [entity]
     * @return void
     **/
    void insert(ResidentRescindApplyEntity entity);

    /**
     * @Author mengkuiliang
     * @Description 修改
     * @Date 2023-09-27 027 17:12
     * @Param [entity]
     * @return void
     **/
    void update(ResidentRescindApplyEntity entity);
}




