Commit cda2a848 authored by zhangyingbin's avatar zhangyingbin

项目资料回显接口 修改

parent 8d2b744f
......@@ -173,8 +173,13 @@ public class ProjectServiceImpl extends BaseService<ProjectDto, Project, Project
ProjectDto project = projectMapper.getDetail(sequenceNbr);
LambdaQueryWrapper<Attachment> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(Attachment::getSourceId,sequenceNbr);
Attachment attachment = attachmentService.getOne(wrapper);
// try{
JSONObject jsonObject = JSON.parseObject(attachmentService.getOne(wrapper).getInfo());
JSONObject jsonObject = null;
if(!ValidationUtil.isEmpty(attachment)){
jsonObject = JSON.parseObject(attachment.getInfo());
}
JSONArray installSubForm = JSON.parseArray(XJConstant.INSTALL_SUB_FORM);
JSONArray designSubForm = JSON.parseArray(XJConstant.DESIGN_SUB_FORM);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment