pull/1121/head
梁宇奇 2025-07-29 23:14:37 +08:00
parent b2f2e59394
commit e529f3eee8
4 changed files with 23 additions and 1 deletions

View File

@ -311,7 +311,12 @@ public class SysLoginController {
vo.setCurrentMenuTreeNodes(BeanUtil.copyToList(menuService.getMenuTree(currentMenus),
MenuTreeNodeVO.class));
//当前档口
vo.setCurrentStoreId(roleInfoVO.getRelStoreId());
Long storeId = roleInfoVO.getRelStoreId();
vo.setCurrentStoreId(storeId);
if (storeId != null) {
//档口状态
vo.setCurrentStoreStatus(storeService.getStoreStatus(storeId));
}
}
}
return vo;

View File

@ -28,4 +28,7 @@ public class UserLoginInfoVO extends UserInfoVO {
@ApiModelProperty("当前档口ID")
private Long currentStoreId;
@ApiModelProperty("当前档口状态[1:待审核 2:审核驳回 3:试用期 4:正式使用 5:强制清退 null:未认证]")
private Integer currentStoreStatus;
}

View File

@ -173,4 +173,12 @@ public interface IStoreService {
* @return StoreIndexTodaySaleResDTO
*/
StoreIndexTodaySaleTop5ResDTO indexTodayProdSaleRevenueTop5(Long storeId);
/**
*
*
* @param storeId
* @return
*/
Integer getStoreStatus(Long storeId);
}

View File

@ -361,6 +361,12 @@ public class StoreServiceImpl implements IStoreService {
return new StoreIndexTodaySaleTop5ResDTO().setStoreId(storeId).setOtherAmount(otherAmount).setSaleList(top5List);
}
@Transactional(readOnly = true)
@Override
public Integer getStoreStatus(Long storeId) {
return Optional.ofNullable(storeMapper.selectById(storeId)).map(Store::getStoreStatus).orElse(null);
}
/**
*
*