Commit 5f1678fc authored by yaobaizheng's avatar yaobaizheng

都市圈添加雪花id 去掉待认证联系人

parent 0aab1d8c
......@@ -41,7 +41,7 @@ public class MegalopolisInfoController extends BaseController {
@ApiImplicitParam(name = "orderByColumn", value = "排序字段(可为空,传类属性)", type = "String"),
@ApiImplicitParam(name = "isAsc", value = "排序字段(可为空,请传asc或者desc)", type = "String")
})
// @EncryptBusiness
@EncryptBusiness
public TableDataInfo list(MegalopolisInfoParam megalopolisInfoParam) {
boolean login = isLogin();
startPage();
......@@ -66,7 +66,7 @@ public class MegalopolisInfoController extends BaseController {
@ResponseBody
@ApiOperation(value = "某个都市圈信息",notes = "rest风格传参,将参数拼接在url上")
@ApiImplicitParam(name = "businessId", value = "都市圈id", type = "Long")
// @EncryptBusiness
@EncryptBusiness
public MegalopolisInfoAllVO get(@PathVariable Long businessId) {
return MegalopolisInfoSerivce.getMegalopolisInfo(businessId, getUserInfo().getUserId(), getUserInfo().getIsMembership());
}
......
......@@ -251,6 +251,7 @@ public class DevelopmentInfoServiceImpl extends ServiceImpl<DevelopmentInfoMappe
if(developmentInfo==null){
throw new APIException(APIExceptionEnum.NOTEXISTS_EXCEPTION);
}
soucreDeal(developmentInfo);
boolean isOwner = false;
Integer userId1 = developmentInfo.getUserId();
......@@ -724,6 +725,19 @@ public class DevelopmentInfoServiceImpl extends ServiceImpl<DevelopmentInfoMappe
}
}
/**
* @description: 如果数据待认证的 先不进行展示联系人和 电话
* @date: 2023/12/13 14:01
* @param: [parkInfo]
* @return: void
*/
private void soucreDeal(DevelopmentInfo developmentInfo) {
//待认证的手机号和联系人不展示
if(DevelopmentStatusEnum.STATUS_DRZ.getCode().equals(developmentInfo.getStatus())){
developmentInfo.setContactPerson(null);
developmentInfo.setContactPhone(null);
}
}
}
......
......@@ -298,6 +298,7 @@ public class ParkInfoServiceImpl extends ServiceImpl<ParkInfoMapper, ParkInfo> i
if (parkInfo == null) {
throw new APIException(APIExceptionEnum.NOTEXISTS_EXCEPTION);
}
soucreDeal(parkInfo);
boolean isOwner = false;
Integer userId1 = parkInfo.getUserId();
......@@ -759,6 +760,19 @@ public class ParkInfoServiceImpl extends ServiceImpl<ParkInfoMapper, ParkInfo> i
}
return investmentDirection;
}
/**
* @description: 如果数据是待认证的 先不进行展示联系人和 电话
* @date: 2023/12/13 14:01
* @param: [parkInfo]
* @return: void
*/
private void soucreDeal(ParkInfo parkInfo) {
if(ParkInfoEnum.STATUS_DRZ.getCode().equals(parkInfo.getStatus())){
parkInfo.setContactPerson(null);
parkInfo.setPhone(null);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment