Browse Source

居民端首页设置 customer_home_detail表客户Id未赋值情况

master
sunyuchao 5 years ago
parent
commit
f1ffb73dd9
  1. 5
      epmet-module/oper-customize/oper-customize-server/src/main/java/com/epmet/service/impl/HomeServiceImpl.java

5
epmet-module/oper-customize/oper-customize-server/src/main/java/com/epmet/service/impl/HomeServiceImpl.java

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

Loading…
Cancel
Save