|
@@ -15,50 +15,25 @@ import java.util.List;
|
|
|
public interface WxApiDao {
|
|
|
|
|
|
@Select("<script>" +
|
|
|
- "select * from t_wechat_pay_order where create_datetime>=#{start} and " +
|
|
|
+ "select *,refundOpName=(select rtrim(name) from a_employee_mi where code=refund_op_code) " +
|
|
|
+ "from t_wechat_pay_order where create_datetime>=#{start} and " +
|
|
|
"create_datetime<=#{end} and patient_id like #{patientId} and patient_name " +
|
|
|
"like #{patientName} and order_type like #{orderType} and pay_status in " +
|
|
|
"<foreach collection='statuses' item='status' separator=',' open='(' close=')'>" +
|
|
|
"#{status}" +
|
|
|
"</foreach>" +
|
|
|
"</script>")
|
|
|
- IPage<WxPayOrder> selectOrdersByConditions(
|
|
|
- IPage<WxPayOrder> iPage,
|
|
|
- @Param("patientId") String patientId,
|
|
|
- @Param("patientName") String patientName,
|
|
|
- @Param("orderType") String orderType,
|
|
|
- @Param("statuses") String[] statuses,
|
|
|
- @Param("start") String start,
|
|
|
- @Param("end") String end);
|
|
|
+ IPage<WxPayOrder> selectOrdersByConditions(IPage<WxPayOrder> iPage,
|
|
|
+ @Param("patientId") String patientId,
|
|
|
+ @Param("patientName") String patientName,
|
|
|
+ @Param("orderType") String orderType,
|
|
|
+ @Param("statuses") String[] statuses,
|
|
|
+ @Param("start") String start,
|
|
|
+ @Param("end") String end);
|
|
|
|
|
|
@Select("select * from t_wechat_pay_order where trade_no=#{tradeNo}")
|
|
|
List<WxOrderForExportExcel> selectOrdersByTradeNo(@Param("tradeNo") String tradeNo);
|
|
|
|
|
|
-
|
|
|
- @Select("<script>" +
|
|
|
- "select id,body,order_type,total_fee,patient_id,patient_name,serial_no,trade_no, " +
|
|
|
- "create_datetime,pay_datetime,pay_status,refund_reason,refund_op_code=(" +
|
|
|
- "select rtrim(name) from a_employee_mi where code=refund_op_code),refund_op_datetime, " +
|
|
|
- "inpatient_no,admiss_times from t_wechat_pay_order where create_datetime>=#{start} and " +
|
|
|
- "create_datetime<=#{end} and patient_id like #{patientId} and patient_name " +
|
|
|
- "like #{patientName} and order_type like #{orderType} and pay_status in " +
|
|
|
- "<foreach collection='statuses' item='status' separator=',' open='(' close=')'>" +
|
|
|
- "#{status}" +
|
|
|
- "</foreach>" +
|
|
|
- "</script>")
|
|
|
- List<WxOrderForExportExcel> selectOrdersByConditionsForMeSelf(@Param("patientId") String patientId,
|
|
|
- @Param("patientName") String patientName,
|
|
|
- @Param("orderType") String orderType,
|
|
|
- @Param("statuses") String[] statuses,
|
|
|
- @Param("start") String start,
|
|
|
- @Param("end") String end);
|
|
|
-
|
|
|
- @Select("select id,body,order_type,total_fee,patient_id,patient_name,serial_no,trade_no, " +
|
|
|
- "create_datetime,pay_datetime,pay_status,refund_reason,refund_op_code=(" +
|
|
|
- "select rtrim(name) from a_employee_mi where code=refund_op_code),refund_op_datetime, " +
|
|
|
- "inpatient_no,admiss_times from t_wechat_pay_order where trade_no=#{tradeNo}")
|
|
|
- List<WxOrderForExportExcel> selectOrdersByTradeNoForMeSelf(@Param("tradeNo") String tradeNo);
|
|
|
-
|
|
|
@Update("update t_wechat_pay_order set refund_id=#{refundId}, refund_op_code=#{refundOpCode}, " +
|
|
|
"refund_op_datetime=#{refundOpDatetime}, refund_reason=#{refundReason}, pay_status=4 where id=#{id}")
|
|
|
void updateRefundId(RefundParam param);
|