参数序列化问题4
This commit is contained in:
@@ -1,21 +1,19 @@
|
||||
package com.czg.market.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.KeyType;
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 套餐推广套餐 实体类。
|
||||
*
|
||||
@@ -67,7 +65,6 @@ public class PpPackage implements Serializable {
|
||||
/**
|
||||
* 套餐图片
|
||||
*/
|
||||
@JsonIgnore
|
||||
private String images;
|
||||
|
||||
/**
|
||||
@@ -83,7 +80,6 @@ public class PpPackage implements Serializable {
|
||||
/**
|
||||
* 套餐内容 json
|
||||
*/
|
||||
@JsonIgnore
|
||||
private String packageContent;
|
||||
|
||||
/**
|
||||
@@ -94,7 +90,6 @@ public class PpPackage implements Serializable {
|
||||
/**
|
||||
* 可用周期: [周一,周二]
|
||||
*/
|
||||
@JsonIgnore
|
||||
private String useWeeks;
|
||||
|
||||
/**
|
||||
@@ -105,7 +100,6 @@ public class PpPackage implements Serializable {
|
||||
/**
|
||||
* 阶梯优惠
|
||||
*/
|
||||
@JsonIgnore
|
||||
private String tieredDiscount;
|
||||
|
||||
/**
|
||||
@@ -121,7 +115,6 @@ public class PpPackage implements Serializable {
|
||||
/**
|
||||
* 商品详情图片
|
||||
*/
|
||||
@JsonIgnore
|
||||
private String detailImages;
|
||||
|
||||
/**
|
||||
|
||||
@@ -204,7 +204,21 @@ public class PpPackageServiceImpl extends ServiceImpl<PpPackageMapper, PpPackage
|
||||
|
||||
@Override
|
||||
public PpPackageVO convertPackageToVo(PpPackage ppPackage) {
|
||||
PpPackageVO packageVO = BeanUtil.copyProperties(ppPackage, PpPackageVO.class);
|
||||
PpPackageVO packageVO = new PpPackageVO();
|
||||
packageVO.setId(ppPackage.getId());
|
||||
packageVO.setShopId(ppPackage.getShopId());
|
||||
packageVO.setUseShopType(ppPackage.getUseShopType());
|
||||
packageVO.setUseShops(ppPackage.getUseShops());
|
||||
packageVO.setPackageName(ppPackage.getPackageName());
|
||||
packageVO.setDescription(ppPackage.getDescription());
|
||||
packageVO.setOriginPrice(ppPackage.getOriginPrice());
|
||||
packageVO.setPrice(ppPackage.getPrice());
|
||||
packageVO.setUseTimes(ppPackage.getUseTimes());
|
||||
packageVO.setOtherDesc(ppPackage.getOtherDesc());
|
||||
packageVO.setExpireHours(ppPackage.getExpireHours());
|
||||
packageVO.setOnlineStatus(ppPackage.getOnlineStatus());
|
||||
packageVO.setCreateTime(ppPackage.getCreateTime());
|
||||
packageVO.setUpdateTime(ppPackage.getUpdateTime());
|
||||
|
||||
packageVO.setUseWeeks(JSONArray.parseArray(ppPackage.getUseWeeks(), String.class));
|
||||
packageVO.setPackageContent(JSONArray.parseArray(ppPackage.getPackageContent(), PpPackageVO.PackageContent.class));
|
||||
|
||||
Reference in New Issue
Block a user