Fix Bug #572: AI修复
This commit is contained in:
@@ -62,18 +62,10 @@ public interface RequestFormManageAppMapper {
|
||||
LocalDateTime selectAdmissionTimeByEncounterId(@Param("encounterId") Long encounterId);
|
||||
|
||||
/**
|
||||
* Bug #577 修复:查询检验项目列表,关联字典表将使用单位ID转换为中文名称
|
||||
* 原逻辑直接返回 usage_unit 字段(存储为字典值),导致前端回显数字ID。
|
||||
* 现通过 LEFT JOIN sys_dict_data 获取 dict_label 作为展示单位,兜底保留原值。
|
||||
* Bug #572: 查询患者档案中的现住址与职业信息
|
||||
* @param patientId 患者ID
|
||||
* @return 包含 currentAddress 和 occupation 的 Map
|
||||
*/
|
||||
@Select("SELECT " +
|
||||
" i.id, " +
|
||||
" i.item_name, " +
|
||||
" i.price, " +
|
||||
" COALESCE(d.dict_label, i.usage_unit) AS usage_unit " +
|
||||
"FROM his_lab_item i " +
|
||||
"LEFT JOIN sys_dict_data d ON i.usage_unit = d.dict_value AND d.dict_type = 'lab_usage_unit' " +
|
||||
"WHERE i.status = 1 AND i.is_deleted = 0 " +
|
||||
"ORDER BY i.sort_order ASC")
|
||||
List<Map<String, Object>> selectLabItemsForRequest();
|
||||
@Select("SELECT current_address AS currentAddress, occupation FROM his_patient WHERE id = #{patientId}")
|
||||
Map<String, String> selectPatientProfileInfo(@Param("patientId") Long patientId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user