记得上下班打卡 | git大法好,push需谨慎

Commit 9533a3c8 authored by 胡佳晨's avatar 胡佳晨

提交 参加的商铺列表

parent 7d8a9318
......@@ -12,9 +12,9 @@ public class GoblinZhengzaiStoreListVo implements Cloneable {
@ApiModelProperty(value = "商铺名称")
String storeName;
@ApiModelProperty(value = "商铺商品数量")
String spuCount;
Integer spuCount;
@ApiModelProperty(value = "商铺款式数量")
String skuCount;
Integer skuCount;
private static final GoblinZhengzaiStoreListVo obj = new GoblinZhengzaiStoreListVo();
public static GoblinZhengzaiStoreListVo getNew() {
......
......@@ -182,6 +182,7 @@ public class GoblinZhengzaiMarketServiceImpl implements IGoblinZhengzaiMarketSer
vo.setStoreName(item.getStoreName());
vo.setSpuCount(item.getSpuCount());
vo.setSkuCount(item.getSkuCount());
voList.add(vo);
}
return ResponseDto.success(voList);
}
......
......@@ -6,6 +6,6 @@ import lombok.Data;
public class GoblinZhengzaiStoreListDto {
String storeId;
String storeName;
String spuCount;
String skuCount;
Integer spuCount;
Integer skuCount;
}
......@@ -9,7 +9,8 @@
<result column="sku_count" property="skuCount"/>
</resultMap>
<resultMap id="goblinZhengzaiStoreDetailsDtoResult" type="com.liquidnet.service.goblin.dto.GoblinZhengzaiStoreDetailsDto">
<resultMap id="goblinZhengzaiStoreDetailsDtoResult"
type="com.liquidnet.service.goblin.dto.GoblinZhengzaiStoreDetailsDto">
<result column="sku_id" property="skuId"/>
<result column="spec_name" property="specName"/>
<result column="spec_vname" property="specVname"/>
......@@ -24,14 +25,12 @@
<select id="getZhengzaiStoreList" resultMap="goblinZhengzaiStoreListDtoResult">
select gsz.store_id, a.store_name, sum(gsz.spu_id), sum(sku_id)
from goblin_marketing_zhengzai as gsz
inner join (select gsi.store_name, gsi.store_id
from goblin_marketing_zhengzai_relation as gmzr
left join goblin_store_info as gsi on gmzr.store_id = gsi.store_id
where del_tag = 0) as a on gsz.store_id = a.store_id
where gsz.self_market_id = #{marketId}
group by gsz.store_id
select b.store_id,c.store_name,IFNull(count(d.spu_id),0) as 'spu_count',IFNull(count(d.sku_id),0) as 'sku_count' from goblin_self_marketing as a
inner join goblin_marketing_zhengzai_relation as b on a.self_market_id = b.self_market_id
inner join goblin_store_info as c on c.store_id= b.store_id
left join goblin_marketing_zhengzai as d on d.self_market_id = b.self_market_id
where a.self_market_id = #{marketId}
GROUP BY b.store_id
</select>
<select id="getZhengzaiStoreDetails" resultMap="goblinZhengzaiStoreDetailsDtoResult">
......
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