Commit 498fa6be by kk

刷数据:根据文件指定sku刷A+产品的上传人

parent 851f3c52
......@@ -43,6 +43,7 @@ public class APlusProductServiceImpl extends ServiceImpl<APlusProductMapper, APl
@Override
public void setAPlusProductUploadInfo(List<SkuPeopleNameDto> list) {
int count = 0;
Integer currentTimeSecond = DateUtils.getCurrentTimeSecond();
for (SkuPeopleNameDto skuPeopleNameDto : list) {
List<APlusProduct> aPlusProducts = baseMapper.selectList(Wrappers.<APlusProduct>lambdaQuery()
......@@ -81,12 +82,13 @@ public class APlusProductServiceImpl extends ServiceImpl<APlusProductMapper, APl
.setUploadBackstageUser(visualDesigner.getUserName())
.setUploadBackstageTime(currentTimeSecond)
;
baseMapper.updateById(aPlusProduct);
visualDesignLogService.addLog("a_plus_product",
String.format("sku:%s, site:%s, 上传A+产品信息修改为:上传人:%s,上传时间:%s", aPlusProduct.getSku(), aPlusProduct.getSite(), visualDesigner.getUserName(), DateUtils.format10YMD(currentTimeSecond)),
aPlusProduct.getId());
count++;
}
log.info("共上传{}个A+产品信息", count);
}
}
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