|
@@ -31,17 +31,23 @@
|
|
t1.rep_no as repNo,
|
|
t1.rep_no as repNo,
|
|
t1.rep_name as examineItemName,
|
|
t1.rep_name as examineItemName,
|
|
t1.rep_type_name as examineItemType,
|
|
t1.rep_type_name as examineItemType,
|
|
- CONCAT( t1.rep_name, '(',DATE_FORMAT( t1.check_date,'%Y-%m-%d'),')')as info,
|
|
|
|
|
|
+ CONCAT( t2.item_name, '(',DATE_FORMAT( t2.gmt_create,'%Y-%m-%d'),')')as info,
|
|
DATE_FORMAT( t1.rep_date, '%Y-%m-%d %h:%i:%s' ) as rTime,
|
|
DATE_FORMAT( t1.rep_date, '%Y-%m-%d %h:%i:%s' ) as rTime,
|
|
DATE_FORMAT( t1.check_date, '%Y-%m-%d %h:%i:%s' ) as cTime,
|
|
DATE_FORMAT( t1.check_date, '%Y-%m-%d %h:%i:%s' ) as cTime,
|
|
t1.apply_doctor as doctorName,
|
|
t1.apply_doctor as doctorName,
|
|
t1.hospital_id as hospitalId,
|
|
t1.hospital_id as hospitalId,
|
|
t1.behospital_code as behospitalCode
|
|
t1.behospital_code as behospitalCode
|
|
FROM
|
|
FROM
|
|
- med_lis_info t1
|
|
|
|
|
|
+ med_lis_info t1,
|
|
|
|
+ med_lis_result t2
|
|
WHERE
|
|
WHERE
|
|
t1.is_deleted = "N"
|
|
t1.is_deleted = "N"
|
|
|
|
+ AND t2.is_deleted = "N"
|
|
AND t1.check_date IS NOT NULL
|
|
AND t1.check_date IS NOT NULL
|
|
|
|
+ AND t2.item_name IS NOT NULL
|
|
|
|
+ AND t1.hospital_id = t2.hospital_id
|
|
|
|
+ AND t1.behospital_code = t2.behospital_code
|
|
|
|
+ AND t1.rep_no = t2.rep_no
|
|
<if test="examineInfoVO.hospitalId != null">
|
|
<if test="examineInfoVO.hospitalId != null">
|
|
and t1.hospital_id = #{examineInfoVO.hospitalId}
|
|
and t1.hospital_id = #{examineInfoVO.hospitalId}
|
|
</if>
|
|
</if>
|