jiazx0107@163.com
2023-07-04 785ce007ce4b7b2119a99aacc95cefe9da09e32e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.ld.igds.inout.dto;
 
import org.springframework.jdbc.core.RowMapper;
 
import java.sql.ResultSet;
import java.sql.SQLException;
 
 
public class ReportInoutStorageRowMapper implements RowMapper<ReportInoutStorageData> {
    @Override
    public ReportInoutStorageData mapRow(ResultSet rs, int rowNum) throws SQLException {
        ReportInoutStorageData d = new ReportInoutStorageData();
        d.setDepotId(rs.getString("DEPOT_ID_"));
        d.setCompleteTime(rs.getTimestamp("COMPLETE_TIME_"));
        d.setCurStorage(rs.getDouble("CUR_STORAGE_"));
        d.setSettleWeight(rs.getDouble("SETTLE_WEIGHT_"));
        d.setType(rs.getString("TYPE_"));
        d.setFoodVariety(rs.getString("FOOD_VARIETY_"));
        return d;
    }
 
}