Browse Source

修复小程序请求商品接口

zyj
sj 2 years ago
parent
commit
37acc6ebae
  1. 18
      zsw-bxg/src/main/java/co/yixiang/app/modules/evaluation/param/YxEvaluationQueryParam.java
  2. 3
      zsw-bxg/src/main/java/co/yixiang/app/modules/evaluation/rest/AppStoreEvaluationController.java
  3. 4
      zsw-bxg/src/main/java/co/yixiang/app/modules/expert/rest/AppStoreExpertController.java
  4. 2
      zsw-bxg/src/main/java/co/yixiang/app/modules/product/rest/AppStoreBrandController.java
  5. 12
      zsw-bxg/src/main/java/co/yixiang/common/web/param/QueryParam.java
  6. 2
      zsw-bxg/src/main/java/co/yixiang/modules/evaluation/service/YxEvaluationService.java
  7. 5
      zsw-bxg/src/main/java/co/yixiang/modules/evaluation/service/impl/YxEvaluationServiceImpl.java
  8. 2
      zsw-bxg/src/main/java/co/yixiang/modules/expert/service/YxStoreExpertService.java
  9. 5
      zsw-bxg/src/main/java/co/yixiang/modules/expert/service/impl/YxStoreExpertServiceImpl.java
  10. 5
      zsw-bxg/src/main/java/co/yixiang/modules/store/service/YxStoreBrandService.java
  11. 6
      zsw-bxg/src/main/java/co/yixiang/modules/store/service/impl/YxStoreBrandServiceImpl.java
  12. 7
      zsw-bxg/src/main/java/co/yixiang/utils/BrandDTO.java
  13. 33
      zsw-bxg/src/main/java/co/yixiang/utils/EvaluationDTO.java
  14. 4
      zsw-bxg/src/main/java/co/yixiang/utils/ExpertDTO.java

18
zsw-bxg/src/main/java/co/yixiang/app/modules/evaluation/param/YxEvaluationQueryParam.java

@ -0,0 +1,18 @@
package co.yixiang.app.modules.evaluation.param;
import co.yixiang.common.web.param.QueryParam;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 评测表查询
* @author ssj
* @date 2022-9-27
*/
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "YxEvaluationQueryParam对象",description ="评测表查询参数")
public class YxEvaluationQueryParam extends QueryParam {
private static final long serialVersionUID =1L;
}

3
zsw-bxg/src/main/java/co/yixiang/app/modules/evaluation/rest/AppStoreEvaluationController.java

@ -11,8 +11,7 @@ package co.yixiang.app.modules.evaluation.rest;
import cn.iocoder.yudao.framework.common.pojo.ApiResult; import cn.iocoder.yudao.framework.common.pojo.ApiResult;
import co.yixiang.annotation.AnonymousAccess; import co.yixiang.annotation.AnonymousAccess;
import co.yixiang.modules.evaluation.service.YxEvaluationService; import co.yixiang.modules.evaluation.service.YxEvaluationService;
import co.yixiang.utils.location.EvaluationDTO; import co.yixiang.utils.EvaluationDTO;
import co.yixiang.utils.location.ExpertDTO;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;

4
zsw-bxg/src/main/java/co/yixiang/app/modules/expert/rest/AppStoreExpertController.java

@ -10,10 +10,8 @@ package co.yixiang.app.modules.expert.rest;
import co.yixiang.annotation.AnonymousAccess; import co.yixiang.annotation.AnonymousAccess;
import cn.iocoder.yudao.framework.common.pojo.ApiResult; import cn.iocoder.yudao.framework.common.pojo.ApiResult;
import co.yixiang.modules.expert.domain.YxStoreExpert;
import co.yixiang.modules.expert.service.YxStoreExpertService; import co.yixiang.modules.expert.service.YxStoreExpertService;
import co.yixiang.utils.CateDTO; import co.yixiang.utils.ExpertDTO;
import co.yixiang.utils.location.ExpertDTO;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;

