|
@@ -1,8 +1,10 @@
|
|
|
package com.caimei365.user.model.vo;
|
|
|
|
|
|
+import java.lang.reflect.Type;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Date;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
import com.caimei365.user.model.po.CmBrandLanding;
|
|
|
import com.caimei365.user.model.po.CmDistribution;
|
|
|
import com.caimei365.user.model.vo.CmBrandFilesVO;
|
|
@@ -13,6 +15,8 @@ import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.apache.ibatis.type.Alias;
|
|
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
|
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
|
+import org.springframework.beans.BeanUtils;
|
|
|
+import org.springframework.cglib.beans.BeanCopier;
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
import java.util.List;
|
|
@@ -23,7 +27,7 @@ import java.util.List;
|
|
|
* @author Kaick
|
|
|
* @date 2023-05-31
|
|
|
*/
|
|
|
-@Accessors(chain = true )
|
|
|
+@Accessors(chain = true )
|
|
|
@Data
|
|
|
@Alias("CmBrandLandingVO")
|
|
|
public class CmBrandLandingVO implements Serializable
|
|
@@ -77,53 +81,26 @@ public class CmBrandLandingVO implements Serializable
|
|
|
/** pc端status 1启用,0停用 */
|
|
|
private String pcStatus;
|
|
|
|
|
|
- /** 移动端status 1启用,0停用 */
|
|
|
+ /**
|
|
|
+ * 移动端status 1启用,0停用
|
|
|
+ */
|
|
|
private String appStatus;
|
|
|
|
|
|
- /** 子级分类: (type=4){1 大图,2小图}(已弃用),(type=5){1 大图,2小图,2小图} */
|
|
|
+ /**
|
|
|
+ * 子级分类: (type=4){1 大图,2小图}(已弃用),(type=5){1 大图,2小图,2小图}
|
|
|
+ */
|
|
|
private String levelType;
|
|
|
|
|
|
- /** 添加时间 */
|
|
|
+ /**
|
|
|
+ * 添加时间
|
|
|
+ */
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
private Date addTime;
|
|
|
|
|
|
- /** 文件资料 */
|
|
|
- List<CmBrandFilesVO> cmBrandFiles;
|
|
|
-
|
|
|
- public static List<CmBrandLandingVO> setValues(List<CmBrandLanding> cmBrandLandingList) {
|
|
|
- List<CmBrandLandingVO> cmBrandLandingVOList = new ArrayList<>();
|
|
|
- if(CollectionUtils.isNotEmpty(cmBrandLandingList)) {
|
|
|
- cmBrandLandingList.forEach(s -> {
|
|
|
- cmBrandLandingVOList.add(setValue(s));
|
|
|
- });
|
|
|
- }
|
|
|
- return cmBrandLandingVOList;
|
|
|
- }
|
|
|
-
|
|
|
- public static CmBrandLandingVO setValue(CmBrandLanding cmBrandLanding) {
|
|
|
- CmBrandLandingVO cmBrandLandingVO = new CmBrandLandingVO();
|
|
|
- if(null!=cmBrandLanding) {
|
|
|
- cmBrandLandingVO.setId(cmBrandLanding.getId());
|
|
|
- cmBrandLandingVO.setType(cmBrandLanding.getType());
|
|
|
- cmBrandLandingVO.setAuthUserId(cmBrandLanding.getAuthUserId());
|
|
|
- cmBrandLandingVO.setAuthorId(cmBrandLanding.getAuthorId());
|
|
|
- cmBrandLandingVO.setHeadPcBanner(cmBrandLanding.getHeadPcBanner());
|
|
|
- cmBrandLandingVO.setHeadAppBanner(cmBrandLanding.getHeadAppBanner());
|
|
|
- cmBrandLandingVO.setJumpStatus(cmBrandLanding.getJumpStatus());
|
|
|
- cmBrandLandingVO.setJumpPcPicture(cmBrandLanding.getJumpPcPicture());
|
|
|
- cmBrandLandingVO.setJumpAppPicture(cmBrandLanding.getJumpAppPicture());
|
|
|
- cmBrandLandingVO.setJumpLink(cmBrandLanding.getJumpLink());
|
|
|
- cmBrandLandingVO.setTitle(cmBrandLanding.getTitle());
|
|
|
- cmBrandLandingVO.setContent(cmBrandLanding.getContent());
|
|
|
- cmBrandLandingVO.setVideo(cmBrandLanding.getVideo());
|
|
|
- cmBrandLandingVO.setSort(cmBrandLanding.getSort());
|
|
|
- cmBrandLandingVO.setPcStatus(cmBrandLanding.getPcStatus());
|
|
|
- cmBrandLandingVO.setAppStatus(cmBrandLanding.getAppStatus());
|
|
|
- cmBrandLandingVO.setLevelType(cmBrandLanding.getLevelType());
|
|
|
- cmBrandLandingVO.setAddTime(cmBrandLanding.getAddTime());
|
|
|
- cmBrandLandingVO.setCmBrandFiles(cmBrandLanding.getCmBrandFiles());
|
|
|
- }
|
|
|
- return cmBrandLandingVO;
|
|
|
- }
|
|
|
+ /**
|
|
|
+ * 文件资料
|
|
|
+ */
|
|
|
+ private List<CmBrandFilesVO> BrandFiles;
|
|
|
+
|
|
|
|
|
|
}
|