|
|
|
|
@@ -132,6 +132,7 @@ public class DeskServiceImpl implements DeskService {
|
|
|
|
|
payStagePendingVO.setPayTime(DateUtils.parseDateToStr(SPECIAL_DATE_START, linePayDO.getPayTime()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
list.add(payStagePendingVO);
|
|
|
|
|
});
|
|
|
|
|
page.setList(list);
|
|
|
|
|
@@ -192,6 +193,7 @@ public class DeskServiceImpl implements DeskService {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
baseInfoVO.setUserPortraitList(labelBaseInfoList);
|
|
|
|
|
baseInfoVO.setJoinMode(lineInfoDO.getJoinMode());
|
|
|
|
|
baseInfoVO.setWantShopAreaName(wantShopAreaMap.get(lineInfoDO.getWantShopAreaId()));
|
|
|
|
|
return baseInfoVO;
|
|
|
|
|
}
|
|
|
|
|
@@ -442,7 +444,7 @@ public class DeskServiceImpl implements DeskService {
|
|
|
|
|
//只有设计组长 查询 指定当前用户和阶段为 900 待分配设计师
|
|
|
|
|
if (userRoleIds.contains(UserRoleEnum.HEAD_OF_DESIGN.getCode()) && !userRoleIds.contains(UserRoleEnum.DESIGN_CUSTOMER.getCode())) {
|
|
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
|
|
|
return decorationMeasureDAO.getShopIdListByDesignUserIdAndShopStage(user.getUserId());
|
|
|
|
|
return decorationMeasureDAO.getShopIdListByDesignUserIdAndShopStage(user.getUserId());
|
|
|
|
|
}
|
|
|
|
|
//只有设计师 查询 指定当前用户和阶段为 901 设计中
|
|
|
|
|
if (userRoleIds.contains(UserRoleEnum.DESIGN_CUSTOMER.getCode()) && !userRoleIds.contains(UserRoleEnum.HEAD_OF_DESIGN.getCode())) {
|
|
|
|
|
@@ -450,7 +452,7 @@ public class DeskServiceImpl implements DeskService {
|
|
|
|
|
return decorationDesignInfoDAO.getByDesignUserIdAndShopStage(user.getUserId());
|
|
|
|
|
}
|
|
|
|
|
//有 设计组长 和 设计师 查询 指定当前用户和 阶段为 900 待分配设计师 阶段为 901 设计中
|
|
|
|
|
if (userRoleIds.contains(UserRoleEnum.DESIGN_CUSTOMER.getCode()) && userRoleIds.contains(UserRoleEnum.HEAD_OF_DESIGN.getCode())) {
|
|
|
|
|
if (userRoleIds.contains(UserRoleEnum.DESIGN_CUSTOMER.getCode()) && userRoleIds.contains(UserRoleEnum.HEAD_OF_DESIGN.getCode())) {
|
|
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
|
|
|
return decorationMeasureDAO.getShopIdListByDesignUserIdOrQuotationAndShopStage(user.getUserId());
|
|
|
|
|
}
|
|
|
|
|
@@ -484,7 +486,7 @@ public class DeskServiceImpl implements DeskService {
|
|
|
|
|
vo.setSubmitTime(deskStageMap.get(vo.getShopId()).get(0).getActualCompleteTime());
|
|
|
|
|
}
|
|
|
|
|
} else if (vo.getSubStageStatus().equals(SHOP_SUB_STAGE_STATUS_111.getShopSubStageStatus())) {
|
|
|
|
|
vo.setSubmitTime(DateUtils.parseDateToStr( SPECIAL_DATE_START,constructionMap.get(vo.getShopId())));
|
|
|
|
|
vo.setSubmitTime(DateUtils.parseDateToStr(SPECIAL_DATE_START, constructionMap.get(vo.getShopId())));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
@@ -672,13 +674,16 @@ public class DeskServiceImpl implements DeskService {
|
|
|
|
|
preparationCommonPendingVO.setShopId(x.getShopId());
|
|
|
|
|
ShopInfoDO shopInfoDO = shopInfoMap.getOrDefault(x.getShopId(), new ShopInfoDO());
|
|
|
|
|
preparationCommonPendingVO.setStoreType(shopInfoDO.getStoreType());
|
|
|
|
|
if (shopInfoDO != null) {
|
|
|
|
|
if (StringUtil.isNotEmpty(shopInfoDO.getDetailAddress())) {
|
|
|
|
|
preparationCommonPendingVO.setShopAddress(shopInfoDO.getDetailAddress());
|
|
|
|
|
} else {
|
|
|
|
|
PointInfoDO pointInfoDO = pointMap.get(shopInfoDO.getPointId());
|
|
|
|
|
if (pointInfoDO != null) {
|
|
|
|
|
preparationCommonPendingVO.setShopAddress(pointInfoDO.getAddress());
|
|
|
|
|
}
|
|
|
|
|
preparationCommonPendingVO.setShopCode(shopInfoDO.getShopCode());
|
|
|
|
|
}
|
|
|
|
|
preparationCommonPendingVO.setShopCode(shopInfoDO.getShopCode());
|
|
|
|
|
preparationCommonPendingVO.setJoinMode(shopInfoDO.getJoinMode());
|
|
|
|
|
preparationCommonPendingVO.setInvestmentManager(lineMap.getOrDefault(x.getLineId(), new PlanLineDTO()).getInvestmentManagerName());
|
|
|
|
|
preparationCommonPendingVO.setStage(x.getShopStage());
|
|
|
|
|
preparationCommonPendingVO.setSubStage(x.getShopSubStage());
|
|
|
|
|
@@ -746,13 +751,10 @@ public class DeskServiceImpl implements DeskService {
|
|
|
|
|
operationLogDOList.forEach(x -> {
|
|
|
|
|
PreparationCommonPendingVO preparationCommonPendingVO = new PreparationCommonPendingVO();
|
|
|
|
|
ShopInfoDO shopInfoDO = shopInfoMap.getOrDefault(x.getShopId(), new ShopInfoDO());
|
|
|
|
|
if (shopInfoDO != null) {
|
|
|
|
|
PointInfoDO pointInfoDO = pointMap.get(shopInfoDO.getPointId());
|
|
|
|
|
if (pointInfoDO != null) {
|
|
|
|
|
preparationCommonPendingVO.setShopAddress(pointInfoDO.getAddress());
|
|
|
|
|
}
|
|
|
|
|
preparationCommonPendingVO.setShopCode(shopInfoDO.getShopCode());
|
|
|
|
|
}
|
|
|
|
|
preparationCommonPendingVO.setStoreType(shopInfoDO.getStoreType());
|
|
|
|
|
preparationCommonPendingVO.setJoinMode(shopInfoDO.getJoinMode());
|
|
|
|
|
preparationCommonPendingVO.setShopAddress(shopInfoDO.getDetailAddress());
|
|
|
|
|
preparationCommonPendingVO.setShopCode(shopInfoDO.getShopCode());
|
|
|
|
|
preparationCommonPendingVO.setLineId(shopInfoDO.getLineId());
|
|
|
|
|
preparationCommonPendingVO.setShopId(x.getShopId());
|
|
|
|
|
preparationCommonPendingVO.setSubStage(x.getShopSubStage());
|
|
|
|
|
|