2
zsw-bxg/src/main/java/co/yixiang/app/modules/product/rest/AppStoreBrandController.java

@ -3,7 +3,7 @@ package co.yixiang.app.modules.product.rest;
import cn.iocoder.yudao.framework.common.pojo.ApiResult; import cn.iocoder.yudao.framework.common.pojo.ApiResult;
import co.yixiang.annotation.AnonymousAccess; import co.yixiang.annotation.AnonymousAccess;
import co.yixiang.modules.store.service.YxStoreBrandService; import co.yixiang.modules.store.service.YxStoreBrandService;
import co.yixiang.utils.location.BrandDTO; import co.yixiang.utils.BrandDTO;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;

12
zsw-bxg/src/main/java/co/yixiang/common/web/param/QueryParam.java

@ -25,19 +25,19 @@ public abstract class QueryParam implements Serializable{
private String keyword; private String keyword;
@ApiModelProperty(value = "当前第几页") @ApiModelProperty(value = "当前第几页")
public void setCurrent(Integer current) { public void setPage(Integer page) {
if (current == null || current <= 0){ if (page == null || page <= 0){
this.page = 1; this.page = 1;
}else{ }else{
this.page = current; this.page = page;
} }
} }
public void setSize(Integer size) { public void setLimit(Integer limit) {
if (size == null || size <= 0){ if (limit == null || limit <= 0){
this.limit = 10; this.limit = 10;
}else{ }else{
this.limit = size; this.limit = limit;
} }
} }

2
zsw-bxg/src/main/java/co/yixiang/modules/evaluation/service/YxEvaluationService.java

@ -13,7 +13,7 @@ import co.yixiang.domain.PageResult;
import co.yixiang.modules.evaluation.domain.YxEvaluation; import co.yixiang.modules.evaluation.domain.YxEvaluation;
import co.yixiang.modules.evaluation.service.dto.YxEvaluationDto; import co.yixiang.modules.evaluation.service.dto.YxEvaluationDto;
import co.yixiang.modules.evaluation.service.dto.YxEvaluationQueryCriteria; import co.yixiang.modules.evaluation.service.dto.YxEvaluationQueryCriteria;
import co.yixiang.utils.location.EvaluationDTO; import co.yixiang.utils.EvaluationDTO;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;

5
zsw-bxg/src/main/java/co/yixiang/modules/evaluation/service/impl/YxEvaluationServiceImpl.java

@ -18,11 +18,8 @@ import co.yixiang.modules.evaluation.service.YxEvaluationService;
import co.yixiang.modules.evaluation.service.dto.YxEvaluationDto; import co.yixiang.modules.evaluation.service.dto.YxEvaluationDto;
import co.yixiang.modules.evaluation.service.dto.YxEvaluationQueryCriteria; import co.yixiang.modules.evaluation.service.dto.YxEvaluationQueryCriteria;
import co.yixiang.modules.evaluation.service.mapper.YxEvaluationMapper; import co.yixiang.modules.evaluation.service.mapper.YxEvaluationMapper;
import co.yixiang.modules.expert.domain.YxStoreExpert;
import co.yixiang.utils.FileUtil; import co.yixiang.utils.FileUtil;
import co.yixiang.utils.TreeUtil; import co.yixiang.utils.EvaluationDTO;
import co.yixiang.utils.location.EvaluationDTO;
import co.yixiang.utils.location.ExpertDTO;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;

2
zsw-bxg/src/main/java/co/yixiang/modules/expert/service/YxStoreExpertService.java

@ -13,7 +13,7 @@ import co.yixiang.domain.PageResult;
import co.yixiang.modules.expert.domain.YxStoreExpert; import co.yixiang.modules.expert.domain.YxStoreExpert;
import co.yixiang.modules.expert.service.dto.YxStoreExpertDto; import co.yixiang.modules.expert.service.dto.YxStoreExpertDto;
import co.yixiang.modules.expert.service.dto.YxStoreExpertQueryCriteria; import co.yixiang.modules.expert.service.dto.YxStoreExpertQueryCriteria;
import co.yixiang.utils.location.ExpertDTO; import co.yixiang.utils.ExpertDTO;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;

5
zsw-bxg/src/main/java/co/yixiang/modules/expert/service/impl/YxStoreExpertServiceImpl.java

@ -13,16 +13,13 @@ import co.yixiang.common.utils.QueryHelpPlus;
import co.yixiang.domain.PageResult; import co.yixiang.domain.PageResult;
import co.yixiang.dozer.service.IGenerator; import co.yixiang.dozer.service.IGenerator;
import co.yixiang.enums.ShopCommonEnum; import co.yixiang.enums.ShopCommonEnum;
import co.yixiang.modules.category.domain.YxStoreCategory;
import co.yixiang.modules.expert.domain.YxStoreExpert; import co.yixiang.modules.expert.domain.YxStoreExpert;
import co.yixiang.modules.expert.service.YxStoreExpertService; import co.yixiang.modules.expert.service.YxStoreExpertService;
import co.yixiang.modules.expert.service.dto.YxStoreExpertDto; import co.yixiang.modules.expert.service.dto.YxStoreExpertDto;
import co.yixiang.modules.expert.service.dto.YxStoreExpertQueryCriteria; import co.yixiang.modules.expert.service.dto.YxStoreExpertQueryCriteria;
import co.yixiang.modules.expert.service.mapper.YxStoreExpertMapper; import co.yixiang.modules.expert.service.mapper.YxStoreExpertMapper;
import co.yixiang.utils.CateDTO;
import co.yixiang.utils.FileUtil; import co.yixiang.utils.FileUtil;
import co.yixiang.utils.TreeUtil; import co.yixiang.utils.ExpertDTO;
import co.yixiang.utils.location.ExpertDTO;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;

5
zsw-bxg/src/main/java/co/yixiang/modules/store/service/YxStoreBrandService.java

@ -12,10 +12,9 @@ import co.yixiang.domain.PageResult;
import co.yixiang.modules.store.domain.YxStoreBrand; import co.yixiang.modules.store.domain.YxStoreBrand;
import co.yixiang.modules.store.service.dto.YxStoreBrandDto; import co.yixiang.modules.store.service.dto.YxStoreBrandDto;
import co.yixiang.modules.store.service.dto.YxStoreBrandQueryCriteria; import co.yixiang.modules.store.service.dto.YxStoreBrandQueryCriteria;
import co.yixiang.utils.CateDTO; import co.yixiang.utils.BrandDTO;
import co.yixiang.utils.location.BrandDTO;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import java.util.Map;
import java.util.List; import java.util.List;
import java.io.IOException; import java.io.IOException;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;

6
zsw-bxg/src/main/java/co/yixiang/modules/store/service/impl/YxStoreBrandServiceImpl.java

@ -13,12 +13,9 @@ import co.yixiang.common.utils.QueryHelpPlus;
import co.yixiang.domain.PageResult; import co.yixiang.domain.PageResult;
import co.yixiang.dozer.service.IGenerator; import co.yixiang.dozer.service.IGenerator;
import co.yixiang.enums.ShopCommonEnum; import co.yixiang.enums.ShopCommonEnum;
import co.yixiang.modules.expert.domain.YxStoreExpert;
import co.yixiang.modules.store.domain.YxStoreBrand; import co.yixiang.modules.store.domain.YxStoreBrand;
import co.yixiang.modules.store.service.vo.YxStoreBrandVO;
import co.yixiang.utils.FileUtil; import co.yixiang.utils.FileUtil;
import co.yixiang.utils.location.BrandDTO; import co.yixiang.utils.BrandDTO;
import co.yixiang.utils.location.ExpertDTO;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
@ -33,7 +30,6 @@ import org.springframework.transaction.annotation.Transactional;
//import org.springframework.cache.annotation.CacheConfig; //import org.springframework.cache.annotation.CacheConfig;
//import org.springframework.cache.annotation.CacheEvict; //import org.springframework.cache.annotation.CacheEvict;
//import org.springframework.cache.annotation.Cacheable; //import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;

7
zsw-bxg/src/main/java/co/yixiang/utils/location/BrandDTO.java → zsw-bxg/src/main/java/co/yixiang/utils/BrandDTO.java

@ -1,4 +1,6 @@
package co.yixiang.utils.location; package co.yixiang.utils;
import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -11,6 +13,7 @@ import java.util.List;
* @author ssj * @author ssj
* @since 2022-9-20 * @since 2022-9-20
*/ */
@Data
public class BrandDTO implements Serializable { public class BrandDTO implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -28,6 +31,6 @@ public class BrandDTO implements Serializable {
*/ */
private String pic; private String pic;
private List<BrandDTO> children = new ArrayList<>(); // private List<BrandDTO> children = new ArrayList<>();
} }

33
zsw-bxg/src/main/java/co/yixiang/utils/location/EvaluationDTO.java → zsw-bxg/src/main/java/co/yixiang/utils/EvaluationDTO.java

@ -1,8 +1,9 @@
package co.yixiang.utils.location; package co.yixiang.utils;
import com.baomidou.mybatisplus.annotation.FieldFill; import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
@ -19,6 +20,7 @@ import java.util.List;
* @author sj * @author sj
* @since 2022-09-26 * @since 2022-09-26
*/ */
@Data
public class EvaluationDTO implements Serializable { public class EvaluationDTO implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -42,7 +44,6 @@ public class EvaluationDTO implements Serializable {
private String videoInput; private String videoInput;
/** 关联商品信息 */ /** 关联商品信息 */
@NotNull @NotNull
private String product; private String product;
@ -75,22 +76,22 @@ public class EvaluationDTO implements Serializable {
private String accessibilitySynopsis; private String accessibilitySynopsis;
/** 添加时间 */ // /** 添加时间 */
@TableField(fill= FieldFill.INSERT) // @TableField(fill= FieldFill.INSERT)
private Timestamp createTime; // private Timestamp createTime;
/** 更新时间 */
@TableField(fill= FieldFill.INSERT_UPDATE)
private Timestamp updateTime;
/** 是否删除 */ // /** 更新时间 */
private Integer isDel; // @TableField(fill= FieldFill.INSERT_UPDATE)
// private Timestamp updateTime;
/** 是否展示 */ // /** 是否删除 */
private Integer isShow; // private Integer isDel;
//
//
// /** 是否展示 */
// private Integer isShow;
/** 排序 */ /** 排序 */
@ -98,7 +99,7 @@ public class EvaluationDTO implements Serializable {
private Integer sort; private Integer sort;
private Long tenantId; // private Long tenantId;
private List<EvaluationDTO> children = new ArrayList<>(); // private List<EvaluationDTO> children = new ArrayList<>();
} }

4
zsw-bxg/src/main/java/co/yixiang/utils/location/ExpertDTO.java → zsw-bxg/src/main/java/co/yixiang/utils/ExpertDTO.java

@ -3,7 +3,7 @@
* All rights reserved, Designed By www.yixiang.co * All rights reserved, Designed By www.yixiang.co
*/ */
package co.yixiang.utils.location; package co.yixiang.utils;
import lombok.Data; import lombok.Data;
@ -56,6 +56,6 @@ public class ExpertDTO implements Serializable {
*/ */
private String image; private String image;
private List<ExpertDTO> children = new ArrayList<>(); // private List<ExpertDTO> children = new ArrayList<>();
} }
Loading…
Cancel
Save