Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ public List<TrainPurchaseTicketRespDTO> select(Integer trainType, PurchaseTicket
try {
passengerRemoteResult = userRemoteService.listPassengerQueryByIds(UserContext.getUsername(), passengerIds);
if (!passengerRemoteResult.isSuccess() || CollUtil.isEmpty(passengerRemoteResultList = passengerRemoteResult.getData())) {
throw new RemoteException("用户服务远程调用查询乘车人相信信息错误");
throw new RemoteException("用户服务远程调用查询乘车人相关信息错误");
}
} catch (Throwable ex) {
if (ex instanceof RemoteException) {
log.error("用户服务远程调用查询乘车人相信信息错误,当前用户:{},请求参数:{}", UserContext.getUsername(), passengerIds);
log.error("用户服务远程调用查询乘车人相关信息错误,当前用户:{},请求参数:{}", UserContext.getUsername(), passengerIds);
} else {
log.error("用户服务远程调用查询乘车人相信信息错误,当前用户:{},请求参数:{}", UserContext.getUsername(), passengerIds, ex);
log.error("用户服务远程调用查询乘车人相关信息错误,当前用户:{},请求参数:{}", UserContext.getUsername(), passengerIds, ex);
}
throw ex;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.opengoofy.index12306.biz.ticketservice.dao.mapper.SeatMapper">

<select id="listSeatRemainingTicket" parameterType="org.opengoofy.index12306.biz.ticketservice.dao.entity.SeatDO" resultType="Integer">
<select id="listSeatRemainingTicket" parameterType="org.opengoofy.index12306.biz.ticketservice.dao.entity.SeatDO" resultType="java.lang.Integer">
select count(*) as count
from t_seat
where train_id = #{seatDO.trainId}
Expand Down