# BoxForDieMapper.java

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

    import com.mycim.framework.jdbc.mapper.RowMapper;
    import com.mycim.valueobject.wip.BoxForDie;

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

    /**
     * @author kang.zhang
     * @date 2019年9月27日
     * @description 盒子实体(用于装die)
     */
    public class BoxForDieMapper implements RowMapper<BoxForDie> {
        private BoxForDie box;

        @Override
        public BoxForDie mapRow(ResultSet rs, int rowNum) throws SQLException {
            box = new BoxForDie();
            box.setBoxId(rs.getString("BOX_ID"));
            box.setBoxRrn(rs.getLong("BOX_RRN"));
            box.setLotRrn(rs.getLong("LOT_RRN"));
            box.setRemainDieNum(rs.getInt("REMAIN_DIE_NUM"));
            box.setStatus(rs.getString("STATUS"));
            box.setTotalDieNum(rs.getInt("TOTAL_DIE_NUM"));
            box.setType(rs.getString("TYPE"));
            box.setUnitRrn(rs.getLong("UNIT_RRN"));
            box.setScrapDieNum(rs.getInt("SCRAP_DIE_NUM"));
            box.setShipDieNum(rs.getInt("SHIP_DIE_NUM"));
            return box;

        }

    }