|
@ -52,31 +52,33 @@ public class MedicineServive {
|
|
|
if(!mediicinedrugsDao.existsByDrugCodeAndOrgCode(drugCode,orgCode)){
|
|
|
Mediicinedrugs org = new Mediicinedrugs();
|
|
|
org.setDrugCode(drugCode);
|
|
|
org.setDosForm(h.getString("physic_form"));
|
|
|
org.setDosForm(h.getString("physic_form_name"));
|
|
|
org.setDrugName(h.getString("physic_name"));
|
|
|
org.setDrugNameAlies(h.getString("physic_name"));
|
|
|
org.setPrice(h.getFloat("retail_price"));
|
|
|
org.setSpecif(h.getString("physic_spec"));
|
|
|
org.setDrugClass(h.getString("subject_class"));
|
|
|
org.setUnit(h.getString("dose_unit"));
|
|
|
org.setDrugClass(h.getString("subject_class_name"));
|
|
|
org.setUnit(h.getString("dose_unit_name"));
|
|
|
org.setUseDose(h.getString("min_dose"));
|
|
|
org.setOrgCode(h.getString("orgCode"));
|
|
|
org.setEarlywarningcate(h.getString("toxicology_type"));
|
|
|
org.setQuantityUnit(h.getString("quantity_unit_name"));
|
|
|
org.setPackUnit(h.getString("pack_unit_name"));
|
|
|
list.add(org);
|
|
|
addCount++;
|
|
|
}else{
|
|
|
Mediicinedrugs org = mediicinedrugsDao.findByDrugCodeAndOrgCode(drugCode,orgCode);
|
|
|
org.setDrugCode(drugCode);
|
|
|
org.setDosForm(h.getString("physic_form"));
|
|
|
org.setDosForm(h.getString("physic_form_name"));
|
|
|
org.setDrugName(h.getString("physic_name"));
|
|
|
org.setDrugNameAlies(h.getString("physic_name"));
|
|
|
org.setSpecif(h.getString("physic_spec"));
|
|
|
org.setDrugClass(h.getString("subject_class"));
|
|
|
org.setPrice(h.getFloat("retail_price"));
|
|
|
org.setUnit(h.getString("dose_unit"));
|
|
|
org.setSpecif(h.getString("physic_spec"));
|
|
|
org.setDrugClass(h.getString("subject_class_name"));
|
|
|
org.setUnit(h.getString("dose_unit_name"));
|
|
|
org.setUseDose(h.getString("min_dose"));
|
|
|
org.setOrgCode(h.getString("orgCode"));
|
|
|
org.setEarlywarningcate(h.getString("toxicology_type"));
|
|
|
org.setQuantityUnit(h.getString("quantity_unit_name"));
|
|
|
org.setPackUnit(h.getString("pack_unit_name"));
|
|
|
list.add(org);
|
|
|
updateCount++;
|
|
|
}
|