package com.rongwei.bscommon.sys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rongwei.bsentity.domain.ApsReportCheckoutDo;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 报工记录检查项
 * </p>
 *
 * @author fpy
 * @since 2024-03-01
 */
public interface ApsReportCheckoutDao extends BaseMapper<ApsReportCheckoutDo> {

    /**
     * 查询检测参数
     * @param reportId
     * @return
     */
    @Select("SELECT GROUP_CONCAT( CONCAT( CHECKITEM, '=', CHECKPARAMETER ) ) AS 'JCCS' FROM aps_report_checkout WHERE DELETED = '0' AND MAINID = #{reportId} GROUP BY MAINID")
    String selectJccsByReportId(String reportId);
}
