package com.ld.igds.inout.dto;
|
|
import org.springframework.jdbc.core.RowMapper;
|
|
import java.sql.ResultSet;
|
import java.sql.SQLException;
|
|
|
public class ReportInoutShipRowMapper2 implements RowMapper<ReportInoutShipData> {
|
@Override
|
public ReportInoutShipData mapRow(ResultSet rs, int rowNum) throws SQLException {
|
ReportInoutShipData d = new ReportInoutShipData();
|
|
d.setDepotId(rs.getString("DEPOT_ID_"));
|
d.setCarNum(rs.getString("CAR_NUM_"));
|
d.setCarName(rs.getString("CAR_NAME_"));
|
d.setType(rs.getString("TYPE_"));
|
d.setProgress(rs.getString("PROGRESS_"));
|
d.setFullWeight(rs.getDouble("FULL_WEIGHT_"));
|
d.setEmptyWeight(rs.getDouble("EMPTY_WEIGHT_"));
|
d.setNetWeight(rs.getDouble("NET_WEIGHT_"));
|
d.setDeSum(rs.getDouble("DE_"));
|
d.setSettleWeight(rs.getDouble("SETTLE_WEIGHT_"));
|
d.setCompleteTime(rs.getTimestamp("COMPLETE_TIME_"));
|
return d;
|
}
|
}
|