|
@ -2,6 +2,7 @@ const Chicken = require("../model/chicken.model"); |
|
|
const { getDayLife, haveSame } = require("../utils/common"); |
|
|
const { getDayLife, haveSame } = require("../utils/common"); |
|
|
const { getDieTotal } = require("./die.service"); |
|
|
const { getDieTotal } = require("./die.service"); |
|
|
const { getEnvironmentByCoopId } = require("./environment.service"); |
|
|
const { getEnvironmentByCoopId } = require("./environment.service"); |
|
|
|
|
|
const { getNewestFeedInfo } = require("./feeding.service"); |
|
|
const { |
|
|
const { |
|
|
getBatchCoopByIds, |
|
|
getBatchCoopByIds, |
|
|
getEmptyCoopList, |
|
|
getEmptyCoopList, |
|
@ -109,6 +110,8 @@ class OverviewService { |
|
|
const coop_id = item.id; |
|
|
const coop_id = item.id; |
|
|
const house_id = info.house_id; |
|
|
const house_id = info.house_id; |
|
|
const environment = await getEnvironmentByCoopId(house_id, coop_id); |
|
|
const environment = await getEnvironmentByCoopId(house_id, coop_id); |
|
|
|
|
|
const feedInfo = await getNewestFeedInfo(); |
|
|
|
|
|
item.feedInfo = feedInfo; |
|
|
item.environment = environment; |
|
|
item.environment = environment; |
|
|
return item; |
|
|
return item; |
|
|
}); |
|
|
}); |
|
|