This commit is contained in:
shuo.wang
2024-10-12 19:02:14 +08:00
parent 79eb4bab7e
commit 0d2b9906af
6 changed files with 19 additions and 29 deletions

View File

@@ -3,6 +3,7 @@ package com.cool.store.controller.webb;
import com.cool.store.context.CurrentUserHolder;
import com.cool.store.context.PartnerUserHolder;
import com.cool.store.enums.PlatformBuildEnum;
import com.cool.store.enums.point.ShopSubStageEnum;
import com.cool.store.enums.point.ShopSubStageStatusEnum;
import com.cool.store.request.PlatformBuildAuditRequest;
import com.cool.store.request.platformBuildListRequest;
@@ -73,32 +74,21 @@ public class PCPlatformBuildController {
@ApiOperation("根据type获取平台建店审批记录:1-抖音2-快手3-美团团购4-饿了么5-美团外卖")
@GetMapping("/getAuditInfo")
public ResponseResult<List<AuditInfoResponse>> getAuditInfo(@RequestParam("shopId") Long shopId, @RequestParam("type") Integer type) {
List<Integer> shopSubStageStatusList = new ArrayList<>();
List<Integer> shopSubStageList = new ArrayList<>();
if (type.equals(PlatformBuildEnum.DOU_YIN.getCode())) {
shopSubStageStatusList.add(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_180.getShopSubStageStatus());
shopSubStageStatusList.add(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_181.getShopSubStageStatus());
shopSubStageStatusList.add(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_182.getShopSubStageStatus());
shopSubStageList.add(ShopSubStageEnum.SHOP_STAGE_18.getShopSubStage());
}else if (type.equals(PlatformBuildEnum.KUAI_SHOU.getCode())) {
shopSubStageStatusList.add(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_220.getShopSubStageStatus());
shopSubStageStatusList.add(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_221.getShopSubStageStatus());
shopSubStageStatusList.add(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_222.getShopSubStageStatus());
shopSubStageList.add(ShopSubStageEnum.SHOP_STAGE_22.getShopSubStage());
}else if (type.equals(PlatformBuildEnum.MEI_TUAN_TUAN_GOU.getCode())) {
shopSubStageStatusList.add(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_200.getShopSubStageStatus());
shopSubStageStatusList.add(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_201.getShopSubStageStatus());
shopSubStageStatusList.add(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_202.getShopSubStageStatus());
shopSubStageList.add(ShopSubStageEnum.SHOP_STAGE_20.getShopSubStage());
}else if (type.equals(PlatformBuildEnum.E_LE_ME.getCode())) {
shopSubStageStatusList.add(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_210.getShopSubStageStatus());
shopSubStageStatusList.add(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_211.getShopSubStageStatus());
shopSubStageStatusList.add(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_213.getShopSubStageStatus());
shopSubStageStatusList.add(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_214.getShopSubStageStatus());
shopSubStageList.add(ShopSubStageEnum.SHOP_STAGE_21.getShopSubStage());
}else if (type.equals(PlatformBuildEnum.MEI_TUAN_WAI_MAI.getCode())) {
shopSubStageStatusList.add(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_190.getShopSubStageStatus());
shopSubStageStatusList.add(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_191.getShopSubStageStatus());
shopSubStageStatusList.add(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_193.getShopSubStageStatus());
shopSubStageStatusList.add(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_194.getShopSubStageStatus());
shopSubStageList.add(ShopSubStageEnum.SHOP_STAGE_19.getShopSubStage());
}
return ResponseResult.success(operationLogService.getAuditInfo(shopId, shopSubStageStatusList));
return ResponseResult.success(operationLogService.getAuditInfo(shopId, shopSubStageList));
}
}