新增租赁合同按钮状态
This commit is contained in:
@@ -254,6 +254,9 @@ public class PointDetailVO {
|
||||
@ApiModelProperty("街道")
|
||||
private String township;
|
||||
|
||||
@ApiModelProperty("是否可以上传租赁合同")
|
||||
private boolean canSubmitRentContract;
|
||||
|
||||
|
||||
public static PointDetailVO convertVO(PointInfoDO pointInfo, PointDetailInfoDO pointDetailInfo) {
|
||||
PointDetailVO result = new PointDetailVO();
|
||||
|
||||
@@ -57,8 +57,11 @@ public class PointRecommendPageVO {
|
||||
@ApiModelProperty("铺位地址")
|
||||
private String address;
|
||||
|
||||
@ApiModelProperty("是否可以上传租赁合同")
|
||||
private boolean canSubmitRentContract;
|
||||
|
||||
public static List<PointRecommendPageVO> convertVO(List<PointRecommendDO> recommendList, List<PointInfoDO> pointList, Map<String, String> usernameMap, Map<Long, String> regionNameMap) {
|
||||
|
||||
public static List<PointRecommendPageVO> convertVO(List<PointRecommendDO> recommendList, List<PointInfoDO> pointList, Map<String, String> usernameMap, Map<Long, String> regionNameMap, List<Long> canSubmitRentContractShopIds) {
|
||||
if(CollectionUtils.isEmpty(recommendList) || CollectionUtils.isEmpty(pointList)){
|
||||
return Lists.newArrayList();
|
||||
}
|
||||
@@ -83,6 +86,9 @@ public class PointRecommendPageVO {
|
||||
recommend.setDevelopmentManagerUsername(usernameMap.get(pointInfo.getDevelopmentManager()));
|
||||
recommend.setDevelopmentTime(pointInfo.getDevelopmentTime());
|
||||
recommend.setAddress(pointInfo.getAddress());
|
||||
if(canSubmitRentContractShopIds.contains(pointInfo.getShopId())){
|
||||
recommend.setCanSubmitRentContract(Boolean.TRUE);
|
||||
}
|
||||
}
|
||||
resultList.add(recommend);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user