fix updateShopStatus

This commit is contained in:
shuo.wang
2025-01-23 15:45:27 +08:00
parent a3b3a835e0
commit 172572106b

View File

@@ -285,12 +285,12 @@ public class PreparationServiceImpl implements PreparationService {
@Override
public void updateShopStatus(Long shopId) {
ShopInfoDO shopInfo = shopInfoDAO.getShopInfo(shopId);
if (shopInfo.getShopStage().equals(ShopStatusEnum.ING.getCode())){
if (shopInfo.getShopStatus().equals(ShopStatusEnum.ING.getCode())){
Map<Long,Integer> map= getShopStatus(Arrays.asList(shopId));
Integer shopStatus = map.get(shopId);
ShopInfoDO shopInfoDO = new ShopInfoDO();
shopInfoDO.setId(shopId);
shopInfoDO.setShopStage(shopStatus);
shopInfoDO.setShopStatus(shopStatus);
shopInfoDAO.updateShopInfo(shopInfoDO);
}
}