mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-03 17:40:13 +08:00
update
This commit is contained in:
@@ -153,9 +153,7 @@ public class CarVinInfoServiceImpl implements ICarVinInfoService {
|
||||
if (carVinInfo != null) {
|
||||
throw new BusinessException(ReturnCodeEnum.CODE_SELECT_INFO_IS_NULL);
|
||||
}
|
||||
if (!StringUtils.equals("1", carVinInfo.getStatus())) {
|
||||
throw new BusinessException("", "");
|
||||
}
|
||||
carVinInfo = new CarVinInfo();
|
||||
// 绑定操作
|
||||
carVinInfo.setVinCode(dto.getVinCode());
|
||||
carVinInfo.setStatus("1");
|
||||
|
||||
@@ -112,8 +112,18 @@
|
||||
</select>
|
||||
|
||||
<select id="getCarVinListByMemberId" resultType="com.jsowell.pile.vo.CarVinInfoVO">
|
||||
select <include refid="Base_Column_List"/>
|
||||
from car_vin_info
|
||||
select
|
||||
t1.id,
|
||||
t1.vin_code as vinCode,
|
||||
t1.status,
|
||||
t1.member_id as memberId,
|
||||
t2.mobile_number as phoneNumber,
|
||||
t3.principal_balance as principalBalance,
|
||||
t3.gift_balance as giftBalance
|
||||
from
|
||||
car_vin_info t1
|
||||
join member_basic_info t2 on t1.member_id = t2.member_id and t1.del_flag = '0'
|
||||
join member_wallet_info t3 on t2.member_id = t3.member_id and t2.status = '1'
|
||||
where member_id = #{memberId,jdbcType=VARCHAR}
|
||||
and del_flag = '0'
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user