# ResistRcpMappingRowMapper.java

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

    import com.mycim.framework.jdbc.mapper.RowMapper;
    import com.mycim.framework.utils.lang.time.DateUtils;
    import com.mycim.valueobject.ems.ResistRcpMapping;

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

    /**
     * @author weike.li
     * @version 6.0.0
     * @date 2020/6/24
     **/
    public class ResistRcpMappingRowMapper implements RowMapper<ResistRcpMapping> {

        @Override
        public ResistRcpMapping mapRow(ResultSet rs, int rowNum) throws SQLException {
            ResistRcpMapping mapping = new ResistRcpMapping();
            mapping.setResistNo(rs.getString("RESIST_NO"));
          //  mapping.setRcpLetterPosition(rs.getInt("RCP_LETTER_POSITION"));
            mapping.setRecipe(rs.getString("RECIPE"));
            mapping.setCreateBy(rs.getString("CREATE_BY"));
            mapping.setCreateTime(DateUtils.parse(rs.getString("CREATE_TIME"), DateUtils.DATE_FORMAT4DATE));
            mapping.setModifyBy(rs.getString("MODIFY_BY"));
            mapping.setModifyTime(DateUtils.parse(rs.getString("MODIFY_TIME"), DateUtils.DATE_FORMAT4DATE));
            return mapping;
        }

    }