Commit 3dbec5fd by 陶光胜

门店控件修复

parent b58894bb
...@@ -18,6 +18,8 @@ import com.gic.cloud.web.constant.StoreChannelEnum; ...@@ -18,6 +18,8 @@ import com.gic.cloud.web.constant.StoreChannelEnum;
import com.gic.cloud.web.vo.*; import com.gic.cloud.web.vo.*;
import com.gic.commons.webapi.reponse.RestResponse; import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.enterprise.dto.WmStoreDTO; import com.gic.enterprise.dto.WmStoreDTO;
import com.gic.enterprise.dto.union.UnionEnterpriseAuthDTO;
import com.gic.enterprise.service.UnionEnterpriseAuthApiService;
import com.gic.enterprise.service.WmStoreApiService; import com.gic.enterprise.service.WmStoreApiService;
import com.gic.mall.share.api.dto.shop.ShopDTO; import com.gic.mall.share.api.dto.shop.ShopDTO;
import com.gic.mall.share.api.enums.ShopTypeEnum; import com.gic.mall.share.api.enums.ShopTypeEnum;
...@@ -70,6 +72,8 @@ public class StoreWidgetController { ...@@ -70,6 +72,8 @@ public class StoreWidgetController {
private MenuApiService menuApiService; private MenuApiService menuApiService;
@Autowired @Autowired
private StoreBrandApiService storeBrandApiService; private StoreBrandApiService storeBrandApiService;
@Autowired
private UnionEnterpriseAuthApiService unionEnterpriseAuthApiService;
@RequestMapping("store-widget-index") @RequestMapping("store-widget-index")
public RestResponse storeWidgetIndex(Integer userId, Integer enterpriseId){ public RestResponse storeWidgetIndex(Integer userId, Integer enterpriseId){
...@@ -122,6 +126,8 @@ public class StoreWidgetController { ...@@ -122,6 +126,8 @@ public class StoreWidgetController {
} }
} }
} }
List<UnionEnterpriseAuthDTO> ownEnterpriseList = this.unionEnterpriseAuthApiService.listOwnEnterpriseAuth(enterpriseId).getResult();
vo.setResourceType(CollectionUtils.isNotEmpty(ownEnterpriseList) ? 1 : 0);
return RestResponse.success(vo); return RestResponse.success(vo);
} }
......
...@@ -15,6 +15,10 @@ public class StoreWidgetIndexVo { ...@@ -15,6 +15,10 @@ public class StoreWidgetIndexVo {
private Integer attentionCount = 0; private Integer attentionCount = 0;
private Integer singleRegion = 0; private Integer singleRegion = 0;
private Integer hasWgs = 0; private Integer hasWgs = 0;
/**
* 是否显示资源类型 1是 0否
*/
private Integer resourceType=0;
public Integer getType() { public Integer getType() {
return type; return type;
...@@ -55,4 +59,12 @@ public class StoreWidgetIndexVo { ...@@ -55,4 +59,12 @@ public class StoreWidgetIndexVo {
public void setHasWgs(Integer hasWgs) { public void setHasWgs(Integer hasWgs) {
this.hasWgs = hasWgs; this.hasWgs = hasWgs;
} }
public Integer getResourceType() {
return resourceType;
}
public void setResourceType(Integer resourceType) {
this.resourceType = resourceType;
}
} }
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