|
|
@ -53,6 +53,7 @@ public class HomeServiceImpl implements HomeService { |
|
|
|
public Result<HomeDesignByCustomerResultDTO> getHomeDesignByCustomer(CustomerHomeFormDTO formDTO) { |
|
|
|
HomeDesignByCustomerResultDTO resultDTO = new HomeDesignByCustomerResultDTO(); |
|
|
|
//根据客户id,所属端获取客户首页配置的设计稿
|
|
|
|
formDTO.setStatus(OperCustomizeConstant.STATUS_DRAFT); |
|
|
|
List<CommonComponentDesignResultDTO> list = customerHomeDetailDao.selectCustomerHomeDetail(formDTO); |
|
|
|
List<CommonComponentDesignResultDTO> titleList = new ArrayList<>(); |
|
|
|
List<CommonComponentDesignResultDTO> topList = new ArrayList<>(); |
|
|
@ -118,7 +119,7 @@ public class HomeServiceImpl implements HomeService { |
|
|
|
customerHomeDetailDao.deleteCustomerHomeDetailByHomeId(customerHomeEntity.getId()); |
|
|
|
|
|
|
|
List<CustomerHomeDetailEntity> list = ConvertUtils.sourceToTarget(formDTO.getComponentList(), CustomerHomeDetailEntity.class); |
|
|
|
|
|
|
|
list.forEach(homeDetail -> homeDetail.setHomeId(customerHomeEntity.getId())); |
|
|
|
//将数据存入客户首页详情表
|
|
|
|
customerHomeDetailService.insertBatch(list); |
|
|
|
|
|
|
|