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

Commit e2cd024c authored by 张国柄's avatar 张国柄

~API:店铺审核:状态调整;

parent 8d6466b2
...@@ -47,7 +47,7 @@ public class GoblinStoreInfoServiceImpl extends ServiceImpl<GoblinStoreInfoMappe ...@@ -47,7 +47,7 @@ public class GoblinStoreInfoServiceImpl extends ServiceImpl<GoblinStoreInfoMappe
lambdaUpdateWrapper.eq(GoblinStoreInfo::getStoreId, storeId); lambdaUpdateWrapper.eq(GoblinStoreInfo::getStoreId, storeId);
lambdaUpdateWrapper.eq(GoblinStoreInfo::getStatus, 1); lambdaUpdateWrapper.eq(GoblinStoreInfo::getStatus, 1);
lambdaUpdateWrapper.set(GoblinStoreInfo::getStatus, status.equals("3") ? "4" : status); lambdaUpdateWrapper.set(GoblinStoreInfo::getStatus, status);
lambdaUpdateWrapper.set(GoblinStoreInfo::getReason, reason); lambdaUpdateWrapper.set(GoblinStoreInfo::getReason, reason);
lambdaUpdateWrapper.set(GoblinStoreInfo::getUpdatedBy, operator); lambdaUpdateWrapper.set(GoblinStoreInfo::getUpdatedBy, operator);
lambdaUpdateWrapper.set(GoblinStoreInfo::getUpdatedAt, now); lambdaUpdateWrapper.set(GoblinStoreInfo::getUpdatedAt, now);
...@@ -60,7 +60,7 @@ public class GoblinStoreInfoServiceImpl extends ServiceImpl<GoblinStoreInfoMappe ...@@ -60,7 +60,7 @@ public class GoblinStoreInfoServiceImpl extends ServiceImpl<GoblinStoreInfoMappe
} }
Query query = Query.query(Criteria.where("storeId").is(storeId)); Query query = Query.query(Criteria.where("storeId").is(storeId));
Update update = Update.update("status", status.equals("3") ? "4" : status); Update update = Update.update("status", status);
update.set("reason", reason); update.set("reason", reason);
update.set("updatedBy", operator); update.set("updatedBy", operator);
update.set("updatedAt", now); update.set("updatedAt", now);
......
...@@ -178,8 +178,9 @@ create table goblin_store_config ...@@ -178,8 +178,9 @@ create table goblin_store_config
create index idx_gsc_store_id on goblin_store_config (store_id); create index idx_gsc_store_id on goblin_store_config (store_id);
insert into goblin_store_config (store_id, config_name, config_key, config_val, created_by, created_at) insert into goblin_store_config (store_id, config_name, config_key, config_val, created_by, created_at)
values (0, '联系客服', 'ONOFF_CUSTOMER_SEV', 'ON', 'admin', sysdate()), values (0, '营业状态', 'BUSINESS_STATUS', '5', 'admin', sysdate()),
(0, '售罄展示', 'ONOFF_SOLD_OUT_SHOW', 'ON', 'admin', sysdate()), (0, '联系客服', 'ONOFF_CUSTOMER_SEV', 'OFF', 'admin', sysdate()),
(0, '售罄展示', 'ONOFF_SOLD_OUT_SHOW', 'OFF', 'admin', sysdate()),
(0, '库存不足', 'LIMIT_WARNING_STOCK', '5', 'admin', sysdate()); (0, '库存不足', 'LIMIT_WARNING_STOCK', '5', 'admin', sysdate());
# -- >>------------------------------------------------------------------------------------ # -- >>------------------------------------------------------------------------------------
drop table if exists goblin_store_notice; drop table if exists goblin_store_notice;
......
...@@ -104,12 +104,6 @@ public class GoblinRedisUtils { ...@@ -104,12 +104,6 @@ public class GoblinRedisUtils {
String rk = GoblinRedisConst.BASIC_STORE_CONF.concat(storeId); String rk = GoblinRedisConst.BASIC_STORE_CONF.concat(storeId);
List<GoblinStoreConfigVo> vos = (List<GoblinStoreConfigVo>) redisUtil.get(rk); List<GoblinStoreConfigVo> vos = (List<GoblinStoreConfigVo>) redisUtil.get(rk);
if (CollectionUtils.isEmpty(vos) && null != (vos = goblinMongoUtils.getStoreConfigVo(storeId))) { if (CollectionUtils.isEmpty(vos) && null != (vos = goblinMongoUtils.getStoreConfigVo(storeId))) {
GoblinStoreInfoVo storeInfoVo = this.getStoreInfoVo(storeId);
vos.add(GoblinStoreConfigVo.getNew()
.setConfigKey(GoblinStoreConf.BUSINESS_STATUS.name())
.setConfigVal(null == storeInfoVo ? "4" : storeInfoVo.getStatus().equals("3") ? "5" : storeInfoVo.getStatus())
);
// redisUtil.set(rk, vos);// TODO: 2022/1/12 zhanggb== // redisUtil.set(rk, vos);// TODO: 2022/1/12 zhanggb==
} }
return vos; return vos;
......
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