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

Commit 3b94a071 authored by 张国柄's avatar 张国柄

~mdb.sql;

parent 3458767c
......@@ -321,9 +321,9 @@ public class GoblinMongoUtils {
).getModifiedCount() > 0;
}
public boolean delGoodsSkuInfoVo(String spuId) {
public boolean delGoodsSkuInfoVo(String skuId) {
return mongoTemplate.getCollection(GoblinGoodsSkuInfoVo.class.getSimpleName()).updateOne(
Query.query(Criteria.where("skuId").is(spuId).and("delFlg").is("0")).getQueryObject(),
Query.query(Criteria.where("skuId").is(skuId).and("delFlg").is("0")).getQueryObject(),
Update.update("delFlg", "1").getUpdateObject()
).getModifiedCount() > 0;
}
......@@ -500,7 +500,7 @@ public class GoblinMongoUtils {
// SPU信息
public boolean updateGoodsInfoVoAppear(String storeId, String spuAppear, LocalDateTime time, String uid) {
return mongoTemplate.getCollection(GoblinGoodsInfoVo.class.getSimpleName()).updateOne(
return mongoTemplate.getCollection(GoblinGoodsInfoVo.class.getSimpleName()).updateMany(
Query.query(Criteria.where("storeId").is(storeId).and("delFlg").is("0")).getQueryObject(),
Update.update("spuAppear", spuAppear).set("updatedBy", uid).set("updatedAt", time).getUpdateObject()
).getModifiedCount() > 0;
......
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