Commit 3d89a915 authored by 李驰骋's avatar 李驰骋

Merge remote-tracking branch 'origin/master'

parents 40f99385 ca2c7abd
......@@ -152,12 +152,14 @@ public class ProTaskMobController extends BaseController {
ProProductionSolution proProductionSolution = proProductionSolutionMapper.selectProProductionSolutionByProductionSolutionId(proWorkorder.getProductionSolutionId());
if(proProductionSolution != null && StringUtils.isNotEmpty(proProductionSolution.getFilePath())){
List<Map<String,Object>> fileMap = (List<Map<String, Object>>) JSONArray.parse(proProductionSolution.getFilePath());
for (Map<String,Object> map : fileMap){
ProTaskLinkFile file = new ProTaskLinkFile();
file.setFileName((String) map.get("originalFilename"));
file.setFileType("通用图纸");
file.setFilePath((String) map.get("filePath"));
list.add(file);
if(fileMap != null){
for (Map<String,Object> map : fileMap){
ProTaskLinkFile file = new ProTaskLinkFile();
file.setFileName((String) map.get("originalFilename"));
file.setFileType("通用图纸");
file.setFilePath((String) map.get("filePath"));
list.add(file);
}
}
}
return AjaxResult.success(list);
......
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