意向信息
This commit is contained in:
@@ -49,4 +49,9 @@ public interface HyPartnerIntentInfoService {
|
|||||||
|
|
||||||
PartnerIntentInfoVO queryPartnerIntentInfo(PartnerUserInfoVO userInfoVO, Long lineId);
|
PartnerIntentInfoVO queryPartnerIntentInfo(PartnerUserInfoVO userInfoVO, Long lineId);
|
||||||
|
|
||||||
|
PartnerIntentInfoVO queryWantShopInfo(PartnerUserInfoVO userInfoVO, Long lineId);
|
||||||
|
|
||||||
|
PartnerIntentInfoVO queryIndustryCognitionInfo(PartnerUserInfoVO userInfoVO, Long lineId);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -245,6 +245,47 @@ public class HyPartnerIntentInfoServiceImpl implements HyPartnerIntentInfoServic
|
|||||||
return intentInfoVO;
|
return intentInfoVO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PartnerIntentInfoVO queryWantShopInfo(PartnerUserInfoVO userInfoVO, Long lineId) {
|
||||||
|
String cacheKey = MessageFormat.format(RedisConstant.PARTNER_WANTSHOPINFO_CACHE_KEY, userInfoVO.getPartnerId(), lineId);
|
||||||
|
if (StringUtils.isNotBlank(redisUtilPool.getString(cacheKey))) {
|
||||||
|
PartnerIntentInfoVO intentInfoVO = JSONObject.parseObject(redisUtilPool.getString(cacheKey), PartnerIntentInfoVO.class);
|
||||||
|
return intentInfoVO;
|
||||||
|
}
|
||||||
|
HyPartnerIntentInfoDO intentInfoDO = hyPartnerIntentInfoDAO.getByPartnerIdAndLineId(userInfoVO.getPartnerId(), lineId);
|
||||||
|
PartnerIntentInfoVO intentInfoVO = null;
|
||||||
|
if (intentInfoDO != null){
|
||||||
|
intentInfoVO = convertPartnerIntentApplyInfoDOToVO(intentInfoDO);
|
||||||
|
}else {
|
||||||
|
intentInfoVO = new PartnerIntentInfoVO();
|
||||||
|
}
|
||||||
|
if(StringUtils.isBlank(intentInfoVO.getLiveArea())){
|
||||||
|
intentInfoVO.setLiveArea(userInfoVO.getLiveArea());
|
||||||
|
}
|
||||||
|
if(StringUtils.isBlank(intentInfoVO.getWantShopArea())){
|
||||||
|
intentInfoVO.setWantShopArea(userInfoVO.getWantShopArea());
|
||||||
|
}
|
||||||
|
if(Objects.isNull(intentInfoVO.getAcceptAdjustType())){
|
||||||
|
intentInfoVO.setAcceptAdjustType(userInfoVO.getAcceptAdjustType());
|
||||||
|
}
|
||||||
|
return intentInfoVO;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PartnerIntentInfoVO queryIndustryCognitionInfo(PartnerUserInfoVO userInfoVO, Long lineId) {
|
||||||
|
String cacheKey = MessageFormat.format(RedisConstant.PARTNER_INDUSTRYCOGNITIONINFO_CACHE_KEY, userInfoVO.getPartnerId(), lineId);
|
||||||
|
if (StringUtils.isNotBlank(redisUtilPool.getString(cacheKey))) {
|
||||||
|
PartnerIntentInfoVO intentInfoVO = JSONObject.parseObject(redisUtilPool.getString(cacheKey), PartnerIntentInfoVO.class);
|
||||||
|
return intentInfoVO;
|
||||||
|
}
|
||||||
|
HyPartnerIntentInfoDO intentInfoDO = hyPartnerIntentInfoDAO.getByPartnerIdAndLineId(userInfoVO.getPartnerId(), lineId);
|
||||||
|
PartnerIntentInfoVO intentInfoVO = null;
|
||||||
|
if (intentInfoDO != null){
|
||||||
|
intentInfoVO = convertPartnerIntentApplyInfoDOToVO(intentInfoDO);
|
||||||
|
}
|
||||||
|
return intentInfoVO;
|
||||||
|
}
|
||||||
|
|
||||||
private void fillWantShopInfo(HyPartnerIntentInfoDO intentInfoDO, PartnerWantShopInfoRequest request) {
|
private void fillWantShopInfo(HyPartnerIntentInfoDO intentInfoDO, PartnerWantShopInfoRequest request) {
|
||||||
intentInfoDO.setPartnerId(request.getPartnerId());
|
intentInfoDO.setPartnerId(request.getPartnerId());
|
||||||
intentInfoDO.setPartnerLineId(request.getPartnerLineId());
|
intentInfoDO.setPartnerLineId(request.getPartnerLineId());
|
||||||
|
|||||||
@@ -177,14 +177,24 @@ public class PartnerController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@GetMapping(path = "/queryPartnerIntentInfo")
|
@GetMapping(path = "/queryWantShopInfo")
|
||||||
@ApiOperation("查看意向申请书-意向信息/行业信息")
|
@ApiOperation("查看意向申请书-意向信息")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = "lineId", value = "线索ID", required = false),
|
@ApiImplicitParam(name = "lineId", value = "线索ID", required = false),
|
||||||
})
|
})
|
||||||
public ResponseResult<PartnerIntentInfoVO> queryPartnerIntentInfo(@RequestParam(value = "lineId",required = false)Long lineId){
|
public ResponseResult<PartnerIntentInfoVO> queryWantShopInfo(@RequestParam(value = "lineId",required = false)Long lineId){
|
||||||
PartnerUserInfoVO userInfoVO = PartnerUserHolder.getUser();
|
PartnerUserInfoVO userInfoVO = PartnerUserHolder.getUser();
|
||||||
return ResponseResult.success(hyPartnerIntentInfoService.queryPartnerIntentInfo(userInfoVO, lineId));
|
return ResponseResult.success(hyPartnerIntentInfoService.queryWantShopInfo(userInfoVO, lineId));
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping(path = "/queryIndustryCognitionInfo")
|
||||||
|
@ApiOperation("查看意向申请书-行业信息")
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = "lineId", value = "线索ID", required = false),
|
||||||
|
})
|
||||||
|
public ResponseResult<PartnerIntentInfoVO> queryIndustryCognitionInfo(@RequestParam(value = "lineId",required = false)Long lineId){
|
||||||
|
PartnerUserInfoVO userInfoVO = PartnerUserHolder.getUser();
|
||||||
|
return ResponseResult.success(hyPartnerIntentInfoService.queryIndustryCognitionInfo(userInfoVO, lineId));
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping(path = "/completeJoinNotice")
|
@GetMapping(path = "/completeJoinNotice")
|
||||||
|
|||||||
Reference in New Issue
Block a user