|
@@ -50,7 +50,7 @@ public interface WxApiDao {
|
|
|
"his_status=0,refund_op_datetime=getdate() where trade_no=#{tradeNo}")
|
|
|
void refundOrder(@Param("tradeNo") String tradeNo, @Param("rea") String rea);
|
|
|
|
|
|
- @Update("update t_wechat_pay_order set his_status=1 where trade_no=#{tradeNo}")
|
|
|
+ @Update("update t_wechat_pay_order set his_status=1,pay_status=1 where trade_no=#{tradeNo}")
|
|
|
void updateSuccessHisStatus(@Param("tradeNo") String tradeNo);
|
|
|
|
|
|
@Update("update t_wechat_pay_order set open_id=#{openId} where trade_no=#{tradeNo}")
|
|
@@ -60,9 +60,9 @@ public interface WxApiDao {
|
|
|
@Select("select * from t_wechat_pay_order with(nolock) where trade_no=#{tradeNo}")
|
|
|
WxPayOrder selectOrderByTradeNo(@Param("tradeNo") String tradeNo);
|
|
|
|
|
|
- @Select("select trade_no, query_state_times from t_wechat_pay_order with(nolock) where his_status=0 " +
|
|
|
+ @Select("select trade_no, query_state_times from t_wechat_pay_order with(nolock) where his_status=#{status} " +
|
|
|
"and order_type<=3 and pay_status in (99, 0, 5, 6, 100) ")
|
|
|
- List<TradeNo> selectTradeNosForScheduleTask();
|
|
|
+ List<TradeNo> selectTradeNosForScheduleTask(@Param("status") int status);
|
|
|
|
|
|
@Select("select open_id from t_wechat_patient_bind with(nolock) where patient_id=#{cardNo} and del_flag=0")
|
|
|
List<String> selectOpenIdByPatientId(@Param("cardNo") String cardNo);
|