1.图片列表查询增加项目id参数

This commit is contained in:
cuizhibin 2025-07-27 16:31:28 +08:00
parent 14b0b60562
commit ea1e7576da
2 changed files with 6 additions and 0 deletions

View File

@ -27,6 +27,9 @@ public class ImageListReq implements Serializable {
@ApiModelProperty("部件id")
private String partId;
@ApiModelProperty("项目id")
private String projectId;
@ApiModelProperty("图像类型")
private String[] imageTypes;

View File

@ -20,6 +20,9 @@
<if test="partId != null and partId != ''">
AND p.part_id = #{partId}
</if>
<if test="projectId != null and projectId != ''">
AND i.project_id = #{projectId}
</if>
<if test="imageTypes != null and imageTypes.length > 0">
AND i.image_type in <foreach collection="imageTypes" item="imageType" open="(" close=")" separator=",">#{imageType}</foreach>
</if>