feat(制品库功能开发): 基于CMDB制品定制接口

新增时间范围参数,根据创建时间进行筛选
This commit is contained in:
OTTO 2024-09-04 11:37:34 +08:00
parent 2b639f7146
commit ce943ff68e
2 changed files with 9 additions and 0 deletions

View File

@ -4,6 +4,8 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
/**
* 制品库数据对象
*
@ -17,6 +19,10 @@ public class PmsProductLibraryComponentSearchVo {
private String excludeIds;
@ApiModelProperty(value = "产品库标识")
private String productRepoName;
@ApiModelProperty(value = "开始时间")
private Date startTime;
@ApiModelProperty(value = "结束时间")
private Date endTime;
/**
* 关联企业ID
*/

View File

@ -128,6 +128,9 @@
#{item}
</foreach>
</if>
<if test="startTime != null and endTime != null">
and pplc.create_time between #{startTime} and #{endTime}
</if>
<if test="productRepoName != null and productRepoName != ''">and pplr.`name` = #{productRepoName}</if>
<if test="pmsEnterpriseIdentifier != null ">and pe.enterprise_identifier = #{pmsEnterpriseIdentifier}</if>
and pplr.format='product'