|
|
@@ -176,7 +176,11 @@ public interface MzYjReqMapper {
|
|
|
"select req_no,patient_id,p_name patient_name,birth_date,times,receipt_no,order_no,item_no,p_bar_code,group_name,order_code,order_name,page_no,req_comment,req_doctor,",
|
|
|
"req_ward,exec_dept,req_date,inspect_part,inspect_stuff,sample_status,rtrim(print_flag) print_flag,rtrim(receive_flag) receive_flag,req_type,result_comment,sys_date,",
|
|
|
"rtrim(pay_mark) pay_mark,rtrim(status_flag) status_flag,serial_no,cash_id,jy_remark,req_other_result,original_list_no,req_tz_comment,rtrim(jz_flag) jz_flag,req_studyid,",
|
|
|
- "percent_ft,rtrim(confirm_flag) confirm_flag,confirm_time,confirm_id,rtrim(print_flag_yj) print_flag_yj,quantity from mz_yj_req WITH(NOLOCK) where 1=1 ",
|
|
|
+ "percent_ft,rtrim(confirm_flag) confirm_flag,confirm_time,confirm_id,rtrim(print_flag_yj) print_flag_yj,quantity," +
|
|
|
+ "isnull(jy.name, inspect_stuff) as inspect_name,isnull(u.name, exec_dept) as exec_name from mz_yj_req WITH(NOLOCK) " +
|
|
|
+ "left join zd_unit_code as u on u.code = exec_dept " +
|
|
|
+ "left join jy_zd_sample as jy on jy.code = inspect_stuff " +
|
|
|
+ "where 1=1 ",
|
|
|
"<when test='payMark!=null'>",
|
|
|
" and pay_mark =#{payMark}",
|
|
|
"</when>",
|