fix updateShopStatus
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user