修复查看卡用户联网卡遇到的bug

This commit is contained in:
wenhui 2022-03-10 16:46:36 +08:00
parent d1cfc4d8da
commit 53144e3703
2 changed files with 6 additions and 4 deletions

View File

@ -455,7 +455,7 @@ public class XhpcCardServiceImpl implements IXhpcCardService {
cardUserInfo.setLicencePlate(tIccardUser.getLicenceplate()); cardUserInfo.setLicencePlate(tIccardUser.getLicenceplate());
return R.ok(cardUserInfo); return R.ok(cardUserInfo);
} else { } else {
XhpcIcCardInfo xhpcIcCardInfo = xhpcCardMapper.getXhpcIcCardInfo(tIccardInfo.getCardid()); XhpcIcCardInfo xhpcIcCardInfo = xhpcCardMapper.getXhpcIcCardInfo(String.valueOf(tIccardInfo.getId()));
cardUserInfo.setUserAccount(xhpcIcCardInfo.getUserAccount()); cardUserInfo.setUserAccount(xhpcIcCardInfo.getUserAccount());
cardUserInfo.setUserType(xhpcIcCardInfo.getUserType()); cardUserInfo.setUserType(xhpcIcCardInfo.getUserType());
//公共部分 //公共部分

View File

@ -212,11 +212,13 @@
</select> </select>
<select id="getXhpcIcCardInfo" resultMap="BaseResultMap"> <select id="getXhpcIcCardInfo" resultMap="BaseResultMap">
select * select
<include refid="Base_Column_List"/>
from xhpc_ic_card_info from xhpc_ic_card_info
where t_iccard_info_id = #{tIccardInfoId} where t_iccard_info_id = #{tIccardInfoId}
and del_flag = 0 and del_flag = 0
order by create_time desc limit 1 order by create_time desc
limit 1
</select> </select>
<select id="selectBytCardId" resultMap="BaseResultMap"> <select id="selectBytCardId" resultMap="BaseResultMap">
select select