|
@ -1209,8 +1209,27 @@ public class PrescriptionInfoService extends BaseService {
|
|
|
return new JSONArray(rs);
|
|
|
}
|
|
|
|
|
|
public JSONArray getPhysicMinDose(String code) {
|
|
|
StringBuffer sql = new StringBuffer("SELECT t.min_dose AS minDose,t.physic_code AS physicCode FROM zy_iv_physic_dict t WHERE t.physic_code = ?");
|
|
|
public JSONArray getPhysicInfo(String code) {
|
|
|
StringBuffer sql = new StringBuffer("SELECT " +
|
|
|
" t.min_dose AS minDose, " +
|
|
|
" t.physic_code AS physicCode, " +
|
|
|
" t.storage_conditions AS storageConditions, " +
|
|
|
" t.dose_unit AS doseUnit, " +
|
|
|
" com1.`name` AS doseUnitName, " +
|
|
|
" t.quantity_unit AS quantityUnit, " +
|
|
|
" com2.`name` AS quantityUnitName, " +
|
|
|
" t.pack_unit As pack_unit, " +
|
|
|
" com3.`name` As packUnitName " +
|
|
|
" FROM " +
|
|
|
" zy_iv_physic_dict t, " +
|
|
|
" (SELECT code,name FROM zy_common_dict WHERE dict_name = 'IV_MEASURE_UNIT_DICT') com1, " +
|
|
|
" (SELECT code,name FROM zy_common_dict WHERE dict_name = 'IV_MEASURE_UNIT_DICT') com2, " +
|
|
|
" (SELECT code,name FROM zy_common_dict WHERE dict_name = 'IV_MEASURE_UNIT_DICT') com3 " +
|
|
|
" WHERE " +
|
|
|
" com1.`code` = t.dose_unit " +
|
|
|
" AND com2.`code` = t.quantity_unit " +
|
|
|
" AND com3.`code` = t.pack_unit " +
|
|
|
" AND t.physic_code = ?");
|
|
|
List<Map<String, Object>> rs = jdbcTemplate.queryForList(sql.toString(),new Object[]{code});
|
|
|
return new JSONArray(rs);
|
|
|
}
|