Commit 1fcca8a4 by HuAnYing

项目目录规整

parent 4a0d615d
......@@ -20,7 +20,7 @@ import java.util.Date;
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "图片Dto")
public class CustomProductImageDto implements Serializable {
public class CustomProductImageDTO implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
......
......@@ -22,7 +22,7 @@ import java.util.List;
* @date 2026-06-02 19:07:12
*/
@Data
public class CustomProductInfoDto extends PageRequest implements Serializable {
public class CustomProductInfoDTO extends PageRequest implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
......@@ -234,7 +234,7 @@ public class CustomProductInfoDto extends PageRequest implements Serializable {
* 是否九猫处理
*/
@Schema(description = "是否九猫处理", example = "")
private Boolean processing;
private Integer processing;
/**
*
......@@ -248,23 +248,23 @@ public class CustomProductInfoDto extends PageRequest implements Serializable {
@Schema(description = "模型ID", example = "")
private Integer diyId;
@Schema(description = "商品明细", implementation = ProductChangeDto.class)
private ProductChangeDto productChange;
@Schema(description = "商品明细", implementation = ProductChangeDTO.class)
private ProductChangeDTO productChange;
@Schema(description = "商品明细", implementation = CustomProductItemDto.class)
private List<CustomProductItemDto> productList;
@Schema(description = "商品明细", implementation = CustomProductItemDTO.class)
private List<CustomProductItemDTO> productList;
@Schema(description = "普通属性集合", implementation = CustomProductInfoPropertyDto.class)
private List<CustomProductInfoPropertyDto> normalProperties;
@Schema(description = "普通属性集合", implementation = CustomProductInfoPropertyDTO.class)
private List<CustomProductInfoPropertyDTO> normalProperties;
@Schema(description = "sku属性集合", implementation = CustomProductInfoPropertyDto.class)
private List<CustomProductInfoPropertyDto> skuProperties;
@Schema(description = "sku属性集合", implementation = CustomProductInfoPropertyDTO.class)
private List<CustomProductInfoPropertyDTO> skuProperties;
@Schema(description = "商品图片集合", implementation = CustomProductImageDto.class)
private List<CustomProductImageDto> imageList;
@Schema(description = "商品图片集合", implementation = CustomProductImageDTO.class)
private List<CustomProductImageDTO> imageList;
@Schema(description = "尺码图片集合", implementation = CustomProductImageDto.class)
private List<CustomProductImageDto> sizeList;
@Schema(description = "尺码图片集合", implementation = CustomProductImageDTO.class)
private List<CustomProductImageDTO> sizeList;
}
......@@ -18,12 +18,12 @@ import java.io.Serializable;
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "属性dto")
public class CustomProductInfoPropertyDto implements Serializable {
public class CustomProductInfoPropertyDTO implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
/**
*
*
*/
@Schema(description = "")
private Integer id;
......
......@@ -22,7 +22,7 @@ import java.util.Date;
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "skuItem Dto")
public class CustomProductItemDto implements Serializable {
public class CustomProductItemDTO implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
......
......@@ -14,12 +14,12 @@ import java.util.List;
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "商品变更Dto")
public class ProductChangeDto implements Serializable {
@Schema(description = "添加集合", implementation = CustomProductItemDto.class)
private List<CustomProductItemDto> addList;
public class ProductChangeDTO implements Serializable {
@Schema(description = "添加集合", implementation = CustomProductItemDTO.class)
private List<CustomProductItemDTO> addList;
@Schema(description = "修改集合", implementation = CustomProductItemDto.class)
private List<CustomProductItemDto> updateList;
@Schema(description = "修改集合", implementation = CustomProductItemDTO.class)
private List<CustomProductItemDTO> updateList;
@Schema(description = "删除集合", implementation = Integer.class)
private List<Integer> removeList;
......
package com.jomalls.custom.app.service.impl.common;
import com.jomalls.custom.app.vo.product.BaseCategoryInfoVO;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import java.util.List;
@Slf4j
@Service
@RequiredArgsConstructor
public class BaseCategoryInfoService {
private static final String GET_TREE_URL = "/api/manage/rest/baseCategoryInfo/tree_list";
private static final String GET_BY_IDS_URL = "/api/manage/rest/baseCategoryInfo/getDataByIds";
private static final String GET_BY_ID_URL = "/api/manage/rest/baseCategoryInfo/get";
private static final String GET_TREE_LIST_URL = "/api/manage/rest/baseCategoryInfo/getDataByIds";
private static final String GET_ALL_LIST_URL = "/api/manage/rest/baseCategoryInfo/all_list";
/**
* 获取类别树
*/
public void getTree() {
}
public void getByIds(String ids) {
}
/**
* 获取带有风格属性的树形结构
*/
public void getTreeList() {
}
/**
* 根据id获取
* @param id
*/
public void getById(Integer id) {
}
/**
*查询所有类别
*/
public List<BaseCategoryInfoVO> getAllList() {
return null;
}
}
......@@ -3,8 +3,8 @@ package com.jomalls.custom.app.service.impl.product;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.exception.ServiceException;
import com.jomalls.custom.app.vo.CustomProductBlacklistPageVO;
import com.jomalls.custom.app.vo.CustomProductBlacklistVO;
import com.jomalls.custom.app.vo.product.CustomProductBlacklistPageVO;
import com.jomalls.custom.app.vo.product.CustomProductBlacklistVO;
import com.jomalls.custom.app.service.product.CustomProductBlacklistService;
import com.jomalls.custom.app.utils.BeanMapper;
import com.jomalls.custom.app.utils.CustomAsserts;
......
......@@ -3,8 +3,8 @@ package com.jomalls.custom.app.service.impl.product;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.exception.ServiceException;
import com.jomalls.custom.app.vo.CustomProductCnRemarkPageVO;
import com.jomalls.custom.app.vo.CustomProductCnRemarkVO;
import com.jomalls.custom.app.vo.product.CustomProductCnRemarkPageVO;
import com.jomalls.custom.app.vo.product.CustomProductCnRemarkVO;
import com.jomalls.custom.app.service.product.CustomProductCnRemarkService;
import com.jomalls.custom.app.utils.BeanMapper;
import com.jomalls.custom.app.utils.CustomAsserts;
......
......@@ -3,8 +3,8 @@ package com.jomalls.custom.app.service.impl.product;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.exception.ServiceException;
import com.jomalls.custom.app.vo.CustomProductCraftRelPageVO;
import com.jomalls.custom.app.vo.CustomProductCraftRelVO;
import com.jomalls.custom.app.vo.product.CustomProductCraftRelPageVO;
import com.jomalls.custom.app.vo.product.CustomProductCraftRelVO;
import com.jomalls.custom.app.service.product.CustomProductCraftRelService;
import com.jomalls.custom.app.utils.BeanMapper;
import com.jomalls.custom.app.utils.CustomAsserts;
......
......@@ -3,8 +3,8 @@ package com.jomalls.custom.app.service.impl.product;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.exception.ServiceException;
import com.jomalls.custom.app.vo.CustomProductDiyUserRelPageVO;
import com.jomalls.custom.app.vo.CustomProductDiyUserRelVO;
import com.jomalls.custom.app.vo.product.CustomProductDiyUserRelPageVO;
import com.jomalls.custom.app.vo.product.CustomProductDiyUserRelVO;
import com.jomalls.custom.app.service.product.CustomProductDiyUserRelService;
import com.jomalls.custom.app.utils.BeanMapper;
import com.jomalls.custom.app.utils.CustomAsserts;
......
......@@ -3,8 +3,8 @@ package com.jomalls.custom.app.service.impl.product;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.exception.ServiceException;
import com.jomalls.custom.app.vo.CustomProductFactoryPriceIntervalRelPageVO;
import com.jomalls.custom.app.vo.CustomProductFactoryPriceIntervalRelVO;
import com.jomalls.custom.app.vo.product.CustomProductFactoryPriceIntervalRelPageVO;
import com.jomalls.custom.app.vo.product.CustomProductFactoryPriceIntervalRelVO;
import com.jomalls.custom.app.service.product.CustomProductFactoryPriceIntervalRelService;
import com.jomalls.custom.app.utils.BeanMapper;
import com.jomalls.custom.app.utils.CustomAsserts;
......
......@@ -3,8 +3,8 @@ package com.jomalls.custom.app.service.impl.product;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.exception.ServiceException;
import com.jomalls.custom.app.vo.CustomProductFactoryPriceRelPageVO;
import com.jomalls.custom.app.vo.CustomProductFactoryPriceRelVO;
import com.jomalls.custom.app.vo.product.CustomProductFactoryPriceRelPageVO;
import com.jomalls.custom.app.vo.product.CustomProductFactoryPriceRelVO;
import com.jomalls.custom.app.service.product.CustomProductFactoryPriceRelService;
import com.jomalls.custom.app.utils.BeanMapper;
import com.jomalls.custom.app.utils.CustomAsserts;
......
......@@ -3,8 +3,8 @@ package com.jomalls.custom.app.service.impl.product;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.exception.ServiceException;
import com.jomalls.custom.app.vo.CustomProductImagePageVO;
import com.jomalls.custom.app.vo.CustomProductImageVO;
import com.jomalls.custom.app.vo.product.CustomProductImagePageVO;
import com.jomalls.custom.app.vo.product.CustomProductImageVO;
import com.jomalls.custom.app.service.product.CustomProductImageService;
import com.jomalls.custom.app.utils.BeanMapper;
import com.jomalls.custom.app.utils.CustomAsserts;
......
......@@ -3,8 +3,8 @@ package com.jomalls.custom.app.service.impl.product;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.exception.ServiceException;
import com.jomalls.custom.app.vo.CustomProductInfoPropertyPageVO;
import com.jomalls.custom.app.vo.CustomProductInfoPropertyVO;
import com.jomalls.custom.app.vo.product.CustomProductInfoPropertyPageVO;
import com.jomalls.custom.app.vo.product.CustomProductInfoPropertyVO;
import com.jomalls.custom.app.service.product.CustomProductInfoPropertyService;
import com.jomalls.custom.app.utils.BeanMapper;
import com.jomalls.custom.app.utils.CustomAsserts;
......
......@@ -2,16 +2,18 @@ package com.jomalls.custom.app.service.impl.product;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.dto.product.CustomProductInfoDto;
import com.jomalls.custom.app.dto.product.CustomProductInfoDTO;
import com.jomalls.custom.app.exception.ServiceException;
import com.jomalls.custom.app.vo.CustomProductInfoVO;
import com.jomalls.custom.app.service.impl.common.BaseCategoryInfoService;
import com.jomalls.custom.app.vo.product.BaseCategoryInfoVO;
import com.jomalls.custom.app.vo.product.CustomProductInfoVO;
import com.jomalls.custom.app.service.product.CustomProductInfoService;
import com.jomalls.custom.app.utils.BeanMapper;
import com.jomalls.custom.app.utils.CustomAsserts;
import com.jomalls.custom.dal.entity.product.CustomProductInfoEntity;
import com.jomalls.custom.domain.service.CustomProductInfoDomainService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DuplicateKeyException;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
......@@ -27,14 +29,12 @@ import java.util.stream.Collectors;
*/
@Slf4j
@Service
@RequiredArgsConstructor
public class CustomProductInfoServiceImpl implements CustomProductInfoService {
private final CustomProductInfoDomainService customProductInfoDomainService;
private final BaseCategoryInfoService baseCategoryInfoService;
@Autowired
public CustomProductInfoServiceImpl(CustomProductInfoDomainService customProductInfoDomainService) {
this.customProductInfoDomainService = customProductInfoDomainService;
}
@Override
public List<CustomProductInfoVO> list(CustomProductInfoVO customProductInfoVO) {
......@@ -45,14 +45,56 @@ public class CustomProductInfoServiceImpl implements CustomProductInfoService {
}
@Override
public IPage<CustomProductInfoVO> pageList(CustomProductInfoDto param) {
public IPage<CustomProductInfoVO> pageList(CustomProductInfoDTO param) {
CustomAsserts.nonNull(param, "分页查询参数不能为空");
QueryWrapper<CustomProductInfoEntity> queryWrapper = new QueryWrapper<>();
toQueryWrapper(param,queryWrapper);
// TODO 根据业务条件组装入参
IPage<CustomProductInfoEntity> page = customProductInfoDomainService.selectPage(queryWrapper, param);
return page.convert(e -> BeanMapper.mapper().convert(e, CustomProductInfoVO.class));
}
private void toQueryWrapper(CustomProductInfoDTO param, QueryWrapper<CustomProductInfoEntity> queryWrapper) {
if(param.getCategory_id() !=null ){
// 获取所有分类列表
List<BaseCategoryInfoVO> cateList = baseCategoryInfoService.getAllList();
// 查找匹配的分类
BaseCategoryInfoVO cate = cateList.stream()
.filter(c -> c.getId().equals(param.getCategory_id()))
.findFirst()
.orElseThrow(() -> new ServiceException("不存在该类别"));
// 构建 pids
String pids = String.valueOf(cate.getId());
if (cate.getPids() != null && !cate.getPids().isEmpty()) {
pids = cate.getPids() + "," + pids;
}
// 筛选子分类
String finalPids = pids;
List<Integer> cateIds = cateList.stream()
.filter(item -> {
String itemPids = item.getPids();
return finalPids.equals(itemPids) ||
(itemPids != null && itemPids.startsWith(finalPids + ","));
})
.map(BaseCategoryInfoVO::getId)
.collect(Collectors.toList());
// 添加当前分类ID
cateIds.add(cate.getId());
// 设置参数
queryWrapper.in("category_id",cateIds);
}
if (param.getProcessing() != null || param.getProcessing() == 0) {
if (param.getProcessing() == 1) {
queryWrapper.eq("processing",1);
} else if (param.getProcessing() == 0) {
queryWrapper.eq("processing",0);
} else if (param.getProcessing() == 2) {
queryWrapper.isNull("processing");
}
}
queryWrapper.orderByDesc("id");
}
@Override
public CustomProductInfoVO info(Integer id) {
CustomAsserts.nonNull(id, "主键id不能为空");
......
......@@ -3,8 +3,8 @@ package com.jomalls.custom.app.service.impl.product;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.exception.ServiceException;
import com.jomalls.custom.app.vo.CustomProductItemPageVO;
import com.jomalls.custom.app.vo.CustomProductItemVO;
import com.jomalls.custom.app.vo.product.CustomProductItemPageVO;
import com.jomalls.custom.app.vo.product.CustomProductItemVO;
import com.jomalls.custom.app.service.product.CustomProductItemService;
import com.jomalls.custom.app.utils.BeanMapper;
import com.jomalls.custom.app.utils.CustomAsserts;
......
......@@ -3,8 +3,8 @@ package com.jomalls.custom.app.service.impl.product;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.exception.ServiceException;
import com.jomalls.custom.app.vo.CustomProductRemarkPageVO;
import com.jomalls.custom.app.vo.CustomProductRemarkVO;
import com.jomalls.custom.app.vo.product.CustomProductRemarkPageVO;
import com.jomalls.custom.app.vo.product.CustomProductRemarkVO;
import com.jomalls.custom.app.service.product.CustomProductRemarkService;
import com.jomalls.custom.app.utils.BeanMapper;
import com.jomalls.custom.app.utils.CustomAsserts;
......
......@@ -3,8 +3,8 @@ package com.jomalls.custom.app.service.impl.product;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.exception.ServiceException;
import com.jomalls.custom.app.vo.CustomProductWarehouseRelPageVO;
import com.jomalls.custom.app.vo.CustomProductWarehouseRelVO;
import com.jomalls.custom.app.vo.product.CustomProductWarehouseRelPageVO;
import com.jomalls.custom.app.vo.product.CustomProductWarehouseRelVO;
import com.jomalls.custom.app.service.product.CustomProductWarehouseRelService;
import com.jomalls.custom.app.utils.BeanMapper;
import com.jomalls.custom.app.utils.CustomAsserts;
......
package com.jomalls.custom.app.service.product;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.vo.CustomProductBlacklistPageVO;
import com.jomalls.custom.app.vo.CustomProductBlacklistVO;
import com.jomalls.custom.app.vo.product.CustomProductBlacklistPageVO;
import com.jomalls.custom.app.vo.product.CustomProductBlacklistVO;
import java.util.List;
......
package com.jomalls.custom.app.service.product;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.vo.CustomProductCnRemarkPageVO;
import com.jomalls.custom.app.vo.CustomProductCnRemarkVO;
import com.jomalls.custom.app.vo.product.CustomProductCnRemarkPageVO;
import com.jomalls.custom.app.vo.product.CustomProductCnRemarkVO;
import java.util.List;
......
package com.jomalls.custom.app.service.product;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.vo.CustomProductCraftRelPageVO;
import com.jomalls.custom.app.vo.CustomProductCraftRelVO;
import com.jomalls.custom.app.vo.product.CustomProductCraftRelPageVO;
import com.jomalls.custom.app.vo.product.CustomProductCraftRelVO;
import java.util.List;
......
package com.jomalls.custom.app.service.product;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.vo.CustomProductDiyUserRelPageVO;
import com.jomalls.custom.app.vo.CustomProductDiyUserRelVO;
import com.jomalls.custom.app.vo.product.CustomProductDiyUserRelPageVO;
import com.jomalls.custom.app.vo.product.CustomProductDiyUserRelVO;
import java.util.List;
......
package com.jomalls.custom.app.service.product;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.vo.CustomProductFactoryPriceIntervalRelPageVO;
import com.jomalls.custom.app.vo.CustomProductFactoryPriceIntervalRelVO;
import com.jomalls.custom.app.vo.product.CustomProductFactoryPriceIntervalRelPageVO;
import com.jomalls.custom.app.vo.product.CustomProductFactoryPriceIntervalRelVO;
import java.util.List;
......
package com.jomalls.custom.app.service.product;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.vo.CustomProductFactoryPriceRelPageVO;
import com.jomalls.custom.app.vo.CustomProductFactoryPriceRelVO;
import com.jomalls.custom.app.vo.product.CustomProductFactoryPriceRelPageVO;
import com.jomalls.custom.app.vo.product.CustomProductFactoryPriceRelVO;
import java.util.List;
......
package com.jomalls.custom.app.service.product;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.vo.CustomProductImagePageVO;
import com.jomalls.custom.app.vo.CustomProductImageVO;
import com.jomalls.custom.app.vo.product.CustomProductImagePageVO;
import com.jomalls.custom.app.vo.product.CustomProductImageVO;
import java.util.List;
......
package com.jomalls.custom.app.service.product;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.vo.CustomProductInfoPropertyPageVO;
import com.jomalls.custom.app.vo.CustomProductInfoPropertyVO;
import com.jomalls.custom.app.vo.product.CustomProductInfoPropertyPageVO;
import com.jomalls.custom.app.vo.product.CustomProductInfoPropertyVO;
import java.util.List;
......
package com.jomalls.custom.app.service.product;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.dto.product.CustomProductInfoDto;
import com.jomalls.custom.app.vo.CustomProductInfoVO;
import com.jomalls.custom.app.dto.product.CustomProductInfoDTO;
import com.jomalls.custom.app.vo.product.CustomProductInfoVO;
import java.util.List;
......@@ -28,7 +28,7 @@ public interface CustomProductInfoService {
* @param param 分页入参model
* @return 分页对象
*/
IPage<CustomProductInfoVO> pageList(CustomProductInfoDto param);
IPage<CustomProductInfoVO> pageList(CustomProductInfoDTO param);
/**
* 根据id查询详情
......
package com.jomalls.custom.app.service.product;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.vo.CustomProductItemPageVO;
import com.jomalls.custom.app.vo.CustomProductItemVO;
import com.jomalls.custom.app.vo.product.CustomProductItemPageVO;
import com.jomalls.custom.app.vo.product.CustomProductItemVO;
import java.util.List;
......
package com.jomalls.custom.app.service.product;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.vo.CustomProductRemarkPageVO;
import com.jomalls.custom.app.vo.CustomProductRemarkVO;
import com.jomalls.custom.app.vo.product.CustomProductRemarkPageVO;
import com.jomalls.custom.app.vo.product.CustomProductRemarkVO;
import java.util.List;
......
package com.jomalls.custom.app.service.product;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.vo.CustomProductWarehouseRelPageVO;
import com.jomalls.custom.app.vo.CustomProductWarehouseRelVO;
import com.jomalls.custom.app.vo.product.CustomProductWarehouseRelPageVO;
import com.jomalls.custom.app.vo.product.CustomProductWarehouseRelVO;
import java.util.List;
......
package com.jomalls.custom.app.vo.product;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.Date;
/**
* 商品分类
* @author zhengcunwen
* @since 2019-09-02
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "商品分类")
public class BaseCategoryInfoVO implements Serializable {
private static final long serialVersionUID = 1L;
private Integer id;
@Schema(description="类别中文名")
private String name;
@Schema(description="类别英文名称")
private String enname;
@Schema(description="pid")
private Integer pid;
@Schema(description="pids")
private String pids;
@Schema(description="备注")
private String remark;
private Integer deep;
@Schema(description="排序")
private Integer sort;
private String enpath;
private String cnpath;
private Boolean leaf;
private Date createTime;
}
package com.jomalls.custom.app.vo;
package com.jomalls.custom.app.vo.product;
import com.jomalls.custom.page.PageRequest;
import io.swagger.v3.oas.annotations.media.Schema;
......
package com.jomalls.custom.app.vo;
package com.jomalls.custom.app.vo.product;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
......
package com.jomalls.custom.app.vo;
package com.jomalls.custom.app.vo.product;
import com.jomalls.custom.page.PageRequest;
import io.swagger.v3.oas.annotations.media.Schema;
......
package com.jomalls.custom.app.vo;
package com.jomalls.custom.app.vo.product;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
......
package com.jomalls.custom.app.vo;
package com.jomalls.custom.app.vo.product;
import com.jomalls.custom.page.PageRequest;
import io.swagger.v3.oas.annotations.media.Schema;
......
package com.jomalls.custom.app.vo;
package com.jomalls.custom.app.vo.product;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
......
package com.jomalls.custom.app.vo;
package com.jomalls.custom.app.vo.product;
import com.jomalls.custom.page.PageRequest;
import io.swagger.v3.oas.annotations.media.Schema;
......
package com.jomalls.custom.app.vo;
package com.jomalls.custom.app.vo.product;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
......
package com.jomalls.custom.app.vo;
package com.jomalls.custom.app.vo.product;
import com.jomalls.custom.page.PageRequest;
import io.swagger.v3.oas.annotations.media.Schema;
......
package com.jomalls.custom.app.vo;
package com.jomalls.custom.app.vo.product;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
......
package com.jomalls.custom.app.vo;
package com.jomalls.custom.app.vo.product;
import com.jomalls.custom.page.PageRequest;
import io.swagger.v3.oas.annotations.media.Schema;
......
package com.jomalls.custom.app.vo;
package com.jomalls.custom.app.vo.product;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
......
package com.jomalls.custom.app.vo;
package com.jomalls.custom.app.vo.product;
import com.jomalls.custom.page.PageRequest;
import io.swagger.v3.oas.annotations.media.Schema;
......
package com.jomalls.custom.app.vo;
package com.jomalls.custom.app.vo.product;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
......
package com.jomalls.custom.app.vo;
package com.jomalls.custom.app.vo.product;
import com.jomalls.custom.page.PageRequest;
import io.swagger.v3.oas.annotations.media.Schema;
......
package com.jomalls.custom.app.vo;
package com.jomalls.custom.app.vo.product;
import com.jomalls.custom.page.PageRequest;
import io.swagger.v3.oas.annotations.media.Schema;
......
package com.jomalls.custom.app.vo;
package com.jomalls.custom.app.vo.product;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
......
package com.jomalls.custom.app.vo;
package com.jomalls.custom.app.vo.product;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
......
package com.jomalls.custom.app.vo;
package com.jomalls.custom.app.vo.product;
import com.jomalls.custom.page.PageRequest;
import io.swagger.v3.oas.annotations.media.Schema;
......
package com.jomalls.custom.app.vo;
package com.jomalls.custom.app.vo.product;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
......
package com.jomalls.custom.app.vo;
package com.jomalls.custom.app.vo.product;
import com.jomalls.custom.page.PageRequest;
import io.swagger.v3.oas.annotations.media.Schema;
......
package com.jomalls.custom.app.vo;
package com.jomalls.custom.app.vo.product;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
......
package com.jomalls.custom.app.vo;
package com.jomalls.custom.app.vo.product;
import com.jomalls.custom.page.PageRequest;
import io.swagger.v3.oas.annotations.media.Schema;
......
package com.jomalls.custom.app.vo;
package com.jomalls.custom.app.vo.product;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
......
package com.jomalls.custom.webapp.controller.product;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.vo.CustomProductBlacklistPageVO;
import com.jomalls.custom.app.vo.CustomProductBlacklistVO;
import com.jomalls.custom.app.vo.product.CustomProductBlacklistPageVO;
import com.jomalls.custom.app.vo.product.CustomProductBlacklistVO;
import com.jomalls.custom.app.service.product.CustomProductBlacklistService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
......
package com.jomalls.custom.webapp.controller.product;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.vo.CustomProductCnRemarkPageVO;
import com.jomalls.custom.app.vo.CustomProductCnRemarkVO;
import com.jomalls.custom.app.vo.product.CustomProductCnRemarkPageVO;
import com.jomalls.custom.app.vo.product.CustomProductCnRemarkVO;
import com.jomalls.custom.app.service.product.CustomProductCnRemarkService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
......
......@@ -2,8 +2,8 @@ package com.jomalls.custom.webapp.controller.product;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.annotation.RequiresPermissions;
import com.jomalls.custom.app.vo.CustomProductCraftRelPageVO;
import com.jomalls.custom.app.vo.CustomProductCraftRelVO;
import com.jomalls.custom.app.vo.product.CustomProductCraftRelPageVO;
import com.jomalls.custom.app.vo.product.CustomProductCraftRelVO;
import com.jomalls.custom.app.service.product.CustomProductCraftRelService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
......
package com.jomalls.custom.webapp.controller.product;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.vo.CustomProductDiyUserRelPageVO;
import com.jomalls.custom.app.vo.CustomProductDiyUserRelVO;
import com.jomalls.custom.app.vo.product.CustomProductDiyUserRelPageVO;
import com.jomalls.custom.app.vo.product.CustomProductDiyUserRelVO;
import com.jomalls.custom.app.service.product.CustomProductDiyUserRelService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
......
package com.jomalls.custom.webapp.controller.product;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.vo.CustomProductFactoryPriceIntervalRelPageVO;
import com.jomalls.custom.app.vo.CustomProductFactoryPriceIntervalRelVO;
import com.jomalls.custom.app.vo.product.CustomProductFactoryPriceIntervalRelPageVO;
import com.jomalls.custom.app.vo.product.CustomProductFactoryPriceIntervalRelVO;
import com.jomalls.custom.app.service.product.CustomProductFactoryPriceIntervalRelService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
......
package com.jomalls.custom.webapp.controller.product;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.vo.CustomProductFactoryPriceRelPageVO;
import com.jomalls.custom.app.vo.CustomProductFactoryPriceRelVO;
import com.jomalls.custom.app.vo.product.CustomProductFactoryPriceRelPageVO;
import com.jomalls.custom.app.vo.product.CustomProductFactoryPriceRelVO;
import com.jomalls.custom.app.service.product.CustomProductFactoryPriceRelService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
......
package com.jomalls.custom.webapp.controller.product;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.vo.CustomProductImagePageVO;
import com.jomalls.custom.app.vo.CustomProductImageVO;
import com.jomalls.custom.app.vo.product.CustomProductImagePageVO;
import com.jomalls.custom.app.vo.product.CustomProductImageVO;
import com.jomalls.custom.app.service.product.CustomProductImageService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
......
package com.jomalls.custom.webapp.controller.product;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.dto.product.CustomProductInfoDto;
import com.jomalls.custom.app.vo.CustomProductInfoVO;
import com.jomalls.custom.app.dto.product.CustomProductInfoDTO;
import com.jomalls.custom.app.vo.product.CustomProductInfoVO;
import com.jomalls.custom.app.service.product.CustomProductInfoService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
......@@ -49,8 +49,8 @@ public class CustomProductInfoController {
* @return 分页对象
*/
@Operation(summary = "分页列表接口", description = "根据条件查询分页列表接口")
@RequestMapping(value = "/pageList", method = RequestMethod.POST)
public IPage<CustomProductInfoVO> pageList(@RequestBody CustomProductInfoDto param) {
@RequestMapping(value = "/page", method = RequestMethod.POST)
public IPage<CustomProductInfoVO> pageList(@RequestBody CustomProductInfoDTO param) {
return customProductInfoService.pageList(param);
}
......
package com.jomalls.custom.webapp.controller.product;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.vo.CustomProductInfoPropertyPageVO;
import com.jomalls.custom.app.vo.CustomProductInfoPropertyVO;
import com.jomalls.custom.app.vo.product.CustomProductInfoPropertyPageVO;
import com.jomalls.custom.app.vo.product.CustomProductInfoPropertyVO;
import com.jomalls.custom.app.service.product.CustomProductInfoPropertyService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
......
package com.jomalls.custom.webapp.controller.product;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.vo.CustomProductItemPageVO;
import com.jomalls.custom.app.vo.CustomProductItemVO;
import com.jomalls.custom.app.vo.product.CustomProductItemPageVO;
import com.jomalls.custom.app.vo.product.CustomProductItemVO;
import com.jomalls.custom.app.service.product.CustomProductItemService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
......
package com.jomalls.custom.webapp.controller.product;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.vo.CustomProductRemarkPageVO;
import com.jomalls.custom.app.vo.CustomProductRemarkVO;
import com.jomalls.custom.app.vo.product.CustomProductRemarkPageVO;
import com.jomalls.custom.app.vo.product.CustomProductRemarkVO;
import com.jomalls.custom.app.service.product.CustomProductRemarkService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
......
package com.jomalls.custom.webapp.controller.product;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.vo.CustomProductWarehouseRelPageVO;
import com.jomalls.custom.app.vo.CustomProductWarehouseRelVO;
import com.jomalls.custom.app.vo.product.CustomProductWarehouseRelPageVO;
import com.jomalls.custom.app.vo.product.CustomProductWarehouseRelVO;
import com.jomalls.custom.app.service.product.CustomProductWarehouseRelService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
......
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