|
|
@@ -1032,31 +1032,33 @@ public interface MzChargeDetailMapper {
|
|
|
* @return
|
|
|
*/
|
|
|
@Select({"<script>" +
|
|
|
- "SELECT patient_id,times,receipt_no,order_no,real_no,bill_item_code," +
|
|
|
- "group_no,charge_item_code,serial,warn_dept,price_time,doctor_code,confirm_id," +
|
|
|
- "quantity,drug_quan,frequency,charge_item_code,drug_unit,supply_code,doctor_code,unit_price,jz_flag " +
|
|
|
- " FROM mz_charge_detail" +
|
|
|
+ "SELECT c.patient_id,c.times,c.receipt_no,c.order_no,c.real_no,c.bill_item_code," +
|
|
|
+ "c.group_no,c.charge_item_code,c.serial,c.warn_dept,c.price_time,c.doctor_code,c.confirm_id," +
|
|
|
+ "c.quantity,c.drug_quan,c.frequency,c.charge_item_code,c.drug_unit,c.supply_code,c.doctor_code,c.unit_price,c.jz_flag, " +
|
|
|
+ " (case when y.class_code = '210100' then 1 else 0 end ) as is_rad_send" +
|
|
|
+ " FROM mz_charge_detail c,yp_zd_dict y" +
|
|
|
" where 1=1 " +
|
|
|
+ " and c.charge_item_code = y.code and c.serial = y.serial" +
|
|
|
"<when test='patientId!=null'>"+
|
|
|
- " and patient_id =#{patientId}"+
|
|
|
+ " and c.patient_id =#{patientId}"+
|
|
|
"</when>"+
|
|
|
"<when test='times!=null'>"+
|
|
|
- " and times =#{times}"+
|
|
|
+ " and c.times =#{times}"+
|
|
|
"</when>"+
|
|
|
"<when test='receiptNo!=null'>"+
|
|
|
- " and receipt_no =#{receiptNo}"+
|
|
|
+ " and c.receipt_no =#{receiptNo}"+
|
|
|
"</when>"+
|
|
|
"<when test='orderNo!=null'>"+
|
|
|
- " and order_no =#{orderNo}"+
|
|
|
+ " and c.order_no =#{orderNo}"+
|
|
|
"</when>"+
|
|
|
"<when test='realNo!=null'>"+
|
|
|
- " and real_no =#{realNo}"+
|
|
|
+ " and c.real_no =#{realNo}"+
|
|
|
"</when>"+
|
|
|
"<when test='billItemCode!=null'>"+
|
|
|
- " and bill_item_code <![CDATA[<>]]> #{billItemCode}"+
|
|
|
+ " and c.bill_item_code <![CDATA[<>]]> #{billItemCode}"+
|
|
|
"</when>"+
|
|
|
"<when test='groupNo!=null'>"+
|
|
|
- " and group_no =#{groupNo}"+
|
|
|
+ " and c.group_no =#{groupNo}"+
|
|
|
"</when>"+
|
|
|
"</script>"})
|
|
|
List<MzChargeDetail> selectMzChargeDetailList(MzChargeDetail mzChargeDetail);
|