Commit 7176b952 by 林永健

feat(query): 添加基础场景码字段支持

- 在 MarketingGoodsQueryMapper.xml 中新增 baseSceneCode 字段查询
- 在 MarketingPackageQueryMapper.xml 中新增 baseSceneCode 字段查询
- 在 GoodsRespDTO 中添加 baseSceneCode 属性及注解
- 在 PackageRespDTO 中添加 baseSceneCode 属性及注解
- 更新数据库映射配置以支持新场景字段
1 parent 1f678cab
......@@ -36,6 +36,9 @@ public class GoodsRespDTO implements Serializable {
@ApiModelProperty(notes = "场景")
private String scene;
@ApiModelProperty(notes = "新场景")
private String baseSceneCode;
/** 适用门店范围内销售门店数 */
@ApiModelProperty(notes = "适用门店范围内销售门店数")
private Integer storeCount;
......
......@@ -32,6 +32,9 @@ public class PackageRespDTO implements Serializable {
@ApiModelProperty(notes = "场景")
private String scene;
@ApiModelProperty(notes = "新场景")
private String baseSceneCode;
/** 适用门店范围内销售门店数 */
@ApiModelProperty(notes = "适用门店范围内销售门店数")
private Integer storeCount;
......
......@@ -8,6 +8,7 @@
mgi.goods_alias AS goodsName,
ug.commodity_code AS listingId,
mgi.scene_type AS scene,
mgi.base_scene_code AS baseSceneCode,
COUNT(DISTINCT mgr.merchant_id) AS storeCount,
mgi.sell_price AS currentPrice,
mgi.min_sell_price AS minimumPrice
......
......@@ -7,6 +7,7 @@
SELECT p.package_code AS packageId,
p.package_name AS packageName,
p.scene_type AS scene,
p.base_scene_code AS baseSceneCode,
COUNT(DISTINCT mgr.merchant_id) AS storeCount
FROM dj_car_life_merchant_package_goods_info p
INNER JOIN dj_car_life_merchant_goods_info mgi ON mgi.package_code = p.package_code AND mgi.deleted_flag = 'N' AND mgi.status = 1
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!