private StockRecordEntity parseToStockRecord(StockRecordBean record, StockEntity stock) { StockRecordEntity stockRecordEntity = new StockRecordEntity(); stockRecordEntity.setTradeDate(record.getTradeDate()); stockRecordEntity.setStock(stock); stockRecordEntity.setAverageNegotiationPrice(record.getAverageNegotiationPrice()); stockRecordEntity.setClosingNegotiationPrice(record.getClosingNegotiationPrice()); stockRecordEntity.setHighestBuyOfferPrice(record.getHighestBuyOfferPrice()); stockRecordEntity.setHighestNegotiationPrice(record.getHighestNegotiationPrice()); stockRecordEntity.setLowestNegotiationPrice(record.getLowestNegotiationPrice()); stockRecordEntity.setLowestSellOfferPrice(record.getLowestSellOfferPrice()); stockRecordEntity.setStartPrice(record.getStartPrice()); stockRecordEntity.setTotalBusiness(record.getTotalBusiness()); stockRecordEntity.setTotalNegotiation(record.getTotalNegotiation()); stockRecordEntity.setTotalVolume(record.getTotalVolume()); return stockRecordEntity; }