Skip to content

Commit

Permalink
Merge pull request #138 from UMC-CommonPlant/main
Browse files Browse the repository at this point in the history
[Build] getPlant 로직 수정
  • Loading branch information
sonshn authored Jul 5, 2024
2 parents d9b5a77 + b2be677 commit 92fcbf3
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ public PlantDto.getPlantRes getPlant(User user, Long plantIdx) {

// log.info("getMemoList: " + getAllMemoList);

int waterCycle = plant.getWaterCycle();
Long castedWaterCycle = Long.valueOf(waterCycle);

String tip = null;

if(!infoResponse.get(0).getTip().isEmpty()) {
Expand All @@ -170,7 +173,8 @@ public PlantDto.getPlantRes getPlant(User user, Long plantIdx) {
remainderDate,
getAllMemoList,
infoResponse.get(0).getScientificName(),
infoResponse.get(0).getWater_day(),
// infoResponse.get(0).getWater_day(),
castedWaterCycle,
tip,
infoResponse.get(0).getSunlight(),
infoResponse.get(0).getTemp_min(),
Expand Down

0 comments on commit 92fcbf3

Please sign in to comment.