提交 3563f32b authored 作者: 000516's avatar 000516 提交者: Coding

获取店铺系统名称

Merge Request: 获取店铺系统名称 Created By: @李秋林 Accepted By: @李秋林 URL: https://g-pkkp8204.coding.net/p/promotion/d/promotion-service/git/merge/56?initial=true
package com.wangxiaolu.promotion.controller.activity.temporary;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.wangxiaolu.promotion.common.redis.RedisKeys;
import com.wangxiaolu.promotion.common.redis.service.RedisCache;
import com.wangxiaolu.promotion.pojo.activity.temporary.dto.PromotionStoreDto;
import com.wangxiaolu.promotion.pojo.activity.temporary.vo.PromotionStoreVo;
import com.wangxiaolu.promotion.result.basedata.R;
import com.wangxiaolu.promotion.service.activity.temporary.PromotionStoreQueryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import java.util.List;
......@@ -25,6 +26,8 @@ public class PromotionStoreQueryController {
@Autowired
PromotionStoreQueryService promotionStoreQueryService;
@Autowired
RedisCache redisCache;
/**
* 查询店铺列表:目前不分页
......@@ -34,4 +37,11 @@ public class PromotionStoreQueryController {
List<PromotionStoreDto> storeDtos = promotionStoreQueryService.findStoreList(promotionStoreVo);
return R.success(storeDtos);
}
@GetMapping("/line/names")
public R findLineNameMap(String lineOrgName){
JSONObject jo = redisCache.getToJson(RedisKeys.TemporaryKeys.TEMPORARY_SAVE_STORE_LINE_NAME.getKey());
JSONArray lineNames = jo.getJSONArray(lineOrgName);
return R.success(lineNames);
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论