|
|
@ -114,7 +114,6 @@ public class GuideServiceImpl extends BaseServiceImpl<GuideDao, GuideEntity> imp |
|
|
|
public void save(GuideDTO dto) { |
|
|
|
GuideEntity entity = ConvertUtils.sourceToTarget(dto, GuideEntity.class); |
|
|
|
insert(entity); |
|
|
|
ConvertUtils.sourceToTarget(entity, GuideDTO.class); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
@ -176,7 +175,7 @@ public class GuideServiceImpl extends BaseServiceImpl<GuideDao, GuideEntity> imp |
|
|
|
throw new RenException(EpmetErrorCode.GUIDE_IS_NULL.getCode()); |
|
|
|
} |
|
|
|
//保存办事指南表
|
|
|
|
GuideDTO guideDTO = new GuideDTO(); |
|
|
|
GuideEntity guideDTO = new GuideEntity(); |
|
|
|
guideDTO.setCustomerId(tokenDto.getCustomerId()); |
|
|
|
guideDTO.setOrgId(formDTO.getOrgId()); |
|
|
|
guideDTO.setOrgType(formDTO.getOrgType()); |
|
|
@ -197,7 +196,7 @@ public class GuideServiceImpl extends BaseServiceImpl<GuideDao, GuideEntity> imp |
|
|
|
guideDTO.setPid(result.getData().getAgencyId()); |
|
|
|
} |
|
|
|
guideDTO.setPids(result.getData().getPids().concat(":").concat(result.getData().getAgencyId())); |
|
|
|
save(guideDTO); |
|
|
|
insert(guideDTO); |
|
|
|
//保存办事指南内容模块
|
|
|
|
if (CollectionUtils.isNotEmpty(formDTO.getModuleList())) { |
|
|
|
List<GuideModuleEntity> guideModuleList = formDTO.getModuleList().stream().map(item -> { |
|
|
|