Commit 4b3d0e65 by kk

查数据:16832-简易视频任务导+刷数据:老任务不需要筛选开售时间

parent a5df4984
......@@ -22,4 +22,6 @@ public interface PhotoProgressMapper extends BaseMapper<PhotoProgress> {
List<PhotoProgress> getListBySku(@Param("skuList") List<String> collect);
List<PhotoSkuInfo> getSkuInfo();
List<PhotoSkuInfo> getSkuInfo2();
}
......@@ -138,7 +138,7 @@ public class PhotoProgressServiceImpl extends ServiceImpl<PhotoProgressMapper, P
skuInfoList.stream().filter(t -> t.getIsChangeSimpleVideoStatus() == 1).forEach(t -> {
baseMapper.getSkuInfo2().forEach(t -> {
String region = CommonUtils.getRegion(t.getDept());
areaCountSingleMap.put(region, areaCountSingleMap.getOrDefault(region, 0) + 1);
......
......@@ -34,7 +34,27 @@
vp.id IS NULL
AND pp.sku > ''
AND ppp.simple_video_status != 2
AND ppp.is_change_simple_video_status = 1
AND spp.sale_time > 1716048000
GROUP BY pp.sku
</select>
<select id="getSkuInfo2" resultType="cn.kk.spring_simple_operation.model.vo.PhotoSkuInfo">
SELECT
pp.id,
pp.sku,
ppp.is_change_simple_video_status,
spa.product_type,
spa.is_comb_variant,
spa.comb_parent_sku,
spa.relative_sku,
sd.dept
FROM
photo_progress pp
INNER JOIN photo_progress_person ppp ON ppp.id = pp.id
INNER JOIN sync_product_audit spa ON spa.sku = pp.sku
INNER JOIN sync_developer sd ON spa.developer_num = sd.developer_num
WHERE ppp.is_change_simple_video_status = 1
GROUP BY pp.sku
</select>
</mapper>
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