|
@@ -2038,6 +2038,26 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void goodsCopyTwo() {
|
|
|
+ //商品一二建复制
|
|
|
+ List<Goods> list = iGoodsService.list(new LambdaQueryWrapper<Goods>()
|
|
|
+ .eq(Goods::getEducationTypeId, 3)
|
|
|
+ .in(Goods::getBusinessId, Arrays.asList(6,7))
|
|
|
+ .eq(Goods::getProjectId, 5)
|
|
|
+ .like(Goods::getGoodsName,"2023")
|
|
|
+ .eq(Goods::getStatus, 1));
|
|
|
+ if (CollectionUtils.isEmpty(list)) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ List<Long> goodsIds = list.stream().filter(item -> !item.getGoodsName().contains("测试")).map(Goods::getGoodsId).collect(Collectors.toList());
|
|
|
+ GoodsBatchCopyTenantBo bo = new GoodsBatchCopyTenantBo();
|
|
|
+ bo.setTenantId(713019440277910L);
|
|
|
+ bo.setGoodsIds(goodsIds);
|
|
|
+ //执行复制
|
|
|
+ iGoodsService.goodsCopyOne(bo);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
private String getWeeks(Long time){
|
|
|
Calendar calendar = Calendar.getInstance();
|