package com.rongwei.bscommon.sys.dao;

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

/**
 * <p>
 * 报工记录加工参数
 * </p>
 *
 * @author fpy
 * @since 2024-03-01
 */
public interface ApsReportMachiningDao extends BaseMapper<ApsReportMachiningDo> {

    /**
     * 查询加工参数
     * @param reportId
     * @return
     */
    @Select("SELECT GROUP_CONCAT( CONCAT( MATCHING, '=', MATCHINGPARAMETER ) ) AS 'JGCS' FROM aps_report_machining WHERE DELETED = '0' AND MAINID = #{reportId} GROUP BY MAINID")
    String selectJgcsByReportId(String reportId);
}
