|
@@ -21,7 +21,7 @@ import java.util.List;
|
|
|
public interface SecondFefundDao {
|
|
|
|
|
|
@Select("select confirm_flag,dec_amount,tc_name, " +
|
|
|
- "rtrim(name)name,rtrim(charge_item_code)charge_item_code,rtrim(patient_id)patient_id,times,receipt_no," +
|
|
|
+ "rtrim(name)name,rtrim(charge_item_code)charge_item_code,rtrim(patient_id)patient_id,times,receipt_no,item_no" +
|
|
|
"(quantity * drug_win) quantity from mz_charge_detail where " +
|
|
|
"patient_id = #{patientId} and times = #{times} and charge_item_code = #{chargeItemCode}")
|
|
|
MzChargeDetail getOrderInformation(@Param("patientId") String patientId,
|
|
@@ -30,7 +30,7 @@ public interface SecondFefundDao {
|
|
|
|
|
|
@Select("<script>" +
|
|
|
"select confirm_flag,dec_amount,tc_name, " +
|
|
|
- "rtrim(name)name,rtrim(charge_item_code)charge_item_code,rtrim(patient_id)patient_id,times,receipt_no," +
|
|
|
+ "rtrim(name)name,rtrim(charge_item_code)charge_item_code,rtrim(patient_id)patient_id,times,receipt_no,item_no," +
|
|
|
"(quantity * drug_win) quantity from mz_charge_detail where " +
|
|
|
"patient_id = #{patientId} and times = #{times} " +
|
|
|
"<if test=\"chargeItemCode != null and chargeItemCode != '' \">" +
|
|
@@ -44,9 +44,10 @@ public interface SecondFefundDao {
|
|
|
@Param("chargeItemCode") String chargeItemCode);
|
|
|
|
|
|
@Update("update mz_charge_detail set dec_amount=#{quantity},confirm_flag = 3 " +
|
|
|
- "where patient_id = #{patientId} and times = #{times} and charge_item_code = #{chargeItemCode}")
|
|
|
+ "where patient_id = #{patientId} and times = #{times} and charge_item_code = #{chargeItemCode} and item_no = #{itemNo}")
|
|
|
void xiuGaiTuiFei(@Param("patientId") String patientId,
|
|
|
@Param("times") Integer times,
|
|
|
@Param("chargeItemCode") String chargeItemCode,
|
|
|
- @Param("quantity") double quantity);
|
|
|
+ @Param("quantity") double quantity,
|
|
|
+ @Param("itemNo") Integer itemNo);
|
|
|
}
|