delCoolDownFirstLoginFlag
This commit is contained in:
@@ -373,12 +373,12 @@ public class HyPartnerLineInfoServiceImpl implements HyPartnerLineInfoService {
|
|||||||
// todo wxp 需要加条件
|
// todo wxp 需要加条件
|
||||||
HyPartnerLineInfoDO lineInfoDO = hyPartnerLineInfoDAO.getByPartnerId(partnerId);
|
HyPartnerLineInfoDO lineInfoDO = hyPartnerLineInfoDAO.getByPartnerId(partnerId);
|
||||||
BeanUtil.copyProperties(lineInfoDO, lineBaseInfoVO);
|
BeanUtil.copyProperties(lineInfoDO, lineBaseInfoVO);
|
||||||
String coolingPeriodFirstLoginCacheKey = MessageFormat.format(RedisConstant.COOLINGPERIOD_FIRSTLOGIN_KEY, partnerId);
|
String coolingPeriodFirstLoginCacheKey = MessageFormat.format(RedisConstant.COOLINGPERIOD_FIRSTLOGIN_KEY, lineInfoDO.getId());
|
||||||
String value = redisUtilPool.getString(coolingPeriodFirstLoginCacheKey);
|
String value = redisUtilPool.getString(coolingPeriodFirstLoginCacheKey);
|
||||||
lineBaseInfoVO.setCoolDownFirstLoginFlag(StringUtils.isNotBlank(value));
|
lineBaseInfoVO.setCoolDownFirstLoginFlag(StringUtils.isNotBlank(value));
|
||||||
lineBaseInfoVO.setPartnerLineId(lineInfoDO.getId());
|
lineBaseInfoVO.setPartnerLineId(lineInfoDO.getId());
|
||||||
lineBaseInfoVO.setCause(lineInfoDO.getRejectPublicReason());
|
lineBaseInfoVO.setCause(lineInfoDO.getRejectPublicReason());
|
||||||
|
|
||||||
return lineBaseInfoVO;
|
return lineBaseInfoVO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -136,8 +136,8 @@ public class PartnerController {
|
|||||||
|
|
||||||
@PostMapping(path = "/delCoolDownFirstLoginFlag")
|
@PostMapping(path = "/delCoolDownFirstLoginFlag")
|
||||||
@ApiOperation("删除冷静期是否首次登录缓存")
|
@ApiOperation("删除冷静期是否首次登录缓存")
|
||||||
public ResponseResult<Boolean> delCoolDownFirstLoginFlag(@RequestParam(value = "partnerId",required = true)String partnerId){
|
public ResponseResult<Boolean> delCoolDownFirstLoginFlag(@RequestParam(value = "lineId",required = true)String lineId){
|
||||||
String coolingPeriodFirstLoginCacheKey = MessageFormat.format(RedisConstant.COOLINGPERIOD_FIRSTLOGIN_KEY, partnerId);
|
String coolingPeriodFirstLoginCacheKey = MessageFormat.format(RedisConstant.COOLINGPERIOD_FIRSTLOGIN_KEY, lineId);
|
||||||
redisUtilPool.delKey(coolingPeriodFirstLoginCacheKey);
|
redisUtilPool.delKey(coolingPeriodFirstLoginCacheKey);
|
||||||
return ResponseResult.success(true);
|
return ResponseResult.success(true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user