From 9225a061c4103cc0449ea976ec241f246fcd1282 Mon Sep 17 00:00:00 2001 From: litao Date: Thu, 25 May 2017 11:41:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=8A=BD=E5=8F=96=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/lyms/etl/service/impl/CouponServiceImpl.java | 3 +-- regional-etl/src/main/resources/application.properties | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/regional-etl/src/main/java/com/lyms/etl/service/impl/CouponServiceImpl.java b/regional-etl/src/main/java/com/lyms/etl/service/impl/CouponServiceImpl.java index bea4345..cef0568 100644 --- a/regional-etl/src/main/java/com/lyms/etl/service/impl/CouponServiceImpl.java +++ b/regional-etl/src/main/java/com/lyms/etl/service/impl/CouponServiceImpl.java @@ -70,7 +70,7 @@ public class CouponServiceImpl implements ICouponInfoService { List couponInfos = new ArrayList<>(); Set hospitalIds = new HashSet<>(); // List patientCheckTickets = patientCheckTicketRepository.findAll(); - Date date = DateUtils.parseDate("2017-05-24", "yyyy-MM-dd"); + Date date = DateUtils.parseDate("2017-05-25", "yyyy-MM-dd"); List patientCheckTickets = mongoTemplate.find(Query.query(Criteria.where("created").gte(date)), PatientCheckTicket.class); LOG.info("本次共需要导入 [{}] 条数据", patientCheckTickets.size()); for (PatientCheckTicket checkTicket : patientCheckTickets) { @@ -200,7 +200,6 @@ public class CouponServiceImpl implements ICouponInfoService { String suffix = id.substring(id.length() - 1, id.length()); String cacheTempId = tempCacheMap.get(suffix + hospitalId); if(StringUtils.isNotBlank(cacheTempId)) { - LOG.info("命中缓存直接返回 [{}]", cacheTempId); return cacheTempId; } diff --git a/regional-etl/src/main/resources/application.properties b/regional-etl/src/main/resources/application.properties index 09cef41..903de45 100644 --- a/regional-etl/src/main/resources/application.properties +++ b/regional-etl/src/main/resources/application.properties @@ -22,5 +22,5 @@ mybatis.typeAliasesPackage=com.lyms.etl.model mybatis.mapperLocations=classpath:mappers/*.xml #spring.profiles.active=prod, etl -spring.profiles.active=qhd, coupon +spring.profiles.active=local, coupon #spring.profiles.active=coupon \ No newline at end of file -- 1.8.3.1