package com.xinelu.familydoctor.applet.mapper;


import com.xinelu.familydoctor.applet.pojo.body.ApprovalBody;
import com.xinelu.familydoctor.applet.pojo.entity.ResidentServiceApplyEntity;
import com.xinelu.familydoctor.applet.pojo.query.ApplyQuery;
import com.xinelu.familydoctor.applet.pojo.vo.ResidentServiceApplyVo;

import java.util.List;

/**
 * @Author mengkuiliang
 * @Description 服务申请Mapper
 * @Date 2023-10-07 007 11:38
 * @Param
 * @return
 **/
public interface ResidentServiceApplyMapper {
    /**
     * 查询
     *
     * @param query:
     * @return List<FdSignBookingVo>
     * @author lixinying
     * @date 2022/11/21 16:00
     */
    List<ResidentServiceApplyVo> findByBody(ApplyQuery query);

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

    /**
     * @return com.xinelu.mp.sign.pojo.vo.FdSignBookingVo
     * @Author mengkuiliang
     * @Description 查询未完成的服务申请
     * @Date 2022-11-22 10:58
     * @Param [identity]
     **/
    ResidentServiceApplyVo getServiceBookingByIdentity(String identity);

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

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

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

    /**
     * @Author mengkuiliang
     * @Description 更新服务完成时间
     * @Date 2022-11-29 14:22
     * @Param [applyNo]
     * @return void
     **/
    void updateComplete(String bookingNo);

    /**
     * @Author mengkuiliang
     * @Description 批量插入
     * @Date 2023-10-07 007 14:47
     * @Param [entity]
     * @return void
     **/
    void batchInsert(List<ResidentServiceApplyEntity> entity);

    /**
     * @Author mengkuiliang
     * @Description 服务记录列表
     * @Date 2023-10-13 013 14:01
     * @Param [query]
     * @return java.util.List<com.xinelu.familydoctor.applet.pojo.vo.ResidentServiceApplyVo>
     **/
    List<ResidentServiceApplyVo> getRecord(ApplyQuery query);
}




