|
@@ -1,5 +1,6 @@
|
|
package com.diagbot.repository;
|
|
package com.diagbot.repository;
|
|
|
|
|
|
|
|
+import com.diagbot.dto.AgeNeoDTO;
|
|
import com.diagbot.dto.DrugBillNeoDTO;
|
|
import com.diagbot.dto.DrugBillNeoDTO;
|
|
import com.diagbot.entity.node.*;
|
|
import com.diagbot.entity.node.*;
|
|
|
|
|
|
@@ -12,7 +13,7 @@ public class MedicineNode {
|
|
public DrugBillNeoDTO MedicinetoDrugDTO(Medicine medicine) {
|
|
public DrugBillNeoDTO MedicinetoDrugDTO(Medicine medicine) {
|
|
DrugBillNeoDTO drugBillNeoDTO = new DrugBillNeoDTO();
|
|
DrugBillNeoDTO drugBillNeoDTO = new DrugBillNeoDTO();
|
|
|
|
|
|
-
|
|
|
|
|
|
+ /*
|
|
AgeMin ageMin = medicine.getAgeMin();
|
|
AgeMin ageMin = medicine.getAgeMin();
|
|
String ageMin_val = (ageMin==null)?"":ageMin.getName();
|
|
String ageMin_val = (ageMin==null)?"":ageMin.getName();
|
|
ageMin_val = ageMin_val.replace(age_ch, "").trim();
|
|
ageMin_val = ageMin_val.replace(age_ch, "").trim();
|
|
@@ -23,6 +24,15 @@ public class MedicineNode {
|
|
String ageMax_val = (ageMax==null)?"":ageMax.getName();
|
|
String ageMax_val = (ageMax==null)?"":ageMax.getName();
|
|
ageMax_val = ageMax_val.replace(age_ch, "").trim();
|
|
ageMax_val = ageMax_val.replace(age_ch, "").trim();
|
|
drugBillNeoDTO.setMaxage(Integer.parseInt(ageMax_val));
|
|
drugBillNeoDTO.setMaxage(Integer.parseInt(ageMax_val));
|
|
|
|
+ */
|
|
|
|
+
|
|
|
|
+ Age age = medicine.getAge();
|
|
|
|
+ if (age!=null) {
|
|
|
|
+ AgeNeoDTO ageNeoDTO = new AgeNeoDTO();
|
|
|
|
+ ageNeoDTO.setMinage(age.getMinval());
|
|
|
|
+ ageNeoDTO.setMaxage(age.getMaxval());
|
|
|
|
+ drugBillNeoDTO.setAgeNeoDTO(ageNeoDTO);
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
Gender gender = medicine.getGender();
|
|
Gender gender = medicine.getGender();
|