|  | @ -23,8 +23,8 @@ import java.util.Map;
 | 
	
		
			
				|  |  |  */
 | 
	
		
			
				|  |  | @Service
 | 
	
		
			
				|  |  | public class ZyDictService {
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private JwPrescriptionService jwPrescriptionService;
 | 
	
		
			
				|  |  | //    @Autowired
 | 
	
		
			
				|  |  | //    private JwPrescriptionService jwPrescriptionService;
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private HospitalDao hospitalDao;
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
	
		
			
				|  | @ -186,6 +186,27 @@ public class ZyDictService {
 | 
	
		
			
				|  |  |         return "";
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 获取药品字典的可拆标志
 | 
	
		
			
				|  |  |      * @param doctor
 | 
	
		
			
				|  |  |      * @param code
 | 
	
		
			
				|  |  |      * @return
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     public List<Map<String, Object>> findDispDictByCode(String doctor,String code){
 | 
	
		
			
				|  |  |         String sql = "SELECT " +
 | 
	
		
			
				|  |  |                     "     o.disp_quantity_untuck_flag dispQuantityUntuckFlag, " +
 | 
	
		
			
				|  |  |                     "     o.disp_pack_untuck_flag dispPackUntuckFlag " +
 | 
	
		
			
				|  |  |                     "        FROM " +
 | 
	
		
			
				|  |  |                     "   wlyy_doctor_mapping h, " +
 | 
	
		
			
				|  |  |                     "   zy_iv_org_physic_allot_dict o " +
 | 
	
		
			
				|  |  |                     "  WHERE " +
 | 
	
		
			
				|  |  |                     "   o.org_code = h.jw_doctor_hospital " +
 | 
	
		
			
				|  |  |                     "   AND h.doctor_code = ? " +
 | 
	
		
			
				|  |  |                     "   AND o.physic_code = ? " ;
 | 
	
		
			
				|  |  |         List<Map<String, Object>> list = jdbcTemplate.queryForList(sql,doctor,code);
 | 
	
		
			
				|  |  |         return list;
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 获取药品字典
 | 
	
	
		
			
				|  | @ -208,6 +229,8 @@ public class ZyDictService {
 | 
	
		
			
				|  |  |                 " yp.quantity_unit drugNumUnit, " +
 | 
	
		
			
				|  |  |                 " com2.`name` drugNumUnitName, " +
 | 
	
		
			
				|  |  |                 " yp.retail_price retailPrice, " +
 | 
	
		
			
				|  |  |                 " yp.dispQuantityUntuckFlag, " +
 | 
	
		
			
				|  |  |                 " yp.dispPackUntuckFlag, " +
 | 
	
		
			
				|  |  |                 " yp.storage_conditions storageConditions" +
 | 
	
		
			
				|  |  |                 " FROM " +
 | 
	
		
			
				|  |  |                 " (SELECT code,name FROM zy_common_dict WHERE dict_name = 'IV_MEASURE_UNIT_DICT') com1, " +
 | 
	
	
		
			
				|  | @ -226,12 +249,16 @@ public class ZyDictService {
 | 
	
		
			
				|  |  |                 "   p.min_dose, " +
 | 
	
		
			
				|  |  |                 "   p.pack_spec," +
 | 
	
		
			
				|  |  |                 "   p.retail_price," +
 | 
	
		
			
				|  |  |                 "   ho.dispQuantityUntuckFlag, " +
 | 
	
		
			
				|  |  |                 "   ho.dispPackUntuckFlag, " +
 | 
	
		
			
				|  |  |                 "   p.storage_conditions" +
 | 
	
		
			
				|  |  |                 "    FROM  " +
 | 
	
		
			
				|  |  |                 "   zy_iv_physic_dict p, " +
 | 
	
		
			
				|  |  |                 "  ( " +
 | 
	
		
			
				|  |  |                 "    SELECT " +
 | 
	
		
			
				|  |  |                 "     o.physic_code, " +
 | 
	
		
			
				|  |  |                 "     o.disp_quantity_untuck_flag dispQuantityUntuckFlag, " +
 | 
	
		
			
				|  |  |                 "     o.disp_pack_untuck_flag dispPackUntuckFlag, " +
 | 
	
		
			
				|  |  |                 "     o.org_code " +
 | 
	
		
			
				|  |  |                 "        FROM " +
 | 
	
		
			
				|  |  |                 "   wlyy_doctor_mapping h, " +
 |