|
@@ -300,8 +300,11 @@ public class BocomVipAccountBasicInfoServiceImpl extends ServiceImpl<BocomVipAcc
|
|
throw new BusinessException(CodeUtil.FAIL, e.getMessage());
|
|
throw new BusinessException(CodeUtil.FAIL, e.getMessage());
|
|
}
|
|
}
|
|
//静默户入库
|
|
//静默户入库
|
|
- newSilentAccountInfo.setBocomVipAccountBasicInfoId(oldBasicInfo.getId());
|
|
|
|
- bocomVipSilentAccoutInfoService.save(newSilentAccountInfo);
|
|
|
|
|
|
+ BocomVipAccountBasicInfo accountBasicInfo = JSONObject.parseObject(JSONObject.toJSONString(responseJson.getData()), BocomVipAccountBasicInfo.class);
|
|
|
|
+ List<BocomVipSilentAccountInfo> silentAccountInfoList = accountBasicInfo.getSilentAccountInfoList();
|
|
|
|
+ BocomVipSilentAccountInfo silentAccountInfo = silentAccountInfoList.get(0);
|
|
|
|
+ silentAccountInfo.setBocomVipAccountBasicInfoId(oldBasicInfo.getId());
|
|
|
|
+ bocomVipSilentAccoutInfoService.save(silentAccountInfo);
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
@@ -362,25 +365,27 @@ public class BocomVipAccountBasicInfoServiceImpl extends ServiceImpl<BocomVipAcc
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public void resetUrl(Long id) {
|
|
|
|
|
|
+ public BocomVipAccountBasicInfo resetUrl(Long id) {
|
|
BocomVipAccountBasicInfo basicInfo = getById(id);
|
|
BocomVipAccountBasicInfo basicInfo = getById(id);
|
|
|
|
+ BocomVipAccountBasicInfo newVipAccount = null;
|
|
if (basicInfo != null) {
|
|
if (basicInfo != null) {
|
|
ResponseJson responseJson;
|
|
ResponseJson responseJson;
|
|
try {
|
|
try {
|
|
- responseJson = restTemplate.postForObject(bocomVipResetQrCodeUrl, basicInfo, ResponseJson.class);
|
|
|
|
|
|
+ responseJson = restTemplate.getForObject(bocomVipResetQrCodeUrl + "?id=" + id, ResponseJson.class);
|
|
if (!responseJson.getCode().equals(200)) {
|
|
if (!responseJson.getCode().equals(200)) {
|
|
throw new BusinessException(CodeUtil.FAIL, responseJson.getMsg().toString());
|
|
throw new BusinessException(CodeUtil.FAIL, responseJson.getMsg().toString());
|
|
}
|
|
}
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
throw new BusinessException(CodeUtil.FAIL, e.getMessage());
|
|
throw new BusinessException(CodeUtil.FAIL, e.getMessage());
|
|
}
|
|
}
|
|
- BocomVipAccountBasicInfo vipAccountBasicInfo = JSONObject.parseObject(JSONObject.toJSONString(responseJson.getData()), BocomVipAccountBasicInfo.class);
|
|
|
|
- lambdaUpdate().eq(BocomVipAccountBasicInfo::getId, vipAccountBasicInfo.getId())
|
|
|
|
- .set(BocomVipAccountBasicInfo::getQrCode, vipAccountBasicInfo.getQrCode())
|
|
|
|
- .set(BocomVipAccountBasicInfo::getQrCodeEffectTime, vipAccountBasicInfo.getQrCodeEffectTime())
|
|
|
|
|
|
+ newVipAccount = JSONObject.parseObject(JSONObject.toJSONString(responseJson.getData()), BocomVipAccountBasicInfo.class);
|
|
|
|
+ lambdaUpdate().eq(BocomVipAccountBasicInfo::getId, newVipAccount.getId())
|
|
|
|
+ .set(BocomVipAccountBasicInfo::getQrCode, newVipAccount.getQrCode())
|
|
|
|
+ .set(BocomVipAccountBasicInfo::getQrCodeEffectTime, newVipAccount.getQrCodeEffectTime())
|
|
.update();
|
|
.update();
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+ return newVipAccount;
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|