|
@@ -47,11 +47,11 @@ public class FeedConsumeTimer {
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
|
|
|
Long start = DateUtil.beginOfDay(new Date()).getTime();
|
|
|
Long end = System.currentTimeMillis();
|
|
|
- String stock = "0";
|
|
|
|
|
|
ResponseEntity<BaseResultEntity> forEntity = restTemplate.exchange(BASE_URL + CURRENT_LIST+FARM_CODE+"&position=all", HttpMethod.GET, httpEntity,BaseResultEntity.class );
|
|
|
List<HousVo> data = forEntity.getBody().getData();
|
|
|
for (HousVo datum : data) {
|
|
|
+ String stock = "0";
|
|
|
FeedUsage feedUsage = new FeedUsage();
|
|
|
ResponseEntity<HistoryEntity> todayForEntity = restTemplate.exchange(BASE_URL + HISTORY_LIST+FARM_CODE+"&i="+datum.getI()+"&start="+start+"&end="+end, HttpMethod.GET, httpEntity,HistoryEntity.class );
|
|
|
List<HistroyOne> todayData = todayForEntity.getBody().getData();
|
|
@@ -97,11 +97,11 @@ public class FeedConsumeTimer {
|
|
|
Long start = DateUtil.beginOfDay(new Date()).getTime();
|
|
|
Long end = System.currentTimeMillis();
|
|
|
Double totalConsume = 0.0;
|
|
|
- String stock = "0";
|
|
|
|
|
|
ResponseEntity<BaseResultEntity> forEntity = restTemplate.exchange(BASE_URL + CURRENT_LIST+FARM_CODE+"&position=all", HttpMethod.GET, httpEntity,BaseResultEntity.class );
|
|
|
List<HousVo> data = forEntity.getBody().getData();
|
|
|
for (HousVo datum : data) {
|
|
|
+ String stock = "0";
|
|
|
FeedUsage feedUsage = new FeedUsage();
|
|
|
ResponseEntity<HistoryEntity> todayForEntity = restTemplate.exchange(BASE_URL + HISTORY_LIST+FARM_CODE+"&i="+datum.getI()+"&start="+start+"&end="+end, HttpMethod.GET, httpEntity,HistoryEntity.class );
|
|
|
List<HistroyOne> todayData = todayForEntity.getBody().getData();
|