Bladeren bron

修复bug

Memory_LG 3 weken geleden
bovenliggende
commit
b7654da53e

+ 2 - 0
qmjszx-business/src/main/java/beilv/vipCardLog/service/impl/VipCardLogServiceImpl.java

@@ -302,6 +302,8 @@ public class VipCardLogServiceImpl implements IVipCardLogService {
                 if (cancelTime.isBefore(now)) {
                     return AjaxResult.error("距离开场不足" + cancelMinutes + "分钟, 不允许线上退款!如需退款请线下联系工作人员!");
                 }
+                admissionTicket.setAdmissionTicketStatus("0");
+                ticketService.updateBeilvAdmissionTicket(admissionTicket);
             }
 
 

+ 2 - 2
qmjszx-business/src/main/resources/mapper/vipCardLog/VipCardLogMapper.xml

@@ -228,12 +228,12 @@
     <update id="updateVipCardLogByBusId" parameterType="VipCardLog">
         update beilv_vip_card_log
         set payment_status = #{paymentStatus} , verify_time = #{verifyTime}
-        where order_type = #{orderType} and bus_id = #{busId}
+        where order_type = #{orderType} and bus_id = #{busId} and payment_status = 'payment_status_have_paid'
     </update>
 
     <select id="selectVipCardLogByBusId" parameterType="String" resultMap="VipCardLogResult">
         <include refid="selectVipCardLogVo"/>
-        where bus_id = #{busId} and order_type = #{orderType}
+        where bus_id = #{busId} and order_type = #{orderType} and payment_status = 'payment_status_have_paid'
     </select>
 
 </mapper>