Commit bc070a8e authored by 廖旭伟's avatar 廖旭伟

客户收藏接口问题修改

parent 1a3d4e4b
package com.mortals.xhx.module.customer.service.impl;
import com.alibaba.fastjson.JSONObject;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.framework.model.PageInfo;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.util.StringUtils;
import com.mortals.xhx.module.customer.dao.CustomerWorkCollectDao;
import com.mortals.xhx.module.customer.model.CustomerWorkCollectEntity;
import com.mortals.xhx.module.customer.model.CustomerWorkDesignEntity;
......@@ -42,6 +44,9 @@ public class CustomerWorkCollectServiceImpl extends AbstractCRUDServiceImpl<Cust
if(CollectionUtils.isNotEmpty(list)){
list.stream().forEach(item->{
DesignMasterplateEntity designMasterplateEntity = designMasterplateService.get(item.getMasterplateId());
if(StringUtils.isNotEmpty(designMasterplateEntity.getDraft())){
designMasterplateEntity.setDesignContent(JSONObject.parseArray(designMasterplateEntity.getDraft(),JSONObject.class));
}
item.setDesignMasterplate(designMasterplateEntity!=null?designMasterplateEntity:null);
});
}
......
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