|
|
@ -118,7 +118,10 @@ 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())); |
|
|
|
list.forEach(homeDetail -> { |
|
|
|
homeDetail.setHomeId(customerHomeEntity.getId()); |
|
|
|
homeDetail.setCustomerId(formDTO.getCustomerId()); |
|
|
|
}); |
|
|
|
//将数据存入客户首页详情表
|
|
|
|
customerHomeDetailService.insertBatch(list); |
|
|
|
|
|
|
|