This commit is contained in:
shuo.wang
2025-01-13 16:38:41 +08:00
parent 15549ce269
commit e15dbdd99f
4 changed files with 13 additions and 12 deletions

View File

@@ -60,7 +60,8 @@ public class MiniShopPageVO {
private String joinMode; private String joinMode;
@ApiModelProperty("意向开店区域") @ApiModelProperty("意向开店区域")
private String wantRegionName; private String wantRegionName;
@ApiModelProperty("门店状态'0.跟进中 1.已完成 2.已放弃',")
private Integer shopStatus;
public MiniShopPageVO(Long shopId, String shopName, String shopCode, Boolean flag, Long pointId, Long regionId, String regionName) { public MiniShopPageVO(Long shopId, String shopName, String shopCode, Boolean flag, Long pointId, Long regionId, String regionName) {
this.shopId = shopId; this.shopId = shopId;
this.shopName = shopName; this.shopName = shopName;
@@ -99,6 +100,7 @@ public class MiniShopPageVO {
if (Objects.nonNull(wantRegionMap)) { if (Objects.nonNull(wantRegionMap)) {
miniShopPageVO.setWantRegionName(wantRegionMap.get(shopInfo.getWantShopAreaId())); miniShopPageVO.setWantRegionName(wantRegionMap.get(shopInfo.getWantShopAreaId()));
} }
miniShopPageVO.setShopStatus(shopInfo.getShopStatus());
resultList.add(miniShopPageVO); resultList.add(miniShopPageVO);
} }

View File

@@ -20,7 +20,7 @@ public interface PreparationService {
/** /**
* 开业进度列表 * 开业进度列表
* @param preparationRequest * @param preparationRequest
* @return * @return //原先进度管理接口废弃使用branchShopList
*/ */
PageInfo<PreparationScheduleVO> getPreparationSchedule(PreparationRequest preparationRequest); PageInfo<PreparationScheduleVO> getPreparationSchedule(PreparationRequest preparationRequest);

View File

@@ -207,7 +207,7 @@ public class ExportRealizeServiceImpl implements ExportRealizeService {
dto.setCurrentProgress(response.getCompletionColumn()+"/"+response.getTotalColumn()); dto.setCurrentProgress(response.getCompletionColumn()+"/"+response.getTotalColumn());
dto.setShopStatus(response.getShopStatus()); dto.setShopStatus(response.getShopStatus());
dto.setPlanOpenTime(DateUtils.parseDateToStr(SPECIAL_DATE_START_1,response.getPlanOpenTime())); dto.setPlanOpenTime(DateUtils.parseDateToStr(SPECIAL_DATE_START_1,response.getPlanOpenTime()));
dto.setOpenDuration(response.getOpenTime()); dto.setOpenDuration(response.getDays());
exportList.add(dto); exportList.add(dto);
} }
url = easyExcelUtil.exportExcel(ExportBranchShopDTO.class, exportList, null, FileTypeEnum.BRANCH_SHOP_LIST.getDesc() + DateUtils.parseDateToStr(SPECIAL_DATE_START_1, new Date()), FileTypeEnum.BRANCH_SHOP_LIST.getDesc() + DateUtils.parseDateToStr(SPECIAL_DATE_START_1, new Date())); url = easyExcelUtil.exportExcel(ExportBranchShopDTO.class, exportList, null, FileTypeEnum.BRANCH_SHOP_LIST.getDesc() + DateUtils.parseDateToStr(SPECIAL_DATE_START_1, new Date()), FileTypeEnum.BRANCH_SHOP_LIST.getDesc() + DateUtils.parseDateToStr(SPECIAL_DATE_START_1, new Date()));

View File

@@ -28,17 +28,16 @@ public class ExportController {
private ExportService exportService; private ExportService exportService;
// @PostMapping("/preparationList")
// @ApiOperation("进度管理")
// public ResponseResult preparationList(@RequestBody BranchShopRequest request) {
// return ResponseResult.success(exportService.branchShopList(request, CurrentUserHolder.getUser()));
// }
@PostMapping("/preparationList") @PostMapping("/preparationList")
@ApiOperation("进度管理") @ApiOperation("进度管理")
public ResponseResult preparationList(@RequestBody PreparationRequest request) { public ResponseResult preparationList(@RequestBody BranchShopRequest request) {
request.setCurUserId(CurrentUserHolder.getUserId());
return ResponseResult.success(exportService.preparationList(request, CurrentUserHolder.getUser()));
}
@PostMapping("/branchShopList")
@ApiOperation("进度管理")
public ResponseResult branchShopList(@RequestBody BranchShopRequest request) {
return ResponseResult.success(exportService.branchShopList(request, CurrentUserHolder.getUser())); return ResponseResult.success(exportService.branchShopList(request, CurrentUserHolder.getUser()));
} }
} }