示例#1
0
 @Override
 public boolean equals(Object obj) {
   if (obj == null || (obj.getClass() != this.getClass())) {
     return false;
   }
   CostRatePo costRatePo = (CostRatePo) obj;
   if (this.getProduct_id() != costRatePo.getProduct_id()) {
     return false;
   }
   return true;
 }
示例#2
0
 @Override
 public CostRatePo mapRow(ResultSet rs, int rowNum) throws SQLException {
   CostRatePo costRatePo = new CostRatePo();
   costRatePo.setProduct_id(rs.getInt("product_id")); // 产品id-唯一值
   costRatePo.setCR_SUBSCRIPTION_RATE(rs.getDouble("CR_SUBSCRIPTION_RATE")); // 认购费率
   costRatePo.setCR_REDEMPTION_RATE(rs.getDouble("CR_REDEMPTION_RATE")); // 赎回费
   costRatePo.setCR_MANAGEMENT_RATE(rs.getDouble("CR_MANAGEMENT_RATE")); // 管理费
   costRatePo.setCR_HOSTING_RATE(rs.getDouble("CR_HOSTING_RATE")); // 托管费
   costRatePo.setCR_PERFORMANCE_PAY_RATE(rs.getDouble("CR_PERFORMANCE_PAY_RATE")); // 业绩报酬
   costRatePo.setProduct_is_crawler(rs.getInt("product_is_crawler")); // 是否为爬取 1 是 0 不是
   return costRatePo;
 }