1.修改作废的bug。
This commit is contained in:
parent
c9394fcc60
commit
b7ade7d149
|
|
@ -240,7 +240,15 @@ public class EDDataServiceImpl implements EDDataService {
|
||||||
FileUtil.rename(Paths.get(fileStorageFullPath) ,fileNameNew,true);
|
FileUtil.rename(Paths.get(fileStorageFullPath) ,fileNameNew,true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 修改文件夹
|
||||||
edDataRepository.updateFileInfo(parames);
|
edDataRepository.updateFileInfo(parames);
|
||||||
|
// 修改文件夹中的文件
|
||||||
|
if(edDataInfo.getDataType().equals("folder") && parames.getEffectFlag() != null) {
|
||||||
|
EDDataParams paramesChild = new EDDataParams();
|
||||||
|
paramesChild.setParentId(edDataInfo.getDataId());
|
||||||
|
paramesChild.setEffectFlag(parames.getEffectFlag());
|
||||||
|
edDataRepository.updateFileInfo(paramesChild);
|
||||||
|
}
|
||||||
|
|
||||||
return Boolean.TRUE;
|
return Boolean.TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -103,10 +103,18 @@
|
||||||
</if>
|
</if>
|
||||||
gmt_modified = now()
|
gmt_modified = now()
|
||||||
</set>
|
</set>
|
||||||
where data_id = #{dataId,jdbcType=VARCHAR} and effect_flag = 1
|
<where>
|
||||||
|
<!-- 条件 1:按数据编码修改 -->
|
||||||
|
<if test="dataId != null and dataId != ''">
|
||||||
|
data_id = #{dataId,jdbcType=VARCHAR}
|
||||||
|
</if>
|
||||||
|
<!-- 条件 2:按目录编码修改 -->
|
||||||
|
<if test="parentId != null and parentId != ''">
|
||||||
|
category_id = #{parentId,jdbcType=VARCHAR}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue