wip: 新增电商模块

This commit is contained in:
ah--desktop
2025-09-11 00:15:25 +08:00
parent a305dcdc3f
commit a79058f1f6
74 changed files with 3841 additions and 241 deletions
@@ -48,6 +48,11 @@ public class PermissionAspect {
log.debug("权限验证 - 用户角色: {}, 公司ID: {}, 岗位ID: {}, 权限码: {}",
role, companyId, positionId, annotation.value());
// 检查角色是否为空
if (role == null) {
throw new BusinessException("用户角色信息缺失");
}
// 根据角色进行权限验证
boolean hasPermission = false;
@@ -43,6 +43,11 @@ public class RoleAspect {
log.debug("角色权限验证 - 用户角色: {}, 注解配置: {}", role, annotation.description());
// 检查角色是否为空
if (role == null) {
throw new BusinessException("用户角色信息缺失");
}
// 根据角色进行权限验证
boolean hasPermission = false;
@@ -11,7 +11,7 @@ import java.util.List;
@AllArgsConstructor
@NoArgsConstructor
public class PageResultVO<T> implements Serializable {
private List<T> list; // 当前页数据
private List<T> records; // 当前页数据
private Long total; // 总条数
private Integer page; // 当前页码
private Integer pageSize; // 每页条数
@@ -20,8 +20,8 @@ public class PageResultVO<T> implements Serializable {
private Boolean hasPrevPage; // 是否有上一页
// 构造函数
public PageResultVO(List<T> list, Long total, Integer page, Integer pageSize) {
this.list = list;
public PageResultVO(List<T> records, Long total, Integer page, Integer pageSize) {
this.records = records;
this.total = total;
this.page = page;
this.pageSize = pageSize;