参数序列化问题4

This commit is contained in:
gong
2025-12-18 17:37:57 +08:00
parent 38943a2b7c
commit dcb373b2a3
2 changed files with 20 additions and 13 deletions

View File

@@ -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));