package jnpf.cultivate.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import jnpf.entity.cultivate.CultivateIdentifyApplyDetails;
import jnpf.model.cultivate.vo.identify.IdentifyApplyDetailsInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.util.List;

/**
 * 实操鉴定申请详情表
 * 
 * @author shitou
 * @email shitou@niujiekeji.com
 * @date 2023-12-19 11:10:53
 */
@Mapper
@Component
public interface CultivateIdentifyApplyDetailsMapper extends BaseMapper<CultivateIdentifyApplyDetails> {
    /**
     * 查询鉴定项得分集合
     * @param id
     * @return
     */
    List<IdentifyApplyDetailsInfoVo> getIdentifyItemList(@Param("id") String id);

    /**
     * 查询总分数
     * @param identificationId 申请表id
     * @return
     */
    BigDecimal countSumScore(@Param("identificationId") String identificationId);
}
