|
@ -63,7 +63,7 @@ public class ExtractDataService {
|
|
|
public void extractOneDate(String date) {
|
|
|
String sql = "select * from wlyy_quota_result w where w.level1_type=1 and w.quato_code !=18 and w.quato_code !=19 and quota_date='" + date + "' ";
|
|
|
List<WlyyQuotaResult> quotaResults = jdbcTemplate.query(sql, new BeanPropertyRowMapper(WlyyQuotaResult.class));
|
|
|
save2es(quotaResults, date, null);
|
|
|
save2es(quotaResults, null, date);
|
|
|
logger.info("date:" + date + " all quota success");
|
|
|
}
|
|
|
|
|
@ -71,7 +71,7 @@ public class ExtractDataService {
|
|
|
public void extractOneDateWithId(String date, String quotaId) {
|
|
|
String sql = "select * from wlyy_quota_result w where w.level1_type=1 and w.quato_code !=18 and w.quato_code !=19 and quota_date='" + date + "' and quato_code='" + quotaId + "'";
|
|
|
List<WlyyQuotaResult> quotaResults = jdbcTemplate.query(sql, new BeanPropertyRowMapper(WlyyQuotaResult.class));
|
|
|
save2es(quotaResults, date, quotaId);
|
|
|
save2es(quotaResults, quotaId,date );
|
|
|
logger.info("date:" + date + ",quotaId:" + quotaId + " success");
|
|
|
}
|
|
|
|