完善校验
This commit is contained in:
parent
f2a8235639
commit
156325b2f0
|
|
@ -98,8 +98,10 @@ public class DocumentScreenImpl implements DocumentScreenService {
|
|||
if("1".equals(type)){
|
||||
vo.setPublicFolderId(vo.getParentId());
|
||||
vo.setParentId("0");
|
||||
}else {
|
||||
vo.setParentId(vo.getParentId().split("_")[2]);
|
||||
}
|
||||
vo.setParentIds(vo.getParentIds()+vo.getParentId()+",");
|
||||
vo.setParentIds(vo.getParentIds()+vo.getParentId()+",");
|
||||
/**
|
||||
* 查询文件夹名称是否重复
|
||||
*/
|
||||
|
|
@ -108,7 +110,6 @@ public class DocumentScreenImpl implements DocumentScreenService {
|
|||
return AjaxResult.error("文件夹名称已存在");
|
||||
}
|
||||
Integer num2= mapper.addDocumentCompany(vo);
|
||||
|
||||
if("1".equals(type)){
|
||||
vo.setAuthType("4");
|
||||
//创建的都是4
|
||||
|
|
@ -124,7 +125,6 @@ public class DocumentScreenImpl implements DocumentScreenService {
|
|||
return AjaxResult.success("添加成功");
|
||||
}
|
||||
|
||||
|
||||
return AjaxResult.success("添加成功");
|
||||
}catch (Exception e){
|
||||
log.error(e.toString(),e);
|
||||
|
|
|
|||
|
|
@ -84,9 +84,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</select>
|
||||
<!--文件夹名称是否存在-->
|
||||
<select id="getDocumentByNum" resultType="java.lang.Integer">
|
||||
select count(1)
|
||||
<if test='type=="1" or type==1 '>
|
||||
select count(1)
|
||||
from tb_user_document_folder udf
|
||||
left join tb_public_real_user tpr on tpr.user_folder_id=udf.id and tpr.data_type=1
|
||||
where del_flag=0 and file_type=0 and udf.folder_name=#{folderName} AND tpr.public_folder_id=#{publicFolderId}
|
||||
</if>
|
||||
<if test='type=="2" or type==2 '>
|
||||
select count(1)
|
||||
from tb_user_document_folder
|
||||
where del_flag=0 and file_type=0 and folder_name=#{folderName}
|
||||
where del_flag=0 and file_type=0 and folder_name=#{folderName} AND parent_id=#{parentId}
|
||||
</if>
|
||||
</select>
|
||||
<!--查询文件夹数据集合-->
|
||||
<select id="getDocumentFileList" resultType="com.bonus.business.domain.TbUserFiles">
|
||||
|
|
|
|||
Loading…
Reference in New Issue