submitIndustryCognitionInfo
This commit is contained in:
@@ -45,7 +45,7 @@ public interface HyPartnerIntentInfoService {
|
||||
|
||||
String submitWantShopInfo(PartnerWantShopInfoRequest request);
|
||||
|
||||
String submitIndustryCognitionInfo(IndustryCognitionInfoRequest request);
|
||||
Boolean submitIndustryCognitionInfo(IndustryCognitionInfoRequest request);
|
||||
|
||||
PartnerIntentInfoVO queryPartnerIntentInfo(PartnerUserInfoVO userInfoVO, Long lineId);
|
||||
|
||||
|
||||
@@ -195,7 +195,7 @@ public class HyPartnerIntentInfoServiceImpl implements HyPartnerIntentInfoServic
|
||||
}
|
||||
|
||||
@Override
|
||||
public String submitIndustryCognitionInfo(IndustryCognitionInfoRequest request) {
|
||||
public Boolean submitIndustryCognitionInfo(IndustryCognitionInfoRequest request) {
|
||||
log.info("HyPartnerClerkServiceImpl#submitPartnerIntentInfo request:{}", JSONObject.toJSONString(request));
|
||||
if (StringUtil.isBlank(request.getPartnerId()) || Objects.isNull(request.getPartnerLineId())){
|
||||
throw new ServiceException(ErrorCodeEnum.PARAMS_REQUIRED);
|
||||
@@ -204,7 +204,7 @@ public class HyPartnerIntentInfoServiceImpl implements HyPartnerIntentInfoServic
|
||||
if(!request.getSubmitFlag()){
|
||||
// 自动保存时
|
||||
redisUtilPool.setString(cacheKey, JSONObject.toJSONString(request), RedisConstant.ONE_DAY_SECONDS);
|
||||
return "";
|
||||
return true;
|
||||
}
|
||||
HyPartnerIntentInfoDO intentInfoDO = hyPartnerIntentInfoDAO.getByPartnerIdAndLineId(request.getPartnerId(), request.getPartnerLineId());
|
||||
if(intentInfoDO == null){
|
||||
@@ -216,7 +216,7 @@ public class HyPartnerIntentInfoServiceImpl implements HyPartnerIntentInfoServic
|
||||
hyPartnerIntentInfoDAO.updateByPrimaryKeySelective(intentInfoDO);
|
||||
}
|
||||
redisUtilPool.delKey(cacheKey);
|
||||
return null;
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -118,7 +118,7 @@ public class PartnerController {
|
||||
|
||||
@PostMapping(path = "/submitIndustryCognitionInfo")
|
||||
@ApiOperation("提意向书行业认知")
|
||||
public ResponseResult<String> submitIndustryCognitionInfo(@RequestBody IndustryCognitionInfoRequest request){
|
||||
public ResponseResult<Boolean> submitIndustryCognitionInfo(@RequestBody IndustryCognitionInfoRequest request){
|
||||
return ResponseResult.success(hyPartnerIntentInfoService.submitIndustryCognitionInfo(request));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user