Commit c63d00c3 authored by 曹盼盼's avatar 曹盼盼

新增配置

parent bb543e43
......@@ -15,6 +15,7 @@ import com.yeejoin.amos.boot.module.tzs.flc.api.mapper.TzCylinderMapper;
import com.yeejoin.amos.boot.module.tzs.flc.api.service.ITzCylinderService;
import com.yeejoin.amos.feign.privilege.Privilege;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.validation.ValidationUtils;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
......@@ -41,6 +42,9 @@ public class TzCylinderServiceImpl extends BaseService<TzCylinderInfoDto, Cylind
@Autowired
DataDictionaryServiceImpl iDataDictionaryService;
@Value("${file.url.ipPort}")
private String ipPort;
@Override
public IPage<TzCylinderInfoDto> getCylinderInfoDtoList(PageParam pageParam, TzCylinderInfoDto tzCylinderInfoDto,
......@@ -204,7 +208,7 @@ public class TzCylinderServiceImpl extends BaseService<TzCylinderInfoDto, Cylind
List list=new ArrayList();
JSONObject objects = JSONObject.parseObject(o);
HashMap<String, String> map= new HashMap<>();
map.put("url",objects.getString("fileUrl"));
map.put("url",ipPort+objects.getString("fileUrl"));
map.put("name",objects.getString("fileName"));
list.add(map);
return 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