|
|
@ -1,6 +1,5 @@ |
|
|
package com.xujie.sys.modules.pms.service.Impl; |
|
|
package com.xujie.sys.modules.pms.service.Impl; |
|
|
|
|
|
|
|
|
import cn.hutool.log.Log; |
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
import com.graphbuilder.math.func.LogFunction; |
|
|
import com.graphbuilder.math.func.LogFunction; |
|
|
@ -12,7 +11,9 @@ import com.xujie.sys.modules.pms.data.GetParamInData; |
|
|
import com.xujie.sys.modules.pms.mapper.EamObjectMapper; |
|
|
import com.xujie.sys.modules.pms.mapper.EamObjectMapper; |
|
|
import com.xujie.sys.modules.pms.service.EamObjectService; |
|
|
import com.xujie.sys.modules.pms.service.EamObjectService; |
|
|
import com.xujie.sys.modules.report.dao.ProcedureDao; |
|
|
import com.xujie.sys.modules.report.dao.ProcedureDao; |
|
|
|
|
|
import org.apache.commons.logging.Log; |
|
|
import org.apache.poi.ss.formula.functions.LogicalFunction; |
|
|
import org.apache.poi.ss.formula.functions.LogicalFunction; |
|
|
|
|
|
import org.slf4j.LoggerFactory; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
@ -44,6 +45,7 @@ public class EamObjectServiceImpl implements EamObjectService { |
|
|
@Autowired |
|
|
@Autowired |
|
|
private ProcedureDao procedureDao; |
|
|
private ProcedureDao procedureDao; |
|
|
|
|
|
|
|
|
|
|
|
private org.slf4j.Logger logger = LoggerFactory.getLogger(getClass()); |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public PageUtils getEamObjectList(EamObjectData inData) { |
|
|
public PageUtils getEamObjectList(EamObjectData inData) { |
|
|
@ -184,10 +186,8 @@ public class EamObjectServiceImpl implements EamObjectService { |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void downLoadObjectFile(Integer id, HttpServletResponse response) throws UnsupportedEncodingException { |
|
|
public void downLoadObjectFile(Integer id, HttpServletResponse response) throws UnsupportedEncodingException { |
|
|
|
|
|
|
|
|
//处理路径和名称 |
|
|
//处理路径和名称 |
|
|
List<SysOssEntity> getFileData = eamObjectMapper.getFileData(id); |
|
|
List<SysOssEntity> getFileData = eamObjectMapper.getFileData(id); |
|
|
|
|
|
|
|
|
if(getFileData.size() == 0){ |
|
|
if(getFileData.size() == 0){ |
|
|
throw new RuntimeException("该文件不存在,请刷新列表"); |
|
|
throw new RuntimeException("该文件不存在,请刷新列表"); |
|
|
} |
|
|
} |
|
|
@ -220,5 +220,4 @@ public class EamObjectServiceImpl implements EamObjectService { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |