# LotAutoMonitorEdcInfoMapper.java

    package com.mycim.server.automonitor.dao.mapper;

    import com.mycim.framework.jdbc.mapper.RowMapper;
    import com.mycim.valueobject.automonitor.entity.AutoMonitorItemStep;
    import com.mycim.valueobject.automonitor.entity.LotMonitorJobStepEdcInfo;

    import java.sql.ResultSet;
    import java.sql.SQLException;

    /**
     * @author finatice.yang
     * @date 2021/10/20
     **/
    public class LotAutoMonitorEdcInfoMapper implements RowMapper<LotMonitorJobStepEdcInfo> {

        LotMonitorJobStepEdcInfo edcInfo;

        @Override
        public LotMonitorJobStepEdcInfo mapRow(ResultSet rs, int rowNum) throws SQLException {
            edcInfo = new LotMonitorJobStepEdcInfo();

            edcInfo.setTransRrn(rs.getLong("TRANS_RRN"));
            edcInfo.setLotRrn(rs.getLong("LOT_RRN"));
            edcInfo.setLotId(rs.getString("LOT_ID"));
            edcInfo.setLotStepSequence(rs.getLong("STEP_SEQUENCE"));
            edcInfo.setSequence(rs.getLong("SEQUENCE"));
            edcInfo.setUnitRrn(rs.getLong("UNIT_RRN"));
            edcInfo.setUnitId(rs.getString("UNIT_ID"));
            edcInfo.setSpcJobId(rs.getString("SPC_JOB_ID"));
            edcInfo.setSpcJobName(rs.getString("SPC_JOB_NAME"));
            edcInfo.setDataValue(rs.getString("DATA_VALUE"));
            edcInfo.setFormula(rs.getString("FORMULA"));
            edcInfo.setVioInfo(rs.getString("VIO_INFO"));

            return edcInfo;
        }
    }