| | |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | | } |
| | | Multifile multifile = multifileMapper.selectOne(new QueryWrapper<Multifile>().lambda().eq(Multifile::getObjId,id) |
| | | .eq(Multifile::getObjType,Constants.MultiFile.FN_PATROL_POINT_FILE).last(" limit 1")); |
| | | .eq(Multifile::getObjType,Constants.MultiFile.FN_PATROL_POINT_FILE.getKey()).orderByDesc(Multifile::getId).last(" limit 1")); |
| | | if(Objects.nonNull(multifile) && StringUtils.isNotBlank(multifile.getFileurl())){ |
| | | String path = systemDictDataBiz.queryByCode(Constants.FTP,Constants.FTP_RESOURCE_PATH).getCode() |
| | | +systemDictDataBiz.queryByCode(Constants.FTP,Constants.YW_PATROL).getCode(); |
| | | ywPatrolPoint.setFileFullUrl(path + multifile.getFileurl()); |
| | | ywPatrolPoint.setFileUrl(multifile.getFileurl()); |
| | | } |
| | | |
| | | return ywPatrolPoint; |
| | | } |
| | | |