# OcapTransLogRowMapper.java

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

    import com.mycim.framework.jdbc.mapper.RowMapper;
    import com.mycim.valueobject.ocap.OcapTransLog;

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

    /**
     * @author songpy
     * @version 6.0.0
     * @date 2021/6/10
     **/
    public class OcapTransLogRowMapper implements RowMapper<OcapTransLog> {
        @Override
        public OcapTransLog mapRow(ResultSet rs, int rowNum) throws SQLException {
            OcapTransLog transLog = new OcapTransLog();
            transLog.setTransRrn(rs.getLong("TRANS_RRN"));
            transLog.setTransSeq(rs.getLong("TRANS_SEQ"));
            transLog.setTransId(rs.getString("TRANS_ID"));
            transLog.setTransTime(rs.getTimestamp("TRANS_TIME"));
            transLog.setTransComment(rs.getString("TRANS_COMMENT"));

            transLog.setOcapRrn(rs.getLong("OCAP_RRN"));
            transLog.setOcapId(rs.getString("OCAP_ID"));
            transLog.setFacilityRrn(rs.getLong("FACILITY_RRN"));

            transLog.setStatus(rs.getString("STATUS"));
            transLog.setActionId(rs.getString("ACTION_ID"));
            transLog.setSignerRrn(rs.getLong("SIGNER_RRN"));
            transLog.setSignerId(rs.getString("SIGNER_ID"));
            return transLog;
        }

    }