feat(制品库功能完善): 产品库不提供直接上传产品操作,文档需要从知识库中选取

调整知识库列表接口逻辑,新增参数(是否不包含wiki),用户传入参数后知识库列表接口将不返回wiki类型的文档
This commit is contained in:
OTTO 2024-07-30 15:30:49 +08:00
parent a713407f7f
commit a5a1f01335
3 changed files with 6 additions and 1 deletions

View File

@ -48,7 +48,6 @@ public class PmsDocumentController extends BaseController
})
public GenericsTableDataInfo<PmsDocumentVo> list( @Validated PmsDocumentSearchVo pmsDocumentSearchVo)
{
return pmsDocumentService.selectPmsDocumentVoList(pmsDocumentSearchVo);
}

View File

@ -44,6 +44,9 @@ public class PmsDocumentSearchVo extends BaseEntity
@ApiModelProperty(value = "是否仅筛选我创建的文档 true是 false否")
private Boolean isCreatedOnly;
@ApiModelProperty(value = "是否不包含wiki")
private Boolean notIncludeWiki;
/** 是否为企业管理员 */
@JsonIgnore
@ApiModelProperty(value = "是否为企业管理员", hidden = true)

View File

@ -40,6 +40,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectNotPrivateOrCreateByCurrentUser"/>
and pms_enterprise_id = #{pmsEnterpriseId}
</if>
<if test="notIncludeWiki">
and doc_type != 4
</if>
${params.dataScope}
</where>
</sql>