jiazx0107@163.com
2023-11-04 43ce77a85d8297a53dc25430fff10ead57296167
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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;
    }
}