package com.xinelu.familydoctor.applet.mapper;


import com.xinelu.familydoctor.applet.pojo.body.ApprovalBody;
import com.xinelu.familydoctor.applet.pojo.entity.ResidentSignApplyEntity;
import com.xinelu.familydoctor.applet.pojo.query.ApplyQuery;
import com.xinelu.familydoctor.applet.pojo.vo.ResidentSignApplyVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author mengkuiliang
 * @Description 签约申请Mapper
 * @Date 2023-09-26 026 10:33
 * @Param
 * @return
 **/
public interface ResidentSignApplyMapper {
    /**
     * 查询
     * @author lixinying
     * @param query:
     * @return List<FdSignBookingVo>
     * @date 2022/11/21 16:00
     */
    List<ResidentSignApplyVo> 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-22 10:58
     * @Param [identity]
     * @return com.xinelu.mp.sign.pojo.vo.FdSignBookingVo
     **/
    ResidentSignApplyVo getSignBookingByIdentity(@Param("identity") String identity,@Param("region") String region);

    /**
     * @Author mengkuiliang
     * @Description 签约申请详情
     * @Date 2022-11-23 10:33
     * @Param [bookingNo]
     * @return com.xinelu.mp.sign.pojo.vo.FdSignBookingVo
     **/
    ResidentSignApplyVo detail(String bookingNo);

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

    /**
     * @Author mengkuiliang
     * @Description 新增
     * @Date 2023-09-26 026 10:42
     * @Param [entity]
     * @return void
     **/
    void insert(ResidentSignApplyEntity entity);

}




