Skip to content

Commit

Permalink
Merge pull request #137 from UMC-CommonPlant/feat/#26_Plant
Browse files Browse the repository at this point in the history
[Fix] getPlant 수정
  • Loading branch information
sonshn authored Jul 5, 2024
2 parents 2c4d709 + f0a48e2 commit b2be677
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 b2be677

Please sign in to comment.