Commit 1aae09bb authored by chenhao's avatar chenhao

bug 3562 --t添加隐患详情复查图片

parent a79e3731
......@@ -707,7 +707,28 @@ public class LatentDangerServiceImpl extends BaseService<LatentDangerBo, LatentD
}
}
if (!StringUtils.isEmpty(latentDanger.getReformJson())) {
detailVo.setReformJson(latentDanger.getReformJson());
JSONObject reformJsonObject = latentDanger.getReformJson();
LatentDangerFlowRecordBo doBo = latentDangerFlowRecordMapper.getByDangerIdAndActionFlag(latentDanger.getId(),"governLeaderReviewConfirm");
if(doBo!=null) {
String flowJsonString = doBo.getFlowJson();
JSONObject flowJsonObject= JSONObject.parseObject(flowJsonString);
JSONArray picturesArray = flowJsonObject.getJSONArray("pictures");
JSONArray jsonArray =new JSONArray();
picturesArray.stream().forEach(i->{
JSONObject jsonObject= new JSONObject();
jsonObject.put("url", i);
jsonObject.put("name", "");
jsonObject.put("type", "image");
jsonArray.add(jsonObject);
});
reformJsonObject.put("reviewImages",jsonArray );
}else {
reformJsonObject.put("reviewImages", null);
}
detailVo.setReformJson(reformJsonObject);
}
if (!StringUtils.isEmpty(latentDanger.getPhotoUrls())) {
List<String> photoUrls = Lists.newArrayList(latentDanger.getPhotoUrls().split(","));
......
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