Commit be5315fb by 何文超

新增scenecode

parent b843b0e7
......@@ -20,11 +20,17 @@ public class GoodsDomainController {
private static Map<String, String> channelCodeAndName;
private static Map<String, String> channelCodeAndScene;
static {
channelCodeAndName = new HashMap<>();
channelCodeAndName.put(Constant.CHANNEL_CODE_ERP, "ERP");
channelCodeAndName.put(Constant.CHANNEL_CODE_WEIMOB, "微盟");
channelCodeAndName.put(Constant.CHANNEL_CODE_MALL, "GIC微商城");
channelCodeAndScene = new HashMap<>();
channelCodeAndScene.put(Constant.CHANNEL_CODE_ERP, "erp_goods");
channelCodeAndScene.put(Constant.CHANNEL_CODE_WEIMOB, "weimo_goods");
channelCodeAndScene.put(Constant.CHANNEL_CODE_MALL, "GIC微商城");
}
@Autowired
......@@ -61,6 +67,7 @@ public class GoodsDomainController {
GoodsChannelVO goodsChannelVO = new GoodsChannelVO();
goodsChannelVO.setChannelCode(entry.getKey());
goodsChannelVO.setChannelName(channelCodeAndName.get(entry.getKey()));
goodsChannelVO.setSceneCode(channelCodeAndScene.get(entry.getKey()));
goodsChannelVO.setGoodsDomainList(new ArrayList<>());
for (GoodsDomainDTO goodsDomainDTO : entry.getValue()) {
GoodsDomainVO goodsDomainVO = new GoodsDomainVO();
......
......@@ -8,6 +8,8 @@ public class GoodsChannelVO {
private String channelName;
private String sceneCode;
private List<GoodsDomainVO> goodsDomainList;
public String getChannelCode() {
......@@ -33,4 +35,12 @@ public class GoodsChannelVO {
public void setGoodsDomainList(List<GoodsDomainVO> goodsDomainList) {
this.goodsDomainList = goodsDomainList;
}
public String getSceneCode() {
return sceneCode;
}
public void setSceneCode(String sceneCode) {
this.sceneCode = sceneCode;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment