1.增加更新文件状态接口(能正常运行);
This commit is contained in:
parent
3b027797c1
commit
ec74835a08
|
|
@ -31,7 +31,7 @@ public class EDDataServiceImpl implements EDDataService {
|
|||
|
||||
/**
|
||||
* 创建文件夹
|
||||
* @param parames
|
||||
* @param edDataInfo
|
||||
* @return
|
||||
*/
|
||||
public Boolean createFolder(EDDataInfo edDataInfo)
|
||||
|
|
|
|||
|
|
@ -10,11 +10,11 @@ import java.util.List;
|
|||
public interface EDDataMapper {
|
||||
|
||||
/**
|
||||
* 创建文件夹
|
||||
* 创建文件/文件夹数据信息
|
||||
* @param edDataInfo
|
||||
* @return
|
||||
*/
|
||||
Boolean createFolder(EDDataInfo edDataInfo);
|
||||
Boolean createDataInfo(EDDataInfo edDataInfo);
|
||||
|
||||
/**
|
||||
* 获取文件信息列表
|
||||
|
|
@ -30,18 +30,5 @@ public interface EDDataMapper {
|
|||
*/
|
||||
Boolean updateFileStatus(EDDataParams parames);
|
||||
|
||||
/**
|
||||
* 上传
|
||||
* @param parames
|
||||
* @return
|
||||
*/
|
||||
Boolean upload(EDDataParams parames);
|
||||
|
||||
/**
|
||||
* 下载
|
||||
* @param parames
|
||||
* @return
|
||||
*/
|
||||
Boolean download(EDDataParams parames);
|
||||
|
||||
}
|
||||
|
|
@ -33,7 +33,7 @@ public class EDDataRepositoryImpl implements EDDataRepository {
|
|||
@Override
|
||||
public Boolean createFolder(EDDataInfo edDataInfo)
|
||||
{
|
||||
return edDataMapper.createFolder(edDataInfo);
|
||||
return edDataMapper.createDataInfo(edDataInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -68,7 +68,9 @@ public class EDDataRepositoryImpl implements EDDataRepository {
|
|||
@Override
|
||||
public Boolean upload(EDDataParams parames)
|
||||
{
|
||||
return edDataMapper.upload(parames);
|
||||
//return edDataMapper.upload(parames);
|
||||
//edDataMapper.createDataInfo(edDataInfo);
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -79,7 +81,8 @@ public class EDDataRepositoryImpl implements EDDataRepository {
|
|||
@Override
|
||||
public Boolean download(EDDataParams parames)
|
||||
{
|
||||
return edDataMapper.download(parames);
|
||||
//return edDataMapper.download(parames);
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
</sql>
|
||||
|
||||
|
||||
<insert id="createFolder" parameterType="com.electromagnetic.industry.software.data.manage.domain.boardservice.indicator.model.EDDataInfo">
|
||||
<insert id="createDataInfo" parameterType="com.electromagnetic.industry.software.data.manage.domain.boardservice.indicator.model.EDDataInfo">
|
||||
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||
SELECT LAST_INSERT_ID()
|
||||
</selectKey>
|
||||
|
|
@ -68,7 +68,7 @@
|
|||
order by gmt_modified asc
|
||||
</select>
|
||||
|
||||
<update id="updateFileStatus" parameterType="com.electromagnetic.industry.software.data.manage.domain.boardservice.indicator.model.EDDataParams">
|
||||
<update id="updateFileStatus" parameterType="com.electromagnetic.industry.software.data.manage.domain.boardservice.indicator.parames.EDDataParams">
|
||||
update ed_data_info
|
||||
<set>
|
||||
<if test="dataStatus != null and dataStatus!=''">
|
||||
|
|
|
|||
Loading…
Reference in New Issue