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

新增配置

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