|
|
@@ -508,10 +508,10 @@ public interface FsStorePaymentScrmMapper
|
|
|
List<FsStoreScanPaymentStatDetailsVo> getScanPaymentDateStatPage(@Param("dateParam")FsStoreScanPaymentStatParam dateParam);
|
|
|
|
|
|
/**
|
|
|
- * 根据用户ID查询是否有支付记录(status=1为已支付)
|
|
|
+ * 根据用户ID查询是否有支付记录(status=1为已支付,status=-1为已退款)
|
|
|
* @param userId 用户ID
|
|
|
* @return 支付记录,如果没有则返回null
|
|
|
*/
|
|
|
- @Select("select * from fs_store_payment_scrm where user_id = #{userId} and status = 1 limit 1")
|
|
|
+ @Select("select * from fs_store_payment_scrm where user_id = #{userId} and status in (1, -1) limit 1")
|
|
|
FsStorePaymentScrm selectPaymentByUserId(@Param("userId") Long userId);
|
|
|
}
|