|
|
@ -163,7 +163,7 @@ public class ScreenProjectDataServiceImpl extends BaseServiceImpl<ScreenProjectD |
|
|
|
baseDao.deleteByProjectId(param.getCustomerId(), item.getProjectId()); |
|
|
|
screenProjectImgDataDao.deleteByProjectId(param.getCustomerId(), item.getProjectId()); |
|
|
|
baseDao.insert(screenProjectDataEntity); |
|
|
|
saveCategory(param.getCustomerId(), Collections.singletonList(screenProjectDataEntity)) |
|
|
|
saveCategory(param.getCustomerId(), Collections.singletonList(screenProjectDataEntity)); |
|
|
|
//插入该项目图片表
|
|
|
|
String[] projectImgUrl = item.getProjectImgUrl(); |
|
|
|
if (ArrayUtils.isNotEmpty(projectImgUrl)) { |
|
|
@ -174,7 +174,7 @@ public class ScreenProjectDataServiceImpl extends BaseServiceImpl<ScreenProjectD |
|
|
|
screenProjectImgDataEntity.setProjectId(item.getProjectId()); |
|
|
|
screenProjectImgDataEntity.setProjectImgUrl(projectImgUrl[i]); |
|
|
|
screenProjectImgDataEntity.setSort(i); |
|
|
|
imgList.add(screenProjectImgDataEntity) |
|
|
|
imgList.add(screenProjectImgDataEntity); |
|
|
|
} |
|
|
|
screenProjectImgDataDao.insertBatch(imgList); |
|
|
|
} |
|
|
@ -359,8 +359,12 @@ public class ScreenProjectDataServiceImpl extends BaseServiceImpl<ScreenProjectD |
|
|
|
if ("external".equals(categoryEntity.getCustomerType())) { |
|
|
|
entity.setCategoryCode(categoryEntity.getEpmetCategoryCode()); |
|
|
|
CustomerProjectCategoryDictEntity parent = customerProjectCategoryDictService.getByCategoryCode(parentCustomer.getData(), categoryEntity.getEpmetCategoryCode()); |
|
|
|
entity.setParentCategoryCode(parent.getParentCategoryCode()); |
|
|
|
entity.setLevel(parent.getLevel()); |
|
|
|
if (null != parent) { |
|
|
|
entity.setParentCategoryCode(parent.getParentCategoryCode()); |
|
|
|
entity.setLevel(parent.getLevel()); |
|
|
|
} else { |
|
|
|
log.error("未找到对应分类"); |
|
|
|
} |
|
|
|
} else { |
|
|
|
entity.setCategoryCode(categoryEntity.getCategoryCode()); |
|
|
|
entity.setParentCategoryCode(categoryEntity.getParentCategoryCode()); |
|
|
|