feat(制品库功能完善): 产品库不提供直接上传产品操作,文档需要从知识库中选取
调整知识库列表接口逻辑,新增参数(是否不包含wiki),用户传入参数后知识库列表接口将不返回wiki类型的文档
This commit is contained in:
parent
a713407f7f
commit
a5a1f01335
|
|
@ -48,7 +48,6 @@ public class PmsDocumentController extends BaseController
|
|||
})
|
||||
public GenericsTableDataInfo<PmsDocumentVo> list( @Validated PmsDocumentSearchVo pmsDocumentSearchVo)
|
||||
{
|
||||
|
||||
return pmsDocumentService.selectPmsDocumentVoList(pmsDocumentSearchVo);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue