|
@ -68,9 +68,10 @@ public class HomeServiceImpl implements HomeService { |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void saveHomeDesign(HomeDesignFormDTO formDTO) { |
|
|
public void saveHomeDesign(HomeDesignFormDTO formDTO) { |
|
|
|
|
|
//根据客户ID和所属端类型从客户首页表找到对应的已发布和草稿
|
|
|
List<CustomerHomeEntity> customerHomeList = customerHomeDao.selectCustomerHomeList(formDTO); |
|
|
List<CustomerHomeEntity> customerHomeList = customerHomeDao.selectCustomerHomeList(formDTO); |
|
|
|
|
|
|
|
|
|
|
|
//只处理草稿的数据
|
|
|
for(CustomerHomeEntity entity : customerHomeList) { |
|
|
for(CustomerHomeEntity entity : customerHomeList) { |
|
|
if (entity.getStatus() == 1) { |
|
|
if (entity.getStatus() == 1) { |
|
|
saveCustomerHomeDetail(formDTO, entity); |
|
|
saveCustomerHomeDetail(formDTO, entity); |
|
@ -80,9 +81,10 @@ public class HomeServiceImpl implements HomeService { |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void distributeHomeDesign(HomeDesignFormDTO formDTO) { |
|
|
public void distributeHomeDesign(HomeDesignFormDTO formDTO) { |
|
|
|
|
|
//根据客户ID和所属端类型从客户首页表找到对应的已发布和草稿
|
|
|
List<CustomerHomeEntity> customerHomeList = customerHomeDao.selectCustomerHomeList(formDTO); |
|
|
List<CustomerHomeEntity> customerHomeList = customerHomeDao.selectCustomerHomeList(formDTO); |
|
|
|
|
|
|
|
|
|
|
|
//草稿和模板数据都要处理
|
|
|
for(CustomerHomeEntity entity : customerHomeList) { |
|
|
for(CustomerHomeEntity entity : customerHomeList) { |
|
|
saveCustomerHomeDetail(formDTO, entity); |
|
|
saveCustomerHomeDetail(formDTO, entity); |
|
|
} |
|
|
} |
|
|