-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: 상담 저장시 consultId를 return하도록 코드 수정
- Loading branch information
Showing
8 changed files
with
71 additions
and
9 deletions.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
src/main/java/com/medicare/neulpeum/Repository/ConsultRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/main/java/com/medicare/neulpeum/Repository/ProvidedDrugRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.medicare.neulpeum.Repository; | ||
|
||
import com.medicare.neulpeum.domain.entity.ProvidedDrugInfo; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface ProvidedDrugRepository extends JpaRepository<ProvidedDrugInfo, Long> { | ||
|
||
} |
17 changes: 17 additions & 0 deletions
17
src/main/java/com/medicare/neulpeum/dto/ProvidedDrugRequestDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.medicare.neulpeum.dto; | ||
|
||
|
||
import com.medicare.neulpeum.domain.entity.ConsultContentInfo; | ||
import com.medicare.neulpeum.domain.entity.DrugInfo; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
|
||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
public class ProvidedDrugRequestDto { | ||
private ConsultContentInfo consultId; | ||
private DrugInfo drugId; | ||
private Long providedAmount; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/main/java/com/medicare/neulpeum/service/ProvidedDrugService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.medicare.neulpeum.service; | ||
|
||
import com.medicare.neulpeum.dto.ProvidedDrugRequestDto; | ||
|
||
public interface ProvidedDrugService { | ||
void saveProvidedDrug(ProvidedDrugRequestDto providedDrugRequestDto); | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/com/medicare/neulpeum/service/ProvidedDrugServiceImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.medicare.neulpeum.service; | ||
|
||
import com.medicare.neulpeum.dto.ProvidedDrugRequestDto; | ||
|
||
public class ProvidedDrugServiceImpl implements ProvidedDrugService{ | ||
@Override | ||
public void saveProvidedDrug(ProvidedDrugRequestDto providedDrugRequestDto) { | ||
} | ||
} |