提交 bda71d68 作者: zhenjie

加盟附件修改

上级 480ccd1d
...@@ -88,10 +88,12 @@ public class CooperationServiceImpl implements CooperationService { ...@@ -88,10 +88,12 @@ public class CooperationServiceImpl implements CooperationService {
UserApplyTagDO userApplyTagDO = new UserApplyTagDO(userApplyTagVO); UserApplyTagDO userApplyTagDO = new UserApplyTagDO(userApplyTagVO);
cooperationDao.addApply(userApplyTagDO); cooperationDao.addApply(userApplyTagDO);
List<AttachmentVO> attachmentList = userApplyTagVO.getAttachmentList(); List<AttachmentVO> attachmentList = userApplyTagVO.getAttachmentList();
for (AttachmentVO attachmentVO : attachmentList) { if (CollectionUtils.isEmpty(attachmentList)) {
TagApplyResourceDO tagApplyResourceDO = for (AttachmentVO attachmentVO : attachmentList) {
new TagApplyResourceDO(attachmentVO, userApplyTagDO.getId()); TagApplyResourceDO tagApplyResourceDO =
cooperationDao.addApplyResource(tagApplyResourceDO); new TagApplyResourceDO(attachmentVO, userApplyTagDO.getId());
cooperationDao.addApplyResource(tagApplyResourceDO);
}
} }
// 修改单位的位置、品牌信息 // 修改单位的位置、品牌信息
appCompanyInfoUId.setLon(userApplyTagVO.getLon()); appCompanyInfoUId.setLon(userApplyTagVO.getLon());
...@@ -259,6 +261,7 @@ public class CooperationServiceImpl implements CooperationService { ...@@ -259,6 +261,7 @@ public class CooperationServiceImpl implements CooperationService {
} }
cooperationDao.deleteApplyResource(applyTagEditVO.getId()); cooperationDao.deleteApplyResource(applyTagEditVO.getId());
if (!CollectionUtils.isEmpty(applyTagEditVO.getAttachmentList())) { if (!CollectionUtils.isEmpty(applyTagEditVO.getAttachmentList())) {
applyTagEditVO.getAttachmentList().forEach(d -> d.setUserApplyTagId(userApplyTag.getId()));
cooperationDao.insertApplyResource(applyTagEditVO.getAttachmentList()); cooperationDao.insertApplyResource(applyTagEditVO.getAttachmentList());
} }
// 修改单位网点位置信息 // 修改单位网点位置信息
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论